/* ==========================================================================
   ANTURAZH PERFUMES — design system
   Monochrome editorial: black ink on warm bone paper. One typeface
   (Manrope). No radius, no shadow, no gradient, no blur, no color accent.
   ========================================================================== */

:root {
  --ink: #000000;
  --bone: #f2e9de;
  --dusty-rose: #ddc9c0;

  --font: "Manrope", sans-serif;

  --container: 1440px;
  --gap-sm: 10px;
  --pad-card: 20px;
  --section-gap: 56px;

  /* motion timing only — not a visual "effect"; kept from the previous
     system so every GSAP tween in js/main.js still feels the same */
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* smooth scrolling is owned by Lenis (js/main.js) */

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1;
}

p {
  color: var(--ink);
}

/* Display headline — hero titles ("Anturazh", "Vanille Cola",
   "Що ми пропонуємо"). Same role the old .shimmer-title had, minus
   the gradient shimmer (a gradient text-fill is exactly what this
   reskin removes). */
.display-heading {
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 120px);
  line-height: 0.83;
  letter-spacing: -0.05em;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--ink);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap-sm);
  height: 84px;
}

.site-header nav {
  grid-column: 1;
}

.logo {
  grid-column: 2;
  justify-self: center;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-instagram {
  grid-column: 3;
  justify-self: end;
}

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ink);
}

@media (max-width: 780px) {
  .nav-instagram {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bone);
    padding: 20px 40px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--ink);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* -------------------------------------------------------------------------
   Buttons — one style everywhere: uppercase ghost text, underline on
   hover. .btn-primary and .btn-ghost are kept as HTML hooks only; both
   render identically now, per spec ("єдиний стиль кнопки в системі").
   ------------------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-ghost {
  display: inline-block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.btn:hover,
.btn-primary:hover,
.btn-ghost:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
section {
  padding: var(--section-gap) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 32px;
}

.section-head h2 {
  margin-top: 8px;
}

/* -------------------------------------------------------------------------
   Framed media — hero bottle, atmosphere/featured/lifestyle clips,
   catalog thumb. Flat rectangle: no radius, no shadow, no gradient. The
   bone-white/dusty-rose fill is the ONLY depth cue while media loads.
   ------------------------------------------------------------------------- */
.frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  background: var(--dusty-rose);
  overflow: hidden;
}

.frame--medium {
  max-width: 460px;
}

.frame--large {
  max-width: 560px;
}

.frame img,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame .fallback-poster {
  display: none;
}

.frame.video-failed video {
  display: none;
}

.frame.video-failed .fallback-poster {
  display: block;
}

/* -------------------------------------------------------------------------
   Hero — split layout. Copy sits in open bone-white space on the left;
   the bottle video is full-bleed on the right, touching every edge of
   its own column (no frame, no gap, no chrome) — the opposite of the
   contained .frame treatment used everywhere else on the site.
   ------------------------------------------------------------------------- */
.hero--signature {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero--signature .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-gap) 40px;
}

.hero--signature .hero-copy > * + * {
  margin-top: 20px;
}

.hero--signature .hero-visual {
  position: relative;
  height: 100%;
}

.hero--signature .hero-visual .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  background: var(--dusty-rose);
}

.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: var(--dusty-rose);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero--signature {
    grid-template-columns: 1fr;
    grid-template-rows: auto 50vh;
    min-height: auto;
  }

  .hero--signature .hero-copy {
    padding: 48px 24px;
  }

  .hero--signature .hero-visual {
    height: 50vh;
  }
}

.hero-subtitle {
  max-width: 34ch;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Non-signature hero (Products, Services) — plain contained split,
   still inside .container, no viewport-edge bleed. */
.hero:not(.hero--signature) .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

/* -------------------------------------------------------------------------
   About / atmosphere split (Home)
   ------------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.about-copy > * + * {
  margin-top: 16px;
}

.atmosphere-media,
.lifestyle-media {
  display: flex;
  justify-content: center;
}

.lifestyle-media {
  margin-top: 32px;
}

@media (max-width: 767px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Featured split (Home)
   ------------------------------------------------------------------------- */
.featured-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.featured-media {
  display: flex;
  justify-content: center;
}

.featured-copy > * + * {
  margin-top: 12px;
}

.featured-copy .price {
  font-size: 20px;
}

.featured-copy .btn {
  margin-top: 20px;
  display: inline-block;
}

.frame--featured {
  width: auto;
  max-width: 100%;
  height: min(70vh, 620px);
}

@media (max-width: 899px) {
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .frame--featured {
    height: min(50vh, 420px);
  }
}

/* -------------------------------------------------------------------------
   Product row (Catalog) — flat, no card chrome. A future entry without
   video just shows its still photo in the same hairline-divided row.
   ------------------------------------------------------------------------- */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-card {
  background: none;
}

.product-card--row {
  display: flex;
  align-items: stretch;
  gap: 40px;
}

.product-card--row .thumb {
  flex: 0 0 320px;
  width: 320px;
  aspect-ratio: 4 / 5;
}

.product-card--row .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card--row .body > * {
  padding: 10px 0;
  border-top: 1px solid var(--ink);
}

.product-card--row .body > *:last-child {
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 640px) {
  .product-card--row {
    flex-direction: column;
  }

  .product-card--row .thumb {
    width: 100%;
    flex: none;
  }
}

.product-card .thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dusty-rose);
}

.product-card .thumb img,
.product-card .thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .thumb .fallback-poster {
  display: none;
}

.product-card .thumb.video-failed video {
  display: none;
}

.product-card .thumb.video-failed .fallback-poster {
  display: block;
}

.kicker {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.meta {
  display: flex;
  gap: var(--gap-sm);
  font-size: 15px;
}

.price {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.product-card .desc {
  font-size: 15px;
  max-width: 52ch;
}

.product-card .actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Notes — asymmetric editorial grid (Products). One large cell: darkened
   video with an overlay caption. Three narrow columns with a rotated
   vertical label running down the edge, hairline-divided lists below.
   ------------------------------------------------------------------------- */
.notes-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--gap-sm);
}

.notes-feature {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--ink);
}

.notes-feature video,
.notes-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.notes-feature .fallback-poster {
  display: none;
}

.notes-feature.video-failed video {
  display: none;
}

.notes-feature.video-failed .fallback-poster {
  display: block;
}

.notes-feature-label {
  position: absolute;
  left: var(--pad-card);
  right: var(--pad-card);
  bottom: var(--pad-card);
  color: var(--bone);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.notes-col {
  position: relative;
  border-left: 1px solid var(--ink);
  padding: var(--pad-card) var(--gap-sm) var(--gap-sm);
  display: flex;
  flex-direction: column;
}

.notes-col-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.notes-col ul {
  margin-top: auto;
  padding-top: 20px;
}

.notes-col li {
  padding: 8px 0;
  border-top: 1px solid var(--ink);
  font-size: 15px;
}

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

  .notes-feature {
    min-height: 340px;
  }

  .notes-col {
    border-left: none;
    border-top: 1px solid var(--ink);
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .notes-col-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .notes-col ul {
    margin-top: 0;
    padding-top: 0;
    flex: 1;
  }
}

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-sm);
}

.service-card {
  padding: var(--pad-card);
  border: 1px solid var(--ink);
}

.service-card > * + * {
  margin-top: 12px;
}

.service-card .num {
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-motion .reveal,
.no-motion .hero-copy,
.no-motion .hero-visual .frame {
  transition: none !important;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--ink);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  align-items: center;
  justify-content: space-between;
}

.site-footer .copy {
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* -------------------------------------------------------------------------
   Utility
   ------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 32px;
}
