/* Atelier Nocturne — luxury design system v1.1 */

:root {
  --navy: #071A2B;
  --navy-2: #0B2438;
  --navy-deep: #04111D;
  --gold: #C8A96B;
  --gold-light: #E0C58A;
  --gold-dim: rgba(200, 169, 107, 0.35);
  --ivory: #F5F1E8;
  --muted: #AEB7C2;
  --white: #FFFFFF;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmospheric layers */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9989;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 40%, rgba(4, 17, 29, 0.45) 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.35s var(--ease);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 0.55em;
  color: var(--ivory);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.atelier-container {
  width: min(100% - 2.75rem, var(--container));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease),
    padding 0.45s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(4, 17, 29, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: rgba(200, 169, 107, 0.18);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 0.45s var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 64px;
}

.site-brand__mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
  transition: color 0.35s var(--ease), letter-spacing 0.45s var(--ease);
}

.site-brand:hover .site-brand__mark {
  color: var(--gold-light);
  letter-spacing: 0.18em;
}

.primary-nav__list {
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list a {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  padding: 0.35rem 0;
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
}

.header-actions__btn {
  background: none;
  border: 0;
  color: var(--ivory);
  padding: 0.55rem;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  transition: color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.header-actions__btn:hover {
  color: var(--gold);
  background: rgba(200, 169, 107, 0.08);
  transform: translateY(-1px);
}

.header-cart__count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  animation: pop-in 0.4s var(--ease-out);
}

@keyframes pop-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  margin: 5px 0;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type {
  transform: translateY(-6.5px) rotate(-45deg);
}

.search-panel {
  border-top: 1px solid rgba(200, 169, 107, 0.15);
  background: rgba(4, 17, 29, 0.97);
  padding: 1.25rem 0;
  animation: panel-in 0.4s var(--ease-out);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.search-panel__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-panel form {
  display: flex;
  flex: 1;
  gap: 0.75rem;
}

.search-panel input[type="search"] {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(200, 169, 107, 0.35);
  color: var(--ivory);
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  outline: none;
}

.search-panel input[type="search"]:focus {
  border-bottom-color: var(--gold);
}

.search-panel button {
  background: var(--gold);
  color: var(--navy-deep);
  border: 0;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.search-panel button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.search-panel__close {
  background: transparent !important;
  color: var(--muted) !important;
  border: 0;
}

/* ——— Buttons ——— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn--gold:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 169, 107, 0.22);
}

.btn--gold:hover::before {
  transform: translateX(120%);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 241, 232, 0.28);
  color: var(--ivory);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__media {
  position: absolute;
  inset: -8% -4%;
  background:
    radial-gradient(ellipse 45% 55% at 72% 42%, rgba(200, 169, 107, 0.16), transparent 58%),
    linear-gradient(155deg, #02080f, var(--navy-2) 55%, #0a1f33);
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero--video .hero__media::after {
  background: radial-gradient(circle at 50% 40%, rgba(224, 197, 138, 0.08), transparent 48%);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 40%, rgba(224, 197, 138, 0.12), transparent 42%);
  animation: glow-pulse 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes glow-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 17, 29, 0.78) 0%, rgba(4, 17, 29, 0.28) 48%, rgba(4, 17, 29, 0.5) 100%),
    linear-gradient(180deg, rgba(4, 17, 29, 0.35) 0%, rgba(4, 17, 29, 0.2) 40%, rgba(4, 17, 29, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 5rem 0 6.5rem;
  max-width: 42rem;
  margin-left: max(1.35rem, calc((100% - var(--container)) / 2));
}

.hero__brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.35rem;
  opacity: 0;
  animation: hero-rise 1s var(--ease-out) 0.15s forwards;
}

.hero__title {
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  color: var(--ivory);
  margin-bottom: 1rem;
  font-weight: 400;
  opacity: 0;
  animation: hero-rise 1.1s var(--ease-out) 0.35s forwards;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 28rem;
  margin: 0 0 2.25rem;
  line-height: 1.7;
  opacity: 0;
  animation: hero-rise 1.1s var(--ease-out) 0.55s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  opacity: 0;
  animation: hero-rise 1.1s var(--ease-out) 0.75s forwards;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-rise 1s var(--ease-out) 1.1s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ——— Marquee ——— */
.marquee {
  border-block: 1px solid rgba(200, 169, 107, 0.18);
  background: rgba(7, 26, 43, 0.65);
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
}

.marquee__track span {
  color: var(--gold);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— Sections ——— */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-header--left {
  text-align: left;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--ivory);
  font-weight: 400;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.15rem auto 0;
}

.section-header--left h2::after {
  margin-left: 0;
}

.section-header p {
  color: var(--muted);
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

/* Reveal system */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible [data-reveal-stagger] > *,
[data-reveal-stagger].is-visible > * {
  animation: stagger-rise 0.85s var(--ease-out) both;
}

[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(1),
[data-reveal-stagger].is-visible > *:nth-child(1) { animation-delay: 0.05s; }
[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(2),
[data-reveal-stagger].is-visible > *:nth-child(2) { animation-delay: 0.14s; }
[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(3),
[data-reveal-stagger].is-visible > *:nth-child(3) { animation-delay: 0.23s; }
[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(4),
[data-reveal-stagger].is-visible > *:nth-child(4) { animation-delay: 0.32s; }
[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(5),
[data-reveal-stagger].is-visible > *:nth-child(5) { animation-delay: 0.41s; }
[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(6),
[data-reveal-stagger].is-visible > *:nth-child(6) { animation-delay: 0.5s; }
[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(7),
[data-reveal-stagger].is-visible > *:nth-child(7) { animation-delay: 0.59s; }
[data-reveal].is-visible [data-reveal-stagger] > *:nth-child(8),
[data-reveal-stagger].is-visible > *:nth-child(8) { animation-delay: 0.68s; }

@keyframes stagger-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ——— Products ——— */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 1.75rem;
}

ul.products.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

ul.products li.product {
  position: relative;
  text-align: center;
}

ul.products li.product .woocommerce-loop-product__link {
  display: block;
}

ul.products li.product .atelier-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a2034, #061522);
  isolation: isolate;
}

ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
  filter: saturate(0.92) contrast(1.04);
}

ul.products li.product .atelier-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(245, 241, 232, 0.14) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

ul.products li.product:hover img {
  transform: scale(1.07);
  filter: saturate(1.05) contrast(1.06);
}

ul.products li.product:hover .atelier-thumb::after {
  transform: translateX(130%);
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.15rem 0 0.35rem;
  color: var(--ivory);
  font-weight: 400;
  transition: color 0.35s;
}

ul.products li.product:hover .woocommerce-loop-product__title,
ul.products li.product:hover h2 {
  color: var(--gold-light);
}

.product-card__family,
ul.products .product-card__family {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

ul.products li.product .price {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: transparent;
  color: var(--ivory) !important;
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s;
}

ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--gold);
  color: var(--navy-deep) !important;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.onsale {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  border-radius: 0 !important;
  min-height: auto !important;
  line-height: 1.2 !important;
  padding: 0.4rem 0.6rem !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ——— Scent finder ——— */
.scent-finder__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(200, 169, 107, 0.15);
  border: 1px solid rgba(200, 169, 107, 0.15);
}

.scent-card {
  display: block;
  padding: 2.5rem 1.75rem 2.25rem;
  background: var(--navy);
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
  position: relative;
}

.scent-card__index {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.scent-card:hover {
  background: var(--navy-2);
  color: var(--ivory);
  z-index: 1;
}

.scent-card h3 {
  color: var(--ivory);
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
  font-weight: 400;
  transition: color 0.35s;
}

.scent-card:hover h3 {
  color: var(--gold-light);
}

.scent-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.scent-card__arrow {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.scent-card:hover .scent-card__arrow {
  opacity: 1;
  transform: none;
}

/* ——— Brand story ——— */
.brand-story {
  background: linear-gradient(180deg, transparent, rgba(11, 36, 56, 0.35), transparent);
}

.brand-story__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

.brand-story__visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 42% 38%, rgba(200, 169, 107, 0.28), transparent 52%),
    linear-gradient(145deg, #020810, var(--navy-2));
}

.brand-story__visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 60% 40%, rgba(224, 197, 138, 0.2), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(7, 26, 43, 0.8), transparent 50%);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.brand-story__visual::after {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(200, 169, 107, 0.28);
  pointer-events: none;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-2%, -1%); }
}

.brand-story__text h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  color: var(--ivory);
  font-weight: 400;
}

.brand-story__text p {
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 2rem;
  line-height: 1.75;
  font-family: var(--font-display);
  font-style: italic;
}

/* ——— Why us ——— */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}

.why-us__icon {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
  transition: width 0.45s var(--ease);
}

.why-us__item:hover .why-us__icon {
  width: 56px;
}

.why-us__item h3 {
  font-size: 1.35rem;
  color: var(--ivory);
  font-weight: 400;
}

.why-us__item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

/* ——— Testimonials ——— */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial {
  margin: 0;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(200, 169, 107, 0.35);
  transition: border-color 0.4s;
}

.testimonial:hover {
  border-top-color: var(--gold);
}

.testimonial__stars {
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--ivory);
  margin: 0 0 1.25rem;
  line-height: 1.35;
}

.testimonial cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ——— Newsletter ——— */
.newsletter {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(200, 169, 107, 0.08), transparent 60%);
}

.newsletter__inner {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.newsletter h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

.newsletter p {
  color: var(--muted);
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(200, 169, 107, 0.35);
  color: var(--ivory);
  padding: 1rem 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter__form input:focus {
  border-bottom-color: var(--gold);
}

.newsletter__note {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.newsletter__thanks {
  color: var(--gold);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(200, 169, 107, 0.15);
  padding: 5rem 0 0;
  position: relative;
  z-index: 1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.site-footer__tagline {
  color: var(--muted);
  max-width: 18rem;
  margin: 0;
  line-height: 1.7;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.site-footer ul,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.3s, padding-left 0.3s;
}

.site-footer a:hover {
  color: var(--gold-light);
  padding-left: 3px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.site-footer__social a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__bottom {
  border-top: 1px solid rgba(174, 183, 194, 0.1);
  padding: 1.35rem 0;
}

.site-footer__bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* WhatsApp */
.atelier-whatsapp {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a3328;
  color: #cfe8d8;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.35s var(--ease);
}

.atelier-whatsapp:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.04);
  color: #e8fff0;
}

/* Pages */
.page-hero {
  padding: 8rem 0 2.5rem;
  background:
    radial-gradient(ellipse 50% 60% at 70% 20%, rgba(200, 169, 107, 0.1), transparent 55%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--ivory);
  font-weight: 400;
}

.page-hero__lede,
.eyebrow {
  color: var(--muted);
}

.eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
}

.page-content,
.about-prose {
  max-width: 42rem;
}

.about-prose p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.contact-form span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(200, 169, 107, 0.3);
  color: var(--ivory);
  padding: 0.9rem 0;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
}

.contact-success {
  color: var(--gold);
}

/* Single product */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.woocommerce div.product .product_title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ivory);
  font-weight: 400;
}

.woocommerce div.product p.price {
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0.65rem 0 1.15rem;
  letter-spacing: 0.04em;
}

.atelier-size {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.atelier-size span {
  color: var(--gold);
  margin-right: 0.5rem;
}

.atelier-trust {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.atelier-trust li {
  margin-bottom: 0.45rem;
  padding-left: 1rem;
  position: relative;
}

.atelier-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.75rem 0;
}

.woocommerce div.product form.cart .quantity input {
  background: transparent;
  border: 1px solid rgba(200, 169, 107, 0.3);
  color: var(--ivory);
  width: 4.25rem;
  padding: 0.75rem;
}

.atelier-buy-now {
  background: transparent !important;
  color: var(--ivory) !important;
  border: 1px solid rgba(245, 241, 232, 0.3) !important;
}

.atelier-buy-now:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.fragrance-profile {
  grid-column: 1 / -1;
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(200, 169, 107, 0.2);
}

.fragrance-story {
  margin-bottom: 2.75rem;
  max-width: 40rem;
}

.fragrance-story h2,
.fragrance-profile__panel h2 {
  color: var(--ivory);
  font-size: 2rem;
  font-weight: 400;
}

.fragrance-story p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
}

.fragrance-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.fragrance-notes h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.fragrance-notes p {
  color: var(--ivory);
  margin: 0;
  line-height: 1.55;
}

.fragrance-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 2rem;
  margin: 0;
}

.fragrance-meta dt {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.fragrance-meta dd {
  margin: 0;
  color: var(--muted);
}

.woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

.woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  gap: 1.75rem;
  border: 0;
  list-style: none;
}

.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--gold);
}

.woocommerce-Tabs-panel {
  color: var(--muted);
}

.woocommerce-cart table.cart,
.woocommerce-checkout table {
  background: transparent;
  color: var(--ivory);
}

.woocommerce table.shop_table {
  border: 1px solid rgba(200, 169, 107, 0.2) !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: rgba(200, 169, 107, 0.12) !important;
  color: var(--ivory);
}

.woocommerce-cart-form input,
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  background: var(--navy-2);
  border: 1px solid rgba(200, 169, 107, 0.25);
  color: var(--ivory);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--navy-2) !important;
  color: var(--ivory) !important;
  border-top-color: var(--gold) !important;
}

.shop-main {
  padding: 7rem 0 5.5rem;
}

.woocommerce-products-header {
  margin-bottom: 2.5rem;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  color: var(--muted);
}

.woocommerce .woocommerce-ordering select {
  background: var(--navy-2);
  color: var(--ivory);
  border: 1px solid rgba(200, 169, 107, 0.25);
  padding: 0.55rem;
}

/* Offset fixed header on inner pages */
.atelier-main:not(:has(.hero)) {
  padding-top: 0;
}

body:not(.home) .page-hero,
body.woocommerce-page .shop-main {
  padding-top: calc(var(--header-h) + 3rem);
}

body.woocommerce-page .shop-main {
  padding-top: calc(var(--header-h) + 2.5rem);
}

/* Responsive */
@media (max-width: 1024px) {
  ul.products.columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .scent-finder__grid,
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .woocommerce div.product .woocommerce-product-gallery {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-brand {
    justify-self: center;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(4, 17, 29, 0.97);
    backdrop-filter: blur(16px);
    padding: 1.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
    border-bottom: 1px solid rgba(200, 169, 107, 0.15);
  }

  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
  }

  ul.products.columns-4,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-story__grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .brand-story__visual {
    min-height: 280px;
  }

  .fragrance-notes,
  .fragrance-meta {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .hero__content {
    margin-left: 1.35rem;
    margin-right: 1.35rem;
    padding-bottom: 5rem;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .why-us__grid,
  .scent-finder__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }

  .hero__video {
    display: none;
  }
}
