/* ==========================================================================
   Green Orb, Inc. — Production styles
   Mobile-first · Flexbox/Grid · restrained emerald/teal MSP aesthetic
   ========================================================================== */

:root {
  --color-emerald-950: #052e26;
  --color-emerald-900: #064e3b;
  --color-emerald-800: #065f46;
  --color-emerald-700: #047857;
  --color-teal-600: #0d9488;
  --color-teal-500: #14b8a6;
  --color-teal-400: #2dd4bf;
  --color-mint: #a7f3d0;
  --color-ink: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-300: #cbd5e1;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;
  --color-success: #047857;
  --color-success-bg: #ecfdf5;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(15, 23, 42, 0.06);
  --card-bg: #ffffff;
  --card-border: #f1f5f9;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --footer-bg: #0f172a;
  --footer-text: rgba(241, 245, 249, 0.85);
  --nav-link: #1e293b;

  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "DM Sans", "Source Sans 3", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(5, 46, 38, 0.18);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --container: 72rem;
  --header-h: 6.375rem;
  --focus-ring: 0 0 0 3px rgba(20, 184, 166, 0.45);

  --transition: 180ms ease;
  color-scheme: light;
}

/* Dark theme: neutral grayscale base so emerald/teal accents read cleanly (no blue-gray slate) */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-ink: #ececec;
  --color-slate-800: #e5e5e5;
  --color-slate-600: #a3a3a3;
  --color-slate-500: #a3a3a3;
  --color-slate-300: #525252;
  --color-slate-100: #2a2a2a;
  --color-slate-50: #1a1a1a;
  --color-white: #141414;
  --color-danger: #fca5a5;
  --color-danger-bg: #3f1515;
  --color-success: #6ee7b7;
  --color-success-bg: #052e26;
  --color-mint: #a7f3d0;

  --bg: #121212;
  --bg-alt: #1a1a1a;
  --bg-elevated: #1f1f1f;
  --text: #ececec;
  --text-muted: #a3a3a3;
  --border: #2e2e2e;
  --header-bg: rgba(18, 18, 18, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);
  --card-bg: #1c1c1c;
  --card-border: #2e2e2e;
  --input-bg: #1a1a1a;
  --input-border: #3a3a3a;
  --footer-bg: #0a0a0a;
  --footer-text: rgba(245, 245, 245, 0.88);
  --nav-link: #ececec;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --color-ink: #ececec;
    --color-slate-800: #e5e5e5;
    --color-slate-600: #a3a3a3;
    --color-slate-500: #a3a3a3;
    --color-slate-300: #525252;
    --color-slate-100: #2a2a2a;
    --color-slate-50: #1a1a1a;
    --color-white: #141414;
    --color-danger: #fca5a5;
    --color-danger-bg: #3f1515;
    --color-success: #6ee7b7;
    --color-success-bg: #052e26;
    --color-mint: #a7f3d0;
    --bg: #121212;
    --bg-alt: #1a1a1a;
    --bg-elevated: #1f1f1f;
    --text: #ececec;
    --text-muted: #a3a3a3;
    --border: #2e2e2e;
    --header-bg: rgba(18, 18, 18, 0.94);
    --header-border: rgba(255, 255, 255, 0.08);
    --card-bg: #1c1c1c;
    --card-border: #2e2e2e;
    --input-bg: #1a1a1a;
    --input-border: #3a3a3a;
    --footer-bg: #0a0a0a;
    --footer-text: rgba(245, 245, 245, 0.88);
    --nav-link: #ececec;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

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

a {
  color: var(--color-emerald-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-teal-600);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--color-emerald-900);
  color: #ffffff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.section__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-600);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 22ch;
}

.section__lead {
  margin: 0 0 2.5rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section__header {
  margin-bottom: 2.5rem;
}

/* ---------- Buttons ----------
   Never use --color-white for text: dark theme remaps that token to charcoal.
   ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, #047857, #0d9488);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.28);
}

.btn--primary:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #065f46, #0f766e);
}

/* Outlined light buttons for dark surfaces (hero, dark panels) */
.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff !important;
}

/* Neutral buttons for light page sections */
.btn--ghost {
  background: var(--bg-elevated);
  border-color: var(--input-border);
  color: var(--text) !important;
}

.btn--ghost:hover {
  border-color: #0d9488;
  color: #0d9488 !important;
  background: var(--bg-elevated);
}

html[data-theme="dark"] .btn--ghost,
html:not([data-theme="light"]) .btn--ghost {
  background: #1f1f1f;
  border-color: #a3a3a3;
  color: #ececec !important;
}

html[data-theme="dark"] .btn--ghost:hover,
html:not([data-theme="light"]) .btn--ghost:hover {
  border-color: #6ee7b7;
  color: #a7f3d0 !important;
}

.btn--block {
  width: 100%;
}

/* Primary in header nav stays readable on light header */
.site-nav .btn--primary {
  color: #ffffff !important;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 880px) {
  .header-actions {
    order: 2;
    margin-left: 0.75rem;
  }

  .site-nav {
    order: 1;
    margin-left: auto;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--color-teal-500);
}

.theme-toggle__text {
  display: none;
}

@media (min-width: 480px) {
  .theme-toggle__text {
    display: inline;
  }
}

/* Header wordmark: dark green for light UI, white for dark UI */
.site-header .brand__logo--on-dark {
  display: none;
}

html[data-theme="dark"] .site-header .brand__logo--on-light {
  display: none !important;
}
html[data-theme="dark"] .site-header .brand__logo--on-dark {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .site-header .brand__logo--on-light {
    display: none !important;
  }
  html:not([data-theme="light"]) .site-header .brand__logo--on-dark {
    display: block !important;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

/* Perfect circle orb — never stretch */
.brand__orb {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 8px rgba(5, 46, 38, 0.28);
  background: #052e26;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #065f46;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-muted);
  white-space: nowrap;
}

html[data-theme="dark"] .brand__name,
html:not([data-theme="light"]) .brand__name {
  color: #a7f3d0;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .brand__name {
    color: #065f46;
  }
}

html[data-theme="light"] .brand__name {
  color: #065f46;
}

.brand__text--footer .brand__name {
  color: #ecfdf5;
}

.brand__text--footer .brand__tag {
  color: rgba(167, 243, 208, 0.75);
}

.brand__logo,
.brand__lockup {
  width: auto;
  height: 3.15rem;
  max-width: min(17rem, 58vw);
  object-fit: contain;
  object-position: left center;
}

.brand__logo--footer,
.brand__lockup--footer {
  height: 3rem;
  max-width: 15rem;
}

.service-card__media {
  margin: 0 0 1rem;
  border-radius: calc(var(--radius-md));
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #052e26;
}

.service-card__num,
.service-card h3,
.service-card > p,
.service-card ul {
  padding-inline: 0.5rem;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  transition: transform 280ms ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.03);
}

.service-card--featured {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-md);
}

.about-banner {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
}

.about-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 22rem;
  object-fit: cover;
  object-position: center;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  padding: 1rem 0 1.25rem;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  background: var(--bg-alt);
  color: var(--color-teal-500);
}

.site-nav .btn {
  margin-top: 0.5rem;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .site-nav {
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    width: auto;
    margin: 0;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  .site-nav .btn {
    margin-top: 0;
    margin-left: 0.5rem;
    min-height: 2.5rem;
    padding-inline: 1.1rem;
    font-size: 0.95rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Literal white — never use --color-white (dark theme remaps that token to charcoal) */
  color: #ffffff;
  background: #052e26;
  padding: 4.5rem 0 5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 25%, rgba(20, 184, 166, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 40% at 15% 85%, rgba(5, 150, 105, 0.22), transparent 55%),
    linear-gradient(145deg, #052e26 0%, #0b3d2e 48%, #0f172a 100%);
  z-index: 0;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.55;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 46, 38, 0.94) 0%,
    rgba(5, 46, 38, 0.78) 42%,
    rgba(5, 46, 38, 0.35) 70%,
    rgba(5, 46, 38, 0.45) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title,
.hero #hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 1.5rem + 2.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: #ffffff !important;
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__subtitle strong {
  color: #ffffff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__proof li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-teal-400);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

.hero__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.hero__panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-mint);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stat {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(5, 46, 38, 0.45);
  border: 1px solid rgba(167, 243, 208, 0.12);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgba(236, 253, 245, 0.75);
}

/* Hero dashboard panel */
.hero__panel--dashboard {
  padding: 1.25rem 1.25rem 1rem;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-head h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-mint);
}

.dash-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.25);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.dash-metric {
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(5, 46, 38, 0.5);
  border: 1px solid rgba(167, 243, 208, 0.12);
}

.dash-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.75);
}

.dash-value {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.dash-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(236, 253, 245, 0.7);
}

.dash-bars {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.dash-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(236, 253, 245, 0.75);
}

.dash-bar span {
  grid-column: 1 / -1;
  display: block;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.dash-bar span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #047857, #2dd4bf);
}

.dash-bar em {
  font-style: normal;
  grid-row: 1;
  grid-column: 1;
}

.dash-foot {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.9);
}

/* Metrics section + dashboard image */
.metrics-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .metrics-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
  }
}

.metrics-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.metrics-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.15rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.metrics-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-teal-500);
}

.metrics-list strong {
  color: var(--text);
}

.metrics-dashboard {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  background: #121212;
}

.metrics-dashboard img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

.metrics-dashboard figcaption {
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
}

@media (min-width: 900px) {
  .hero {
    padding: 5.5rem 0 6rem;
  }

  .hero__grid {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 3rem;
  }
}

/* ---------- Experience / credibility ---------- */
.experience-grid {
  display: grid;
  gap: 1.25rem;
}

.experience-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.experience-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.experience-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.12), rgba(4, 120, 87, 0.08));
  color: var(--color-emerald-800);
}

.experience-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.experience-card p {
  margin: 0;
  color: var(--color-slate-600);
  font-size: 0.98rem;
}

.banner-callout {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--color-emerald-900), var(--color-emerald-800) 55%, var(--color-teal-600));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.banner-callout strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.banner-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 48rem;
}

@media (min-width: 700px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .experience-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner-callout {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 1.75rem 2rem;
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.85rem 0.85rem 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-600);
  margin-bottom: 0.85rem;
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.service-card p {
  margin: 0 0 1rem;
  color: var(--color-slate-600);
  flex: 1;
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--color-slate-800);
  font-size: 0.95rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-teal-500);
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card--wide {
    grid-column: span 1;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--color-slate-600);
  max-width: 42rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-points {
  display: grid;
  gap: 1rem;
}

.about-point {
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.about-point h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.about-point p {
  margin: 0;
  color: var(--color-slate-600);
  font-size: 0.98rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-aside {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-emerald-950), var(--color-emerald-800));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.contact-aside h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.contact-aside p {
  margin: 0 0 1.25rem;
  color: rgba(236, 253, 245, 0.88);
}

.contact-aside dl {
  margin: 0;
}

.contact-aside dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-mint);
  margin-bottom: 0.25rem;
}

.contact-aside dd {
  margin: 0 0 1rem;
  color: #ffffff;
}

.contact-aside a {
  color: #ffffff;
}

.contact-form {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-slate-800);
}

.form-field .req {
  color: var(--color-emerald-700);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--color-slate-500);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--color-teal-500);
  box-shadow: var(--focus-ring);
}

.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-field .hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-slate-500);
}

/* Honeypot — visually hidden but present for bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  display: none;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(4, 120, 87, 0.25);
}

.form-status--error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--color-slate-500);
}

.contact-grid--form-only {
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .contact-grid:not(.contact-grid--form-only) {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .brand {
  color: #ffffff;
  width: fit-content;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.98rem;
}

.footer-col h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mint);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(241, 245, 249, 0.9);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-teal-400);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.95);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }

  .footer-grid--simple {
    grid-template-columns: 1.6fr 0.8fr;
  }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Blog ---------- */
.blog-preview-grid,
.blog-index-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .blog-preview-grid,
  .blog-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .blog-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  display: block;
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.blog-card time {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-teal-600);
}

.blog-card h2,
.blog-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.blog-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section-cta {
  margin: 2rem 0 0;
}

.article-page {
  padding: 3rem 0 4.5rem;
}

.article-hero {
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  background: #121212;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.blog-index-hero {
  margin: 0 0 2.25rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.blog-index-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 20rem;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;
}

.article-header {
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.article-header time {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-teal-600);
}

.article-header h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-header .lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-slate-600);
}

.article-body {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--text);
}

.article-header .lede {
  color: var(--text-muted);
}

.article-header h1 {
  color: var(--text);
}

.article-body p {
  margin: 0 0 1.15rem;
}

.article-body h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.article-body ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-footer {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-slate-100);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.site-nav a[href$="blog/"],
.site-nav a[href*="blog/"] {
  /* keep default styles */
}

/* --- Conversion polish: CTA band, thumbs, contact visual, mobile CTA, strip --- */
.cta-band {
  background: linear-gradient(120deg, #052e26 0%, #065f46 55%, #0d9488 100%);
  color: #ecfdf5;
  padding: 2.75rem 0;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.cta-band p {
  margin: 0;
  max-width: 36rem;
  color: rgba(236, 253, 245, 0.9);
}
.cta-band .btn--primary {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  background: #ffffff !important;
  color: #065f46 !important;
  border-color: #ffffff;
}
.cta-band .btn--primary:hover {
  background: #ecfdf5 !important;
  color: #047857 !important;
}

/* Header primary CTA: solid emerald, white label */
.site-header .btn--primary {
  background: linear-gradient(135deg, #047857, #0d9488) !important;
  color: #ffffff !important;
}

/* Theme toggle readable in both modes */
.theme-toggle {
  color: var(--text);
  border-color: var(--input-border);
  background: var(--bg-elevated);
}

html[data-theme="dark"] .theme-toggle,
html:not([data-theme="light"]) .theme-toggle {
  color: #ececec;
  border-color: #a3a3a3;
  background: #1f1f1f;
}

.theme-toggle:hover {
  border-color: #0d9488;
  color: #0d9488;
}

html[data-theme="dark"] .theme-toggle:hover,
html:not([data-theme="light"]) .theme-toggle:hover {
  border-color: #6ee7b7;
  color: #a7f3d0;
}

.blog-card__thumb {
  display: block;
  margin: -0.1rem -0.15rem 0.9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #121212;
}
.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.blog-card {
  padding-top: 0.85rem;
}

.contact-visual {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}
.contact-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mobile-cta {
  display: none;
}
@media (max-width: 719px) {
  .mobile-cta {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 90;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
    backdrop-filter: blur(10px);
  }
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0 0 2rem;
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}
@media (max-width: 700px) {
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
