:root {
  /* Core palette */
  --ink: #04140a;
  --ink-2: #14241a;
  --muted: #4e6157;
  --line: #c8d9c8;
  --paper: #ffffff;
  --soft: #f2f7ef;
  --panel: rgba(255, 255, 255, 0.85);

  /* Brand greens — richer, deeper */
  --green: #0a572a;
  --green-2: #138241;
  --green-3: #1eb357;
  --green-light: rgba(10, 87, 42, 0.08);
  --deep: #031409;

  /* Gold accent — more saturated */
  --gold: #c98804;
  --gold-2: #f2a818;
  --gold-light: rgba(201, 136, 4, 0.12);

  /* Gradients */
  --grad-green: linear-gradient(135deg, #0a572a 0%, #138241 60%, #1eb357 100%);
  --grad-dark: linear-gradient(135deg, #031409 0%, #092e16 60%, #0f4a25 100%);
  --grad-gold: linear-gradient(135deg, #c98804 0%, #f2a818 100%);
  --grad-bg: linear-gradient(180deg, #ffffff 0%, #f2f7ef 100%);

  /* Shadows */
  --shadow: 0 28px 56px -12px rgba(3, 20, 9, 0.22);
  --shadow-soft: 0 16px 36px -8px rgba(3, 20, 9, 0.10);
  --shadow-glow: 0 0 32px rgba(19, 130, 65, 0.35);
  --shadow-gold: 0 10px 26px -4px rgba(201, 136, 4, 0.3);

  /* Layout */
  --content: 1180px;

  /* Easing */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-out: cubic-bezier(0.21, 1.02, 0.73, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--grad-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 800;
}


img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(207, 222, 207, 0.4);
  box-shadow: 0 2px 20px rgba(6, 26, 15, 0.04);
  transition: height 0.35s var(--ease-smooth), background 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.site-header.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 32px rgba(6, 26, 15, 0.09);
  border-bottom-color: var(--line);
}

/* ── BRAND ──────────────────────────────────────────── */
.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 58px;
  height: 46px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover .brand-logo { transform: scale(1.06); }

.brand strong, .brand small { display: block; }
.brand strong {
  font-size: 1rem;
  line-height: 1.15;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ink-2);
}
.brand small {
  color: var(--muted);
  font-size: .72rem;
  margin-top: 2px;
  font-weight: 500;
}

/* ── NAV LINKS ──────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-width: 74px;
  border-radius: 8px;
  color: #4a5c52;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

.site-nav a:hover {
  color: var(--green);
  background: var(--green-light);
}

.site-nav a.active {
  color: var(--green);
  background: var(--green-light);
  font-weight: 700;
}

/* Active underline indicator */
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* ── NAV CTA BUTTON ─────────────────────────────────── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--grad-gold);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  box-shadow: var(--shadow-gold);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease !important;
  position: relative;
  overflow: hidden;
}

.nav-cta::before { display: none !important; }
.nav-cta::after  { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 28px -4px rgba(212, 146, 10, 0.45) !important;
  color: #fff !important;
  background: var(--grad-gold) !important;
}

.nav-cta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── HAMBURGER TOGGLE ───────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  z-index: 110;
}

.nav-toggle:hover {
  border-color: var(--green);
  background: var(--soft);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease, background 0.2s ease;
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle[aria-expanded="true"] {
  border-color: var(--green);
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media, .hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

/* Multi-layer overlay for depth */
.hero-overlay {
  background:
    linear-gradient(105deg, rgba(6, 26, 15, .93) 0%, rgba(10, 38, 22, .72) 45%, rgba(10, 38, 22, .22) 100%),
    linear-gradient(0deg, rgba(6, 26, 15, .55) 0%, transparent 50%),
    linear-gradient(180deg, rgba(6, 26, 15, .15) 0%, transparent 30%);
}

/* Subtle grain texture overlay */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 90vw);
  margin-left: 5vw;
  color: #fff;
  padding-bottom: 8vh;
  text-align: left;
}

/* Staggered word-by-word entrance */
.hero-content .eyebrow {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.1s both;
}

.hero .eyebrow {
  color: #fff;
}

.hero-content h1 {
  animation: fadeSlideUp 0.8s var(--ease-out) 0.25s both;
}
.hero-content .hero-copy {
  animation: fadeSlideUp 0.8s var(--ease-out) 0.42s both;
}
.hero-content .hero-actions {
  animation: fadeSlideUp 0.8s var(--ease-out) 0.58s both;
}
.hero-content .hero-stats {
  animation: fadeSlideUp 0.8s var(--ease-out) 0.72s both;
}

.eyebrow {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  font-size: .75rem;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
}

.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.6rem, 5.6vw, 5.8rem);
  line-height: .93;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
}

.hero h1 {
  color: var(--gold-2);
}

/* Gold highlight on key word */
.hero h1 .highlight {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-copy, .page-hero p {
  max-width: 620px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 32px;
}

/* Stats bar below CTA buttons */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat strong {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-stat strong span {
  color: var(--gold-2);
}

.hero-stat small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions, .cta-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.55s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn.primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 10px 24px -5px rgba(15, 107, 53, 0.45);
}

.btn.light {
  background: rgba(255, 255, 255, 0.96);
  color: var(--deep);
  box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.4);
}

.btn.gold {
  background: var(--grad-gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.btn.primary:hover {
  box-shadow: 0 18px 36px -5px rgba(10, 87, 42, 0.55), 0 0 20px rgba(30, 179, 87, 0.4);
}

.btn.light:hover {
  background: #ffffff;
  box-shadow: 0 18px 36px -5px rgba(0, 0, 0, 0.18);
}

.btn.gold:hover {
  box-shadow: 0 18px 36px -5px rgba(212, 146, 10, 0.45);
}

/* ── TRUST BAND ─────────────────────────────────────── */
.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-card {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s ease;
}

.trust-card:last-child { border-right: none; }
.trust-card:hover { background: var(--soft); }

.trust-card strong {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.trust-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
}


/* ── SECTIONS ───────────────────────────────────────── */
.section {
  padding: 96px 5vw;
  scroll-margin-top: 150px;
  position: relative;
}

.section > .section-heading,
.section > .category-grid,
.section > .pill-grid,
.section > .cert-grid,
.section > .contact-grid,
.section > .enquiry-layout {
  width: min(var(--content), 100%);
  margin-left: auto;
  margin-right: auto;
}

.muted > .section-heading,
.muted > .category-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ── SPLIT / HOME INTRO ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  width: min(var(--content), 100%);
  margin-left: auto;
  margin-right: auto;
}

.section.split.about-profile {
  display: block !important;
  padding-top: 72px;
  padding-bottom: 88px;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.about-profile__heading {
  max-width: 100%;
  margin-bottom: 18px;
}

.about-profile__heading h2 {
  font-size: clamp(2.75rem, 4.55vw, 4.8rem);
  line-height: 0.96;
  max-width: 1180px;
  color: var(--gold-2);
}

.about-profile__text {
  max-width: 100%;
}

.home-intro {
  display: block;
  align-items: unset;
  gap: 0;
  padding-top: 86px;
  padding-bottom: 84px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-intro .intro-heading {
  max-width: 100%;
  margin-bottom: 28px;
}

.home-intro .intro-heading .eyebrow {
  color: #000;
}

.home-intro h2 {
  font-size: clamp(3.1rem, 5vw, 5.15rem);
  line-height: .96;
  max-width: 1040px;
  color: var(--gold-2);
}

.home-intro .rich-text {
  max-width: 100%;
  padding-left: 0;
  border-left: 0;
  position: static;
}

.home-intro .rich-text::before {
  display: none;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 { margin: 0; line-height: 1.25; text-wrap: balance; }

.rich-text p {
  margin-top: 0;
  color: #24332a;
  font-size: 1.22rem;
  max-width: 1240px;
  text-wrap: pretty;
  line-height: 1.62;
  font-weight: 700;
}

.about-profile .rich-text p + p {
  margin-top: 34px;
}

.about-profile .rich-text p {
  max-width: 1240px;
}

.about-profile .rich-text {
  padding-left: 0;
  border-left: 0;
  position: static;
}

.about-profile .eyebrow {
  color: #000;
}

.about-profile .rich-text::before {
  display: none;
}

.home-intro .rich-text p {
  font-size: 1.03rem;
  line-height: 1.56;
  max-width: 1200px;
}

.home-intro .capability-list {
  display: none;
}

/* ── CAPABILITY LIST ────────────────────────────────── */
.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.capability-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(15, 107, 53, 0.2);
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: .88rem;
  transition: all 0.25s var(--ease-spring);
}

.capability-list span::before {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green-2);
}

.capability-list span:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-2px);
}

.capability-list span:hover::before { color: #fff; }

/* ── MUTED SECTION — with dot texture ──────────────── */
.muted {
  background: #f4f8ef;
  position: relative;
}

.muted::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15, 107, 53, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ── SECTION HEADING ────────────────────────────────── */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  row-gap: 8px;
  margin-bottom: 40px;
}

.section-heading h2 {
  grid-column: 1;
  max-width: 760px;
}

.section-heading .eyebrow {
  grid-column: 1;
  margin-bottom: 0;
}

.section-heading .text-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.muted .section-heading {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 40px;
  align-items: start;
}

.muted .section-heading .eyebrow {
  color: #000;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.muted .section-heading h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 0.97;
  max-width: 790px;
  color: var(--gold-2);
}

.registrations {
  background: #fff;
  position: relative;
}

.registrations .section-heading,
.registrations .cert-grid--catalogue {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 1;
}

.registrations .section-heading {
  display: block;
  text-align: left;
  margin-bottom: 34px;
}

.registrations .section-heading .eyebrow {
  color: #000;
  margin-bottom: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.registrations .section-heading h2 {
  font-size: clamp(2.75rem, 4.55vw, 4.8rem);
  line-height: 0.96;
  max-width: 1180px;
  color: var(--gold-2);
}

.registrations .cert-item h3 {
  color: var(--ink);
}

.registrations .cert-item p {
  color: #24332a;
}

.text-link {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  font-size: 0.98rem;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .25s ease;
}

.text-link:hover::after { transform: scaleX(1); }

/* ── CATEGORY GRID ──────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
}

.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease-spring);
  text-decoration: none;
}

.category-tile img {
  width: 100%;
  height: 235px;
  object-fit: contain;
  object-position: center center;
  padding: 22px 24px;
  background: linear-gradient(180deg, #fff 0%, var(--panel) 100%);
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.4s var(--ease-spring);
}

/* Category badge — top-right corner */
.category-tile .cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 26, 15, 0.1);
  transition: all 0.35s var(--ease-spring);
}

.category-tile .cat-badge svg {
  width: 17px;
  height: 17px;
  stroke: var(--green);
  transition: stroke 0.25s ease;
}

.category-tile .cat-overlay {
  position: absolute;
  inset: 0;
  bottom: 70px;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 26, 15, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
}

.category-tile .cat-overlay span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease-out) 0.05s;
  border: none;
  padding: 0;
  min-height: unset;
  background: none;
}

.category-tile .cat-overlay span::after { content: '→'; font-size: 1rem; }

.category-tile > span {
  display: block;
  min-height: 74px;
  padding: 18px 16px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border-top: 1px solid var(--line);
  align-content: center;
  margin-top: auto;
  transition: color 0.25s ease, background 0.25s ease;
  background: #fff;
}

.category-tile:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--green);
  box-shadow: var(--shadow), 0 0 32px var(--green-light), 0 0 0 1px var(--green);
}
.category-tile:hover img { transform: scale(1.06); }
.category-tile:hover .cat-badge { background: var(--green); transform: scale(1.1); }
.category-tile:hover .cat-badge svg { stroke: #fff; }
.category-tile:hover .cat-overlay { opacity: 1; }
.category-tile:hover .cat-overlay span { opacity: 1; transform: translateY(0); }
.category-tile:hover > span { color: var(--green); background: var(--soft); }

/* ── DEPARTMENTS — with subtle grid texture ─────────── */
.departments {
  background: #f4f8ef;
  position: relative;
}

.departments::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15, 107, 53, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.departments .section-heading,
.departments .pill-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 1;
}

.departments .section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 44px;
}
.departments .section-heading .eyebrow {
  color: #000;
  margin-bottom: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.departments .section-heading h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 0.97;
  max-width: 790px;
  color: var(--gold-2);
}

/* ── PILL / TIMELINE GRID ───────────────────────────── */
.pill-grid, .timeline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.pill-grid span, .timeline-grid span {
  padding: 10px 18px;
  background: var(--soft);
  border: 1px solid rgba(15, 107, 53, 0.15);
  border-radius: 100px;
  color: #2a3830;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s var(--ease-spring);
  position: relative;
  z-index: 1;
}

.pill-grid span:hover, .timeline-grid span:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 107, 53, 0.25);
}

/* ── CTA STRIP — richer with noise texture ──────────── */
.cta-strip {
  justify-content: space-between;
  padding: 72px 5vw;
  background: var(--grad-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Diagonal gold accent */
.cta-strip::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 146, 10, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Bottom left glow */
.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 5vw;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 107, 53, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { max-width: 820px; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--deep);
  color: #c8d8c8;
  padding: 0 0 0;
  position: relative;
  overflow: hidden;
}

/* Top gradient accent bar */
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--grad-green);
}

/* Subtle background pattern */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(15, 107, 53, 0.07) 0%, transparent 55%),
                    radial-gradient(circle at 10% 80%, rgba(212, 146, 10, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px 5vw 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
  align-items: start;
}

/* Brand column */
.footer-brand .footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo-row img {
  width: 48px;
  height: 38px;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-brand .footer-logo-row strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin: 0;
}

.footer-brand .footer-logo-row small {
  color: #fff;
  font-size: 0.72rem;
  display: block;
  margin-top: 2px;
}

.footer-brand p {
  color: #fff;
  max-width: 300px;
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0 0 20px;
}

/* Social icons row */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-spring);
  color: #8aaa8a;
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.footer-socials a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

/* Column headings */
.footer-col-title {
  display: block;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

/* Nav links */
.footer-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease, gap 0.2s ease;
}

.footer-links a::before {
  content: '›';
  color: var(--green-2);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  gap: 10px;
}

.footer-links a:hover::before {
  transform: translateX(2px);
}

/* Contact column */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--green-2);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a,
.footer-contact-item p {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover { color: #fff; }

/* WhatsApp CTA in footer */
.footer-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #25d366;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s var(--ease-spring);
}

.footer-wa-cta svg {
  width: 16px;
  height: 16px;
  fill: #25d366;
  flex-shrink: 0;
}

.footer-wa-cta:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  transform: translateY(-2px);
}

.footer-wa-cta:hover svg { fill: #fff; }

/* Certifications row */
.footer-certs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-cert-badge {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.footer-cert-badge:hover {
  border-color: rgba(15, 107, 53, 0.4);
  color: var(--green-3);
  background: rgba(15, 107, 53, 0.08);
}

/* Bottom bar */
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 5vw;
  width: 100%;
  max-width: none;
  margin: 0;
}

.footer-bottom p {
  color: #4a6a4a;
  font-size: 0.82rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #4a6a4a;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover { color: #8aaa8a; }

/* Responsive */
@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .footer-inner { padding: 48px 20px 0; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 8px;
  }
}

.page-hero {
  min-height: 460px;
  display: flex;
  align-items: end;
  padding: 100px 5vw 64px;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 26, 15, .92) 0%, rgba(10, 38, 22, .62) 55%, rgba(10, 38, 22, .22) 100%),
    linear-gradient(0deg, rgba(6, 26, 15, .4), transparent 55%);
}

/* Grain on page heroes too */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 920px;
  animation: fadeSlideUp .75s var(--ease-out) 0.1s both;
}

.catalog-hero {
  background-image: url("assets/site/product-hero.png");
  background-position: center center;
  aspect-ratio: 2115 / 743;
  min-height: 400px;
  align-items: center;
  padding: clamp(52px, 4.8vw, 72px) 5vw;
}

.catalog-hero::before {
  background:
    linear-gradient(90deg, rgba(6, 26, 15, .86) 0%, rgba(10, 38, 22, .72) 34%, rgba(10, 38, 22, .28) 64%, rgba(10, 38, 22, .10) 100%),
    linear-gradient(0deg, rgba(6, 26, 15, .34), transparent 58%);
}

.catalog-hero > div {
  max-width: min(54vw, 640px);
}

.catalog-hero h1 {
  color: var(--gold-2);
  max-width: 11ch;
  font-size: clamp(2.45rem, 4.05vw, 4.55rem);
  line-height: 0.95;
}

.catalog-hero p {
  max-width: 36rem;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.catalog-hero .eyebrow {
  color: #fff;
  font-size: 0.72rem;
  margin-bottom: 14px;
}

.about-hero { background-image: url("assets/site/hero-police.jpg"); }
.about-hero .eyebrow {
  color: #fff;
}

.about-hero h1 {
  color: var(--gold-2);
}

.enquiry-hero {
  background-image: url("assets/site/enquiry-hero.png");
  background-position: center center;
  aspect-ratio: 2048 / 723;
  min-height: 420px;
  align-items: center;
  padding: clamp(52px, 4.8vw, 72px) 5vw;
}

.enquiry-hero::before {
  background:
    linear-gradient(90deg, rgba(6, 26, 15, .84) 0%, rgba(10, 38, 22, .68) 32%, rgba(10, 38, 22, .24) 62%, rgba(10, 38, 22, .10) 100%),
    linear-gradient(0deg, rgba(6, 26, 15, .30), transparent 60%);
}

.enquiry-hero > div {
  max-width: min(48vw, 640px);
}

.enquiry-hero h1 {
  color: var(--gold-2);
  max-width: 12ch;
  font-size: clamp(2.35rem, 4vw, 4.35rem);
  line-height: 0.96;
}

.enquiry-hero p {
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.enquiry-hero .eyebrow {
  color: #fff;
  font-size: 0.72rem;
  margin-bottom: 14px;
}
.contact-hero { background-image: url("assets/site/hero-forest-hd.jpg"); }

.contact-hero .eyebrow {
  color: #fff;
}

.contact-hero h1 {
  color: var(--gold-2);
}

.product-nav {
  position: sticky;
  top: 76px;
  z-index: 10;
  padding: 14px 5vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.product-nav a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.88rem;
  background: #fff;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.product-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 107, 59, .35);
  background: var(--soft);
}

/* Download button in product nav — solid green, same as View Products */
.product-nav-download {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 10px 18px !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  background: var(--grad-green) !important;
  white-space: nowrap;
  box-shadow: 0 6px 18px -4px rgba(15, 107, 53, 0.4);
  transition: all 0.25s var(--ease-spring) !important;
}

.product-nav-download svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  flex-shrink: 0;
}

.product-nav-download:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 28px -4px rgba(15, 107, 53, 0.5) !important;
}

.product-nav-download:hover svg {
  stroke: #fff;
}

.catalog {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.catalog.alt {
  background: #f4faf2;
  position: relative;
}

/* Subtle diagonal stripe on alt sections */
.catalog.alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(15, 107, 53, 0.025) 20px,
    rgba(15, 107, 53, 0.025) 21px
  );
  pointer-events: none;
}

.catalog-copy {
  position: static;
  top: auto;
  width: 100%;
  max-width: none;
  margin-bottom: 32px;
  z-index: 1;
  padding-right: 0;
}

.catalog-copy p {
  color: #24332a;
  margin-bottom: 0;
  max-width: 920px;
  text-wrap: pretty;
  line-height: 1.68;
  font-weight: 600;
}

.catalog-copy .eyebrow {
  color: #000;
  margin-bottom: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.catalog-copy h2 {
  max-width: 920px;
  font-size: clamp(2.9rem, 4.85vw, 5rem);
  line-height: 0.94;
  color: var(--gold-2);
  margin-bottom: 22px;
}

.catalog .product-grid {
  width: 100%;
}

#nursery .catalog-copy {
  margin-bottom: 32px;
}

#nursery .catalog-copy .eyebrow {
  color: #000;
}

#nursery .catalog-copy h2 {
  color: var(--gold-2);
}

#nursery .catalog-copy p {
  max-width: 920px;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.72;
}

#nursery .product-grid {
  width: 100%;
}

/* ── PRODUCT CARDS ──────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card {
  position: relative;
  border: 1px solid rgba(207, 222, 207, 0.6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(6, 26, 15, 0.06);
  transition: all 0.4s var(--ease-spring);
}

/* Image wrapper for overlay positioning */
.product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: scale-down;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff 0%, var(--panel) 100%);
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.4s var(--ease-spring), filter 0.4s ease;
  display: block;
}

/* Hover overlay on image */
.product-card .card-overlay {
  display: none;
}

.product-card .card-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transform: translateY(10px);
  transition: transform 0.3s var(--ease-spring) 0.05s, background 0.2s ease;
  white-space: nowrap;
}

.product-card .card-overlay-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--green);
  flex-shrink: 0;
}

/* Title bar */
.product-card h3 {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 12px 16px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fff;
  transition: color 0.25s ease, background 0.25s ease;
  margin-top: auto;
}

/* Hover states */
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--green);
  box-shadow: var(--shadow), 0 0 0 1px rgba(15, 107, 53, 0.15);
}

.product-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.1) contrast(1.04);
}

.product-card:hover h3 {
  color: var(--green);
  background: var(--soft);
}

.timeline {
  background: #fff;
  width: 100%;
  max-width: none;
}

.timeline .section-heading,
.timeline .timeline-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 1;
}

.timeline .section-heading {
  display: block;
  text-align: left;
  margin-bottom: 34px;
}

.timeline .section-heading .eyebrow {
  color: #000;
  margin-bottom: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.timeline .section-heading h2 {
  font-size: clamp(2.75rem, 4.55vw, 4.8rem);
  line-height: 0.96;
  max-width: 1180px;
  color: var(--gold-2);
}

.timeline .timeline-grid {
  justify-content: flex-start;
  gap: 12px;
}

.cert-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cert-grid--catalogue {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.cert-item, .contact-box, .contact-panel, .enquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cert-item:hover, .contact-box:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 107, 59, .25);
  box-shadow: 0 22px 48px rgba(21, 44, 30, .13);
}

.cert-item {
  min-height: 250px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-item img {
  width: 100%;
  max-width: 240px;
  height: 108px;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto 16px;
}

.cert-item h3 {
  width: 100%;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cert-item p {
  width: 100%;
  color: var(--muted);
  margin-bottom: 0;
  text-wrap: pretty;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cert-grid--catalogue .cert-item:nth-child(3) img,
.cert-grid--catalogue .cert-item:nth-child(4) img,
.cert-grid--catalogue .cert-item:nth-child(7) img,
.cert-grid--catalogue .cert-item:nth-child(9) img,
.cert-grid--catalogue .cert-item:nth-child(10) img,
.cert-grid--catalogue .cert-item:nth-child(11) img,
.cert-grid--catalogue .cert-item:nth-child(12) img {
  max-width: 210px;
}

.cert-grid--catalogue .cert-item:nth-child(2) img {
  max-width: 200px;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.enquiry-form { padding: 28px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #334039;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfdacf;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(31, 107, 59, .16);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(31, 107, 59, .08);
}

.form-note {
  color: var(--green);
  font-weight: 700;
  min-height: 24px;
}

.contact-panel { padding: 26px; }
.contact-panel p, .contact-box p { color: var(--muted); }
.contact-panel a, .contact-box a {
  display: block;
  color: var(--green);
  font-weight: 800;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.contact-grid { grid-template-columns: repeat(3, 1fr); }
.contact-box { padding: 26px; }

.map-band {
  padding: 0 5vw 80px;
}

.map-band iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(3px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    filter 0.75s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.8%, -1.2%, 0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fabIn {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── FLOATING ACTION BUTTONS ────────────────────────── */
.fab-group {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* WhatsApp button */
.fab-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 14px;
  height: 54px;
  border-radius: 54px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  animation: fabIn 0.5s var(--ease-spring) 1.2s both, waPulse 2.4s ease-out 2s infinite;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 54px; /* collapsed — icon only */
}

.fab-wa svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: #fff;
}

.fab-wa .fab-wa-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.35s var(--ease-smooth), opacity 0.25s ease;
  white-space: nowrap;
}

/* Expand on hover to show label */
.fab-wa:hover {
  max-width: 200px;
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
  animation: none; /* stop pulse on hover */
}

.fab-wa:hover .fab-wa-label {
  max-width: 140px;
  opacity: 1;
}

/* Scroll-to-top button */
.fab-top {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--line);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(6, 26, 15, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-spring);
  /* Hidden by default — shown via JS */
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
}

.fab-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  transition: stroke 0.2s ease, transform 0.3s var(--ease-spring);
}

.fab-top:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 12px 28px rgba(15, 107, 53, 0.35);
}

.fab-top:hover svg {
  stroke: #fff;
  transform: translateY(-2px);
}

.fab-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .fab-group {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }

  .fab-wa {
    height: 50px;
    padding: 0 16px 0 12px;
  }

  .fab-wa svg {
    width: 24px;
    height: 24px;
  }

  .fab-top {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Disable page transitions for reduced motion */
  .page-transition-overlay { display: none !important; }
}

/* ── PAGE TRANSITIONS ───────────────────────────────── */

/* Full-screen overlay that sweeps in/out */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Two panels — left and right — that slide in from edges */
.page-transition-overlay .pt-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%; /* slight overlap to avoid gap */
  background: var(--deep);
  transform: scaleX(0);
  transition: transform 0.42s var(--ease-smooth);
}

.page-transition-overlay .pt-panel-left {
  left: 0;
  transform-origin: left;
}

.page-transition-overlay .pt-panel-right {
  right: 0;
  transform-origin: right;
}

/* Logo shown in center during transition */
.page-transition-overlay .pt-logo {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease 0.2s, transform 0.35s var(--ease-spring) 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.page-transition-overlay .pt-logo img {
  width: 56px;
  height: 44px;
  object-fit: contain;
  filter: brightness(1.2);
}

/* Active state — panels slide in */
.page-transition-overlay.pt-enter .pt-panel {
  transform: scaleX(1);
  transition: transform 0.38s var(--ease-smooth);
}

.page-transition-overlay.pt-enter .pt-logo {
  opacity: 1;
  transform: scale(1);
}

/* Exit state — panels slide out */
.page-transition-overlay.pt-exit .pt-panel-left {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.38s var(--ease-smooth) 0.1s;
}

.page-transition-overlay.pt-exit .pt-panel-right {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--ease-smooth) 0.1s;
}

.page-transition-overlay.pt-exit .pt-logo {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Page content fade on exit */
body.pt-leaving main {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body main {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 980px) {
  .trust-band, .category-grid, .cert-grid, .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid--catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split, .catalog, .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .home-intro .rich-text {
    padding-left: 0;
  }

  .catalog-copy {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand small { display: none; }

  .nav-toggle { display: flex; }

  /* Mobile nav — slide down from top */
  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(6, 26, 15, 0.12);
    gap: 4px;
    /* Hidden state */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.3s var(--ease-smooth),
      transform 0.35s var(--ease-spring);
    z-index: 99;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  /* CTA in mobile nav — full width */
  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
    padding: 13px 18px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    margin: 0;
    padding: 0 20px 70px;
    width: 100%;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(6, 26, 15, .92), rgba(6, 26, 15, .28));
  }

  .hero-stats {
    gap: 20px;
    padding-top: 24px;
    margin-top: 28px;
  }

  .hero-stat {
    padding-right: 20px;
    margin-right: 20px;
  }

  .trust-band, .category-grid, .cert-grid, .contact-grid, .product-grid, .form-row {
    grid-template-columns: 1fr;
  }

  .cert-grid--catalogue {
    grid-template-columns: 1fr;
  }

  .trust-band .trust-card {
    padding: 20px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-band .trust-card:last-child {
    border-bottom: none;
  }

  .trust-icon {
    width: 60px;
    height: 60px;
  }

  .trust-icon svg {
    width: 52px;
    height: 52px;
  }

  .section {
    padding: 58px 20px;
  }

  .home-intro {
    gap: 28px;
  }

  .home-intro .rich-text {
    padding-left: 0;
    border-left: 0;
  }

  .section-heading {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 16px;
  }

  .page-hero {
    min-height: 380px;
    padding: 90px 20px 42px;
  }

  .catalog-hero {
    aspect-ratio: auto;
    min-height: 420px;
    background-position: center top;
    align-items: end;
    padding: 90px 20px 42px;
  }

  .catalog-hero > div {
    max-width: 100%;
  }

  .catalog-hero h1 {
    max-width: none;
    font-size: clamp(2.15rem, 8vw, 3.4rem);
    line-height: 1.02;
  }

  .enquiry-hero {
    aspect-ratio: auto;
    min-height: 400px;
    background-position: center top;
    align-items: end;
    padding: 90px 20px 42px;
  }

  .enquiry-hero > div {
    max-width: 100%;
  }

  .enquiry-hero h1 {
    max-width: none;
    font-size: clamp(2.1rem, 7.2vw, 3.2rem);
    line-height: 1.02;
  }

  .product-nav {
    top: 68px;
    padding: 12px 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .product-nav a {
    white-space: nowrap;
  }

  .cta-strip, .site-footer {
    display: block;
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-strip .btn { margin-top: 22px; }
  .enquiry-form { padding: 20px; }
  .map-band { padding: 0 20px 58px; }
}
