/* =========================================================
   Automates Systems - Design System
   Palette inspired by brand PDF (sage green + warm cream)
   ========================================================= */

:root {
  /* Brand palette */
  --sage-900: #3e5a3f;
  --sage-800: #4f6e50;
  --sage-700: #617d62;
  --sage-600: #6b8e6b;
  --sage-500: #85a386;
  --sage-300: #b9cdba;
  --sage-100: #e4ede4;

  --cream-50: #faf8f3;
  --cream-100: #f5f3ee;
  --cream-200: #ece8dd;

  --amber-500: #f5a623;
  --amber-400: #f7b948;

  --ink-900: #1d2420;
  --ink-700: #394238;
  --ink-500: #5b6660;
  --ink-400: #7a857e;
  --ink-300: #a8b2ac;

  --white: #ffffff;

  /* UI tokens */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(30, 40, 32, 0.04);
  --shadow-sm: 0 4px 14px rgba(30, 40, 32, 0.06);
  --shadow-md: 0 12px 30px rgba(30, 40, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 40, 32, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --medium: 320ms;
  --slow: 520ms;

  --container: 1240px;
  --header-h: 78px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 243, 0.75);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--medium) var(--ease),
              border-color var(--medium) var(--ease),
              box-shadow var(--medium) var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 248, 243, 0.92);
  border-color: rgba(30, 40, 32, 0.06);
  box-shadow: var(--shadow-sm);
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.brand-text small {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-400);
  margin-top: 4px;
}

@media (max-width: 400px) {
  .brand-text { display: none; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-700);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.nav-links a:hover {
  color: var(--sage-900);
  background: var(--sage-100);
}

.nav-links a.active {
  color: var(--sage-900);
  background: var(--sage-100);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--sage-800);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(79, 110, 80, 0.25);
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.nav-cta:hover {
  background: var(--sage-900);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 110, 80, 0.32);
}

.nav-cta svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink-900);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--fast) var(--ease), top var(--fast) var(--ease);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* Drawer is hidden by default; only used in mobile breakpoint below */
.nav-drawer { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav > .nav-cta { display: none; }
  .nav-drawer {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(30, 40, 32, 0.06);
    padding: 18px 28px 28px;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-md);
  }
  .nav-drawer.open { display: flex; }
  .nav-drawer a {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 500;
    color: var(--ink-700);
  }
  .nav-drawer a:hover,
  .nav-drawer a.active {
    background: var(--sage-100);
    color: var(--sage-900);
  }
  .nav-drawer .nav-cta {
    justify-content: center;
    color: var(--white);
    background: var(--sage-800);
    margin-top: 6px;
    padding: 16px 22px;
  }
  .nav-drawer .nav-cta:hover {
    background: var(--sage-900);
    color: var(--white);
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--fast) var(--ease),
              background var(--fast) var(--ease),
              color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--sage-800);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(79, 110, 80, 0.28);
}
.btn-primary:hover {
  background: var(--sage-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(62, 90, 63, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-900);
  border: 1.5px solid var(--sage-600);
}
.btn-ghost:hover {
  background: var(--sage-900);
  color: var(--white);
  border-color: var(--sage-900);
}

.btn-amber {
  background: var(--amber-500);
  color: var(--ink-900);
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.3);
}
.btn-amber:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245, 166, 35, 0.12), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(107, 142, 107, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: calc(var(--header-h) + 36px) 0 60px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--sage-100);
  color: var(--sage-900);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-700);
  box-shadow: 0 0 0 4px rgba(107, 142, 107, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--sage-800) 30%, var(--amber-500) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-500);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
}

.hero-stats .stat {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 40, 32, 0.06);
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: var(--radius);
}

.hero-stats .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sage-900);
}

.hero-stats .lbl {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 4px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #8ea890 0%, #4f6e50 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 20% 100%, rgba(245, 166, 35, 0.35), transparent 60%);
  mix-blend-mode: screen;
}

.hero-visual > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.floating-card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.floating-card .icon.green { background: var(--sage-700); }
.floating-card .icon.amber { background: var(--amber-500); }

.floating-card .title {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.95rem;
}
.floating-card .desc {
  color: var(--ink-500);
  font-size: 0.8rem;
}

.floating-card.top { top: 30px; left: -28px; animation: float1 8s ease-in-out infinite; }
.floating-card.bottom { bottom: 36px; right: -28px; animation: float2 9s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@media (max-width: 600px) {
  .floating-card.top { left: 12px; }
  .floating-card.bottom { right: 12px; }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 100px 0;
  position: relative;
}

.section.tight { padding: 70px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 48px;
  text-align: left;
}

.section-head p {
  color: var(--ink-500);
  font-size: 1.05rem;
}

.bg-cream { background: var(--cream-50); }
.bg-sage {
  background: linear-gradient(180deg, var(--sage-800) 0%, var(--sage-900) 100%);
  color: var(--cream-100);
}
.bg-sage h1, .bg-sage h2, .bg-sage h3, .bg-sage h4 { color: var(--white); }
.bg-sage p { color: rgba(250, 248, 243, 0.85); }

/* Grid helpers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(30, 40, 32, 0.05);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--medium) var(--ease),
              box-shadow var(--medium) var(--ease),
              border-color var(--medium) var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(107, 142, 107, 0.3), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--medium) var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before { opacity: 1; }

.card .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-100);
  color: var(--sage-900);
  margin-bottom: 22px;
  transition: transform var(--medium) var(--ease), background var(--medium) var(--ease);
}

.card:hover .card-icon {
  transform: rotate(-6deg) scale(1.06);
  background: var(--sage-700);
  color: var(--white);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-500);
  font-size: 0.96rem;
  margin: 0;
}

.card .card-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 600;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-700);
  font-size: 0.96rem;
}

.feature-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-sage .feature-list .check {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.bg-sage .feature-list li { color: rgba(250, 248, 243, 0.92); }

/* =========================================================
   Product showcase
   ========================================================= */
.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--medium) var(--ease), box-shadow var(--medium) var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sage-700), var(--sage-900));
  position: relative;
  overflow: hidden;
}

.product-card .product-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-card .product-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-700);
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--ink-500);
  margin-bottom: 20px;
  flex: 1;
}

.product-card .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-900);
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
}

.product-card .link svg { transition: transform var(--fast) var(--ease); }
.product-card .link:hover svg { transform: translateX(4px); }

/* =========================================================
   Split feature block
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
}

.split .visual {
  border-radius: var(--radius-lg);
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-900));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Industries grid */
.industries {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .industries { grid-template-columns: repeat(2, 1fr); } }

.industry {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  border: 1px solid rgba(30, 40, 32, 0.05);
  transition: transform var(--medium) var(--ease), background var(--medium) var(--ease), color var(--medium) var(--ease);
}

.industry:hover {
  background: var(--sage-800);
  color: var(--white);
  transform: translateY(-4px);
}

.industry:hover h4, .industry:hover p { color: var(--white); }

.industry .emoji {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sage-100);
  color: var(--sage-900);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--medium) var(--ease), color var(--medium) var(--ease);
}

.industry:hover .emoji { background: rgba(255, 255, 255, 0.16); color: var(--white); }

.industry h4 { font-size: 1rem; margin-bottom: 4px; }
.industry p { font-size: 0.82rem; color: var(--ink-400); margin: 0; }

/* =========================================================
   Stats band
   ========================================================= */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 44px;
  background: linear-gradient(135deg, var(--sage-800), var(--sage-900));
  border-radius: var(--radius-lg);
  color: var(--white);
}

@media (max-width: 880px) { .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px; } }

.stats-band .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--amber-400);
}

.stats-band .lbl {
  font-size: 0.92rem;
  color: rgba(250, 248, 243, 0.75);
  margin-top: 4px;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--sage-800) 0%, var(--sage-900) 100%);
  color: var(--white);
  padding: 72px 64px;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 10% 120%, rgba(245, 166, 35, 0.28), transparent 60%),
    radial-gradient(500px 300px at 100% 0%, rgba(255, 255, 255, 0.1), transparent 60%);
}

.cta > * { position: relative; }
.cta h2 { color: var(--white); max-width: 720px; margin: 0 auto 16px; }
.cta p { color: rgba(250, 248, 243, 0.84); max-width: 600px; margin: 0 auto 28px; }

@media (max-width: 680px) { .cta { padding: 56px 28px; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink-900);
  color: rgba(250, 248, 243, 0.7);
  padding: 72px 0 32px;
  margin-top: 0;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-brand img { height: 40px; filter: brightness(1.1); }

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: rgba(250, 248, 243, 0.7);
  font-size: 0.93rem;
}
.footer-grid a:hover { color: var(--amber-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.86rem;
  color: rgba(250, 248, 243, 0.45);
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(250, 248, 243, 0.75);
  font-weight: 500;
  transition: color var(--fast) var(--ease);
}

.footer-bottom a:hover { color: var(--amber-400); }

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.socials a:hover { background: var(--sage-700); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* =========================================================
   Page header (for subpages)
   ========================================================= */
.page-header {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(245, 166, 35, 0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(107, 142, 107, 0.18), transparent 60%),
    var(--cream-50);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header .eyebrow { margin-bottom: 18px; }
.page-header p { max-width: 680px; margin: 0 auto; color: var(--ink-500); font-size: 1.08rem; }

/* =========================================================
   Forms
   ========================================================= */
.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}

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

@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } .form { padding: 28px; } }

.field { display: grid; gap: 6px; }

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(30, 40, 32, 0.1);
  background: var(--cream-50);
  font: inherit;
  color: var(--ink-900);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sage-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(107, 142, 107, 0.15);
}

/* =========================================================
   Map card
   ========================================================= */
.map-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 40, 32, 0.05);
}

.map-frame {
  position: relative;
  aspect-ratio: 16 / 8;
  background: var(--sage-100);
}

@media (max-width: 680px) {
  .map-frame { aspect-ratio: 4 / 3; }
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  filter: saturate(0.9) contrast(1.02);
}

/* Custom decorative pin overlaying the iframe center */
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 2;
}

.map-pin-inner {
  width: 58px;
  height: 58px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--sage-700), var(--sage-900));
  box-shadow: 0 10px 24px rgba(30, 40, 32, 0.35), 0 0 0 4px var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pinDrop 0.7s var(--ease) both;
}

.map-pin-inner img {
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.map-pin-pulse {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 6px;
  border-radius: 50%;
  background: rgba(30, 40, 32, 0.25);
  animation: pinPulse 2.2s ease-in-out infinite;
}

@keyframes pinDrop {
  0% { transform: rotate(-45deg) translateY(-30px); opacity: 0; }
  60% { transform: rotate(-45deg) translateY(4px); opacity: 1; }
  100% { transform: rotate(-45deg) translateY(0); opacity: 1; }
}

@keyframes pinPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; }
  50% { transform: translateX(-50%) scale(1.5); opacity: 0.2; }
}

.map-overlay {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--white);
  border-top: 1px solid rgba(30, 40, 32, 0.06);
}

@media (max-width: 680px) {
  .map-overlay { padding: 22px; }
}

/* =========================================================
   Articles / Insights
   ========================================================= */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--medium) var(--ease), box-shadow var(--medium) var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-card .thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-900));
}

.article-card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.article-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }

.article-card .meta {
  display: flex; gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-400);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.article-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.article-card p { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 18px; flex: 1; }
.article-card .link {
  color: var(--sage-900);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Utilities
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

::selection { background: var(--sage-700); color: var(--white); }

/* Pill badges */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--sage-100);
  color: var(--sage-900);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Compliance badge */
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
}

.compliance-badge .seal {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #1c2a5c, #344a8c);
  border-radius: 12px;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-align: center;
  line-height: 1;
  position: relative;
}

.compliance-badge .seal::after {
  content: "✓";
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: var(--amber-500);
  color: var(--ink-900);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  border: 2px solid var(--white);
}

.compliance-badge .title { font-weight: 600; color: var(--ink-900); font-size: 0.9rem; }
.compliance-badge .sub { font-size: 0.78rem; color: var(--ink-500); }
