/* =============================================
   ZINZUWADIA JEWELLERS — Core
   Tokens · base · header · drawer · search · cards
   · buttons · forms · side panel · footer · motion
   ============================================= */

:root {
  --gold:        #C9A84C;
  --gold-light:  #E8D08A;
  --gold-dark:   #8B6914;
  --maroon:      #5C1A1A;
  --maroon-deep: #3D0D0D;
  --cream:       #FAF7F2;
  --cream-dark:  #F0E8D8;
  --stone:       #EDE7DE;          /* product image ground, close to the photo backdrops */
  --charcoal:    #1C1C1C;
  --muted:       #6B6257;
  --white:       #FFFFFF;
  --wa:          #1F8F4E;
  --line:        rgba(28,28,28,0.10);
  --line-gold:   rgba(201,168,76,0.30);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Montserrat', system-ui, sans-serif;

  --nav-h: 80px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --text: 620px;
  --r: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--white); padding: 10px 16px; font-size: 0.75rem; }
.skip:focus { top: 12px; }
i.ph, i.ph-fill { line-height: 1; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.bg-cream { background: var(--cream); }
.bg-stone { background: var(--stone); }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.h-display, .h-1, .h-2 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.12; }
.h-display { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 300; letter-spacing: 0.08em; }
.h-1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; }
.h-2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.h-3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.lede { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.6; color: var(--muted); }
.body { font-size: 0.9rem; color: var(--muted); line-height: 1.85; max-width: var(--text); }
.center { text-align: center; }
.center .body, .center .lede { margin-left: auto; margin-right: auto; }
.head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.head .h-1, .head .h-2 { margin-bottom: 18px; }
.rule { width: 40px; height: 1px; background: var(--gold); margin: 24px auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 0 34px;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: var(--r);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 1.05rem; }
.btn-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--maroon); border-color: var(--maroon); }
.btn-maroon { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn-line { color: var(--charcoal); }
.btn-line:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn-light { color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-light:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--white); }
.btn-wa:hover { background: #17733e; border-color: #17733e; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding-bottom: 5px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
}
.link:hover { background-size: 30% 1px; color: var(--maroon); }
.link.light:hover { color: var(--gold-light); }

/* =============================================
   HEADER (Siroya structure)
   left nav · centred logo · right nav
   ============================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: rgba(250,247,242,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
body[data-over-hero] .site-header { position: fixed; left: 0; right: 0; }
.site-header.over-hero { background: transparent; border-color: transparent; color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Z monogram pinned to the far left, wordmark centred, icons on the right */
.site-header .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.site-header .wrap.bar { max-width: none; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-right { justify-content: flex-end; gap: clamp(10px, 1.4vw, 22px); }
.nav > a, .nav > button {
  position: relative;
  padding: 6px 0;
  font-family: var(--serif); font-size: 1rem; font-weight: 400; letter-spacing: 0.05em;
}
.nav > a::after, .nav > button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav > a:hover::after, .nav > button:hover::after, .nav > a[aria-current="page"]::after, .nav > button[aria-expanded="true"]::after { transform: scaleX(1); }
.nav > button i { font-size: 0.7rem; margin-left: 4px; vertical-align: 1px; transition: transform .3s; }
.nav > a i { font-size: 0.7rem; margin-left: 3px; vertical-align: 1px; opacity: .7; }
.nav > button[aria-expanded="true"] i { transform: rotate(180deg); }

/* Centred logo alternates between the Z monogram and the ZINZUWADIA JEWELLERS wordmark.
   Proportions follow the brand lockup: the Z is about 0.8x the wordmark block height. */
.logo { --lh: 40px; display: grid; grid-template-rows: var(--lh); justify-items: center; align-items: center; height: var(--lh); }
.logo > .logo-mark, .logo > .logo-words { grid-area: 1 / 1; }
.logo-words { display: block; height: var(--lh); animation: logoWords 8s var(--ease) infinite; }
.logo-words img { display: block; height: var(--lh); width: auto; max-width: 44vw; object-fit: contain; }
.logo-mark { display: block; height: calc(var(--lh) * .82); width: auto; color: var(--maroon); transition: color .4s var(--ease); animation: logoMark 8s var(--ease) infinite; }
.over-hero .logo-mark { color: #F8DFC3; }
.site-header.mega-open .logo-mark { color: var(--maroon); }
@keyframes logoMark  { 0%, 42% { opacity: 1; transform: none; } 50%, 92% { opacity: 0; transform: scale(.88); } 100% { opacity: 1; transform: none; } }
@keyframes logoWords { 0%, 42% { opacity: 0; transform: scale(.96); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.96); } }
.logo-word { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1; padding-left: 0.24em; }
.logo-word small { display: block; font-family: var(--sans); font-size: 0.5rem; font-weight: 500; letter-spacing: 0.5em; text-align: center; margin-top: 6px; color: var(--gold-dark); }
.over-hero .logo-word small { color: var(--gold-light); }
.site-header.over-hero .logo-dark { display: none; }
.site-header:not(.over-hero) .logo-light { display: none; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.25rem; transition: background .25s; }
.icon-btn:hover { background: rgba(92,26,26,0.07); }
.over-hero .icon-btn:hover { background: rgba(255,255,255,0.12); }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: var(--maroon); color: var(--white);
  font-family: var(--sans); font-size: 0.55rem; font-weight: 600;
  display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.over-hero .icon-btn .count { background: var(--gold); color: var(--charcoal); }
.icon-btn .count.on { transform: scale(1); }
.icon-btn .count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.nav-toggle { display: none; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: var(--cream); color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.site-header.mega-open { background: var(--cream); color: var(--charcoal); border-color: var(--line); }
.site-header.mega-open .logo-dark { display: block; }
.site-header.mega-open .logo-light { display: none; }
.mega-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.3fr); gap: clamp(32px, 4vw, 64px); padding-top: 36px; padding-bottom: 44px; }
.mega-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.mega-h { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--maroon); }
.mega-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.5vw, 40px); }
.mega-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mega-list a span:first-child { font-family: var(--serif); font-size: 1.15rem; transition: color .25s; }
.mega-list a span:last-child { font-size: 0.72rem; color: var(--muted); }
.mega-list a:hover span:first-child { color: var(--maroon); }
.mega-cats { display: grid; }
.mega-cats a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; transition: color .25s, padding-left .35s var(--ease); }
.mega-cats a small { font-family: var(--sans); font-size: 0.66rem; color: var(--muted); }
.mega-cats a:hover { color: var(--maroon); padding-left: 4px; }
.mega-all { margin-top: 10px; justify-self: start; }
.mega-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mega-feature a { display: block; }
.mega-feature .frame { aspect-ratio: 4/5; overflow: hidden; background: var(--stone); }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mega-feature a:hover img { transform: scale(1.05); }
.mega-feature p { margin-top: 10px; font-family: var(--serif); font-size: 1rem; }
.mega-feature p small { display: block; font-family: var(--sans); font-size: 0.64rem; color: var(--muted); letter-spacing: 0.04em; }

/* Mobile drawer (Siroya: full-screen wine panel) */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--maroon-deep); color: var(--cream);
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.drawer-top .logo-word { font-size: 1.3rem; }
.drawer-logo { height: 64px; width: auto; }
.drawer-top .logo-word small { color: var(--gold-light); }
.drawer [data-close-drawer] { width: 44px; height: 44px; border: 1px solid rgba(250,247,242,0.28); border-radius: 50%; font-size: 1.25rem; }
.drawer-nav { margin-top: 24px; display: grid; flex: 1 0 auto; align-content: start; }
.d-main { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-family: var(--serif); font-size: 1.45rem; border-bottom: 1px solid rgba(250,247,242,0.14); }
.d-main i { font-size: 1.05rem; color: var(--gold-light); }
.d-main .count-inline { font-family: var(--sans); font-size: 0.7rem; color: var(--gold-light); margin-left: 8px; }
.d-h { margin: 22px 0 6px; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); }
.d-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(250,247,242,0.14); }
.d-sub a { display: flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 1.08rem; color: rgba(250,247,242,0.9); }
.d-sub a:hover { color: var(--gold-light); }
.d-sub + .d-main { margin-top: 6px; }
.drawer-cta { position: sticky; bottom: 0; margin-top: 28px; box-shadow: 0 0 0 12px var(--maroon-deep), 0 -26px 24px 6px var(--maroon-deep); }

@media (max-width: 1080px) {
  .site-header .nav-left > :not(.nav-toggle), .site-header .nav-right .hide-md { display: none; }
  .site-header .nav-left .nav-toggle { display: inline-grid; margin-left: -8px; }

  .mega { display: none; }
  .logo-word { font-size: 1.35rem; letter-spacing: 0.2em; }
  .logo { --lh: 32px; }
  :root { --nav-h: 68px; }
}
@media (max-width: 420px) {
  .nav-right .hide-xs { display: none; }
  .logo-word { font-size: 1.15rem; letter-spacing: 0.16em; }
  .logo-word small { letter-spacing: 0.36em; }
  .icon-btn { width: 36px; }
}

/* Pages without a hero start below the sticky header automatically.
   Pages with data-over-hero have a fixed header over the first screen. */

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search {
  position: fixed; inset: 0; z-index: 70;
  background: var(--cream);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.search.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.search-top { display: flex; justify-content: flex-end; padding-top: 18px; }
.search-form { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--charcoal); padding: 8px 0 12px; margin-top: 4vh; }
.search-form i { font-size: 1.6rem; color: var(--gold-dark); }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 300; }
.search-input::placeholder { color: var(--muted); opacity: .6; font-style: italic; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.search-out { margin: 40px 0 72px; }
.search-meta { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.search-none { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--white);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
  white-space: nowrap;
}
.chip:hover { color: var(--charcoal); border-color: var(--charcoal); }
.chip.active, .chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.chip small { font-size: 0.6rem; opacity: .6; }

/* =============================================
   PRODUCT CARD (Graff: image-led, centred text)
   ============================================= */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(12px, 1.6vw, 24px); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; text-align: center; min-width: 0; }
.card-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--stone); margin-bottom: 18px; }
.card-media > a { position: absolute; inset: 0; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 1.1s var(--ease), opacity .6s var(--ease); }
.card-media .alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.045); }
.card:hover .card-media .alt { opacity: 1; }
.card-tag { position: absolute; z-index: 2; top: 14px; left: 14px; font-size: 0.56rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal); background: rgba(255,255,255,0.88); padding: 5px 10px; pointer-events: none; }
.heart {
  position: absolute; z-index: 2; top: 8px; right: 8px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem; color: var(--charcoal);
  transition: transform .25s, color .25s, background .25s;
}
.heart:hover { transform: scale(1.1); color: var(--maroon); background: rgba(255,255,255,0.7); }
.heart .ph-fill { display: none; }
.heart.on { color: var(--maroon); }
.heart.on .ph { display: none; }
.heart.on .ph-fill { display: inline; }
.card-quick {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}
.card:hover .card-quick, .card:focus-within .card-quick { transform: none; }
.card-quick button, .card-quick a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  background: rgba(255,255,255,0.95);
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.card-quick > * + * { border-left: 1px solid var(--line); }
.card-quick i { font-size: 0.95rem; }
.card-quick button:hover, .card-quick button.in { background: var(--charcoal); color: var(--white); }
.card-quick a:hover { background: var(--wa); color: var(--white); }
.card-coll { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.card-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 400; line-height: 1.25; margin-bottom: 4px; }
.card-name a:hover { color: var(--maroon); }
.card-meta { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.02em; }
.card-price { margin-top: 8px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; }
.card-price.req { font-weight: 400; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Touch screens have no hover: keep the quick actions visible along the image foot */
@media (hover: none) {
  .card-quick { transform: none; }
  .card-quick button, .card-quick a { min-height: 40px; background: rgba(255,255,255,0.9); font-size: 0.56rem; letter-spacing: 0.12em; }
  .card-media .alt { display: none; }
}
@media (hover: none) and (max-width: 760px) {
  .card-quick span { display: none; }
  .card-quick i { font-size: 1.1rem; }
}

/* Editorial tile placed inside a product grid */
.tile-ask {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  aspect-ratio: 3/4;
  background: var(--maroon); color: var(--cream);
  padding: 28px;
}
.tile-ask .eyebrow { color: var(--gold-light); }
.tile-ask h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; line-height: 1.2; margin-bottom: 12px; }
.tile-ask p { font-size: 0.78rem; color: rgba(250,247,242,0.72); margin-bottom: 22px; line-height: 1.7; }

/* =============================================
   CAROUSEL (Graff product rail)
   ============================================= */
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail.three .rail-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
.rail-bar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 32px; }
.rail-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1rem; transition: border-color .25s, background .25s, color .25s; }
.rail-btn:hover:not([disabled]) { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.rail-btn[disabled] { opacity: .3; cursor: default; }
.rail-count { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--muted); min-width: 52px; text-align: center; }
@media (max-width: 1080px) { .rail-track, .rail.three .rail-track { grid-auto-columns: calc((100% - 2 * 16px) / 2.4); gap: 16px; } }
@media (max-width: 560px)  { .rail-track, .rail.three .rail-track { grid-auto-columns: 70%; } }

/* =============================================
   FORMS
   ============================================= */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white);
  font-size: 0.88rem;
  outline: 0;
  appearance: none; -webkit-appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.field select { padding-right: 34px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6257' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(201,168,76,0.18); }
.field.bad input { border-color: #a1271f; }
.field .err { display: none; font-size: 0.68rem; color: #a1271f; }
.field.bad .err { display: block; }
.phone { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); font-size: 0.74rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.seg label:hover { border-color: var(--charcoal); }
.seg input:checked + label { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.seg input:focus-visible + label { outline: 1.5px solid var(--gold); outline-offset: 2px; }
.fine { font-size: 0.68rem; color: var(--muted); line-height: 1.7; }
.fine i { color: var(--wa); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.lead-done { display: none; text-align: center; padding: 20px 0; }
.lead.done .form, .lead.done .lead-intro { display: none; }
.lead.done .lead-done { display: block; }
.lead-done .tick { width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--gold-dark); }
.lead-done h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; margin-bottom: 10px; }
.lead-done p { font-size: 0.84rem; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }

/* =============================================
   SIDE PANEL (enquiry / advisor)
   ============================================= */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(28,7,7,0.45); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.scrim.on { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 58;
  width: min(480px, 100vw);
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
}
.panel.open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.panel-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.panel-close:hover { border-color: var(--charcoal); }
.panel-body { flex: 1; overflow-y: auto; padding: 28px; overscroll-behavior: contain; }
.panel-item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-item img { aspect-ratio: 3/4; object-fit: cover; background: var(--stone); }
.panel-item b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.25; }
.panel-item span { font-size: 0.7rem; color: var(--muted); }
.lead-intro h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 300; line-height: 1.2; margin-bottom: 8px; }
.lead-intro p { font-size: 0.82rem; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
body.locked { overflow: hidden; }

/* =============================================
   PAGE HEADS
   ============================================= */
.page-title { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.page-title .h-1 { margin-bottom: 16px; }
.page-title .body { margin: 0 auto; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--maroon); }
.crumbs span[aria-hidden] { color: var(--gold); }
.crumbs.left { justify-content: flex-start; margin: 22px 0; }

/* =============================================
   FOOTER (Graff layout)
   ============================================= */
.pre-foot { border-top: 1px solid var(--line); }
.pre-foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pre-foot-grid > a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; transition: background .3s; }
.pre-foot-grid > a + a { border-left: 1px solid var(--line); }
.pre-foot-grid > a:hover { background: var(--cream); }
.pre-foot-grid i { font-size: 1.5rem; color: var(--gold-dark); }
.pre-foot-grid b { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.pre-foot-grid span { font-size: 0.76rem; color: var(--muted); }
@media (max-width: 760px) {
  .pre-foot-grid { grid-template-columns: 1fr 1fr; }
  .pre-foot-grid > a:nth-child(3) { border-left: 0; }
  .pre-foot-grid > a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pre-foot-grid > a { padding: 28px 12px; }
}

.site-footer { background: var(--charcoal); color: rgba(250,247,242,0.72); }
.foot-join { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 56px 0; border-bottom: 1px solid rgba(250,247,242,0.1); }
.foot-join h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; color: var(--cream); text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.2; }
.foot-join p { font-size: 0.84rem; margin-top: 8px; max-width: 520px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 56px 0 48px; }
.foot-col summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: default; }
.foot-col summary::-webkit-details-marker { display: none; }
.foot-col summary i { display: none; color: var(--gold-light); transition: transform .3s; }
.foot-h { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; }
.foot-col li { margin-bottom: 11px; }
.foot-col li a { font-size: 0.82rem; transition: color .25s; }
.foot-col li a:hover { color: var(--cream); }
.foot-col li a i { color: var(--gold); margin-right: 6px; }
.foot-store b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.foot-store p { font-size: 0.8rem; line-height: 1.7; margin-bottom: 8px; }
.foot-store + .foot-store { margin-top: 22px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0 36px; border-top: 1px solid rgba(250,247,242,0.1); }
.foot-brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream); }
.foot-brand img { height: 72px; width: auto; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.7rem; }
.foot-legal a:hover { color: var(--cream); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(250,247,242,0.18); border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; transition: border-color .25s, color .25s; }
.socials a:hover { border-color: var(--gold); color: var(--gold-light); }
.foot-copy { font-size: 0.68rem; color: rgba(250,247,242,0.4); }
@media (max-width: 900px) {
  .foot-join { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: 0; padding: 24px 0; }
  .foot-col { border-bottom: 1px solid rgba(250,247,242,0.1); }
  .foot-col summary { cursor: pointer; padding: 18px 0; }
  .foot-col summary i { display: inline; }
  .foot-col[open] summary i { transform: rotate(45deg); }
  .foot-h { margin: 0; }
  .foot-body { padding-bottom: 16px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   FLOATING WHATSAPP · TOAST · EMPTY
   ============================================= */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 12px 30px rgba(31,143,78,0.35);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float.away { opacity: 0; transform: scale(.6); pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 20px;
  background: var(--charcoal); color: var(--cream);
  font-size: 0.78rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--gold-light); font-size: 1.1rem; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { flex-shrink: 0; padding: 9px 14px; background: var(--cream); color: var(--charcoal); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }

.empty { grid-column: 1 / -1; text-align: center; padding: clamp(48px, 8vw, 96px) 20px; }
.empty .ico { width: 72px; height: 72px; margin: 0 auto 22px; border: 1px solid var(--line-gold); border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--gold-dark); }
.empty h2, .empty h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.empty p { font-size: 0.86rem; color: var(--muted); max-width: 440px; margin: 0 auto 28px; line-height: 1.8; }
.empty .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* =============================================
   MOTION
   ============================================= */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.img-rv { overflow: hidden; }
.img-rv img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.img-rv.in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .logo-mark { display: none; }
  .logo-words { animation: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .rv, .img-rv img { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
