/* ==========================================================================
   AL ARAB GROUP — alarabdxb.com
   Layout: sticky gold menu bar over a field of Facebook blue. Content sits in
   a 1200px column; bands alternate bright blue / deep blue, with ivory cards
   for products and gold as the single accent.
   ========================================================================== */

:root {
  /* Colour */
  --blue: #1877F2;        /* site background (Facebook blue) */
  --blue-deep: #0F62D6;   /* alternate band */
  --blue-ink: #0A3F8F;    /* footer / darkest band */
  --navy: #0A2A5E;        /* text on gold */
  --gold: #C9A34E;        /* menu bar + accent (Al Arab Dates logo gold) */
  --gold-lt: #E8D08F;
  --gold-dk: #9E7A2B;
  --ivory: #FBF6EA;       /* product cards */
  --white: #FFFFFF;
  --ink: #0B1F3F;         /* text on ivory */
  --muted: rgba(255, 255, 255, .80);
  --line: rgba(255, 255, 255, .18);

  /* Type */
  --f-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-body: "Poppins", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --header-h: 78px;
  --radius: 16px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 18px 40px rgba(4, 24, 64, .28);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .55em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--gold-lt); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.section--deep { background: linear-gradient(180deg, var(--blue-deep), var(--blue-ink)); }
.section--blue { background: var(--blue); }
.section--pattern {
  background-color: var(--blue);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 22px 22px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--f-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lt);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.h-xl { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -.01em; }
.h-lg { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
.h-md { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.gold { color: var(--gold-lt); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.center.section-head .eyebrow::after { content: ""; width: 30px; height: 2px; background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 1.8rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(201,163,78,.35); }
.btn--gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--ghost { border-color: var(--gold); color: var(--white); }
.btn--ghost:hover { background: var(--gold); color: var(--navy); }

/* ==========================================================================
   Header / menu bar (gold, sticky)
   ========================================================================== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: linear-gradient(180deg, #D6B460 0%, var(--gold) 100%);
  color: var(--navy);
  border-bottom: 1px solid var(--gold-dk);
  transition: box-shadow .35s;
}
.site-header.scrolled { box-shadow: 0 12px 30px rgba(6, 30, 70, .30); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); transition: height .35s; }
.site-header.scrolled .nav { height: 64px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand svg { width: 48px; height: 48px; flex: none; transition: width .35s, height .35s; }
.site-header.scrolled .brand svg { width: 40px; height: 40px; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; letter-spacing: .08em; line-height: 1; white-space: nowrap; }
.brand-name small { display: block; font-weight: 600; font-size: .58rem; letter-spacing: .3em; margin-top: 5px; opacity: .78; }
.menu { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.menu a {
  position: relative; display: block; padding: .45rem 0;
  font-family: var(--f-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: rgba(10, 42, 94, .08); color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .3s, background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--gold); padding: .5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--gold-dk);
    box-shadow: 0 20px 30px rgba(6, 30, 70, .3);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav-open .menu { visibility: visible; opacity: 1; transform: none; }
  .menu li + li { border-top: 1px solid rgba(10, 42, 94, .15); }
  .menu a { padding: .95rem 0; font-size: .9rem; }
  .menu a::after { display: none; }
  .menu a[aria-current="page"] { color: var(--white); }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.02rem; }
  .brand-name small { letter-spacing: .2em; }
}

/* ==========================================================================
   Home hero slider (Figures 1.1–1.7)
   ========================================================================== */
.hero { position: relative; height: clamp(480px, 80vh, 820px); overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 7.5s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 35, 85, .82) 0%, rgba(8, 35, 85, .45) 50%, rgba(8, 35, 85, .10) 100%);
}
.slide-caption { position: absolute; inset: auto 0 clamp(80px, 14vh, 140px) 0; z-index: 2; }
.slide-caption .h-xl { max-width: 14ch; margin-bottom: .35em; }
.slide-caption p { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.slide-caption > .wrap > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.slide.is-active .slide-caption > .wrap > * { opacity: 1; transform: none; }
.slide.is-active .slide-caption > .wrap > *:nth-child(2) { transition-delay: .15s; }
.slide.is-active .slide-caption > .wrap > *:nth-child(3) { transition-delay: .3s; }
.slide.is-active .slide-caption > .wrap > *:nth-child(4) { transition-delay: .45s; }
.hero-controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(24px, 4vh, 40px);
}
.hero-controls .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-dots { display: flex; gap: .55rem; flex-wrap: wrap; }
.hero-dots button {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255, 255, 255, .35); position: relative; overflow: hidden;
}
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active::after { animation: dotfill var(--slide-ms, 6000ms) linear forwards; }
.hero.paused .hero-dots button.is-active::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: .6rem; }
.hero-arrows button {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(8, 35, 85, .25); color: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s;
}
.hero-arrows button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-arrows svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .hero-dots { gap: .4rem; flex-wrap: nowrap; }
  .hero-dots button { width: 20px; }
  .slide-count { display: none; }
  .hero-arrows button { width: 42px; height: 42px; }
}
.slide-count { white-space: nowrap; font-family: var(--f-display); font-weight: 600; letter-spacing: .15em; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Stacking "slide" panels (What We Believe / What We Promise)
   ========================================================================== */
.stack { position: relative; }
.stack-panel {
  position: sticky; top: 0;
  min-height: 100vh; display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 40px) 60px;
  overflow: hidden;
}
.stack-panel:nth-child(1) { background: var(--blue-deep); }
.stack-panel:nth-child(2) { background: var(--blue-ink); box-shadow: 0 -30px 60px rgba(4, 20, 50, .35); }
.stack-panel:nth-child(3) { background: var(--blue); box-shadow: 0 -30px 60px rgba(4, 20, 50, .35); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.panel-num {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 16vw, 13rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--gold); opacity: .9;
}
.panel-quote {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 2.8vw, 2.25rem); line-height: 1.4;
  margin: 0; position: relative;
}
.panel-quote::before {
  content: "\201C"; position: absolute; left: -.05em; top: -.62em; font-size: 4em; line-height: 1;
  color: var(--gold); opacity: .35; font-family: Georgia, serif;
}
.panel-quote em { font-style: normal; color: var(--gold-lt); }
.pillars { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; list-style: none; padding: 0; }
.pillars li {
  border: 1px solid var(--gold); border-radius: 999px; padding: .45rem 1.1rem;
  font-family: var(--f-display); font-weight: 600; font-size: .82rem; letter-spacing: .06em; color: var(--gold-lt);
}
@media (max-width: 820px) {
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-num { font-size: 5.5rem; }
  .stack-panel { min-height: 88vh; }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--ivory); color: var(--ink); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px rgba(4, 24, 64, .38); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.6rem 1.6rem 1.8rem; position: relative; flex: 1; }
.card-body h3 { color: var(--navy); font-size: 1.18rem; }
.card-body p { color: #3A4A66; font-size: .95rem; margin: 0; }
.card-icon {
  position: absolute; top: -28px; right: 1.4rem; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(158, 122, 43, .45); border: 3px solid var(--ivory);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- CTA band ---------- */
.cta {
  border: 1px solid var(--gold); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 2rem; align-items: center;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(201,163,78,.25), transparent 70%),
    linear-gradient(135deg, var(--blue-ink), var(--blue-deep));
}
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(110px, 16vw, 190px) clamp(60px, 8vw, 100px); background: var(--navy); }
.page-hero-bg { position: absolute; inset: -12% 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,119,242,.35), rgba(10,42,94,.85)); }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; gap: .5rem; font-size: .82rem; color: var(--muted); letter-spacing: .06em; margin-top: 1rem; }
.crumbs a { text-decoration: none; color: var(--gold-lt); }

/* ==========================================================================
   Split layouts, figures
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: minmax(0, 1fr); } }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--gold::before {
  content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(232, 208, 143, .8); border-radius: calc(var(--radius) - 6px); z-index: 1; pointer-events: none;
}
.parallax-box { overflow: hidden; border-radius: var(--radius); }
.parallax-box img { width: 100%; height: 118%; object-fit: cover; }

/* Director */
.director { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.director-photo { position: relative; }
.director-photo .frame { aspect-ratio: 4 / 5; }
.director-photo::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.director-msg p { color: var(--muted); }
.signature { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.signature strong { display: block; font-family: var(--f-display); font-size: 1.15rem; }
.signature span { color: var(--gold-lt); font-size: .9rem; letter-spacing: .05em; }
@media (max-width: 860px) { .director { grid-template-columns: minmax(0, 1fr); } .director-photo { max-width: 360px; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--blue-deep); padding: clamp(24px, 3vw, 40px); }
.value svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1rem; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* Coming soon */
.soon { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.soon img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .8s ease, filter .6s; }
.soon:hover img { transform: scale(1.06); filter: saturate(1); }
.soon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 35, 85, .9)); }
.soon figcaption { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1rem; z-index: 1; }
.soon figcaption strong { display: block; font-family: var(--f-display); font-size: 1.1rem; }
.soon figcaption span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); }
.ribbon {
  position: absolute; z-index: 2; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--navy); font-family: var(--f-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px;
}

/* ==========================================================================
   Company page
   ========================================================================== */
.company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .company { grid-template-columns: minmax(0, 1fr); } }
.company-logo {
  width: 160px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--white);
  border: 4px solid var(--gold); box-shadow: var(--shadow); margin-bottom: 1.6rem;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.info-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.6rem 0; }
.info-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; align-items: start; }
.info-list .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(201,163,78,.18); color: var(--gold-lt); display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lt); }
.activities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.activities li {
  display: flex; gap: .7rem; align-items: center; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); font-weight: 500; font-size: .93rem;
}
.activities li svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
@media (max-width: 560px) { .activities { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.licence-tag {
  display: inline-flex; gap: .5rem; align-items: center; margin-bottom: 1rem;
  border: 1px solid var(--gold); color: var(--gold-lt); border-radius: 999px; padding: .3rem .9rem;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin-block: clamp(56px, 8vw, 96px); border: 0; }

/* Accreditations */
.accred { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
@media (max-width: 760px) { .accred { grid-template-columns: minmax(0, 1fr); } }
.accred-card { background: var(--ivory); color: var(--ink); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 150px minmax(0, 1fr); box-shadow: var(--shadow); }
.accred-card .doc { background: #EFE6CF; padding: 14px; }
.accred-card .doc img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.accred-card .body { padding: 1.5rem; }
.accred-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: .3em; }
.accred-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; margin: 1rem 0 0; font-size: .88rem; }
.accred-card dt { color: var(--gold-dk); font-weight: 600; }
.accred-card dd { margin: 0; color: #3A4A66; }
@media (max-width: 460px) { .accred-card { grid-template-columns: minmax(0, 1fr); } .accred-card .doc { height: 200px; } }

/* ==========================================================================
   Products page
   ========================================================================== */
.subnav { position: sticky; top: 64px; z-index: 50; background: rgba(10, 63, 143, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: .6rem; padding-block: .75rem; overflow-x: auto; }
.subnav a {
  flex: none; text-decoration: none; padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.subnav a:hover, .subnav a.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.product-intro { position: relative; height: clamp(320px, 52vw, 560px); border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow); }
.product-intro img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.product-intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,35,85,.9), rgba(8,35,85,.1) 60%); }
.product-intro .caption { position: absolute; z-index: 1; left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); }
.product-intro .caption h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: .04em; margin: 0; }
.product-intro .caption p { color: var(--muted); max-width: 52ch; margin: .4rem 0 0; }

.product { background: var(--ivory); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product .media { aspect-ratio: 16 / 10; overflow: hidden; }
.product .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.product:hover .media img { transform: scale(1.05); }
.product .body { padding: clamp(1.4rem, 3vw, 2.2rem); flex: 1; }
.product h3 { color: var(--navy); font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: .04em; }
.product p { color: #3A4A66; }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold-dk); margin-bottom: .5rem; }
.table-scroll { overflow-x: auto; margin-top: 1.2rem; border-radius: 10px; border: 1px solid #E4D9BC; }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 380px; font-variant-numeric: tabular-nums; }
.spec th { text-align: left; background: var(--navy); color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: .75rem 1rem; }
.spec td { padding: .7rem 1rem; border-top: 1px solid #E9E0C8; color: #2A3A57; }
.spec tr:nth-child(even) td { background: #F5EEDB; }
.spec td:first-child { font-weight: 600; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.chips li { background: rgba(255,255,255,.1); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; }
.product .chips li { background: #F1E7CD; border-color: #E2D3AA; color: var(--navy); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } }
.check-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.check-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .8rem; }
.check-list svg { width: 22px; height: 22px; color: var(--gold); margin-top: .2rem; }
.check-list strong { color: var(--white); }
.check-list span { color: var(--muted); }
.size-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 1.4rem; }
.size-scale div { text-align: center; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem .5rem; }
.size-scale b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--gold-lt); font-variant-numeric: tabular-nums; }
.size-scale span { font-size: .78rem; color: var(--muted); }
.size-scale i { display: block; margin: 0 auto .7rem; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(160deg, #E5C38A, #A9773E); }
@media (max-width: 560px) { .size-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nutri { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.nutri div { background: var(--blue-ink); padding: 1.4rem 1.2rem; }
.nutri b { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-lt); font-variant-numeric: tabular-nums; line-height: 1.1; }
.nutri span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .nutri { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--ivory); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form h2 { color: var(--navy); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--navy); }
.field input, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #DCCFAE; border-radius: 10px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24,119,242,.15); }
.field .err { font-size: .78rem; color: #B42318; min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: #B42318; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: #E7F4EC; color: #14532D; font-size: .92rem; }
.contact-card { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.contact-card .info-list { margin: 0; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--gold-lt); }
.social { display: flex; gap: .8rem; margin-top: .4rem; }
.social a {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); transition: transform .25s, background .25s;
}
.social a:hover { transform: translateY(-4px) rotate(-6deg); background: var(--gold-lt); }
.social svg { width: 22px; height: 22px; }
.maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); }
@media (max-width: 760px) { .maps { grid-template-columns: minmax(0, 1fr); } }
.map { background: var(--ivory); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; background: #DDE6F3; }
.map .body { padding: 1.2rem 1.4rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.map h3 { color: var(--navy); font-size: 1rem; margin: 0; }
.map p { margin: 0; font-size: .88rem; color: #3A4A66; }
.map a { font-weight: 600; color: var(--blue); font-size: .88rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue-ink); border-top: 3px solid var(--gold); padding-block: clamp(56px, 8vw, 88px) 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h4 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 1rem; }
.site-footer p, .site-footer li { color: var(--muted); font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand svg { width: 44px; height: 44px; }
.footer-brand span { font-family: var(--f-display); font-weight: 800; letter-spacing: .08em; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(4,24,64,.35);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--navy); transform-origin: left; transform: scaleX(0); z-index: 120; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .stack-panel { position: relative; }
}

/* ---------- Real-photo additions ---------- */
.size-chart { margin: 0; background: var(--white); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow); }
.size-chart img { width: 100%; max-width: 900px; margin-inline: auto; }
.size-chart figcaption { text-align: center; color: #5A6A86; font-size: .82rem; margin-top: .6rem; }
.infographic { margin: 0; background: var(--white); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); border: 2px solid var(--gold); justify-self: center; max-width: 380px; width: 100%; }
.infographic img { width: 100%; height: auto; }
.nutri--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .nutri--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.study {
  margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px);
  background: var(--ivory); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
.study .eyebrow { color: var(--gold-dk); }
.study h3 { color: var(--navy); }
.study p { color: #3A4A66; font-size: .95rem; }
.study .ref { font-size: .78rem; color: #6A7892; margin: 0; }
.study-stats { display: grid; gap: 12px; align-content: center; }
.study-stats div { background: var(--navy); border-radius: 12px; padding: 1rem 1.2rem; }
.study-stats b { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--gold-lt); line-height: 1.1; font-variant-numeric: tabular-nums; }
.study-stats span { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .study { grid-template-columns: minmax(0, 1fr); } }
.tall-pair .frame { aspect-ratio: 9 / 16; }
.certs { margin-top: clamp(32px, 5vw, 56px); text-align: center; }
.certs > p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.certs ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 1.4rem; }
.certs li { border: 1.5px solid var(--gold); border-radius: 14px; padding: 1.2rem 1rem; background: rgba(255,255,255,.06); }
.certs b { display: block; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .08em; color: var(--gold-lt); }
.certs span { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .certs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.size-scale i { display: none; }

/* ---------- Walnut additions ---------- */
.frame--white { background: var(--white); display: grid; place-items: center; }
.frame--white img { object-fit: contain; padding: 8%; }
.orchard { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; display: flex; align-items: flex-end; }
.orchard > img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.orchard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,35,85,.88) 0%, rgba(8,35,85,.55) 55%, rgba(8,35,85,.1) 100%); }
.orchard-body { position: relative; z-index: 1; padding: clamp(1.4rem, 4vw, 2.6rem); max-width: 640px; }
.orchard-body p { color: var(--muted); margin: .8rem 0 0; }
.season { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.season li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; text-transform: lowercase; color: var(--muted); }
.season i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.22); }
.season li.on i { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,163,78,.25); }
.season li.on { color: var(--white); font-weight: 600; }
@media (max-width: 460px) { .season i { width: 14px; height: 14px; } .season li { font-size: .62rem; } }

/* ---------- Product categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 1100px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cats { grid-template-columns: minmax(0, 1fr); } }
.cat { display: flex; flex-direction: column; text-decoration: none; background: var(--ivory); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.cat:hover { transform: translateY(-6px); box-shadow: 0 26px 48px rgba(4,24,64,.4); }
.cat-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.cat:hover .cat-media img { transform: scale(1.07); }
.cat-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.2rem; flex: 1; border-top: 3px solid var(--gold); }
.cat-body strong { font-family: var(--f-display); font-size: 1.1rem; color: var(--navy); letter-spacing: .04em; text-transform: uppercase; }
.cat-body span { font-size: .84rem; color: #4A5A76; line-height: 1.5; }
.cat-body em { font-style: normal; margin-top: auto; padding-top: .5rem; font-size: .78rem; font-weight: 600; color: var(--gold-dk); letter-spacing: .06em; }

/* ---------- Dates ---------- */
.variety { background: var(--ivory); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s; }
.variety:hover { transform: translateY(-6px); }
.variety .media { aspect-ratio: 4 / 3; overflow: hidden; }
.variety .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.variety:hover .media img { transform: scale(1.06); }
.variety .body { padding: 1.3rem 1.4rem 1.5rem; }
.variety h3 { color: var(--navy); font-size: 1.3rem; letter-spacing: .03em; margin-bottom: .35em; }
.variety p { color: #3A4A66; font-size: .93rem; margin: 0; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: st; position: relative; }
.stages::before { content: ""; position: absolute; left: 12%; right: 12%; top: 22px; height: 2px; background: linear-gradient(90deg, #7BA05B, #E3C74A, #B9772F, #5B3418); }
.stages li { position: relative; text-align: center; padding: 0 .6rem; counter-increment: st; }
.stages li::before { content: counter(st); display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto .9rem; border-radius: 50%; font-family: var(--f-display); font-weight: 700; color: var(--white); position: relative; z-index: 1; border: 3px solid var(--blue-ink); }
.stages li:nth-child(1)::before { background: #6E9A4E; }
.stages li:nth-child(2)::before { background: #D9B83A; color: var(--navy); }
.stages li:nth-child(3)::before { background: #B9772F; }
.stages li:nth-child(4)::before { background: #5B3418; }
.stages b { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--gold-lt); }
.stages span { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; } .stages::before { display: none; } }
.gallery figure.tall { aspect-ratio: 3 / 4; }
.company-logo img { object-fit: contain; }
