/* Gyraffe — main stylesheet (hand-authored plain CSS)
   Brand green #73bd44; mobile-first; fluid clamp() headings.
   Edit this file directly. */

/* ===================== Design tokens ===================== */
:root {
  /* Brand colours */
  --green: #73bd44;
  --green-dark: #5da235;
  --green-rgb: 115, 189, 68;

  /* Accent (logo / footer icons) */
  --orange: #f68c1d;
  --orange-dark: #e07c10;

  /* Product card tints */
  --tint-coat: #d1e3c6;
  --tint-deco: #e0e0e0;
  --tint-spray: #f4d8d7;
  --tint-pop: #ffedcc;

  /* Surfaces */
  --surface-gray: #efefef;
  --surface-footer: #e9e9e9;

  --black: #111111;
  --ink: #1a1a1a;

  /* Typography */
  --font-display: 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Urbanist', system-ui, sans-serif;
  --font-mono: 'Geologica', monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 1.25rem;   /* 20px */
  --gutter-lg: 2rem;   /* 32px */

  /* Effects */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .05);
  --shadow-contact: 13px 15px 40px rgba(0, 0, 0, .12);
}

/* ===================== Fonts ===================== */
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('fonts/urbanist-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('fonts/urbanist-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('fonts/urbanist-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('fonts/urbanist-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geologica';
  src: url('fonts/geologica.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Anchor offset for the fixed header */
section[id], span#top { scroll-margin-top: 90px; }

/* Centered content column */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--gutter-lg); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 2.25rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  border: 1px solid transparent;
  background: transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}

.btn--sm { padding: .65rem 1.6rem; font-size: 1rem; }

/* Sliding fill-on-hover for outline buttons */
.btn--ghost,
.btn--dark {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn--ghost::after,
.btn--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn--ghost:hover::after,
.btn--dark:hover::after { transform: translateY(0); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}
.btn--ghost:hover { border-color: var(--green); }

.btn--dark {
  border-color: rgba(0, 0, 0, .5);
  color: var(--black);
}
.btn--dark:hover { color: #fff; border-color: var(--green); }

/* ---- Scroll reveal ---- */
/* Only hide for the entrance animation when JS is confirmed running (html.js).
   Without JS — or if anything fails — content stays fully visible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

.reveal[data-delay='1'] { transition-delay: .1s; }
.reveal[data-delay='2'] { transition-delay: .2s; }
.reveal[data-delay='3'] { transition-delay: .3s; }
.reveal[data-delay='4'] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== Header ===================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}

.header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img { height: 52px; width: auto; }

/* Hamburger-only header (matches Figma): the inline desktop nav is hidden at
   all widths; navigation is always via the hamburger menu. */
.header__nav {
  display: none !important;
  gap: 1.75rem;
}
.header__nav a {
  font-size: .95rem;
  color: #fff;
  transition: color .25s ease;
}
.header__nav a:hover { color: var(--green); }

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

/* Solid state once scrolled */
.header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  backdrop-filter: blur(8px);
}
.header.is-scrolled .header__nav a,
.header.is-scrolled .lang-pill { color: var(--black); }
.header.is-scrolled .lang-pill { border-color: rgba(0, 0, 0, .5); }
.header.is-scrolled .hamburger span { background: var(--black); }

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  background: transparent;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}

/* Language switcher dropdown */
.lang { position: relative; }
.lang-pill[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-pill svg { transition: transform .25s ease; }
.lang-menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
  z-index: 1100;
}
.lang-menu[hidden] { display: none; }
.lang-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .62rem .85rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-menu li button:hover { background: rgba(120, 168, 65, .1); color: var(--green); }

/* Keep the Google Translate widget functional but out of sight, and suppress its banner. */
#google_translate_element { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.goog-te-banner-frame.skiptranslate, .goog-tooltip, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; line-height: 0; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: transparent;
  border: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Homepage acts as the primary dashboard — hide the hamburger there only.
   Inner pages keep the menu. (Footer nav still provides links everywhere.) */
.home .hamburger { display: none; }

/* ---- Side-drawer navigation ---- */
/* NB: the header carries backdrop-filter, which makes it the containing block
   for these fixed children — so we size with dvh + top/bottom:auto instead of
   inset:0, which would otherwise collapse to the 80px header height. */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: 100vh;
  height: 100dvh;
  z-index: 90;
  background: rgba(2, 22, 13, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
  overflow-y: auto;
  overflow-x: hidden;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.75rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.nav-drawer__logo img {
  height: 42px;
  width: auto;
  display: block;
}
.nav-drawer__close {
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-drawer__close:hover { background: var(--green); border-color: var(--green); transform: rotate(90deg); }
.nav-drawer__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.6px;
  background: var(--black);
  transition: background .25s ease;
}
.nav-drawer__close:hover span { background: #fff; }
.nav-drawer__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-drawer__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-drawer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  counter-reset: navitem;
}
.nav-drawer__nav .dmenu,
.nav-drawer__nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-drawer__nav .menu-item { position: relative; }

/* Top-level link (numbered) */
.nav-drawer__nav .dmenu > .menu-item > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.05rem 1.75rem;
  color: var(--black);
  font-family: 'Instrument Sans', 'Calibri', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  transition: color .25s ease, background .25s ease, padding-left .25s ease;
}
.nav-drawer__nav .dmenu > .menu-item > a::before {
  counter-increment: navitem;
  content: counter(navitem, decimal-leading-zero);
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .12em;
  min-width: 28px;
}
.nav-drawer__nav .dmenu > .menu-item > a:hover {
  color: var(--green);
  background: rgba(120, 168, 65, .06);
  padding-left: 2.1rem;
}
.nav-drawer__nav .dmenu > .menu-item > a:hover::before { color: #f68c1d; }

/* Expand/collapse chevron (injected by app.js for parents) */
.nav-drawer__toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 3.45rem;
  width: 64px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
}
.nav-drawer__toggle svg { width: 20px; height: 20px; transition: transform .3s var(--ease, ease); }
.menu-item-has-children.is-open > .nav-drawer__toggle svg { transform: rotate(180deg); }
.menu-item-has-children.is-open > .nav-drawer__toggle { color: var(--green); }

/* Collapsible sub-menu (max-height — robust for multiple <li> children) */
.nav-drawer__nav .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease, ease);
  background: rgba(0, 0, 0, .025);
}
.nav-drawer__nav .menu-item-has-children.is-open > .sub-menu { max-height: 640px !important; }
.nav-drawer__nav .sub-menu > li { list-style: none; }
.nav-drawer__nav .sub-menu a {
  display: block;
  padding: .72rem 1.75rem .72rem 3.6rem;
  color: rgba(0, 0, 0, .72);
  font-family: 'Instrument Sans', 'Calibri', sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.nav-drawer__nav .sub-menu a:hover { color: var(--green); background: rgba(120, 168, 65, .06); padding-left: 3.9rem; }

.nav-drawer__foot {
  padding: 1.5rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #fafafa;
}
.nav-drawer__meta {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin: 0 0 .35rem;
  font-size: .95rem;
  color: var(--black);
}
.nav-drawer__meta span {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green);
  min-width: 42px;
}
.nav-drawer__meta a { color: inherit; transition: color .2s ease; }
.nav-drawer__meta a:hover { color: var(--green); }
.nav-drawer__address {
  margin: .75rem 0 0;
  font-size: .85rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, .6);
}

body.nav-open { overflow: hidden; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  overflow: hidden;
  background: var(--black);
}
@media (min-width: 768px) {
  .hero { min-height: 100vh; }
}

.hero__video,
.hero__backdrop,
.hero__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video { object-fit: cover; z-index: 1; }

/* Fallback ambient backdrop (dark luxury interior tone) — sits BELOW the video so
   the video shows when present, and is the visible background when it is absent. */
.hero__backdrop {
  z-index: 0;
  background: radial-gradient(120% 120% at 70% 30%, #3a3a38 0%, #1c1c1b 45%, #0a0a0a 100%);
}

/* Left → right darkening from the design — scrim ABOVE the video for text legibility */
.hero__gradient {
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,0) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .hero__content { padding-bottom: 7rem; }
}
.hero__content h1 {
  font-size: clamp(2.5rem, 1rem + 7vw, 5.625rem);
  font-weight: 700;
  color: #fff;
  max-width: 16ch;
}
.hero__content .btn { margin-top: 2rem; }

/* ===================== About Gyraffe ===================== */
.about {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.about__watermark {
  position: absolute;
  left: -10rem;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  max-width: none;
  opacity: .12;
  pointer-events: none;
  user-select: none;
}

.about__inner {
  position: relative;
  padding-block: 5rem;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about__inner {
    grid-template-columns: 0.8fr 1.4fr;
    gap: 4rem;
    padding-block: 7rem;
  }
}

.about h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.0625rem);
  font-weight: 500;
}

.about__body p {
  font-size: clamp(1.05rem, .9rem + .5vw, 1.375rem);
  line-height: 1.6;
  color: rgba(0, 0, 0, .85);
}

.about__body .btn { margin-top: 2.25rem; }

/* ===================== About Horizon ===================== */
.horizon {
  background: var(--surface-gray);
}

.horizon__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 5rem;
}
@media (min-width: 1024px) {
  .horizon__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-block: 7rem;
  }
}

.horizon__intro {
  display: flex;
  gap: 1.5rem;
}
.horizon__intro h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.0625rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.horizon__intro p {
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(0, 0, 0, .8);
}
.horizon__intro .btn { margin-top: 2rem; }

.horizon__rule {
  display: none;
  width: 2px;
  background: var(--green);
  align-self: stretch;
}
@media (min-width: 768px) {
  .horizon__rule { display: block; }
}

.vmv {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vmv__card {
  position: relative;
  background: #fff;
  border-left: 6px solid var(--green);
  padding: 1.75rem 6rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease), box-shadow .45s ease;
}
.vmv__card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.1); }

.vmv__card img {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.vmv__card h3 {
  font-size: clamp(1.5rem, 1.2rem + .6vw, 1.875rem);
  font-weight: 600;
  margin-bottom: .5rem;
}

.vmv__card p {
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.5;
  color: rgba(0, 0, 0, .75);
}

/* ===================== Our products ===================== */
.products {
  background: #fff;
}

.products .container { padding-block: 5rem; }
@media (min-width: 1024px) {
  .products .container { padding-block: 7rem; }
}

/* Header row: title left, carousel arrows right */
.products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.products__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.0625rem);
  font-weight: 500;
}

.products__nav { display: flex; gap: .75rem; flex: none; }

.products__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #e5e5e5;
  color: var(--black);
  transition: background .25s ease, color .25s ease, opacity .25s ease, filter .25s ease;
}
.products__arrow--next { background: var(--green); color: #fff; }
.products__arrow:hover { filter: brightness(.95); }
.products__arrow:disabled { opacity: .35; cursor: default; filter: none; }
.products__arrow svg { width: 20px; height: 20px; }

/* Carousel track */
.products__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge */
  padding-bottom: .5rem;
}
.products__track::-webkit-scrollbar { display: none; }

.product {
  position: relative;
  flex: 0 0 80%;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .product { flex-basis: 44%; }
}
@media (min-width: 1024px) {
  .product { flex-basis: 25%; }
}

/* Home "Our Products": a responsive grid that wraps cleanly for the full
   product range (7 products). The 3-up carousel override that used to live here
   was sized for the original 3 products and left a ragged last row. */
.home .products__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  overflow: visible;
}
@media (min-width: 560px)  { .home .products__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .home .products__track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .home .products__track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home .products__track .product { flex: none; width: auto; }
.home .products__nav { display: none; }

.product--coat  { background: var(--tint-coat); }
.product--deco  { background: var(--tint-deco); }
.product--spray { background: var(--tint-spray); }
.product--pop   { background: var(--tint-pop); }

.product__img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.product__img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .22));
  transition: transform .7s var(--ease);
}
.product:hover .product__img img { transform: scale(1.06); }

.product > h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0 1rem 1.75rem;
}

/* Featured "Decoration" card — frosted bar that slides up on hover */
.product__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  text-align: center;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.product:hover .product__overlay,
.product:focus-within .product__overlay {
  transform: translateY(0);
  opacity: 1;
}
.product__overlay h3 { color: #fff; font-size: 1.375rem; font-weight: 700; margin-bottom: .75rem; }
.product__overlay .btn { background: var(--black); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ===================== Updates + Sustainability ===================== */
.updates {
  background: #fff;
}

.updates .container { padding-block: .75rem; }
.updates .container:first-child { padding-top: 5rem; }
.updates .container:last-child  { padding-bottom: 5rem; }
@media (min-width: 1024px) {
  .updates .container:last-child { padding-bottom: 7rem; }
}

.updates__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .updates__row { grid-template-columns: 1fr 1fr; }
}

.media-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .media-card { height: 420px; }
}

.media-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.media-card:hover > img { transform: scale(1.06); }

.media-card__bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.5rem 1.75rem;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px);
}
.media-card__bar h3 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
}
.media-card__bar .btn { flex: none; }

/* ---- Sustainability banner ---- */
.sustain {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .45s var(--ease);
}
.sustain:hover { transform: translateY(-4px); }

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

.sustain__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--green-rgb), .88) 0%, rgba(var(--green-rgb), .55) 55%, rgba(0,0,0,.25) 100%);
}

.sustain__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 2rem;
  color: #fff;
}
@media (min-width: 1024px) {
  .sustain__content {
    flex-direction: row;
    align-items: center;
    padding: 4rem 3.5rem;
  }
}
.sustain__content h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.0625rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.sustain__content p {
  font-size: clamp(1.1rem, .95rem + .6vw, 1.5rem);
  line-height: 1.5;
  max-width: 60ch;
}
.sustain__content > div { flex: 1; }
.sustain__content .btn {
  flex: none;
  background: var(--black);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  padding: 1rem 2.5rem;
}

/* ===================== FAQ + Contact ===================== */
.faq-contact {
  background: #fff;
}

.faq-contact__inner {
  display: grid;
  gap: 3rem;
  align-items: start;
  padding-bottom: 7rem;
}
@media (min-width: 1024px) {
  .faq-contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 10rem;
  }
}

/* ---- FAQ accordion ---- */
.faq > h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.0625rem);
  font-weight: 500;
  margin-bottom: 2rem;
}

.faq__item {
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 6px;
  margin-bottom: .75rem;
  transition: background .3s ease, border-color .3s ease;
}
.faq__item.is-open {
  background: var(--green);
  border-color: transparent;
}
.faq__item.is-open .faq__head span:first-child { color: #fff; }
.faq__item.is-open .faq__toggle { background: #fff; color: var(--green); }
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__item.is-open .faq__body p { color: #fff; }

.faq__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 0;
}
.faq__head span:first-child { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); }

.faq__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1;
}

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq__body > p {
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.faq__item.is-open .faq__body > p { padding-bottom: 1.25rem; }

/* ---- Contact card ---- */
.contact {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-contact);
  padding: 2rem;
}
@media (min-width: 768px) {
  .contact { padding: 3rem; }
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 2.25rem;
}
.contact__title span { font-weight: 600; color: var(--green); }

.contact__form { display: flex; flex-direction: column; gap: 1.75rem; }

.contact__actions { display: flex; justify-content: flex-end; padding-top: .5rem; }

.field {
  position: relative;
}
.field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  background: transparent;
  padding: 1.25rem 0 .5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  outline: none;
  transition: border-color .25s ease;
}
.field input:focus { border-color: var(--green); }

.field label {
  position: absolute;
  left: 0;
  top: 1.25rem;
  color: rgba(0, 0, 0, .6);
  font-size: 1.125rem;
  pointer-events: none;
  transition: top .2s ease, font-size .2s ease, color .2s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 0;
  font-size: .8rem;
  color: var(--green);
}

/* ===================== Footer ===================== */
.footer {
  position: relative;
  background: var(--surface-footer);
  overflow: hidden;
  padding-top: 3rem;
}
@media (min-width: 768px) {
  .footer { padding-top: 4rem; }
}

/* Faded gypsum-bag watermark, anchored to the left. */
.footer__watermark {
  position: absolute;
  left: -3%;
  top: 0;
  width: 40%;
  min-width: 320px;
  max-width: 540px;
  opacity: .08;
  pointer-events: none;
  user-select: none;
}

.footer__inner {
  position: relative;
  text-align: center;
}

/* Centred stacked logo at the top. */
.footer__logo {
  position: static;
  display: block;
  width: 150px;
  margin: 0 auto 1.5rem;
  line-height: 0;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .12));
}
@media (min-width: 768px) {
  .footer__logo { width: 190px; }
}
.footer__logo img { display: block; width: 100%; height: auto; }

.footer__tagline {
  max-width: 70ch;
  margin: 0 auto 1.8rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(0, 0, 0, .72);
}

/* Centred social row. */
.footer__social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  gap: .7rem;
}
.footer__social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  transition: transform .25s ease, filter .25s ease;
}
.footer__social-link[aria-label="Facebook"]  { background: #1877f2; }
.footer__social-link[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.footer__social-link[aria-label="YouTube"]    { background: #ff0000; }
.footer__social-link[aria-label="LinkedIn"]   { background: #0a66c2; }
.footer__social-link:hover { transform: translateY(-2px); filter: brightness(1.07); }
.footer__social-link svg { width: 19px; height: 19px; }

.footer hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .1); margin: 0; }

/* Flat horizontal nav — one centred row of top-level links. */
.footer__nav { padding: 1.75rem 0; }
.footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .85rem 2.5rem;
}
.footer__menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--black);
  transition: color .25s ease;
}
.footer__menu a:hover,
.footer__menu a:focus-visible { color: var(--green-dark); }

/* Contact strip — three up with solid orange circle icons. */
.footer__contact {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.5rem 0;
}
@media (min-width: 768px) {
  .footer__contact { grid-template-columns: repeat(3, 1fr); }
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem .5rem;
  text-align: left;
}
.footer__contact-item:not(:last-child) { border-bottom: 1px solid rgba(0, 0, 0, .1); }
@media (min-width: 768px) {
  .footer__contact-item { padding: .5rem 1.75rem; }
  .footer__contact-item:not(:first-child) { border-left: 1px solid rgba(0, 0, 0, .1); }
  .footer__contact-item:not(:last-child) { border-bottom: 0; }
}
.footer__contact-item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 1.4;
  color: rgba(0, 0, 0, .78);
}
.footer__contact-item a { color: inherit; transition: color .25s ease; }
.footer__contact-item a:hover { color: var(--green-dark); }

.icon-circle {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}
.icon-circle svg { width: 24px; height: 24px; }

/* Legal bar. */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: .9rem;
  color: rgba(0, 0, 0, .6);
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: inherit; transition: color .25s ease; }
.footer__bottom a:hover,
.footer__bottom a:focus-visible { color: var(--green-dark); }
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Focus visibility. */
.footer a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .footer__social-link { transition: none; }
  .footer__social-link:hover { transform: none; }
}

/* ---- Back to top ---- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ===================== Accessibility (B8) ===================== */
/* Visually-hidden utility (WordPress convention). */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
/* Skip-to-content link: off-screen until focused, then slides in top-left. */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 2000;
  background: var(--green, #78a841);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: -6px; }
.site-main:focus { outline: none; }

/* ===================== Why Choose Gyraffe? (USP band) ===================== */
/* Replaces the former "About Horizon" band on the homepage (approved MOM). */
.why {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.why__head { max-width: 46rem; margin: 0 auto clamp(2.25rem, 4vw, 3.5rem); text-align: center; }
.why__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9rem;
}
.why__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  color: #fff;
}
.why__lede { font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .74); margin: 0; }

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 640px)  { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.usp {
  background: var(--black);
  padding: clamp(1.6rem, 2.4vw, 2.35rem);
  transition: background .3s var(--ease);
}
.usp:hover { background: #191919; }
.usp__stat {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1;
  color: var(--green);
  margin-bottom: .85rem;
}
.usp__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 .6rem;
}
.usp__text { font-size: .96rem; line-height: 1.6; color: rgba(255, 255, 255, .66); margin: 0; }

/* ---- Homepage hero: shorter so the products band sits above the fold ---- */
.home .hero { min-height: 100vh; min-height: 100svh; }
@media (min-width: 768px) { .home .hero { min-height: 100vh; min-height: 100svh; } }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
  z-index: 4;
}
.hero__scroll span {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: gyr-scroll 1.8s var(--ease) infinite;
}
@keyframes gyr-scroll {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(13px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
  .usp { transition: none; }
}

/* ===================== 404 ===================== */
.e404 { background: var(--surface-gray); }
.e404__inner {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  padding: clamp(6rem, 12vw, 9rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
}
.e404__code {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 3rem + 9vw, 9rem);
  line-height: 1;
  color: var(--green);
  margin-bottom: .5rem;
}
.e404__title {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 .9rem;
}
.e404__text { font-size: 1.05rem; line-height: 1.6; color: rgba(0, 0, 0, .7); margin: 0 0 2rem; }
.e404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.e404__links-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .5);
  margin-bottom: .9rem;
}
.e404__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.75rem;
}
.e404__links a { color: rgba(0, 0, 0, .72); transition: color .25s ease; }
.e404__links a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__menu-label { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: rgba(0, 0, 0, .55); }

/* Product card with no pack shot yet — a neutral branded tile rather than a
   blank hole (never substitute another product's image). */
.product__img:empty::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(0,0,0,.06) 0 38%, transparent 39%),
    var(--surface-gray);
  border-radius: 10px;
}

/* GTranslate provides the translation engine; our header EN/AR pill is the UI,
   so its own floating switcher is hidden (kept in the DOM — we click it). */
.gt_float_switcher,
.gtranslate_wrapper .gt_float_switcher {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* enquiry form status line (FAQ + contact band) */
.contact__status { margin: .6rem 0 0; font-size: .92rem; min-height: 1.2em; }
.contact__status.is-ok  { color: var(--green-dark); }
.contact__status.is-err { color: #c0392b; }

/* ============ Product cards — refinement pass ============ */

/* 4 cards + 3 gaps must fit exactly, or the last one gets clipped */
@media (min-width: 1024px) {
  .product { flex-basis: calc((100% - 4.5rem) / 4); }
}

.product {
  display: flex;
  flex-direction: column;
  padding: .85rem .85rem 1.15rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .10); }

/* Uniform white plate so pack shots and photographs read consistently */
.product__img {
  background: #fff;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: .9rem;
  overflow: hidden;
  margin-bottom: .95rem;
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s var(--ease);
}
.product:hover .product__img img { transform: scale(1.04); }

/* Titles sit on a common baseline whether they run to one line or two */
.product > h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.8em;
  margin: 0;
  padding: 0 .35rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
}

/* ============ Hero full-viewport + larger logo ============ */

/* Full-screen banner — svh keeps it exact on mobile where browser chrome
   collapses on scroll. The homepage rule above carries the same values. */
.hero { min-height: 100vh; min-height: 100svh; }

/* Larger brand mark, with the header bar grown so it still sits comfortably */
.header__inner { height: 116px; }
.header__logo img { height: 90px; }
@media (max-width: 767px) {
  .header__inner { height: 88px; }
  .header__logo img { height: 64px; }
}
/* Slightly tighter once scrolled so the sticky bar stays unobtrusive */
.header.is-scrolled .header__inner { height: 92px; }
.header.is-scrolled .header__logo img { height: 70px; }
.header__inner, .header__logo img { transition: height .28s var(--ease); }

/* Anchor offset must track the taller header */
section[id], span#top { scroll-margin-top: 126px; }
