/* /national-day: Qatar National Day collection.
   The flag is the system: a maroon field, a white hoist and nine serrated points. The points are the one bold
   device (the hero hoist draws them in once, and the shop band is cut with exactly nine); everything else is quiet.
   Colours are the flag's (#8A1538 and white). No official National Day logo or slogan is used. */
.nd {
  --nd-m: #8A1538;          /* the flag's maroon: fields and buttons */
  --nd-m2: #6E1029;         /* pressed / hover */
  --nd-bg: #FAF6F7;         /* white with a breath of maroon */
  --nd-surface: #FFFFFF;
  --nd-ink: #2A1520;
  --nd-ink2: #5C4450;
  --nd-line: #E8D9DE;
  --nd-text-m: #8A1538;     /* maroon used as text on the light ground */
  --nd-photo: #EFE7E4;
  background: var(--nd-bg); color: var(--nd-ink);
}
:root[data-theme="dark"] .nd {
  --nd-m: #8A1538; --nd-m2: #A31B45; --nd-bg: #150A0F; --nd-surface: #20111A; --nd-ink: #F6ECEF; --nd-ink2: #CDB5BF;
  --nd-line: #3B2029; --nd-text-m: #F08DAA; --nd-photo: #2A1720;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nd {
    --nd-m: #8A1538; --nd-m2: #A31B45; --nd-bg: #150A0F; --nd-surface: #20111A; --nd-ink: #F6ECEF; --nd-ink2: #CDB5BF;
    --nd-line: #3B2029; --nd-text-m: #F08DAA; --nd-photo: #2A1720;
  }
}
.nd :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.nd h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.025em; font-stretch: 118%; font-weight: 780; margin: 0 0 18px; max-width: 22ch; text-wrap: balance; }
.nd h3 { font-stretch: 108%; }
:root[dir="rtl"] .nd h2, :root[dir="rtl"] .nd h3 { letter-spacing: 0; line-height: 1.35; }
.nd-intro { color: var(--nd-ink2); max-width: 62ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; margin: 0 0 clamp(32px, 5vw, 64px); }

/* Buttons in the collection are maroon, not the site blue */
.nd .nd-btn { background: var(--nd-m); border-color: var(--nd-m); color: #fff; }
.nd .nd-btn:hover { background: var(--nd-m2); border-color: var(--nd-m2); color: #fff; }
.nd .nd-btn-line { border-color: var(--nd-ink); color: var(--nd-ink); }
.nd .nd-btn-line:hover { background: var(--nd-ink); color: var(--nd-bg); }

/* ---------- hero: the flag itself. The hoist stays on the left in both languages, as a flag does. ---------- */
.nd-hero { --hoist: clamp(18px, 7vw, 120px); --tooth: clamp(14px, 2.6vw, 40px); padding: 0; position: relative; isolation: isolate; background: var(--nd-m); color: #fff; overflow: hidden; }
.nd-hoist { position: absolute; z-index: 0; inset-block: 0; left: 0; width: calc(var(--hoist) + var(--tooth)); }
.nd-hoist::before { content: ""; position: absolute; inset-block: 0; left: 0; width: var(--hoist); background: #fff; }
.nd-teeth { position: absolute; inset-block: 0; left: calc(var(--hoist) - 1px); width: calc(var(--tooth) + 1px); height: 100%; fill: #fff; overflow: visible; }
.nd-hero__in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; box-sizing: border-box;
  padding-block: clamp(28px, 4vw, 56px) clamp(44px, 5vw, 72px);
  padding-left: calc(var(--hoist) + var(--tooth) + clamp(18px, 4vw, 64px)); padding-right: var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
:root[dir="rtl"] .nd-hero__in { padding-right: var(--gut); }
.nd-hero h1 { color: #fff; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.03em; font-stretch: 125%; font-weight: 800; margin: 16px 0 20px; text-wrap: balance; }
:root[dir="rtl"] .nd-hero h1 { font-size: clamp(34px, 3.9vw, 58px); line-height: 1.3; letter-spacing: 0; }
.nd-lead { margin: 0; max-width: 36rem; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: #F7E6EB; }
.nd-hero .hero-actions { margin-bottom: 0; margin-top: 26px; }
.nd .nd-btn-w { background: #fff; border-color: #fff; color: var(--nd-m); }
.nd .nd-btn-w:hover { background: #F7E6EB; border-color: #F7E6EB; color: #5A0C23; }
.nd .nd-btn-o { border-color: rgba(255,255,255,.7); color: #fff; }
.nd .nd-btn-o:hover { background: #fff; border-color: #fff; color: var(--nd-m); }
.nd-hero :focus-visible { outline-color: #fff; }
.nd-hero__pic { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.nd-hero__pic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 10px solid #fff; background: var(--nd-photo); }
:root[dir="rtl"] .nd-hero__pic { justify-self: start; }
.nd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14.5px; color: #F2D6DE; }
.nd-crumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: .6; }
.nd-crumbs a { color: #fff; }

/* The one orchestrated moment: the nine points come out of the hoist, top to bottom. */
@media (prefers-reduced-motion: no-preference) {
  .nd-teeth polygon { transform-box: fill-box; transform-origin: 0 50%; animation: nd-tooth .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(120ms + var(--i) * 55ms); }
  .nd-hero__pic img { animation: nd-rise .8s cubic-bezier(.2,.8,.2,1) .35s both; }
}
@keyframes nd-tooth { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- the five designs: one spec sheet each ---------- */
.nd-designs { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 6vw, 80px); }
.nd-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4.5vw, 72px); align-items: start; padding-block: clamp(32px, 4.5vw, 56px); border-top: 1px solid var(--nd-line); scroll-margin-top: 80px; }
.nd-item__pic { margin: 0; position: relative; }
.nd-item__pic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--nd-photo); }
.nd-item__body h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 4px 0 8px; font-weight: 760; letter-spacing: -0.015em; }
.nd-price { margin: 0 0 18px; font-weight: 700; font-size: 19px; color: var(--nd-text-m); }
.nd-item__body > p:not(.nd-price) { margin: 0 0 22px; color: var(--nd-ink2); max-width: 60ch; }
.nd-spec { margin: 0 0 26px; display: grid; gap: 0; border-top: 1px solid var(--nd-line); }
.nd-spec > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--nd-line); }
.nd-spec dt { font-weight: 650; font-size: 15px; color: var(--nd-ink); }
.nd-spec dd { margin: 0; font-size: 15.5px; color: var(--nd-ink2); line-height: 1.5; }

/* the lamp: day and night pictures, switched by the visitor */
.nd-lamp .nd-lamp__night { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.nd-lamp.is-lit .nd-lamp__night { opacity: 1; }
.nd-lamp__btn { position: absolute; inset-inline-start: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 2px; background: rgba(21,10,15,.82); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.nd-lamp__btn::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #F5D58A; background: transparent; transition: background-color .3s, box-shadow .3s; }
.nd-lamp__btn[aria-pressed="true"]::before { background: #F5D58A; box-shadow: 0 0 10px 2px rgba(245,213,138,.7); }
.nd-lamp__btn:hover { background: #150A0F; }
.nd-lamp__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- shop: a maroon band whose top edge is cut with exactly nine points ---------- */
.nd-shop { --edge: clamp(18px, 3vw, 40px); position: relative; background: var(--nd-m); color: #fff; padding-block: clamp(48px, 7vw, 96px); margin-top: var(--edge); }
.nd-shop::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--edge) * -1 + 1px); height: var(--edge); background: var(--nd-m);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 2' preserveAspectRatio='none'%3E%3Cpath d='M0 2L1 0 2 2 3 0 4 2 5 0 6 2 7 0 8 2 9 0 10 2 11 0 12 2 13 0 14 2 15 0 16 2 17 0 18 2Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 2' preserveAspectRatio='none'%3E%3Cpath d='M0 2L1 0 2 2 3 0 4 2 5 0 6 2 7 0 8 2 9 0 10 2 11 0 12 2 13 0 14 2 15 0 16 2 17 0 18 2Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.nd-shop h2 { color: #fff; }
.nd-shop .nd-intro { color: #F2D6DE; }
.nd-shop :focus-visible { outline-color: #fff; }
.nd-shop__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); }
.nd-shop__grid a { display: block; height: 100%; color: #fff; text-decoration: none; }
.nd-shop__grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fff; }
.nd-shop__grid h3 { margin: 16px 0 2px; font-size: 21px; color: #fff; }
.nd-shop__grid a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.nd-shop__price { margin: 0 0 6px; font-weight: 700; color: #fff; }
.nd-shop__grid p:not(.nd-shop__price) { margin: 0; color: #F2D6DE; line-height: 1.5; font-size: 16px; }

/* ---------- corporate and events ---------- */
.nd-corp { padding-block: clamp(56px, 8vw, 112px); }
.nd-corp__head p { color: var(--nd-ink2); max-width: 62ch; }
.nd-corp__list { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); }
.nd-corp__list img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--nd-photo); }
.nd-corp__list h3 { margin: 14px 0 4px; font-size: 20px; }
.nd-corp__list p { margin: 0; color: var(--nd-ink2); font-size: 16px; line-height: 1.5; }

/* ---------- how to order: a real sequence, so it is numbered ---------- */
.nd-how { padding-block: clamp(56px, 7vw, 96px); background: var(--nd-surface); border-top: 1px solid var(--nd-line); }
.nd-steps { list-style: none; counter-reset: nd; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.nd-steps li { counter-increment: nd; padding-top: 18px; border-top: 3px solid var(--nd-m); }
.nd-steps li::before { content: counter(nd); display: block; font-size: 40px; font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--nd-text-m); margin-bottom: 12px; }
.nd-steps h3 { margin: 0 0 6px; font-size: 20px; }
.nd-steps p { margin: 0; color: var(--nd-ink2); font-size: 16px; line-height: 1.55; }
.nd-early { margin-top: clamp(32px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--nd-bg); border-inline-start: 6px solid var(--nd-m); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 40px; align-items: center; }
.nd-early > p { margin: 0; font-weight: 600; font-size: 18px; max-width: 46ch; }
.nd-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nd-phones li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 8px; border-bottom: 1px solid var(--nd-line); }
.nd-phones li:last-child { border-bottom: 0; padding-bottom: 0; }
.nd-phones span { color: var(--nd-ink2); }
.nd-phones a { font-weight: 700; color: var(--nd-text-m); unicode-bidi: isolate; }

/* ---------- questions ---------- */
.nd-faq { padding-block: 0 clamp(64px, 8vw, 112px); background: var(--nd-surface); }
.nd-faq .faq { margin-top: 0; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--nd-line); max-width: 860px; }
.nd-faq .faq details { border-color: var(--nd-line); }
.nd-faq .faq summary:hover { color: var(--nd-text-m); }

@media (max-width: 860px) {
  .nd-hero__in { grid-template-columns: 1fr; padding-right: var(--gut); }
  .nd-hero__pic, :root[dir="rtl"] .nd-hero__pic { justify-self: start; max-width: 320px; }
  .nd-hero__pic img { border-width: 6px; }
  .nd-item { grid-template-columns: 1fr; }
  .nd-shop__grid, .nd-corp__list { grid-template-columns: 1fr 1fr; }
  .nd-shop__grid li:last-child, .nd-corp__list li:last-child { grid-column: 1 / -1; }
  .nd-shop__grid li:last-child a, .nd-corp__list li:last-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; align-items: start; }
  .nd-shop__grid li:last-child img, .nd-corp__list li:last-child img { grid-row: span 3; }
  .nd-shop__grid li:last-child h3, .nd-corp__list li:last-child h3 { margin-top: 0; }
  .nd-steps { grid-template-columns: 1fr; }
  .nd-early { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .nd-hero__pic { display: none; } }
@media (max-width: 480px) {
  .nd-spec > div { grid-template-columns: 1fr; gap: 2px; }
  .nd-shop__grid h3, .nd-corp__list h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .nd-lamp .nd-lamp__night { transition: none; } }
