/* ==========================================================================
   DUSKARA BOUTIQUE: desert dusk theme
   Mobile-first: base styles are for phones, @media (min-width) adds desktop.
   Change brand colours in :root below.
   ========================================================================== */

:root {
  --night: #16100c;      /* deepest shadow */
  --dusk: #231812;       /* dark sections */
  --umber: #3b2a1f;      /* dark cards, borders on dark */
  --ember: #9a5a2c;      /* burnt orange accent */
  --amber: #c8873f;      /* primary accent */
  --gold: #e3b26a;       /* highlights on dark */
  --sand: #eadbbf;       /* warm neutral */
  --sand-soft: #f4ead8;  /* section backgrounds */
  --cream: #fbf6ec;      /* page background */
  --ink: #2a1e16;        /* body text */
  --muted: #76614f;      /* secondary text */
  --line: #e2d2b6;       /* hairlines on light */

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(42, 30, 22, 0.45);
  --gutter: 20px;
  --max: 1180px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--sand { background: var(--sand-soft); }
.section--dark { background: var(--dusk); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: var(--sand); opacity: 0.8; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; max-width: none; }

/* Italic serif eyebrow (deliberately NOT spaced-out caps) */
.eyebrow {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ember);
  margin-bottom: 6px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.link-arrow { font-weight: 600; color: var(--ember); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--amber); color: var(--night); }
.btn--primary:hover { background: var(--gold); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(227, 178, 106, 0.12); }
.btn--whatsapp { background: #1f7a4d; color: #fff; }
.btn--whatsapp:hover { background: #18663f; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 16, 12, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--sand);
  border-bottom: 1px solid rgba(227, 178, 106, 0.15);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.logo-tag { font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--gold); margin-top: 2px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 0; color: var(--cream); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--night);
  border-bottom: 1px solid var(--umber);
  padding: 8px var(--gutter) 24px;
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.site-nav.open { transform: none; visibility: visible; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 14px 4px; text-decoration: none;
  font-family: var(--serif); font-size: 1.5rem; color: var(--sand);
  border-bottom: 1px solid var(--umber);
}
.site-nav a[aria-current="page"] { color: var(--gold); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; transform: none; visibility: visible; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav a { padding: 6px 0; border: 0; font-family: var(--sans); font-size: 0.95rem; font-weight: 500; }
  .site-nav a:hover { color: var(--gold); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(92vh - var(--header-h));
  display: flex; align-items: flex-end;
  color: var(--cream);
  background: linear-gradient(180deg, #1a0f0c 0%, #3d1f17 38%, #8c4527 62%, #d98a3f 80%, #f0b66b 100%);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,16,12,.2), rgba(22,16,12,.85)); }
.hero-content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 56px; }
.hero-content > * { max-width: 600px; }
.hero h1 { color: var(--cream); margin-bottom: 16px; }
.hero h1 em { color: var(--gold); font-weight: 500; }
.hero p { font-size: 1.1rem; color: var(--sand); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(22, 16, 12, 0.88));
  z-index: 1;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 70%, #4a2a1a 100%);
  color: var(--sand);
  padding: 48px 0 40px;
}
.page-hero h1 { color: var(--cream); margin-bottom: 10px; }
.page-hero p { max-width: 40em; opacity: 0.9; margin: 0; }
.breadcrumbs { font-size: 0.88rem; margin-bottom: 14px; color: var(--sand); opacity: 0.85; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: 0.6; }

/* ---------- Story / split ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.story-quote { font-family: var(--serif); font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-style: italic; line-height: 1.25; color: var(--ember); margin: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--wide { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product-media { aspect-ratio: 4 / 5; background: var(--sand-soft); overflow: hidden; }
.product-media img, .product-media svg { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-house { font-size: 0.78rem; color: var(--muted); }
.product-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; margin: 2px 0 4px; }
.product-meta { font-size: 0.82rem; color: var(--muted); }
.product-price { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--ember); }
@media (min-width: 700px) { .product-body { padding: 18px 18px 20px; } .product-name { font-size: 1.45rem; } }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--sand-soft); color: var(--ember); border: 1px solid var(--line);
}

.brand-card { padding: 22px; gap: 14px; }
.brand-logo {
  height: 96px; border-radius: var(--radius-sm);
  background: var(--dusk); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.brand-logo img { max-height: 100%; width: auto; }
.brand-card h3 { margin: 0; }
.brand-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.brand-card .collection-list { font-size: 0.88rem; color: var(--ember); margin: 0; }

.collection-card { padding: 22px; gap: 8px; background: linear-gradient(160deg, #fff 0%, var(--sand-soft) 100%); }
.collection-card .product-house { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ember); }
.collection-card h3 { margin: 0; }
.collection-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.collection-card .count { margin-top: auto; padding-top: 10px; font-size: 0.85rem; font-weight: 600; }

/* Horizontal brand strip (homepage) */
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; flex: 0 0 72%; }
@media (min-width: 700px) { .strip { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); } }
.strip-item {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  background: var(--umber); border-radius: var(--radius); text-decoration: none; color: var(--sand);
  border: 1px solid rgba(227, 178, 106, 0.18); transition: border-color .2s;
}
.strip-item:hover { border-color: var(--gold); }
.strip-item .brand-logo { background: var(--night); }
.strip-item strong { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); font-weight: 600; }
.strip-item span { font-size: 0.88rem; opacity: 0.8; }

/* ---------- Steps (how to order) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 22px; border-radius: var(--radius); background: var(--umber); border: 1px solid rgba(227, 178, 106, 0.15); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.95rem; opacity: 0.85; }

/* ---------- Shop filters ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 800px) { .filters { grid-template-columns: 2fr 1fr 1fr; align-items: end; } }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; /* 16px stops iOS zoom */
}
.field input:focus, .field select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--dusk); color: var(--cream); border-color: var(--dusk); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 0.9rem; color: var(--muted); }
.results-bar button { background: none; border: 0; color: var(--ember); font-weight: 600; cursor: pointer; padding: 8px 0; }

.empty {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); grid-column: 1 / -1; background: #fff;
}
.empty h3 { color: var(--ink); }

/* ---------- Product page ---------- */
.product-layout { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 48px; padding-bottom: 80px; align-items: start; } }
.product-gallery { border-radius: var(--radius); overflow: hidden; background: var(--sand-soft); aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .product-gallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.product-gallery img, .product-gallery svg { width: 100%; height: 100%; object-fit: cover; }
.product-info .breadcrumbs { color: var(--muted); }
.product-info .breadcrumbs a:hover { color: var(--ember); }
.product-links { font-size: 0.95rem; color: var(--muted); margin-bottom: 6px; }
.product-links a { color: var(--ember); font-weight: 600; text-decoration: none; }
.product-links a:hover { text-decoration: underline; }
.product-info h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); margin-bottom: 12px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.product-info .price { font-size: 1.6rem; font-weight: 700; color: var(--ember); margin-bottom: 6px; }
.price-note { font-size: 0.9rem; color: var(--muted); }
.price-note a { color: var(--ember); }
.order-box { display: grid; gap: 12px; margin: 22px 0 28px; }
.order-hint { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 0; }

.notes { display: grid; gap: 12px; margin-top: 8px; }
.note-tier { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--radius-sm); background: var(--sand-soft); }
.note-tier:nth-child(2) { background: #efdcbc; }
.note-tier:nth-child(3) { background: var(--dusk); color: var(--sand); }
.note-tier:nth-child(3) h3 { color: var(--gold); }
.note-tier h3 { font-size: 1.2rem; margin: 0; font-style: italic; }
.note-tier p { margin: 0; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.info-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
.info-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-card h3 { margin-bottom: 8px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card--dark { background: var(--dusk); color: var(--sand); border-color: var(--umber); }
.info-card--dark h3 { color: var(--gold); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-height: 64px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.contact-list a:hover { border-color: var(--amber); }
.contact-list svg { width: 26px; height: 26px; color: var(--ember); flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: 0.82rem; }
.contact-list strong { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--sand); padding: 56px 0 96px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .site-footer { padding-bottom: 40px; } }
.site-footer h4 { font-size: 1.25rem; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--gold); }
.site-footer p { opacity: 0.8; max-width: 30em; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--umber); font-size: 0.82rem; opacity: 0.7; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1f7a4d; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}
.wa-float svg { width: 30px; height: 30px; }

/* Loading / not found */
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--cream); padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Product details list (house, family, year...) */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 20px 0 8px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.details div { background: #fff; padding: 12px 14px; }
.details dt { font-size: 0.78rem; color: var(--muted); }
.details dd { margin: 2px 0 0; font-weight: 600; }
.details a { color: var(--ember); text-decoration: none; }
.details a:hover { text-decoration: underline; }
.details div:last-child:nth-child(odd) { grid-column: 1 / -1; }
