/* ==========================================================================
   UAE FLOWER SHOP — WHERE LOVE TAKES SHAPE.
   Cinematic luxury botanical flagship — stylesheet
   ========================================================================== */

/* ---- Design tokens ---- */
:root{
  --void:        #070b09;
  --panel:       #0c1512;
  --panel-2:     #0f1a15;
  --hairline:    rgba(243,237,225,0.14);
  --hairline-strong: rgba(243,237,225,0.28);

  --wine:        #5c1c26;
  --wine-bright: #8c2c39;
  --blush:       #e7c9c1;
  --cream:       #f3ede1;
  --cream-dim:   rgba(243,237,225,0.66);
  --cream-faint: rgba(243,237,225,0.42);
  --gold:        #c9a876;
  --gold-bright: #ddc190;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(.16,.8,.24,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);

  --container: 1360px;
  --gutter: clamp(20px, 5vw, 64px);

  --header-h: 88px;
}

/* ---- Reset ---- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  /* overflow-x: clip (not hidden/auto) prevents horizontal scroll
     without establishing a scroll container, which would otherwise
     break position:sticky on descendants (the pinned hero/bouquet). */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p{ margin: 0; }
svg{ display: block; }

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: 1.5px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link{
  position: absolute;
  left: 16px; top: -60px;
  background: var(--gold);
  color: var(--void);
  padding: 10px 18px;
  font-size: 13px;
  z-index: 999;
  transition: top .25s var(--ease-out);
}
.skip-link:focus{ top: 16px; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--hairline-strong);
  color: var(--cream);
  background: rgba(7,11,9,0.35);
  transition: border-color .35s var(--ease-soft), background .35s var(--ease-soft);
}
.btn .arrow{ transition: transform .35s var(--ease-out); display:inline-block; }
.btn:hover, .btn:focus-visible{
  border-color: var(--gold-bright);
  background: rgba(201,168,118,0.08);
}
.btn:hover .arrow, .btn:focus-visible .arrow{ transform: translateX(6px); }

.btn--solid{
  background: var(--cream);
  color: var(--void);
  border-color: var(--cream);
}
.btn--solid:hover, .btn--solid:focus-visible{
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn--ghost{
  border-color: rgba(243,237,225,0.35);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-soft), border-color .5s var(--ease-soft), height .4s var(--ease-soft);
}
.site-header.is-scrolled{
  background: rgba(7,11,9,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  height: 72px;
}
.header-row{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand__mark{ display: block; width: 30px; height: 30px; flex: none; }
.brand__mark img{ width: 100%; height: 100%; object-fit: contain; }
.brand__word{ text-transform: uppercase; font-size: 13.5px; letter-spacing: 0.2em; font-family: var(--font-body); font-weight: 600; }

.primary-nav{ display: flex; justify-content: center; }
.primary-nav ul{ display: flex; gap: 40px; }
.primary-nav a{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--gold-bright);
  transition: width .35s var(--ease-out);
}
.primary-nav a:hover, .primary-nav a:focus-visible{ color: var(--cream); }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after{ width: 100%; }

.header-actions{
  display: flex; justify-content: flex-end;
  align-items: center; gap: 26px;
}
.icon-btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--cream-dim);
  transition: color .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.icon-btn:hover, .icon-btn:focus-visible{ color: var(--gold-bright); }
.icon-btn svg{ width: 19px; height: 19px; }

.nav-toggle{ display: none; }

/* Mobile nav overlay */
.mobile-nav{
  position: fixed; inset: 0;
  background: var(--void);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 28px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.mobile-nav.is-open{ transform: translateY(0); }
.mobile-nav__top{ display:flex; align-items:center; justify-content: space-between; }
.mobile-nav__close{ width: 26px; height: 26px; }
.mobile-nav ul{ margin-top: 64px; display: flex; flex-direction: column; gap: 26px; }
.mobile-nav a{
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--cream);
}
.mobile-nav__foot{ margin-top: auto; display: flex; gap: 22px; }

/* ==========================================================================
   HERO — scroll-scrubbed cinematic video
   ========================================================================== */
.hero-pin-wrap{
  position: relative;
  height: 420vh;
}
.hero-video-section{
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--void);
}
.hero-video-container{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-video-container video,
.hero-video-container .hero-poster{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-poster{
  opacity: 1;
  transition: opacity .6s var(--ease-soft);
  z-index: 1;
}
.hero-poster.is-hidden{ opacity: 0; pointer-events: none; }

.hero-scrim{
  position: absolute; inset: 0;
  /* Darkening gradient removed per request — the source footage is
     already deep-toned by design, so text legibility is handled via
     text-shadow on the overlay copy instead of an image-darkening layer. */
  z-index: 2;
  pointer-events: none;
}

.hero-overlay{
  position: absolute; inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.5);
}
.hero-overlay .eyebrow{
  opacity: 0;
  transform: translateY(14px);
  margin-bottom: 22px;
}
.hero-headline{
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(40px, 7.6vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(24px);
}
.hero-headline em{
  font-style: italic;
  color: var(--blush);
}
.hero-sub{
  margin-top: 26px;
  max-width: 480px;
  font-size: 16px;
  color: var(--cream-dim);
  opacity: 0;
  transform: translateY(16px);
}
.hero-ctas{
  margin-top: 40px;
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: auto;
}
.hero-scrolldown{
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream-faint);
  opacity: 0;
}
.hero-scrolldown svg{ width: 14px; height: 14px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob{
  0%,100%{ transform: translateY(0); opacity: .5;}
  50%{ transform: translateY(6px); opacity: 1;}
}

/* progress rail */
.hero-progress{
  position: absolute;
  right: clamp(18px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 1px;
  height: 160px;
  background: rgba(243,237,225,0.16);
}
.hero-progress__fill{
  width: 100%;
  height: 0%;
  background: var(--gold-bright);
  transform-origin: top;
}

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */
section{ position: relative; }
.section-pad{ padding: clamp(90px, 13vw, 190px) 0; }
.section-head{
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 76px);
}
.section-head .eyebrow{ display:block; margin-bottom: 20px; }
.section-title{
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.section-copy{
  margin-top: 20px;
  color: var(--cream-dim);
  font-size: 16.5px;
  max-width: 480px;
  line-height: 1.7;
}
.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
}

/* ==========================================================================
   SECTION 1 — ONE FLOWER. ONE FEELING.
   ========================================================================== */
.single-stem{ background: var(--void); }
.single-stem .container{ 
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.single-stem__media{
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.single-stem__media img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.02);
  will-change: transform;
}
.single-stem__sheen{
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(243,237,225,0.10) 48%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
}
.single-stem__text{ order: -1; }
.single-stem .container{ direction: ltr; }
.single-stem__num{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 18px;
  display: block;
}
.single-stem .btn{ margin-top: 36px; }

@media (max-width: 860px){
  .single-stem .container{ grid-template-columns: 1fr; }
  .single-stem__text{ order: 0; }
  .single-stem__media{ order: -1; }
}

/* ==========================================================================
   SECTION 2 — THE LANGUAGE OF LOVE
   ========================================================================== */
.love-language{ background: var(--panel); overflow: clip; }
.love-language__head{
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(50px, 8vw, 100px);
}
.love-language__headline{
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.love-language__headline .line{ display: block; }
.love-language__headline .accent{ font-style: italic; color: var(--blush); }

.love-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px);
}
.love-card{
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4.4;
  border: 1px solid var(--hairline);
}
.love-card:nth-child(2){ margin-top: clamp(0px, 6vw, 64px); }
.love-card:nth-child(3){ margin-top: clamp(0px, 3vw, 28px); }
.love-card img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}
.love-card__scrim{
  position: absolute; inset: 0;
  /* Dark gradient removed — legibility now comes from text-shadow on the
     label itself rather than darkening the flower photo underneath. */
  pointer-events: none;
}
.love-card__label{
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.8);
}
.love-card__cat{
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 8px; display:block;
}
.love-card__name{
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 440;
}

/* ==========================================================================
   SECTION 3 — FROM ONE TO A THOUSAND
   ========================================================================== */
.grand-bouquet{
  background: var(--void);
  position: relative;
}
.grand-bouquet__pin{
  position: relative;
  height: 380vh;
}
.grand-bouquet__stage{
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.grand-bouquet__media{
  position: absolute; inset: 0;
  z-index: 0;
}
.grand-bouquet__media img{
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 38%;
  transform: scale(1.5);
  filter: saturate(1.08);
  will-change: transform, filter;
}
.grand-bouquet__scrim{
  position: absolute; inset: 0;
  /* Radial darkening removed — the counter/statement text now carries
     its own text-shadow for contrast instead of dimming the bouquet. */
  z-index: 1;
  pointer-events: none;
}
.grand-bouquet__content{
  position: relative;
  z-index: 2;
  width: 100%;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.55);
}
.grand-bouquet__eyebrow{ text-align: center; display: block; margin-bottom: 22px; opacity: 0; }
.grand-bouquet__headline{
  text-align: center;
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(30px, 5.6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  opacity: 0;
}
.grand-bouquet__count{
  margin: clamp(30px,6vw,60px) auto 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 18px;
}
.grand-bouquet__count-num{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(52px, 11vw, 150px);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.grand-bouquet__count-label{
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-faint);
}
.grand-bouquet__final{
  text-align: center;
  margin-top: clamp(36px, 6vw, 60px);
  opacity: 0;
}
.grand-bouquet__statement{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--blush);
  max-width: 560px;
  margin: 0 auto 30px;
}
.grand-bouquet__final .btn{ pointer-events: auto; }

/* ==========================================================================
   ATMOSPHERE — particle canvas
   ========================================================================== */
.atmosphere-canvas{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  /* mix-blend-mode intentionally omitted: it forces an extra, expensive
     compositing pass on every frame (especially on mobile/software
     rendering paths). Plain lowered opacity gives a near-identical
     glow-like look at a fraction of the paint cost. */
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  background: #040605;
  padding: clamp(70px, 9vw, 120px) 0 34px;
  border-top: 1px solid var(--hairline);
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 64px;
}
.footer-brand{ text-align: center; }
.footer-brand__mark{ display: block; width: 180px; height: 180px; margin: 0 auto 26px; }
.footer-brand__mark img{ width: 100%; height: 100%; object-fit: contain; }
.footer-brand__name{
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.footer-brand__tag{
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.footer-col__title{
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 20px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 13px; }
.footer-col a, .footer-col .footer-social-btn{ font-size: 14.5px; color: var(--cream-dim); transition: color .25s; font: inherit; background: none; border: none; padding: 0; text-align: left; cursor: pointer; }
.footer-col a:hover, .footer-col a:focus-visible,
.footer-col .footer-social-btn:hover, .footer-col .footer-social-btn:focus-visible{ color: var(--gold-bright); }

.footer-bottom{
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--cream-faint);
}
.footer-social{ display: flex; gap: 20px; }
.footer-social a, .footer-social button{ letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; color: var(--cream-dim); font: inherit; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: none; padding: 0; cursor: pointer; }
.footer-social a:hover, .footer-social a:focus-visible,
.footer-social button:hover, .footer-social button:focus-visible{ color: var(--gold-bright); }
.footer-note{ font-style: italic; font-family: var(--font-display); color: var(--cream-faint); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .primary-nav{ display: none; }
  .header-row{ grid-template-columns: auto auto; justify-content: space-between; }
  .header-actions{ gap: 18px; }
  .header-actions .icon-btn.search-icon{ display:none; }
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; width: 24px; height: 24px; color: var(--cream); }
  .love-grid{ grid-template-columns: 1fr; gap: 18px; }
  .love-card:nth-child(2), .love-card:nth-child(3){ margin-top: 0; }
  .love-card{ aspect-ratio: 4/3.6; }
  .footer-top{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 600px){
  .hero-pin-wrap{ height: 360vh; }
  .hero-ctas{ flex-direction: column; width: 100%; max-width: 300px; }
  .hero-ctas .btn{ justify-content: center; width: 100%; }
  .hero-progress{ display: none; }
  .grand-bouquet__pin{ height: 320vh; }
  .footer-top{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .footer-brand__mark{ width: 140px; height: 140px; }
}

/* Reduced motion: simplify to fades, keep content */
@media (prefers-reduced-motion: reduce){
  .single-stem__media img,
  .love-card img,
  .grand-bouquet__media img{ transform: none !important; }
  .btn .arrow{ transition: none; }
}
