/* Dancing Orchid London — Design System v3
   Ultra-Luxury · Cinematic · Couture
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Outfit:wght@200;300;400;500&display=swap');

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

:root {
  --white: #FFFFFF;
  --offwhite: #FAFAF7;
  --cream: #F3F0EA;
  --warm-gray: #E8E4DF;
  --text: #141414;
  --text-mid: #3A3A3A;
  --text-light: #6A6A6A;
  --charcoal: #141414;
  --charcoal-warm: #1C1B18;
  --gold: #C9A96E;
  --gold-light: #D4BA85;
  --gold-dark: #A8893F;
  --sage: #6B7B6B;
  --sage-dark: #4A5A4A;
  --sage-light: #EEF1EC;
  --border: #E0DDD8;
  --border-light: #EDEAE5;
  --overlay-light: rgba(20,20,20,0.2);
  --overlay-mid: rgba(20,20,20,0.45);
  --overlay-deep: rgba(20,20,20,0.65);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-pad: clamp(100px, 14vw, 200px);
  --section-pad-sm: clamp(60px, 10vw, 120px);
  --max-w: 1280px;
  --narrow: 720px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Typography — Dramatic, Couture ──────── */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
}

p { max-width: 58ch; }

.serif-body {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.005em;
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.label-lg {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Buttons — Thin, Refined ─────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 52px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  transition: all 0.5s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--text); color: var(--white); }

.btn--light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--text); border-color: var(--white); }

.btn--filled { background: var(--text); color: var(--white); border-color: var(--text); }
.btn--filled:hover { background: var(--charcoal-warm); }

.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── Layout ──────────────────────────────── */

.section { padding: var(--section-pad) 0; position: relative; }
.section--sm { padding: var(--section-pad-sm) 0; }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--cream { background: var(--cream); }
.section--offwhite { background: var(--offwhite); }
.section--sage { background: var(--sage-light); }
.section--flush { padding: 0; }
.section--no-pad-top { padding-top: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.container--narrow { max-width: var(--narrow); }
.container--wide { max-width: 1440px; }
.container--full { max-width: none; padding: 0; }

/* ── Divider — Gold accent ───────────────── */

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
}
.divider--center { margin: 0 auto; }
.divider--white { background: rgba(255,255,255,0.3); }

/* ── Announcement ────────────────────────── */

.announce {
  height: 40px;
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  z-index: 110;
}

/* ── Nav — Centered logo, split links ────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav--transparent {
  position: fixed;
  top: 40px;
  left: 0; right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), top 0.4s var(--ease);
}
.nav--transparent .nav__link { color: rgba(255,255,255,0.9); }
.nav--transparent .nav__link:hover { color: #fff; }
.nav--transparent .nav__logo img { filter: brightness(0) invert(1); }
.nav--transparent .nav__cart { color: rgba(255,255,255,0.9); }
.nav--transparent .nav__cart:hover { color: #fff; }
.nav--transparent .nav__hamburger span { background: #fff; }
.nav--scrolled {
  top: 0 !important;
  background: rgba(255,255,255,0.97) !important;
  border-bottom-color: var(--border) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav--scrolled .nav__link { color: var(--text-mid) !important; }
.nav--scrolled .nav__link:hover { color: var(--text) !important; }
.nav--scrolled .nav__logo img { filter: none !important; }
.nav--scrolled .nav__cart { color: var(--text-mid) !important; }
.nav--scrolled .nav__cart:hover { color: var(--text) !important; }
.nav--scrolled .nav__hamburger span { background: var(--text) !important; }

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100px;
  padding: 0 clamp(24px, 4vw, 64px);
}

.nav__links-left, .nav__links-right {
  display: flex;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}
.nav__links-right { justify-content: flex-end; }

.nav__logo { display: flex; justify-content: center; }
.nav__logo img { height: 78px; width: auto; transition: filter 0.4s var(--ease); }

.nav__link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-luxe);
}
.nav__link:hover::after { width: 100%; }
.nav__link:hover { color: var(--text); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
}
.nav__hamburger span {
  width: 24px; height: 1px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

/* ── Nav cart ───────────────────────── */
.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: color 0.3s var(--ease);
  margin-left: 6px;
}
.nav__cart:hover { color: var(--text); }
.nav__cart svg { width: 22px; height: 22px; display: block; }
.nav__cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--gold); color: #fff;
  border-radius: 9px;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ── Cart drawer ─────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,20,20,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
  z-index: 290;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.drawer-backdrop--open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: min(420px, 100%); height: 100%;
  background: var(--white);
  z-index: 300;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-luxe);
  box-shadow: -20px 0 60px rgba(20,20,20,0.12);
}
.cart-drawer--open { transform: translateX(0); }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text); font-weight: 400;
}
.cart-drawer__close {
  background: none; border: none; cursor: pointer;
  font-size: 17px; color: var(--text-light); line-height: 1;
  transition: color 0.2s var(--ease); padding: 4px;
}
.cart-drawer__close:hover { color: var(--text); }

.cart-drawer__items { flex: 1; overflow-y: auto; padding: 8px 28px; }

.cd-line {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border-light);
}
.cd-line__img { width: 70px; aspect-ratio: 4/5; overflow: hidden; background: var(--cream); }
.cd-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cd-line__name { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; line-height: 1.2; margin-bottom: 5px; }
.cd-line__name a:hover { color: var(--gold-dark); }
.cd-line__meta { font-size: 11px; color: var(--text-light); letter-spacing: 0.04em; margin-bottom: 14px; }
.cd-line__controls { display: flex; align-items: center; gap: 14px; }
.cd-line__remove {
  background: none; border: none; cursor: pointer;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); transition: color 0.2s; padding: 0;
}
.cd-line__remove:hover { color: var(--text); }
.cd-line__price { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; white-space: nowrap; }

.qty--sm { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.qty--sm button {
  width: 30px; height: 30px; font-size: 14px; color: var(--text-mid);
  background: none; border: none; cursor: pointer; font-weight: 300; transition: color 0.2s;
}
.qty--sm button:hover { color: var(--text); }
.qty--sm span { min-width: 26px; text-align: center; font-size: 12px; }

.cart-drawer__foot {
  flex-shrink: 0; padding: 24px 28px 28px;
  border-top: 1px solid var(--border); background: var(--offwhite);
}
.cart-drawer__row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.cart-drawer__row span:first-child { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mid); }
.cart-drawer__subtotal { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: var(--text); }
.cart-drawer__note { font-size: 11px; color: var(--text-light); letter-spacing: 0.03em; margin-bottom: 20px; }
.cart-drawer__foot .btn { width: 100%; }
.cart-drawer__view {
  display: block; text-align: center; margin-top: 14px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid);
  transition: color 0.2s var(--ease);
}
.cart-drawer__view:hover { color: var(--gold-dark); }

.cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; }
.cart-drawer__empty-icon { font-size: 30px; color: var(--gold); margin-bottom: 20px; }
.cart-drawer__empty-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--text); margin-bottom: 28px; }

/* ── Product card hover ──────────────── */
.product-card .editorial-image img { transition: transform 1s var(--ease); }
.product-card:hover .editorial-image img { transform: scale(1.05); }
.product-card h4 { transition: color 0.3s var(--ease); }
.product-card:hover h4 { color: var(--gold-dark); }

/* ── Mobile nav ──────────────────────────── */

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--charcoal);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav--open { opacity: 1; pointer-events: all; }
.mobile-nav__link {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s ease;
}
.mobile-nav__link:hover { color: var(--gold); }
.mobile-nav__close {
  position: absolute; top: 28px; right: 28px;
  font-size: 24px; color: rgba(255,255,255,0.7);
  cursor: pointer; background: none; border: none; font-weight: 300;
  letter-spacing: 0;
}

/* ── Footer — Dark, Luxe ─────────────────── */

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  padding: clamp(72px, 10vw, 140px) 0 40px;
}
.footer a { transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--gold); }

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 48px;
}
.footer__logo img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 48px;
}
.footer__heading {
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__list { display: flex; flex-direction: column; gap: 14px; font-size: 14px; font-weight: 300; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  letter-spacing: 0.05em;
}

/* ── Editorial image treatments ──────────── */

.img-cover { width: 100%; height: 100%; object-fit: cover; }

.editorial-image {
  overflow: hidden;
  position: relative;
}
.editorial-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.editorial-image:hover img { transform: scale(1.04); }

/* ── Staggered layout — Editorial ────────── */

.stagger {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.stagger--reverse { grid-template-columns: 1fr 1.15fr; }
.stagger--reverse .stagger__image { order: 2; }
.stagger--reverse .stagger__text { order: 1; }

.stagger__image { aspect-ratio: 4/5; overflow: hidden; }
.stagger__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.stagger__image:hover img { transform: scale(1.03); }

.stagger__text { padding: clamp(0px, 2vw, 32px) 0; }
.stagger__text .label { margin-bottom: 16px; display: block; }
.stagger__text h3 { margin-bottom: 20px; }
.stagger__text p { color: var(--text-mid); margin-bottom: 32px; font-size: 15px; line-height: 1.8; font-weight: 300; }

/* ── Responsive ──────────────────────────── */

@media (max-width: 960px) {
  .stagger, .stagger--reverse { grid-template-columns: 1fr; }
  .stagger--reverse .stagger__image { order: 1; }
  .stagger--reverse .stagger__text { order: 2; }
  .stagger__image { aspect-ratio: 16/10; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__links-left { display: none; }
  .nav__link { display: none; }
  .nav__links-right { display: flex; order: 3; }
  .nav__hamburger { display: flex; order: 1; }
  .nav__logo { order: 2; justify-self: center; margin: 0; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ── Fade animations ─────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
}

/* ── Gold line accent ────────────────────── */
.gold-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
}
