/* ============================================================
   QURBANA et SELAH — page components
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--dark); color: var(--on-dark); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .ph, .hero-media image-slot { position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(26,21,16,0.5) 0%, rgba(26,21,16,0.16) 30%, rgba(26,21,16,0.84) 100%),
    linear-gradient(75deg, rgba(26,21,16,0.5) 0%, rgba(26,21,16,0) 55%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem,7vw,7rem); padding-top: 9rem; }
.hero-creed { font-size: clamp(0.78rem,1vw,0.9rem); }
.hero-title {
  font-family: var(--display); font-weight: 400; letter-spacing: 0.01em;
  font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: 1.02; margin: 1.4rem 0 1.8rem; max-width: 16ch;
}
.hero-title em { font-family: var(--body); font-style: italic; font-weight: 300; color: var(--champagne); }
.hero-essence { font-family: var(--body); font-weight: 300; font-size: clamp(1.2rem,1.8vw,1.6rem); max-width: 46ch; color: var(--on-dark); opacity: 0.92; line-height: 1.5; }
.hero-actions { display: flex; gap: 1.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: var(--shell); bottom: clamp(3rem,7vw,7rem); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-dark-soft);
  writing-mode: vertical-rl;
}
.hero-scroll .dot { writing-mode: horizontal-tb; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); }
@media (max-width: 720px){ .hero-scroll { display:none; } }

/* ---------- PHILOSOPHY ---------- */
.philo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: center; }
.philo-words .lede { margin: 1.8rem 0; max-width: 22ch; }
.philo-mean { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
.philo-mean .row { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: baseline; padding-top: 1.4rem; border-top: 1px solid var(--hairline-d); }
.linen .philo-mean .row { border-color: var(--hairline); }
.philo-mean .term { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.philo-mean .def { font-family: var(--body); font-weight: 300; font-size: 1.2rem; }
.philo-mean .def b { font-weight: 500; font-style: italic; }
.philo-media .ph { aspect-ratio: 4/5; }
@media (max-width: 860px){ .philo { grid-template-columns: 1fr; } .philo-media { order: -1; } }

/* ---------- CURATION LIST ---------- */
.cur-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem,5vw,4.5rem); }
.cur-head h2 { font-family: var(--display); font-size: clamp(2rem,4.4vw,3.6rem); line-height: 1.05; max-width: 16ch; }
.cur-list { border-top: 1px solid var(--hairline-d); }
.linen .cur-list { border-color: var(--hairline); }
.cur-row {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: clamp(1rem,3vw,3rem); align-items: center;
  padding: clamp(1.6rem,3vw,2.6rem) 0; border-bottom: 1px solid var(--hairline-d);
  position: relative; transition: padding-left 0.6s var(--ease);
}
.linen .cur-row { border-color: var(--hairline); }
.cur-row::before { content:""; position:absolute; left:0; top:0; bottom:0; width:0; background:var(--gold); opacity:0.08; transition: width 0.6s var(--ease); z-index:0; }
.cur-row:hover { padding-left: 1.5rem; }
.cur-row:hover::before { width: 100%; }
.cur-row > * { position: relative; z-index: 1; }
.cur-num { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold); }
.cur-main h3 { font-family: var(--display); font-size: clamp(1.5rem,3vw,2.4rem); font-weight: 400; }
.cur-main p { margin: 0.5rem 0 0; font-weight: 300; max-width: 52ch; opacity: 0.85; }
.cur-tags { font-family: var(--display); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: 0.6s var(--ease); white-space: nowrap; }
.cur-row:hover .cur-tags { opacity: 0.9; transform: none; }
@media (max-width: 760px){ .cur-row { grid-template-columns: 3rem 1fr; } .cur-tags { display: none; } }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.5rem,4vw,4rem); }
.stat { text-align: center; padding: 1rem; }
.stat .n { font-family: var(--body); font-weight: 300; font-size: clamp(3rem,6vw,5.4rem); line-height: 1; color: var(--gold); }
.stat .n .small { font-size: 0.4em; }
.stat .l { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 1rem; opacity: 0.8; }
@media (max-width: 760px){ .stats { grid-template-columns: 1fr 1fr; gap: 2.8rem 1.5rem; } }

/* ---------- TESTIMONIAL — featured, left-aligned & readable ---------- */
.testi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.testi { max-width: none; margin: 0; text-align: left; }
.testi .quote { font-family: var(--body); font-style: italic; font-weight: 300; font-size: clamp(1.6rem,2.8vw,2.5rem); line-height: 1.32; max-width: 20ch; }
.testi .mark { font-family: var(--display); color: var(--gold); font-size: 3rem; line-height: 0; display:block; margin-bottom: 1.6rem; opacity: 0.7; }
.testi .by { font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-top: 2rem; }
.testi .by span { display:block; color: var(--on-dark-soft); margin-top: 0.6rem; letter-spacing: 0.16em; }
.linen .testi .by span { color: var(--ink-soft); }
.testi-figure .ph { aspect-ratio: 5/6; }
@media (max-width: 860px){ .testi-wrap { grid-template-columns: 1fr; } .testi-figure { order: -1; } .testi .quote { max-width: none; } }

/* ---------- REVIEWS — masonry of voices ---------- */
.reviews { columns: 3; column-gap: clamp(1.2rem,2.2vw,1.8rem); margin-top: clamp(2.5rem,5vw,4rem); }
.review { break-inside: avoid; margin: 0 0 clamp(1.2rem,2.2vw,1.8rem); padding: clamp(1.4rem,2.2vw,1.9rem); border: 1px solid var(--hairline-d); transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease); }
.linen .review { border-color: var(--hairline); }
.review:hover { border-color: var(--gold); transform: translateY(-3px); }
.review .stars { color: var(--gold); letter-spacing: 0.3em; font-size: 0.7rem; margin-bottom: 0.9rem; }
.review .q { font-family: var(--body); font-weight: 300; font-size: 1.18rem; line-height: 1.45; margin: 0; }
.review .q b { font-weight: 500; font-style: italic; }
.review .by { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 1.1rem; }
.review .by span { color: var(--on-dark-soft); }
.linen .review .by span { color: var(--ink-soft); }
@media (max-width: 900px){ .reviews { columns: 2; } }
@media (max-width: 620px){ .reviews { columns: 1; } }

/* ---------- OFFER RAIL — horizontal, draggable image tiles ---------- */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: clamp(1rem,2vw,1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem clamp(1.25rem,5vw,7rem) 2rem;
  margin-inline: calc(-1 * clamp(1.25rem,5vw,7rem));
  scrollbar-width: none; cursor: grab;
  scroll-behavior: smooth;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-behavior: auto; }
.rail.dragging .offer-tile, .rail.dragging .voice-card { pointer-events: none; }
.offer-tile {
  position: relative; flex: 0 0 clamp(20rem, 34vw, 30rem); scroll-snap-align: start;
  aspect-ratio: 4/5; overflow: hidden; display: block;
  outline: 1px solid var(--hairline-d); outline-offset: -1px;
}
.offer-tile .ph, .offer-tile image-slot { position: absolute; inset: 0; transition: transform 1.6s var(--ease); }
.offer-tile:hover .ph, .offer-tile:hover image-slot { transform: scale(1.06); }
.offer-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,21,16,0) 30%, rgba(26,21,16,0.15) 55%, rgba(26,21,16,0.82) 100%);
}
.offer-tile .tile-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(1.4rem,2.4vw,2.2rem); color: var(--on-dark); }
.offer-tile .tile-num { font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.28em; color: var(--gold); }
.offer-tile h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem,2.4vw,2.1rem); margin: 0.5rem 0 0.5rem; }
.offer-tile .tile-tags { font-family: var(--body); font-style: italic; font-weight: 300; font-size: 1.05rem; opacity: 0; max-height: 0; transform: translateY(6px); transition: opacity 0.6s var(--ease), max-height 0.6s var(--ease), transform 0.6s var(--ease); }
.offer-tile:hover .tile-tags { opacity: 0.92; max-height: 4em; transform: none; }
.offer-tile .tile-go { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1rem; font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne); cursor: pointer; }
.offer-tile .tile-go .arr { transition: transform 0.5s var(--ease); }
.offer-tile:hover .tile-go .arr { transform: translateX(0.35em); }
/* progress + hint */
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 0.5rem; }
.rail-progress { position: relative; height: 1px; background: var(--hairline-d); flex: 1; max-width: 16rem; }
.linen .rail-progress { background: var(--hairline); }
.rail-progress .bar { position: absolute; left: 0; top: -0.5px; height: 2px; background: var(--gold); width: 30%; transition: left 0.15s linear, width 0.15s linear; }
.rail-hint { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.7em; }
.rail-hint .drag { width: 2.4rem; height: 1px; background: currentColor; position: relative; }
.rail-arrows { display: inline-flex; gap: 0.6rem; }
.rail-arrows button { width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid var(--hairline-d); background: none; color: inherit; cursor: pointer; font-size: 1rem; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.dark .rail-arrows button { border-color: var(--hairline-d); }
.rail-arrows button:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
@media (max-width: 620px){ .rail-arrows { display: none; } }

/* ---------- VOICES — testimonial lookbook rail ---------- */
.voice-card {
  flex: 0 0 clamp(19rem, 30vw, 25rem); scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.voice-card .vphoto {
  aspect-ratio: 5/6; overflow: hidden; margin-bottom: 1.4rem;
  background-size: cover; background-position: center;
  outline: 1px solid var(--hairline-d); outline-offset: -1px;
  transition: transform 1.2s var(--ease);
}
.voice-card .vstars { color: var(--gold); letter-spacing: 0.3em; font-size: 0.66rem; margin-bottom: 0.9rem; }
.voice-card .vquote {
  font-family: var(--body); font-style: italic; font-weight: 300;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.38; margin: 0 0 1.4rem;
  text-wrap: pretty;
}
.voice-card .vquote b { font-weight: 500; }
.voice-card .vby {
  font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-top: auto;
}
.voice-card .vby span { display: block; color: var(--gold); margin-top: 0.5rem; letter-spacing: 0.14em; font-size: 0.92em; opacity: 0.85; }
.dark .voice-card .vby span { color: var(--gold); }

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,2vw,1.6rem); }
.svc { position: relative; }
.svc .ph, .svc .imgslot { aspect-ratio: 3/4; margin-bottom: 1.2rem; height: auto; }
.svc h3 { font-family: var(--display); font-size: 1rem; letter-spacing: 0.08em; font-weight: 400; }
.svc p { font-weight: 300; opacity: 0.82; margin: 0.4rem 0 0; font-size: 1rem; }
@media (max-width: 860px){ .svc-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }

/* ---------- HOW IT WORKS ---------- */
.how { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.5rem,3vw,3rem); counter-reset: step; }
.how-step { padding-top: 2rem; border-top: 1px solid var(--hairline-d); }
.linen .how-step { border-color: var(--hairline); }
.how-step .s { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--gold); }
.how-step h3 { font-family: var(--display); font-size: clamp(1.2rem,2vw,1.6rem); font-weight: 400; margin: 1rem 0 0.8rem; }
.how-step p { font-weight: 300; opacity: 0.85; margin: 0; }
@media (max-width: 760px){ .how { grid-template-columns: 1fr; } }

/* ---------- TIERS — poured liquid ---------- */
.tiers { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(0.8rem,1.5vw,1.4rem); }
.tier {
  position: relative; overflow: hidden; aspect-ratio: 0.62; border: 1px solid var(--hairline-d);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.4rem,2vw,2.2rem);
  isolation: isolate;
}
.tier .fill {
  position: absolute; left: 0; right: 0; bottom: 0; top: 100%;
  background: linear-gradient(180deg, var(--tier-c, var(--gold)) 0%, color-mix(in oklab, var(--tier-c, var(--gold)) 70%, #000) 100%);
  z-index: -1;
}
.tier.poured .fill { animation: qs-pour-mini 1.6s var(--ease) var(--td, 0ms) both; }
@keyframes qs-pour-mini { from { top: 100%; } to { top: 8%; } }
.tier .roman { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--gold); transition: color 1.6s var(--ease) var(--td,0ms); }
.tier .name { font-family: var(--display); font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 500; margin: 0.6rem 0; transition: color 1.4s var(--ease) var(--td,0ms); }
.tier .desc { font-weight: 300; font-size: 1rem; opacity: 0.86; transition: color 1.4s var(--ease) var(--td,0ms); }
.tier .price { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.2em; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline-d); transition: color 1.4s var(--ease) var(--td,0ms), border-color 1.4s var(--ease); }
.tier.poured .roman { color: rgba(26,21,16,0.7); }
.tier.poured .name, .tier.poured .desc, .tier.poured .price { color: var(--dark); }
.tier.poured .price { border-color: rgba(26,21,16,0.25); }
@media (max-width: 860px){ .tiers { grid-template-columns: 1fr 1fr; } .tier { aspect-ratio: 0.85; } }

/* ---------- FAQ ---------- */
.faq { max-width: 56rem; margin-inline: auto; border-top: 1px solid var(--hairline-d); }
.linen .faq { border-color: var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline-d); }
.linen .faq-item { border-color: var(--hairline); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 2rem; cursor: pointer; padding: clamp(1.4rem,2.4vw,2rem) 0; list-style: none; }
.faq-q h3 { font-family: var(--body); font-weight: 400; font-size: clamp(1.3rem,2.4vw,1.9rem); }
.faq-q .ic { width: 18px; height: 18px; flex: none; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content:""; position:absolute; background: var(--gold); transition: transform 0.5s var(--ease); }
.faq-q .ic::before { left: 0; right: 0; top: 8.5px; height: 1px; }
.faq-q .ic::after { top: 0; bottom: 0; left: 8.5px; width: 1px; }
.faq-item.open .faq-q .ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.faq-a-inner { padding-bottom: clamp(1.4rem,2.4vw,2rem); font-weight: 300; font-size: 1.12rem; opacity: 0.86; max-width: 60ch; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- CTA split ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.cta-half { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,7vw,7rem) var(--shell); position: relative; overflow: hidden; }
.cta-half h2 { font-family: var(--display); font-size: clamp(1.8rem,3.4vw,3rem); font-weight: 400; line-height: 1.08; margin: 1.2rem 0 1.4rem; max-width: 14ch; }
.cta-half p { font-weight: 300; max-width: 38ch; opacity: 0.88; margin: 0 0 2.4rem; }
.cta-half.dark { background: var(--dark); color: var(--on-dark); }
.cta-half.linen { background: var(--linen); color: var(--ink); }
@media (max-width: 760px){ .cta-split { grid-template-columns: 1fr; } }

/* ---------- NEWSLETTER ---------- */
.news { max-width: 46rem; margin-inline: auto; text-align: center; }
.news h2 { font-family: var(--display); font-size: clamp(1.8rem,3.4vw,2.8rem); font-weight: 400; margin: 1.2rem 0; }
.news p { font-weight: 300; opacity: 0.86; max-width: 44ch; margin: 0 auto 2.4rem; }
.news-form { display: flex; gap: 0; max-width: 30rem; margin: 0 auto; border-bottom: 1px solid var(--hairline-d); }
.linen .news-form { border-color: var(--hairline); }
.news-form input { flex: 1; background: transparent; border: none; color: inherit; font-family: var(--body); font-size: 1.15rem; padding: 0.9em 0.2em; outline: none; }
.news-form input::placeholder { color: currentColor; opacity: 0.45; font-style: italic; }
.news-form button { background: none; border: none; color: var(--gold); font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; padding: 0 0.4em; transition: letter-spacing 0.5s var(--ease); }
.news-form button:hover { letter-spacing: 0.3em; }
.news .fine { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; margin-top: 1.6rem; }


/* ---------- HERO CAROUSEL ---------- */
.hero-slides { position: absolute; inset: 0; will-change: transform; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: 72% 50%;
  opacity: 0; transition: opacity 1.8s var(--ease);
}
.hero-slide.is-on { opacity: 1; }
.hero-dots { position: absolute; z-index: 3; right: var(--shell); bottom: clamp(3rem,7vw,7rem); display: flex; gap: 0.7rem; }
.hero-dots button { width: 2.2rem; height: 2px; padding: 0; border: none; background: rgba(232,213,176,0.35); cursor: pointer; transition: background 0.5s var(--ease); }
.hero-dots button.is-on { background: var(--gold); }
@media (max-width: 720px){ .hero-slide { background-position: 78% 50%; } .hero-dots { bottom: auto; top: 6.5rem; } }

/* ---------- HOME TIERS — compact ---------- */
.tiers-compact.section { padding-block: clamp(3.5rem,7vw,6rem); }
.tiers-compact .tier { aspect-ratio: 1.15; }
@media (max-width: 860px){ .tiers-compact .tier { aspect-ratio: 1; } }

/* ---------- CTA — own section with image ---------- */
.cta-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.cta-feature.dark { background: var(--dark); color: var(--on-dark); }
.cta-feature.linen { background: var(--linen); color: var(--ink); }
.cta-feature-media { background-size: cover; background-position: center; min-height: 100%; }
.cta-feature.media-right .cta-feature-media { order: 2; }
.cta-feature .cta-half { background: none; }
@media (max-width: 760px){
  .cta-feature { grid-template-columns: 1fr; }
  .cta-feature-media, .cta-feature.media-right .cta-feature-media { order: 0; min-height: 0; aspect-ratio: 16/10; }
}

/* newsletter feedback */
.news-thanks { font-style: italic; font-size: 1.15rem; opacity: 0.9; margin: 0; text-align: center; width: 100%; }
.news-thanks em { color: var(--gold); }
.news-err { width: 100%; text-align: center; font-size: 0.95rem; opacity: 0.8; margin: 0.8rem 0 0; }
.cform-error { margin: 1.4rem 0 0; font-style: italic; opacity: 0.85; }
.cform-error a { color: var(--gold); }
