/* ============================================================
   VERA — Boutique brand site
   Palette: cream #EDE6DC · gold #D8C3A5 · deep gold #C4A86A · ink #3B372F
   Type:    Cormorant Garamond (display serif) · Jost (labels/UI)
   ============================================================ */

:root {
  --cream:      #EDE6DC;
  --cream-soft: #F5F0E8;
  --cream-deep: #E4DACb;
  --gold:       #D8C3A5;
  --gold-rich:  #C4A86A;
  --gold-deep:  #B08F4E;
  --ink:        #3B372F;
  --ink-soft:   #6B6456;
  --line:       rgba(176, 143, 78, 0.28);
  --white:      #FCFAF6;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--gold-deep);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.45s var(--ease);
}
.btn:hover { background: var(--gold-rich); border-color: var(--gold-rich); color: var(--white); }
.btn--solid { background: var(--gold-rich); border-color: var(--gold-rich); color: var(--white); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--light { border-color: rgba(252,250,246,0.6); color: var(--white); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.announce span { opacity: 0.55; margin: 0 14px; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.header.scrolled {
  background: rgba(237, 230, 220, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.nav__links, .nav__actions { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav__actions { justify-content: flex-end; }
.nav__links a, .nav__actions button {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  background: none; border: none; cursor: pointer;
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold-deep);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.brand-mark { flex: 0 0 auto; text-align: center; }
.brand-mark .word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
  padding-left: 0.34em;
  white-space: nowrap;
}
.cart-count {
  font-size: 0.62rem; background: var(--gold-rich); color: #fff;
  border-radius: 50%; width: 16px; height: 16px; display: inline-flex;
  align-items: center; justify-content: center; margin-left: 4px;
  letter-spacing: 0;
}
.nav__burger { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: min(calc(100vh - 124px), 780px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image: url("assets/pattern.png");
  background-size: 300px;
  opacity: 0.10;
  animation: drift 60s linear infinite;
}
@keyframes drift { to { background-position: 300px 300px; } }
.hero__inner { position: relative; z-index: 2; max-width: 760px; padding: 40px 24px; }
.hero__logo { width: 132px; margin: 0 auto 30px; opacity: 0; animation: rise 1s var(--ease) 0.1s forwards; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  opacity: 0; animation: rise 1s var(--ease) 0.28s forwards;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero__sub {
  font-size: 1.25rem; color: var(--ink-soft); max-width: 520px; margin: 0 auto 38px;
  opacity: 0; animation: rise 1s var(--ease) 0.44s forwards;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: rise 1s var(--ease) 0.6s forwards; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-deep); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll span { width: 1px; height: 42px; background: var(--gold-deep);
  animation: line-pulse 2s var(--ease) infinite; transform-origin: top; }
@keyframes line-pulse { 0%,100%{transform:scaleY(0.3);opacity:0.4} 50%{transform:scaleY(1);opacity:1} }
@media (max-height: 780px) { .hero__scroll { display: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee {
  background: var(--gold-rich); color: var(--white);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.marquee__track { display: inline-flex; gap: 60px; animation: scroll-x 28s linear infinite; }
.marquee__track span {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.32em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 60px;
}
.marquee__track span::after { content: "✦"; opacity: 0.7; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   Section base
   ============================================================ */
section.block { padding: 110px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head p { margin-top: 18px; }

/* ---------- Shop / product grid ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product { cursor: pointer; }
.product__img {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: linear-gradient(150deg, var(--cream-soft), var(--cream-deep));
  display: flex; align-items: center; justify-content: center;
}
.product__img::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/monogram-clear.png") center/60% no-repeat;
  opacity: 0.5; transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.product:hover .product__img::before { transform: scale(1.06); opacity: 0.75; }
.product__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; background: var(--ink); color: var(--cream);
  padding: 5px 11px;
}
.product__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(252,250,246,0.75); color: var(--gold-deep); cursor: pointer;
  font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-6px); transition: all 0.4s var(--ease);
}
.product:hover .product__fav { opacity: 1; transform: none; }
.product__quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: var(--white); color: var(--ink); text-align: center;
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; padding: 13px; cursor: pointer;
  opacity: 0; transform: translateY(12px); transition: all 0.45s var(--ease);
}
.product:hover .product__quick { opacity: 1; transform: none; }
.product__quick:hover { background: var(--gold-rich); color: #fff; }
.product__info { padding: 18px 4px 0; text-align: center; }
.product__name { font-size: 1.25rem; font-weight: 500; }
.product__price { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 4px; }
.product__price s { opacity: 0.5; margin-right: 8px; }
.stars { color: var(--gold-rich); font-size: 0.8rem; letter-spacing: 0.1em; margin-top: 8px; }

.shop-more { text-align: center; margin-top: 60px; }

/* ---------- Personalization split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--cream-soft);
}
.split__media {
  position: relative; min-height: 520px;
  background: radial-gradient(circle at 50% 40%, var(--gold) 0%, var(--gold-rich) 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.split__media img { width: 52%; opacity: 0.95; position: relative; z-index: 2; }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: url("assets/pattern.png") center/220px; opacity: 0.08;
}
.split__body { padding: clamp(48px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.split__body .eyebrow { margin-bottom: 18px; }
.split__body .section-title { margin-bottom: 22px; }
.split__body p { color: var(--ink-soft); font-size: 1.16rem; margin-bottom: 16px; }
.split__list { list-style: none; margin: 14px 0 34px; }
.split__list li {
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--ink); padding: 11px 0 11px 30px; position: relative;
  border-bottom: 1px solid var(--line);
}
.split__list li::before {
  content: "✦"; position: absolute; left: 0; color: var(--gold-rich); font-size: 0.8rem;
}

/* ---------- Feature icons / Shipping ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature { text-align: center; padding: 20px; }
.feature__icon {
  width: 58px; height: 58px; margin: 0 auto 20px; color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 10px; }
.feature p { font-family: var(--sans); font-size: 0.82rem; line-height: 1.7; color: var(--ink-soft); letter-spacing: 0.02em; }

/* ---------- Behind the scenes / editorial ---------- */
.editorial { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.editorial::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/pattern.png") center/280px; opacity: 0.05;
}
.editorial .wrap { position: relative; z-index: 2; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.editorial-grid .eyebrow { color: var(--gold); }
.editorial h2 { color: var(--white); margin: 18px 0 24px; }
.editorial p { color: rgba(237,230,220,0.72); font-size: 1.16rem; margin-bottom: 18px; }
.editorial-mark {
  aspect-ratio: 1; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.editorial-mark img { width: 62%; opacity: 0.92; }

/* ---------- Reviews ---------- */
.reviews { background: var(--cream-soft); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review {
  background: var(--white); padding: 40px 34px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.review .stars { margin: 0; font-size: 0.9rem; }
.review p { font-size: 1.22rem; line-height: 1.5; font-style: italic; color: var(--ink); }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-rich));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: #fff; font-size: 1.1rem; font-weight: 600;
}
.review__who strong { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.review__who span { display: block; font-family: var(--sans); font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter__inner {
  max-width: 620px; margin: 0 auto; background: var(--cream-soft);
  border: 1px solid var(--line); padding: clamp(44px, 6vw, 74px) 30px;
}
.newsletter img { width: 60px; margin: 0 auto 22px; opacity: 0.85; }
.newsletter h2 { margin-bottom: 14px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 30px; font-size: 1.1rem; }
.news-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }
.news-form input {
  flex: 1; border: 1px solid var(--gold-deep); border-right: none; background: transparent;
  padding: 15px 20px; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink);
}
.news-form input:focus { outline: none; background: var(--white); }
.news-form button { border: none; }
.news-note { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 18px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding: 80px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .word {
  font-family: var(--serif); font-weight: 600; font-size: 2rem; letter-spacing: 0.4em;
  color: var(--gold); padding-left: 0.4em;
}
.footer-brand p { color: rgba(237,230,220,0.6); font-size: 1.05rem; margin: 16px 0 22px; max-width: 280px; }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  transition: all 0.4s var(--ease);
}
.socials a:hover { background: var(--gold-rich); border-color: var(--gold-rich); color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(237,230,220,0.72); transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.1em; color: rgba(237,230,220,0.5);
}
.footer-handle { color: var(--gold); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Cart drawer + toast
   ============================================================ */
.overlay {
  position: fixed; inset: 0; background: rgba(59,55,47,0.4); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw;
  background: var(--cream); z-index: 100; transform: translateX(100%);
  transition: transform 0.5s var(--ease); display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 26px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.5rem; font-weight: 500; }
.drawer__close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.drawer__body { flex: 1; overflow-y: auto; padding: 26px; }
.cart-empty { text-align: center; color: var(--ink-soft); font-size: 1.1rem; margin-top: 40px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__img { width: 60px; height: 76px; background-color: var(--cream-deep); flex: 0 0 auto;
  background-image: url("assets/monogram-clear.png"); background-size: 66%; background-repeat: no-repeat; background-position: center; }
.cart-item__name { font-size: 1.1rem; }
.cart-item__price { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); }
.cart-item__rm { margin-left: auto; background: none; border: none; color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.drawer__foot { padding: 22px 26px 28px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.drawer__foot .btn { width: 100%; justify-content: center; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream); padding: 14px 26px; z-index: 120;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: all 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .split, .editorial-grid, .features, .review-grid { grid-template-columns: 1fr; }
  .split__media { min-height: 340px; }
  .review-grid { gap: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .editorial-mark { display: none; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
  .nav__burger span { width: 24px; height: 1.5px; background: var(--ink); display: block; }
  .nav, .nav__actions { flex: initial; }
  .nav { justify-content: space-between; }
  .nav__actions { gap: 18px; }
  section.block { padding: 76px 0; }
  .features { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .products { grid-template-columns: 1fr; }
  .brand-mark .word { font-size: 1.5rem; }
}
