/*
Theme Name: STS Geotechnics
Theme URI: https://stsgeo.com.au
Author: STS Geotechnics Pty Ltd
Description: Custom WordPress theme for STS Geotechnics — Consulting Geotechnical Engineers.
Version: 1.0.0
License: All Rights Reserved
Text Domain: stsgeo
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans', sans-serif; color: #2D2A26; background: #fff; overflow-x: hidden; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.38s ease, box-shadow 0.38s ease;
  background: transparent;
}
#nav.scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 2px 16px rgba(0,0,0,0.07);
}
#nav .site-logo {
  filter: brightness(0) invert(1);
  transition: filter 0.38s ease;
}
#nav.scrolled .site-logo { filter: none; }

.nav-link {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover { color: #fff; border-color: rgba(255,255,255,0.55); }
#nav.scrolled .nav-link { color: #2D2A26; }
#nav.scrolled .nav-link:hover { color: #3A5A22; border-color: #3A5A22; }
.nav-link:focus-visible { outline: 2px solid #7CA03A; outline-offset: 4px; border-radius: 2px; }

/* ── DROPDOWN SUBMENU ── */
.nav-item { position: relative !important; display: flex; align-items: center; }
.nav-item.has-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { transition: transform 0.25s ease; flex-shrink: 0; }
.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute !important;
  top: calc(100% + 10px);
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #EEE9E2;
  box-shadow: 0 4px 16px rgba(30,42,24,0.08), 0 18px 44px rgba(30,42,24,0.16);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 50;
}
.nav-item.has-dropdown:hover .sub-menu,
.nav-item.has-dropdown:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.sub-menu-link {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #544E48;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.sub-menu-link:hover { background: #F5F2EC; color: #3A5A22; }
.sub-menu-link:focus-visible { outline: 2px solid #7CA03A; outline-offset: -2px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  border-radius: 4px; text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.9);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.75); color: #fff; }
#nav.scrolled .nav-cta { background: #3A5A22; border-color: #3A5A22; color: #fff; box-shadow: 0 2px 8px rgba(58,90,34,0.25); }
#nav.scrolled .nav-cta:hover { background: #4A7028; border-color: #4A7028; }
.nav-cta:focus-visible { outline: 2px solid #7CA03A; outline-offset: 3px; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transition: transform 0.1s ease;
}
.hero-overlay-green {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(30,42,24,0.18) 0%, rgba(58,90,34,0.12) 50%, rgba(15,22,10,0.0) 100%);
  z-index: 1; pointer-events: none;
}
.hero-overlay-dark {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,8,0.90) 0%, rgba(10,18,8,0.55) 35%, rgba(0,0,0,0.05) 70%);
  z-index: 2; pointer-events: none;
}
.hero-strata {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px; overflow: hidden; pointer-events: none; z-index: 3;
}
.hero-strata span {
  display: block; width: 105%; height: 14px;
  background: #7CA03A;
  transform: skewY(-1.4deg); transform-origin: left;
}
.hero-strata span:nth-child(1) { margin-top: 0;    opacity: 0.07; }
.hero-strata span:nth-child(2) { margin-top: 7px;  opacity: 0.05; }
.hero-strata span:nth-child(3) { margin-top: 7px;  opacity: 0.03; }
.hero-strata span:nth-child(4) { margin-top: 7px;  opacity: 0.015; }

/* Hero variant: stacks a capability-card row below the text block instead of
   pinning a single child to the bottom (used on home.php only). */
.hero-has-cards { flex-direction: column; align-items: stretch; }
.hero-has-cards > .hero-text-wrap { margin-top: auto; }

.hero-capability-card {
  display: flex; flex-direction: column;
  padding: 34px 32px 28px;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-capability-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.32); z-index: 2; }
.hero-capability-card:focus-visible { outline: 2px solid #A8C068; outline-offset: -4px; }
.hero-capability-card .hero-card-arrow { transition: transform 0.2s ease; }
.hero-capability-card:hover .hero-card-arrow { transform: translateX(4px); }
.hero-capability-card .hero-card-icon-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.hero-capability-card .hero-card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── OUR EXPERTISE CARDS (home page + services page) ── */
#services{padding-top:72px;padding-bottom:72px}
#services .max-w-2xl.mb-16{margin-bottom:36px}

.sts-exp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:1100px){.sts-exp{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.sts-exp{grid-template-columns:1fr;gap:16px}}

.sts-exp-card{position:relative;display:block;min-height:228px;background:var(--card-bg,#fff);border:1px solid var(--card-line,#DDD6C8);border-radius:16px;text-decoration:none;color:inherit;overflow:hidden;isolation:isolate;
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease,background-color .3s ease}
.sts-exp-card:hover,.sts-exp-card:focus-visible{transform:translateY(-3px);background:var(--card-bg-hover,#fff);border-color:#A8C068;box-shadow:0 16px 34px -12px rgba(30,42,24,.35)}
.sts-exp-card:focus-visible{outline:2px solid #3A5A22;outline-offset:2px}

/* one soft, earthy background colour per box */
.sts-exp-card:nth-child(1){--card-bg:#E2ECC9;--card-bg-hover:#D8E5B8;--card-line:#C5D59E}  /* engineering – olive  */
.sts-exp-card:nth-child(2){--card-bg:#F2E3C6;--card-bg-hover:#ECD9B4;--card-line:#DCC596}  /* drilling – sand      */
.sts-exp-card:nth-child(3){--card-bg:#D5E8D9;--card-bg-hover:#C8E0CD;--card-line:#AFCFB6}  /* environmental – sage */
.sts-exp-card:nth-child(4){--card-bg:#D8E3EB;--card-bg-hover:#CBD9E3;--card-line:#B3C6D3}  /* laboratory – steel   */
.sts-exp-card:nth-child(5){--card-bg:#EFDCCB;--card-bg-hover:#E8D0BB;--card-line:#D6B79C}  /* monitoring – clay    */
.sts-exp-card:nth-child(6){--card-bg:#D9E5DF;--card-bg-hover:#CDDDD5;--card-line:#B4C9BF}  /* digital – mist       */

/* photo with inclined edge */
.sts-exp-photo,.sts-exp-band{position:absolute;top:0;bottom:0;right:0;width:44%;
  clip-path:polygon(25% 0,100% 0,100% 100%,0 100%);transition:clip-path .45s cubic-bezier(.2,.7,.2,1),transform .45s cubic-bezier(.2,.7,.2,1)}
.sts-exp-photo{z-index:1;background:#DCD6C9}
.sts-exp-photo img{width:100%;height:100%;object-fit:cover;display:block;filter:brightness(.78) saturate(.85);transform:scale(1.02);transition:filter .4s ease,transform .6s ease}
/* olive slanted band sitting just behind the cut */
.sts-exp-band{z-index:0;background:#A8C068;transform:translateX(-11px)}
.sts-exp-band::after{content:"";position:absolute;inset:0;background:#3A5A22;clip-path:polygon(25% 0,29% 0,4% 100%,0 100%)}

.sts-exp-card:hover .sts-exp-photo,.sts-exp-card:hover .sts-exp-band,
.sts-exp-card:focus-visible .sts-exp-photo,.sts-exp-card:focus-visible .sts-exp-band{clip-path:polygon(14% 0,100% 0,100% 100%,0 100%)}
.sts-exp-card:hover .sts-exp-band,.sts-exp-card:focus-visible .sts-exp-band{transform:translateX(-13px)}
.sts-exp-card:hover .sts-exp-photo img,.sts-exp-card:focus-visible .sts-exp-photo img{filter:brightness(1.06) saturate(1.05);transform:scale(1.07)}

/* survey-style corner brackets */
.sts-exp-card::before,.sts-exp-card::after{content:"";position:absolute;width:14px;height:14px;z-index:3;pointer-events:none;transition:width .3s ease,height .3s ease}
.sts-exp-card::before{top:10px;left:10px;border-top:2px solid #3A5A22;border-left:2px solid #3A5A22;border-top-left-radius:7px}
.sts-exp-card::after{bottom:10px;right:10px;border-bottom:2px solid #fff;border-right:2px solid #fff;border-bottom-right-radius:7px}
.sts-exp-card:hover::before,.sts-exp-card:hover::after{width:22px;height:22px}

/* text */
.sts-exp-body{position:relative;z-index:2;display:flex;flex-direction:column;gap:8px;width:56%;min-height:228px;padding:24px 12px 20px 24px;box-sizing:border-box}
.sts-exp-tag{display:inline-flex;align-items:center;gap:8px;font:600 10.5px/1 'IBM Plex Sans',sans-serif;letter-spacing:.11em;text-transform:uppercase;color:#6E8A3A}
.sts-exp-tag::before{content:"";width:12px;height:3px;background:#A8C068;transform:skewX(-35deg)}
.sts-exp-body h3{margin:0;font:800 23px/1.05 'Barlow Condensed',sans-serif;color:#1E2A18;letter-spacing:-.005em;text-wrap:balance}
.sts-exp-body p{margin:0;font:400 12.8px/1.55 'IBM Plex Sans',sans-serif;color:#5C564F}
.sts-exp-link{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font:600 11.5px/1 'IBM Plex Sans',sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#3A5A22;transition:gap .2s ease}
.sts-exp-card:hover .sts-exp-link{gap:11px}

@media (max-width:680px){
  .sts-exp-card,.sts-exp-body{min-height:200px}
  .sts-exp-body{width:55%}
  .sts-exp-photo,.sts-exp-band{width:42%}
}
@media (prefers-reduced-motion:reduce){
  .sts-exp-card,.sts-exp-photo,.sts-exp-band,.sts-exp-photo img,.sts-exp-link,.sts-exp-card::before,.sts-exp-card::after{transition:none}
  .sts-exp-card:hover{transform:none}
}

.contour-bg {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.04;
}

/* ── STAT COUNTER ── */
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.01em;
}

/* ── CARD HOVER ── */
.service-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 16px 40px rgba(0,0,0,0.14);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,8,0.88) 0%, rgba(10,20,8,0.45) 50%, rgba(10,20,8,0.10) 100%);
  transition: opacity 0.28s ease;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 24px 56px rgba(0,0,0,0.22);
}
.service-card:hover::before { opacity: 0.85; }
.service-card-inner {
  position: relative;
  z-index: 2;
  padding: 28px 28px 28px;
}

/* ── PROJECT SPOTLIGHT: asymmetric bento grid, not a uniform 3-up ── */
.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
}
.project-grid .project-card--feature { grid-row: span 2; min-height: 560px; }
.project-grid .project-card--secondary { min-height: 264px; }
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-grid .project-card--feature { grid-row: auto; min-height: 420px; }
  .project-grid .project-card--secondary { min-height: 300px; }
}

.project-card {
  display: block;
  border-radius: 10px; overflow: hidden;
  position: relative;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(30,42,24,0.14);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s cubic-bezier(0.22,1,0.36,1);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(30,42,24,0.32), 0 32px 64px rgba(0,0,0,0.32), 0 0 0 1px rgba(124,160,58,0.18);
}
.project-card img { transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.project-card:hover img { transform: scale(1.045); }

/* subsurface "contour line" texture — the brief's own visual language, not a generic overlay */
.project-contour {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 33px,
    rgba(168,192,104,0.55) 33px, rgba(168,192,104,0.55) 34px
  );
  mix-blend-mode: multiply;
  opacity: 0.32;
  z-index: 1;
  pointer-events: none;
}

.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,28,16,0.95) 0%, rgba(20,28,16,0.32) 52%, rgba(20,28,16,0.04) 100%);
  transition: background 0.3s ease;
  z-index: 1;
}
.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(20,28,16,0.97) 0%, rgba(30,42,24,0.5) 60%, rgba(58,90,34,0.1) 100%);
}

.project-index {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 3px;
}

.project-tag {
  display: inline-flex; width: fit-content;
  padding: 4px 10px;
  background: rgba(124,160,58,0.18);
  border: 1px solid rgba(124,160,58,0.32);
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; color: #A8C068; text-transform: uppercase;
}

.project-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: rgba(168,192,104,0.85);
}
.project-meta .dot { color: rgba(255,255,255,0.3); }

.project-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.project-card:hover .project-cta { opacity: 1; transform: translateY(0); }
.project-cta svg { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.project-card:hover .project-cta svg { transform: translateX(4px); }

/* ── FLEET RIG CARD (brochure-style, matches drilling/flyer.jpg) ── */
.fleet-card {
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(30,42,24,0.08);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(30,42,24,0.10), 0 18px 40px -22px rgba(13,22,10,0.45);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.fleet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(30,42,24,0.12), 0 30px 54px -22px rgba(13,22,10,0.55), 0 0 0 1px rgba(211,163,41,0.35);
}
.fleet-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #F5F2EC, 0 0 0 4px #D3A329;
}
.fleet-card-media { position: relative; overflow: hidden; background: #fff; padding: 16px; box-sizing: border-box; }
.fleet-card-media img { transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.fleet-card:hover .fleet-card-media img { transform: scale(1.045); }
.fleet-card-tagband { position: relative; overflow: hidden; }
.fleet-card-features {
  position: relative; z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em; color: #fff;
  text-transform: uppercase;
  line-height: 1.9;
}
.fleet-card-features p,
.fleet-card-features ul,
.fleet-card-features li { margin: 0; padding: 0; list-style: none; }
.fleet-card-tagband::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #D3A329;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.fleet-card:hover .fleet-card-tagband::before { transform: scaleX(1); }

/* ── CTA BTN ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: #3A5A22;
  color: #fff; font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  border-radius: 4px; text-decoration: none;
  border: 2px solid #3A5A22;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(58,90,34,0.25);
}
.btn-primary:hover {
  background: #4A7028; border-color: #4A7028;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58,90,34,0.35);
}
.btn-primary:focus-visible { outline: 2px solid #7CA03A; outline-offset: 3px; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: transparent; color: rgba(255,255,255,0.88);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  border-radius: 4px; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.22);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn-ghost:focus-visible { outline: 2px solid #7CA03A; outline-offset: 3px; }

.btn-dark {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: #3A5A22; color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  border-radius: 4px; text-decoration: none;
  border: 2px solid #3A5A22;
  transition: background 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}
.btn-dark:hover {
  background: #4A7028; border-color: #4A7028;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(58,90,34,0.4);
}
.btn-dark:focus-visible { outline: 2px solid #7CA03A; outline-offset: 3px; }
.btn-dark:active { transform: translateY(0); }

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: #fff;
  border: 1px solid #EEE9E2;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
}

/* ── SECTION LABEL ── */
.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #5B7E2E;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; color: #1E2A18;
  letter-spacing: -0.01em; line-height: 1.05;
}

/* ── ICON CIRCLE ── */
.icon-circle {
  width: 52px; height: 52px;
  background: rgba(58,90,34,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #3A5A22;
  transition: background 0.2s ease, color 0.2s ease;
}
.service-card:hover .icon-circle {
  background: #3A5A22; color: #fff;
}

/* ── SCROLL INDICATOR ── */
.scroll-dot {
  width: 6px; height: 6px;
  background: #7CA03A; border-radius: 50%;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.4; }
}

/* ── NOISE TEXTURE ── */
.grain-overlay {
  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)'/%3E%3C/svg%3E");
  opacity: 0.025; pointer-events: none;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: linear-gradient(90deg, #2D3728 0%, #3A5A22 50%, #2D3728 100%);
}

/* ── DIVIDER ── */
.geo-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #3A5A22, #7CA03A, #3A5A22, transparent);
  opacity: 0.35;
}

/* Feature list check */
.feature-check {
  width: 22px; height: 22px; flex-shrink: 0;
  background: rgba(58,90,34,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #3A5A22;
}

/* Section backgrounds */
.bg-sand-section { background: #F5F2EC; }
.bg-dark-section { background: #1E2A18; }

/* Animate on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Mobile nav */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── FAQ ── */
.faq-item.open .faq-content { max-height: 400px !important; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: #3A5A22 !important; color: #fff !important; }
.faq-item button:focus-visible { outline: 2px solid #7CA03A; outline-offset: 2px; border-radius: 4px; }

@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
}
@media (min-width: 769px) {
  #hamburger { display: none !important; }
}

/* Logo & client badges */
.logo-badge {min-width: 200px;padding: 16px 20px; border: 1.5px solid #EEE9E2; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; height: 84px; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.client-logo-badge { padding: 12px 20px; background: #F5F2EC; border-radius: 6px; border: 1px solid #EEE9E2; display: flex; align-items: center; justify-content: center; height: 64px; transition: background 0.18s ease, border-color 0.18s ease; }

/* Spin animation for form submit button */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── SINGLE POST / PAGE CONTENT ────────────────────────────────────────────────── */
.sts-content h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #1E2A18; margin: 2.2rem 0 1rem; letter-spacing: -0.01em; line-height: 1.1; }
.sts-content h3 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 800; color: #1E2A18; margin: 1.8rem 0 0.75rem; letter-spacing: -0.01em; }
.sts-content h4 { font-size: 1rem; font-weight: 700; color: #1E2A18; margin: 1.4rem 0 0.5rem; }
.sts-content p { margin-bottom: 1.3rem; color: #2D2A26; }
.sts-content p:last-child { margin-bottom: 0; }
.sts-content ul, .sts-content ol { padding-left: 1.5rem; margin-bottom: 1.3rem; }
.sts-content li { margin-bottom: 0.45rem; color: #2D2A26; }
.sts-content a { color: #3A5A22; text-decoration: underline; transition: color 0.18s ease; }
.sts-content a:hover { color: #5B7E2E; }
.sts-content strong, .sts-content b { font-weight: 600; color: #1E2A18; }
.sts-content blockquote { border-left: 3px solid #3A5A22; padding: 12px 20px; margin: 1.5rem 0; background: #F5F2EC; border-radius: 0 6px 6px 0; font-style: italic; color: #544E48; }
.sts-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sts-content hr { border: none; border-top: 1px solid #EEE9E2; margin: 2rem 0; }
.sts-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 14px; }
.sts-content th { background: #F5F2EC; font-weight: 700; padding: 10px 14px; border: 1px solid #EEE9E2; text-align: left; color: #1E2A18; }
.sts-content td { padding: 10px 14px; border: 1px solid #EEE9E2; color: #2D2A26; }
.sts-content tr:nth-child(even) td { background: #FAFAF8; }

/* ── PAGINATION ───────────────────────────────────────────────────────────────── */
.pagination, .nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: #3A5A22; border: 1.5px solid #d0e0b8; background: transparent; transition: all 0.18s ease; font-family: 'IBM Plex Sans', sans-serif; }
.page-numbers.current { background: #3A5A22; color: #fff; border-color: #3A5A22; }
.page-numbers:hover:not(.current):not(.dots) { background: #3A5A22; color: #fff; border-color: #3A5A22; }
.page-numbers.dots { border: none; color: #908880; cursor: default; min-width: 20px; }
.page-numbers.prev, .page-numbers.next { font-size: 13px; gap: 6px; }
.nav-previous a, .nav-next a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #3A5A22; text-decoration: none; padding: 10px 18px; border: 1.5px solid #d0e0b8; border-radius: 6px; transition: all 0.18s ease; }
.nav-previous a:hover, .nav-next a:hover { background: #3A5A22; color: #fff; border-color: #3A5A22; }

/* ── IMAGE CAROUSEL ──────────────────────────────────────────────────────────── */
.sts-carousel { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 20px 48px rgba(0,0,0,0.16); }
.sts-carousel-track { display: flex; will-change: transform; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.sts-carousel-slide { flex: 0 0 100%; }
.sts-carousel-slide img { width: 100%; height: clamp(280px, 48vw, 520px); object-fit: cover; display: block; }
.sts-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,18,8,0.55); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  backdrop-filter: blur(4px);
}
.sts-carousel-arrow:hover { background: rgba(58,90,34,0.85); transform: translateY(-50%) scale(1.06); }
.sts-carousel-arrow:focus-visible { outline: 2px solid #7CA03A; outline-offset: 2px; }
.sts-carousel-arrow.prev { left: 16px; }
.sts-carousel-arrow.next { right: 16px; }
.sts-carousel-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.sts-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; padding: 0; cursor: pointer; transition: transform 0.18s ease, background 0.18s ease; }
.sts-carousel-dot:hover { background: rgba(255,255,255,0.75); }
.sts-carousel-dot.active { background: #A8C068; transform: scale(1.25); }
.sts-carousel-counter {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85); background: rgba(10,18,8,0.55); border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  .sts-carousel-arrow { width: 36px; height: 36px; }
}

/* ── EVENTS ── */
.event-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #EEE9E2; border-radius: 8px; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 8px rgba(30,42,24,0.05), 0 12px 32px rgba(30,42,24,0.06);
  transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.25s ease, opacity 0.55s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(58,90,34,0.10), 0 20px 44px rgba(58,90,34,0.14); }
.event-card:focus-visible { outline: 2px solid #7CA03A; outline-offset: 3px; }
.event-card:active { transform: translateY(-1px); }
.event-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #1E2A18, #3A5A22); }
.event-card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card-cert { height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.event-card-cert img { height: 100%; width: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.event-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,18,8,0.55), transparent 55%); pointer-events: none; }
.event-card-tag {
  position: absolute; left: 16px; bottom: 14px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #D4E4B8; background: rgba(30,42,24,0.7); border: 1px solid rgba(168,192,104,0.4);
  padding: 4px 10px; border-radius: 3px;
}
.event-card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #908880; }
.event-card-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; color: #1E2A18; }
.event-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: #3A5A22; text-decoration: none; transition: gap 0.18s ease; }
.event-card:hover .event-card-link, a.event-card-link:hover { gap: 10px; }
a.event-card-link:focus-visible { outline: 2px solid #7CA03A; outline-offset: 3px; }
.event-crumb { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.18s ease; }
.event-crumb:hover { color: rgba(168,192,104,0.8); }
.event-crumb:focus-visible { outline: 2px solid #7CA03A; outline-offset: 3px; }
.event-certificate { margin: 0; background: #F5F2EC; border: 1px solid #EEE9E2; border-radius: 10px; padding: 20px; }
.event-certificate a { display: block; transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1); }
.event-certificate a:hover { transform: translateY(-3px) rotate(-0.4deg); }
.event-certificate a:focus-visible { outline: 2px solid #7CA03A; outline-offset: 4px; }
.event-certificate img { display: block; width: 100%; height: auto; box-shadow: 0 2px 6px rgba(30,42,24,0.12), 0 16px 36px rgba(30,42,24,0.18); }
.event-certificate figcaption { margin-top: 14px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #908880; }

/* ── EVENT SPONSOR FORM ── */
.sponsor-form { display: flex; flex-direction: column; gap: 14px; }
.sponsor-label { display: block; margin-bottom: 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.sponsor-label span { font-weight: 400; text-transform: none; opacity: 0.6; }
.sponsor-input {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; color: #fff;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.sponsor-input:hover { border-color: rgba(255,255,255,0.22); }
.sponsor-input:focus-visible { outline: 2px solid #7CA03A; outline-offset: 1px; border-color: rgba(124,160,58,0.6); background: rgba(255,255,255,0.09); }
textarea.sponsor-input { resize: vertical; min-height: 84px; }
.sponsor-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sponsor-submit:disabled { cursor: default; }
.sponsor-status { min-height: 1.2em; font-size: 13px; line-height: 1.5; margin: 0; }
