/* ════════════════════════════════
   VARIABLES & RESET
════════════════════════════════ */
:root {
  /* ── Brand (from the Dlovan Curtain logo) ── */
  --green:      #0E4638;   /* logo deep emerald — primary brand colour */
  --green-deep: #072A21;   /* darkest green, footer / intro ground */
  --green-lt:   #1A6B55;
  --citron:     #EFE9B8;   /* logo pale-citron field */
  --citron-dim: #DED7A0;

  --cream:      #F8F3EC;
  --beige:      #E8DDD0;
  --white:      #FDFAF6;
  --gold:       #C9A96E;
  --gold-lt:    #E4C99A;
  --charcoal:   #2C2C2C;
  --gray:       #5A5A5A;
  --taupe:      #8B7355;
  --brown:      #6B4F35;
  --shadow:     rgba(14, 70, 56, 0.12);
  --ff-serif:   'Cormorant Garamond', Georgia, serif;
  --ff-logo:    'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --ff-sans:    'Jost', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius:     4px;

  --logo-accent: var(--green);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--ff-sans);
}

/* ════════════════════════════════
   INTRO — the curtain film plays full frame, exactly as supplied, with the
   brand lockup over it. When it finishes, the overlay fades to the site.
════════════════════════════════ */

#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--green-deep);
  /* gentle hand-off, starting the instant the lockup has finished dissolving */
  transition: opacity 1.1s cubic-bezier(0.33, 0, 0.2, 1), visibility 1.1s linear;
}

#intro.intro-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Lock the page behind the intro */
body.intro-active { overflow: hidden; }

/* ── The film ──
   The camera travels forward through the whole intro, arriving at the
   centre of frame where the lockup sits just as the site takes over. */
#intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--green-deep);
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
  /* runs past the end of the film so the camera is still drifting while the
     overlay fades — nothing freezes before the site lands */
  transition: transform 3.4s cubic-bezier(0.25, 0.1, 0.35, 1);
}

#intro.intro-rolling #intro-video { transform: scale(2.2); }

@media (prefers-reduced-motion: reduce) {
  #intro-video { transition: none; }
  #intro.intro-rolling #intro-video { transform: scale(1); }
}

/* ── Brand lockup — transparent, sitting directly on the film ── */
.intro-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* sized so the fully-approached lockup (x1.4) still clears a 375px screen */
  width: min(66vw, 560px);
  pointer-events: none;
  /* brand green, as on the plate — a citron halo carries it over the velvet
     without putting a solid card behind it */
  color: var(--green);
  --logo-accent: var(--green);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: introBrandIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
  filter:
    drop-shadow(0 0 14px rgba(239, 233, 184, 0.85))
    drop-shadow(0 0 34px rgba(239, 233, 184, 0.6))
    drop-shadow(0 0 70px rgba(239, 233, 184, 0.4));
}

@keyframes introBrandIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* the inner block grows as the camera closes on it */
.intro-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 3.4s cubic-bezier(0.25, 0.1, 0.35, 1);
}

#intro.intro-rolling .intro-brand-inner { transform: scale(1.4); }

/* dissolves as we arrive — the hand-off is chained off the end of this */
#intro.intro-reveal .intro-brand {
  opacity: 0;
  animation: none;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.6, 1);
}

@media (prefers-reduced-motion: reduce) {
  .intro-brand-inner { transition: none; }
  #intro.intro-rolling .intro-brand-inner { transform: scale(1); }
}

.intro-brand .dp-mark {
  width: clamp(48px, 8.5vw, 82px);
  height: auto;
  margin-bottom: clamp(0.6rem, 2vw, 1.05rem);
}

.intro-brand .dp-word {
  font-size: clamp(1.9rem, 8vw, 4.6rem);
  letter-spacing: 0.06em;
  color: var(--green);
}

.intro-brand .dp-sub {
  font-size: clamp(0.55rem, 1.9vw, 0.95rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--green);
  margin-top: clamp(0.45rem, 1.3vw, 0.8rem);
}

/* ── Skip button ── */
.intro-skip {
  position: absolute;
  bottom: max(clamp(1.1rem, 4vw, 2.4rem), env(safe-area-inset-bottom, 0px));
  right: max(clamp(1.1rem, 4vw, 2.4rem), env(safe-area-inset-right, 0px));
  z-index: 7;
  font-family: var(--ff-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239, 233, 184, 0.7);
  background: rgba(7, 42, 33, 0.45);
  border: 1px solid rgba(239, 233, 184, 0.26);
  border-radius: var(--radius);
  padding: 0.6rem 1.15rem;
  min-height: 40px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.intro-skip:hover,
.intro-skip:focus-visible {
  color: var(--citron);
  border-color: rgba(239, 233, 184, 0.55);
  background: rgba(7, 42, 33, 0.75);
}

#intro.intro-done .intro-skip { display: none; }

@media (prefers-reduced-motion: reduce) {
  .intro-brand { animation-duration: 0.01s !important; }
}



/* ════════════════════════════════
   LOGO LOCKUP  — arched-window mark + Dlovan / Curtain wordmark
════════════════════════════════ */
.dp-mark {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.dp-word {
  display: block;
  font-family: var(--ff-logo);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.dp-sub {
  display: block;
  font-family: var(--ff-logo);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(253, 250, 246, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 4%;
  box-shadow: 0 2px 32px var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  --logo-accent: var(--gold);
  flex-shrink: 0;
  transition: color var(--transition);
}

.nav-logo .dp-mark {
  width: clamp(26px, 3.4vw, 34px);
  height: auto;
}

.nav-logo-text { display: block; }

.nav-logo .dp-word {
  font-size: clamp(1rem, 2.4vw, 1.32rem);
  letter-spacing: 0.08em;
}

.nav-logo .dp-sub {
  font-size: clamp(0.44rem, 1vw, 0.55rem);
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--gold);
  margin-top: 0.28rem;
  transition: color var(--transition);
}

#navbar.scrolled .nav-logo { color: var(--green); }
#navbar.scrolled .nav-logo { --logo-accent: var(--gold); }
#navbar.scrolled .nav-logo .dp-sub { color: var(--taupe); }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 2.2rem);
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 250, 246, 0.85);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

#navbar.scrolled .nav-links a { color: var(--gray); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--citron);
  background: var(--green);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: var(--green-lt);
  color: var(--citron);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14, 70, 56, 0.38);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#navbar.scrolled .hamburger span { background: var(--charcoal); }

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  will-change: transform;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a:focus { color: var(--gold); }

.mobile-nav .btn-primary {
  font-size: 0.78rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: var(--radius);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--charcoal);
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?w=1800&q=85');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}

#hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 42, 33, 0.80) 0%,
    rgba(7, 42, 33, 0.42) 60%,
    rgba(90, 74, 60, 0.24) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 2rem 5%;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  max-width: 860px;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.4rem;
}

.hero-badge::before,
.hero-badge::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(253, 250, 246, 0.82);
  max-width: 500px;
  margin: 0 auto 2.4rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(253, 250, 246, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: scrollPulse 2.4s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;    transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn-primary {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--gold);
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 169, 110, 0.4);
}

.btn-outline {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(253, 250, 246, 0.55);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(253, 250, 246, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ════════════════════════════════
   SECTION DEFAULTS
════════════════════════════════ */
section {
  padding: clamp(4rem, 8vw, 7rem) 5%;
  width: 100%;
  overflow: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.85rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--green-lt);
}

.section-sub {
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  font-weight: 300;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.85;
}

/* Scroll fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fd1 { transition-delay: 0.10s; }
.fd2 { transition-delay: 0.18s; }
.fd3 { transition-delay: 0.26s; }
.fd4 { transition-delay: 0.34s; }
.fd5 { transition-delay: 0.42s; }
.fd6 { transition-delay: 0.50s; }

/* ════════════════════════════════
   MARQUEE STRIP
════════════════════════════════ */
.marquee-strip {
  background: var(--green);
  padding: 0.9rem 0;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 24s linear infinite;
}

.marquee-item {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(253, 250, 246, 0.5);
  padding: 0 2.5rem;
  flex-shrink: 0;
}

.marquee-item .dot { color: var(--gold); margin-right: 2.5rem; }

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

/* ════════════════════════════════
   PRODUCTS
════════════════════════════════ */
#products { background: var(--white); }

.section-header-center {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header-center .section-label {
  justify-content: center;
}
.section-header-center .section-label::before { display: none; }
.section-header-center .section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(44, 44, 44, 0.18);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.product-card:hover img { transform: scale(1.06); }

.product-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(44, 44, 44, 0.9) 0%, transparent 100%);
  padding: 2.5rem 1.2rem 1.2rem;
  color: var(--white);
}

.card-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.3rem;
}

.card-title {
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.product-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
#about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 1.3rem 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.35);
}

.about-badge strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
}

.about-badge span {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-text .section-sub { max-width: 100%; margin-bottom: 1.4rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.8rem 0;
  padding: 1.8rem 0;
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
}

.stat strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--gold);
}

.stat span {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--gray);
  text-transform: uppercase;
}

/* ════════════════════════════════
   GALLERY
════════════════════════════════ */
#gallery { background: var(--charcoal); }
#gallery .section-title { color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 110, 0);
  transition: background 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { background: rgba(201, 169, 110, 0.12); }

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 44, 44, 0);
  transition: background 0.4s ease;
  z-index: 1;
}

.gallery-item:hover .gallery-overlay { background: rgba(44, 44, 44, 0.25); }

.gallery-item .gallery-overlay i {
  color: var(--white);
  font-size: 1.4rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  opacity: 1;
  transform: scale(1);
}

/* ════════════════════════════════
   WHY CHOOSE US
════════════════════════════════ */
#why { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.why-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.why-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-4px);
}

.why-icon {
  width: 50px;
  height: 50px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: var(--white);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.why-card:hover .why-icon { transform: scale(1.1) rotate(-5deg); }

.why-card h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.55rem;
}

.why-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
}

/* ════════════════════════════════
   CTA BANNER
════════════════════════════════ */
#cta {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 5%;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1618219944342-824e40a13285?w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 42, 33, 0.92) 0%, rgba(14, 70, 56, 0.80) 100%);
}

#cta .inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

#cta .section-label { justify-content: center; }
#cta .section-label::before { display: none; }
#cta .section-label::after { content: ''; width: 24px; height: 1px; background: var(--gold); }

#cta .section-title {
  color: var(--white);
  margin-bottom: 1rem;
}

#cta .section-title em { color: var(--gold-lt); }

#cta p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 300;
  color: rgba(253, 250, 246, 0.78);
  line-height: 1.85;
  margin-bottom: 2.4rem;
}

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
#contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.8rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.contact-item-text span {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  margin-top: 1.2rem;
  transition: background var(--transition), transform var(--transition);
}

.wa-btn:hover { background: #1ebe57; transform: translateY(-2px); }

.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.social-row a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-row a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 4px 32px var(--shadow);
}

.contact-form h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.contact-form > p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--ff-sans);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 70, 56, 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--citron);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  padding: 1.05rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.form-submit:hover {
  background: var(--green-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 70, 56, 0.35);
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--green-deep);
  color: rgba(248, 243, 236, 0.62);
  padding: clamp(3.5rem, 7vw, 5rem) 5% 2rem;
  width: 100%;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--citron);
  --logo-accent: var(--gold);
  margin-bottom: 1rem;
}

.footer-logo .dp-mark {
  width: clamp(34px, 5vw, 44px);
  height: auto;
}

.footer-logo .dp-word {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: 0.08em;
}

.footer-logo .dp-sub {
  font-size: clamp(0.5rem, 1.2vw, 0.62rem);
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--gold);
  margin-top: 0.32rem;
}

.footer-about {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col ul a {
  font-size: 0.87rem;
  font-weight: 300;
  color: rgba(253, 250, 246, 0.55);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--gold-lt); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(253, 250, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 250, 246, 0.45);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 250, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom p {
  font-size: 0.76rem;
  font-weight: 300;
  color: rgba(253, 250, 246, 0.32);
}

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

/* Coda Agency credit */
.coda-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  opacity: 0.45;
  /* right margin clears the fixed back-to-top button (44px + 1.5rem gap) */
  margin-right: 3.5rem;
  transition: opacity var(--transition), transform var(--transition);
}

.coda-credit:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.coda-by {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(253, 250, 246, 0.7);
  white-space: nowrap;
}

.coda-logo-img {
  width: 76px;
  height: auto;
  display: block;
  flex-shrink: 0;
  /* mix-blend-mode: screen makes pure black (#000) fully transparent
     while keeping the white CODA logo perfectly visible on the dark footer */
  mix-blend-mode: screen;
  filter: brightness(1.1);
}

.coda-logo-svg {
  width: 76px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* Badge fallback — shown only while image file is missing */
.coda-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Stack footer bottom on small viewports */
@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .coda-credit {
    margin-right: 0;
  }
}

/* ════════════════════════════════
   LIGHTBOX
════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#lightbox.open { display: flex; }

#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}

#lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.6rem;
  color: rgba(253, 250, 246, 0.7);
  cursor: pointer;
  padding: 6px;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

#lightbox-close:hover { color: var(--gold); }

/* ════════════════════════════════
   BACK TO TOP
════════════════════════════════ */
#back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font-size: 0.88rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
  -webkit-tap-highlight-color: transparent;
}

#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--gold-lt); }

/* ════════════════════════════════
   TOAST NOTIFICATION
════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  border-left: 3px solid var(--gold);
  z-index: 3000;
  white-space: nowrap;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════ */

/* Large tablet / small desktop */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 860px) {
  #navbar { padding: 1rem 4%; }
  #navbar.scrolled { padding: 0.75rem 4%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .about-grid   { grid-template-columns: 1fr; }
  .about-badge  { right: 0; bottom: -1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; }
}

/* Mobile large */
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .about-stats   { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .gallery-grid  { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}

/* Mobile small */
@media (max-width: 380px) {
  .hero-actions  { flex-direction: column; align-items: center; }
  .btn-primary,
  .btn-outline   { width: 100%; text-align: center; }
  .gallery-grid  { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .about-stats   { grid-template-columns: 1fr 1fr; }
}

/* Touch device optimisations */
@media (hover: none) {
  .card-arrow       { opacity: 1; transform: translateX(0); }
  .gallery-overlay i { opacity: 0.8; transform: scale(1); }
}

/* ════════════════════════════════
   LANGUAGE TOGGLE BUTTON
════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(253, 250, 246, 0.4);
  border-radius: 100px;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(253, 250, 246, 0.9);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

#navbar.scrolled .lang-toggle {
  border-color: rgba(44, 44, 44, 0.3);
  color: var(--charcoal);
}

.lang-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.lang-toggle .fa-globe { font-size: 0.78rem; }

.lang-toggle-mobile {
  border-color: rgba(44, 44, 44, 0.3);
  color: var(--charcoal);
  font-size: 0.9rem;
  padding: 0.6rem 1.6rem;
  margin-top: 0.5rem;
}

/* ════════════════════════════════
   RTL  (Arabic)
════════════════════════════════ */
html[dir="rtl"] {
  --ff-body: 'Tajawal', sans-serif;
}

html[dir="rtl"] body {
  font-family: 'Tajawal', sans-serif;
}

/* The logo lockup is a wordmark — it stays Latin in both languages */
html[dir="rtl"] .intro-skip {
  right: auto;
  left: clamp(1.2rem, 4vw, 2.4rem);
  letter-spacing: 0.1em;
}

/* Navbar — logo stays left, links flow right-to-left */
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }

/* Hero content */
html[dir="rtl"] .hero-content { text-align: center; }

/* Section labels */
html[dir="rtl"] .section-label {
  flex-direction: row-reverse;
}
html[dir="rtl"] .section-label::before {
  display: none;
}
html[dir="rtl"] .section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* About grid: image right, text left in RTL */
/* Marquee always scrolls LTR regardless of page direction — RTL flex breaks the loop */
html[dir="rtl"] .marquee-strip { direction: ltr; }
html[dir="rtl"] .marquee-track { direction: ltr; }

html[dir="rtl"] .about-grid { direction: rtl; }
html[dir="rtl"] .about-badge { right: auto; left: -1.2rem; }
@media (max-width: 860px) {
  html[dir="rtl"] .about-badge { left: 0; right: auto; }
}

/* Stats text */
html[dir="rtl"] .stat { text-align: center; }

/* Gallery section label (left-aligned) */
html[dir="rtl"] #gallery .section-label {
  flex-direction: row-reverse;
}

/* Why grid */
html[dir="rtl"] .why-card { text-align: right; direction: rtl; }

/* Contact grid */
html[dir="rtl"] .contact-grid { direction: rtl; }
html[dir="rtl"] .contact-item { direction: rtl; }
html[dir="rtl"] .contact-item-text { text-align: right; }
html[dir="rtl"] .social-row { flex-direction: row-reverse; }
html[dir="rtl"] .contact-form h3 { text-align: right; }
html[dir="rtl"] .contact-form > p { text-align: right; }
html[dir="rtl"] .form-group label { text-align: right; }
html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea,
html[dir="rtl"] .form-group select { text-align: right; direction: rtl; }

/* Footer */
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .footer-col ul { text-align: right; }
html[dir="rtl"] .footer-social { flex-direction: row-reverse; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .coda-credit { flex-direction: row-reverse; margin-right: 0; margin-left: 3.5rem; }

/* Back-to-top: keep on right in RTL */
html[dir="rtl"] #back-top { right: 1.5rem; left: auto; }

/* CTA centered — no change needed */
html[dir="rtl"] #cta .inner { direction: rtl; }

/* Headings use serif Arabic fallback */
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .contact-form h3,
html[dir="rtl"] .footer-logo,
html[dir="rtl"] .card-title,
html[dir="rtl"] .why-card h3,
html[dir="rtl"] .about-badge strong {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
}

/* Card arrow direction */
html[dir="rtl"] .card-arrow { flex-direction: row-reverse; transform: translateX(8px); }
html[dir="rtl"] .product-card:hover .card-arrow { transform: translateX(0); }

@media (max-width: 640px) {
  html[dir="rtl"] .coda-credit { margin-left: 0; }
}
