/* =========================================================
   A-Sharp Consulting — Brand System & Styles
   Single-file stylesheet. Edit design tokens at the top.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette — derived from A-Sharp logo (Option B: Refined) */
  --color-ink: #0C2440;          /* deep navy — wordmark, headings */
  --color-ink-soft: #1F3954;
  --color-teal: #2A9D9D;         /* muted teal — secondary brand, flame */
  --color-gold: #B8863A;         /* burnished gold — accent / CTA */
  --color-gold-dark: #9C6C24;    /* deeper gold from CONSULTING subline */
  --color-amber: #E0B871;        /* warm highlight / gradient pair */
  --color-cream: #EDE0C2;        /* gold-tinted cream */

  /* Neutrals — warmed slightly to read with the gold */
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F1E8;      /* paper-cream section background */
  --color-bg-tint: #ECE4D2;      /* deeper cream for accents */
  --color-border: #E4DDD0;       /* warm-gray border */
  --color-text: #15243A;
  --color-text-muted: #5C6878;
  --color-text-light: #8A95A3;

  /* Type */
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12,36,64,.06), 0 1px 1px rgba(12,36,64,.04);
  --shadow-md: 0 12px 32px -12px rgba(12,36,64,.18), 0 4px 12px -4px rgba(12,36,64,.08);
  --shadow-lg: 0 30px 60px -24px rgba(12,36,64,.25);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }
button { font-family: inherit; cursor: pointer; }
ul { padding-left: 1.2em; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.8em;
}
.eyebrow::before {
  content: "♯";
  margin-right: 0.4em;
  color: var(--color-gold);
  font-weight: 800;
}
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 60ch;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: clamp(60px, 9vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 70px) 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.logo .logo-sharp {
  color: var(--color-gold);
  /* "Sharp" reads as part of the wordmark, so match the parent font-size
     instead of the larger single-glyph treatment used before for ♯. */
  line-height: 1;
}
.logo .logo-sub {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 4px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--color-ink);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
/* Suppress the nav underline pseudo-element on button-styled nav items */
.nav-links .btn::after { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px var(--pad-x) 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links a::after { display: none; }
  .nav-actions .btn-secondary { display: none; }
  /* CTA button: keep button shape on mobile (not stretched, proper padding, no divider line) */
  .nav-actions { justify-content: center; }
  .nav-links .btn {
    display: flex;
    width: max-content;
    padding: 13px 22px;
    border-bottom: 0;
    /* margin-top matches container padding-bottom (24px) so the button
       sits vertically centered between the last nav-link border and
       the dropdown's bottom border. */
    margin: 24px auto 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-ink);
  box-shadow: 0 6px 18px -6px rgba(184,134,58,.45);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(156,108,36,.55);
}
.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-secondary:hover {
  background: var(--color-ink);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-small { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 110px);
  background: #0C2440;
  color: #fff;
  overflow: hidden;
}
/* Background photo + overlay live on a pseudo-element so we can blur it
   independently of the foreground text / blob.
   - inset: -28px expands the pseudo beyond the hero so the blurred edges
     stay outside the visible (overflow:hidden) area.
   - filter: blur() + brightness() = "lightly out of focus" + lifted exposure.
   - The overlay is dialed back from before so the rack photo shows through. */
.hero::before {
  content: "";
  position: absolute;
  inset: -28px;
  background:
    linear-gradient(110deg, rgba(12,36,64,0.58) 0%, rgba(12,36,64,0.40) 55%, rgba(12,36,64,0.28) 100%),
    url('assets/homepage-hero.jpg?v=2') center center / cover no-repeat;
  filter: brightness(1.18);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
/* Hero text overrides — light-on-dark scheme for the photo background */
.hero h1 { color: #fff; }
.hero h1 strong { color: var(--color-amber); font-weight: inherit; }
.hero .eyebrow { color: var(--color-amber); }
.hero .eyebrow::before { color: var(--color-amber); }
.hero .lead { color: rgba(255,255,255,0.82); }
.hero .btn-secondary,
.page-hero--dark .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}
.hero .btn-secondary:hover,
.page-hero--dark .btn-secondary:hover {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-trust-item .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-trust-item .label {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* Stat strip — horizontal row of credibility stats on light bg.
   Used on the Team page below the intro paragraph. Mirrors the
   .hero-trust pattern but styled for dark text on a light section. */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 56px;
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.stat-strip-item { min-width: 120px; }
.stat-strip-item .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-strip-item .label {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .stat-strip { gap: 18px 28px; }
}

/* Hero visual — logo in a white badge, floaters anchored around it.
   Blob removed 2026-05-15; .hero-visual now sizes to the logo. */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Logo: original JPEG with white background, framed as a soft white badge.
   Stands on its own now that the blob is gone. */
.hero-visual .hero-logo {
  position: relative;
  display: block;
  width: 78%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow:
    0 24px 48px -16px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.5) inset;
}
.hero-visual .floater { z-index: 2; }
.hero-visual .sharp-glyph { display: none; }
.hero-visual .sharp-glyph {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(160px, 28vw, 280px);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-visual .sharp-glyph span { color: var(--color-amber); }
.hero-visual .floater {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-visual .floater .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-teal); box-shadow: 0 0 0 4px rgba(42,157,157,.20); }
.hero-visual .floater-1 { top: 8%; left: -8%; }
.hero-visual .floater-2 { bottom: 12%; right: -6%; }
.hero-visual .floater-2 .dot { background: var(--color-gold); box-shadow: 0 0 0 4px rgba(184,134,58,.22); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-strip-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trust-strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.98rem;
}
.trust-strip-tags li { list-style: none; }
.trust-strip-tags ul { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 0; margin: 0; list-style: none; }

/* ---------- Section heading block ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.cards.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
}
.card-icon-1 { background: linear-gradient(135deg, var(--color-teal), #1495a3); }
.card-icon-2 { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); }
.card-icon-3 { background: linear-gradient(135deg, var(--color-ink), #2a4d6a); }
.card-icon--wide { font-size: 1.05rem; letter-spacing: -0.02em; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.95rem;
}
.card-link:hover { color: var(--color-gold); }
.card-link::after {
  content: "→";
  transition: transform var(--transition);
}
.card-link:hover::after { transform: translateX(4px); }

/* ---------- Two-column feature block ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }
.feature ul.bullets { list-style: none; padding: 0; margin: 24px 0 0; }
.feature ul.bullets li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--color-text-muted);
}
.feature ul.bullets li::before {
  content: "♯";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--color-gold);
  font-weight: 800;
  font-size: 1.1rem;
}
.feature-image {
  /* Default: subtle cream gradient panel (used when no variant class is set). */
  background: linear-gradient(135deg, var(--color-bg-tint), #fff);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Variant: call-center photo backdrop (used on the index "100%" feature) */
.feature-image.fi-call-center {
  background:
    linear-gradient(135deg, rgba(245,241,232,0.78) 0%, rgba(255,255,255,0.62) 100%),
    url('assets/call-center.jpg') center center / cover no-repeat;
}
/* Variant: server-room photo backdrop, dark navy overlay, white text on top.
   Used on the services-page Cloud & M365 block. */
.feature-image.fi-server-dark {
  background:
    linear-gradient(135deg, rgba(12,36,64,0.78) 0%, rgba(31,57,84,0.62) 100%),
    url('assets/estimator-bg.jpg') center center / cover no-repeat;
  border-color: rgba(255,255,255,0.10);
  color: #fff;
}
/* Variant: vibrant photo backdrop with low-opacity dark navy overlay so colors come through.
   Image is passed in via the --fi-img CSS variable on the element so the class is reusable. */
.feature-image.fi-photo {
  background:
    linear-gradient(135deg, rgba(12,36,64,0.55) 0%, rgba(12,36,64,0.35) 100%),
    var(--fi-img) center center / cover no-repeat;
  border-color: rgba(255,255,255,0.10);
  color: #fff;
  position: relative;
}
.feature-image.fi-photo .fi-photo-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.feature-image.fi-photo .fi-photo-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.feature-image.fi-photo .fi-photo-sub {
  margin-top: 22px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
/* Modifier: split layout — headline pinned to top, sub-line pinned to bottom.
   Both lines weighted equally as display text (no "headline + caption" hierarchy). */
.feature-image.fi-photo--split { align-items: stretch; }
.feature-image.fi-photo--split .fi-photo-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}
.feature-image.fi-photo--split .fi-photo-headline,
.feature-image.fi-photo--split .fi-photo-sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin: 0;
}
/* Variant: light cream overlay so a vivid photo tints through but dark text stays readable.
   Pair with --fi-img on the element. */
.feature-image.fi-photo-light {
  background:
    linear-gradient(135deg, rgba(245,241,232,0.72) 0%, rgba(255,255,255,0.55) 100%),
    var(--fi-img) center center / cover no-repeat;
  position: relative;
}
.feature-image.fi-photo-light .fi-photo-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.feature-image.fi-photo-light .fi-photo-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--color-ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 8px rgba(255,255,255,0.65);
}
.feature-image.fi-photo-light .fi-photo-sub {
  margin-top: 18px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(255,255,255,0.6);
}
/* Variant: solid teal-to-deep-navy gradient (no photo) using brand colors.
   White text on top. */
.feature-image.fi-teal-dark {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-ink-soft) 100%);
  border-color: rgba(255,255,255,0.10);
  color: #fff;
}
.feature-image.fi-teal-dark .fi-photo-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.feature-image.fi-teal-dark .fi-photo-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.feature-image.fi-teal-dark .fi-photo-sub {
  margin-top: 22px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.feature-image::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-teal), transparent 70%);
  opacity: 0.18;
  top: -40px; left: -40px;
}

/* ---------- Testimonial ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }
.quote {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.quote .stars {
  color: var(--color-amber);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 3px;
}
.quote blockquote {
  margin: 0 0 22px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--color-text);
}
.quote-attr {
  margin-top: auto;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.quote-attr strong {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
}
.quote-attr .quote-role,
.quote-attr .quote-company {
  display: block;
}
.quote-attr .quote-company {
  color: var(--color-ink);
  font-weight: 600;
}

/* ---------- Pricing Estimator ---------- */
.estimator-section {
  background:
    linear-gradient(160deg, rgba(12,36,64,0.93) 0%, rgba(20,48,82,0.93) 60%, rgba(31,57,84,0.93) 100%),
    url('assets/estimator-bg.jpg') center center / cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.estimator-section::before, .estimator-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.estimator-section::before { width: 480px; height: 480px; background: var(--color-teal); top: -160px; right: -80px; }
.estimator-section::after { width: 380px; height: 380px; background: var(--color-gold); bottom: -120px; left: -60px; }
.estimator-section .container { position: relative; z-index: 1; }
.estimator-section .section-head h2 { color: #fff; }
.estimator-section .section-head .lead { color: rgba(255,255,255,0.78); }
.estimator-section .eyebrow { color: var(--color-amber); }
.estimator-section .eyebrow::before { color: var(--color-amber); }

.estimator {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  max-width: 760px;
  margin: 0 auto;
}
.estimator-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.estimator-progress span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  transition: background var(--transition);
}
.estimator-progress span.active { background: var(--color-amber); }
.estimator-step { display: none; }
.estimator-step.active { display: block; animation: fade .35s ease both; }
.estimator-step.shake { animation: shake .4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
.estimator-step h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-bottom: 8px;
}
.estimator-step p.helper {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.estimator a {
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.estimator a:hover { color: #fff; }
.estimator-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.estimator-options label {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  color: #fff;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}
.estimator-options label:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.32);
}
.estimator-options label .sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.estimator-options input[type="radio"],
.estimator-options input[type="checkbox"] { display: none; }
.estimator-options input:checked + .label-content,
.estimator-options label.checked { /* handled via JS class */ }
.estimator-options label.checked {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-ink);
}
.estimator-options label.checked .sub { color: rgba(12,36,64,0.72); }
.estimator-number {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.estimator-number input {
  appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  transition: border-color var(--transition);
  width: 100%;
}
.estimator-number input:focus { outline: 0; border-color: var(--color-amber); }
.estimator-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.estimator-nav .btn { min-width: 110px; }
.estimator .btn-secondary {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}
.estimator .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
}
.estimator-result {
  text-align: center;
}
.estimator-result .result-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-amber);
  margin-bottom: 10px;
}
.estimator-result .result-range {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 6px 0 8px;
}
.estimator-result .result-range small { font-size: 0.4em; font-weight: 600; color: rgba(255,255,255,0.7); }
.estimator-result .result-sub { color: rgba(255,255,255,0.78); margin-bottom: 26px; }
.estimator-result .btn-primary { margin-top: 6px; }
.estimator-result .restart {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Inner page hero (non-home) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-soft), #fff);
  padding: clamp(70px, 9vw, 120px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-left: auto; margin-right: auto; }
/* Image layer for image-backed page heroes. Each page passes its image
   through the --page-hero-img CSS variable on the section element. */
.page-hero--light::before,
.page-hero--dark::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: 0;
  pointer-events: none;
  background-image: var(--page-hero-img);
  background-position: var(--page-hero-pos, center center);
  background-size: cover;
  background-repeat: no-repeat;
}
/* Light variant — soft cream/white overlay, text stays dark.
   Blur dialed down to 0.7px (10% of original 7px) on 2026-05-15 so the
   image reads crisply through the cream overlay. Overlay opacity dropped
   from 0.78 → 0.35 the same day so more of the photo shows through. */
.page-hero--light::before {
  background-color: rgba(245,241,232,0.35);
  background-blend-mode: lighten;
  filter: blur(0.7px) brightness(1.12);
}
.page-hero--light::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(245,241,232,0.82) 100%);
}
/* Dark variant — heavy navy overlay over image, white text */
.page-hero--dark { color: #fff; }
.page-hero--dark::before {
  filter: var(--page-hero-filter, blur(5px) brightness(1.15));
}
.page-hero--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--page-hero-overlay, linear-gradient(110deg, rgba(12,36,64,0.86) 0%, rgba(12,36,64,0.72) 55%, rgba(12,36,64,0.58) 100%));
}
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .lead { color: rgba(255,255,255,0.85); }
.page-hero--dark .eyebrow { color: var(--color-amber); }
.page-hero--dark .eyebrow::before { color: var(--color-amber); }

/* ---------- Photo band — full-bleed photo background with text overlay.
   Used on About page for the team-accountability section. Pass the image
   through the --photo-band-img CSS variable on the section element.
   ::before holds the photo, ::after holds the navy overlay so they can
   be filtered independently of the text. */
.photo-band {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  color: #fff;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--photo-band-img);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(1.05);
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(12,36,64,0.82) 0%, rgba(12,36,64,0.68) 55%, rgba(12,36,64,0.55) 100%);
}
.photo-band > .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.photo-band h2 { color: #fff; margin-bottom: 18px; }
.photo-band .lead { color: rgba(255,255,255,0.88); margin-left: auto; margin-right: auto; }
.photo-band .eyebrow { color: var(--color-amber); }
.photo-band .eyebrow::before { color: var(--color-amber); }
.photo-band .btn-secondary {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.photo-band .btn-secondary:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.55);
}

/* ---------- About — values + team ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: 30px 0;
}
.value h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.value h3::before {
  content: "♯";
  color: var(--color-gold);
  font-size: 1.4em;
  font-weight: 800;
}
.value p { color: var(--color-text-muted); margin: 0; }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.team-member {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-ink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
}
.team-member h4 { margin: 0 0 4px; font-size: 1.05rem; }
.team-member .role {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Team page — photo + bio rows ---------- */
.team-intro {
  max-width: 760px;
  margin: 0 auto clamp(50px, 6vw, 80px);
  text-align: center;
}
.team-intro p {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.team-row {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding: clamp(50px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--color-border);
}
.team-row:last-of-type { border-bottom: 0; }
.team-row.reverse {
  grid-template-columns: 6fr 5fr;
}
.team-row.reverse .team-photo { order: 2; }
.team-row.reverse .team-bio { order: 1; }
@media (max-width: 880px) {
  .team-row, .team-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 0;
  }
  .team-row.reverse .team-photo,
  .team-row.reverse .team-bio { order: initial; }
}

.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(42,157,157,0.24), transparent 60%),
    linear-gradient(135deg, var(--color-ink) 0%, var(--color-ink-soft) 70%, var(--color-teal) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Defensive: img defines its own height via aspect-ratio (not percentage inheritance),
   matching the .hero-visual .blob fix. Avoids Firefox's aspect-ratio child bug. */
.team-photo img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.team-photo .photo-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 9rem);
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.team-photo .photo-watermark {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: rgba(255,255,255,0.18);
  line-height: 1;
}
.team-photo .photo-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.team-bio .role-line {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.team-bio h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.team-bio .role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 22px;
}
.team-bio p {
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.7;
}
.team-bio p + p { margin-top: 0.8em; }
.team-bio p a {
  color: var(--color-gold);
  text-decoration: none;
}
.team-bio p a:hover { color: var(--color-gold-dark); }
.team-interests {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.team-interests-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.team-interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-interests-tags li {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
}
.team-social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.team-social a:hover {
  background: var(--color-ink);
  color: #fff;
  transform: translateY(-1px);
}

.team-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(184,134,58,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 580px) { .field-row { grid-template-columns: 1fr; } }
.contact-info { padding: 8px 0; }
.contact-info h3 { font-size: 1.2rem; }
.contact-info .info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-info .info-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--color-bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-ink);
  font-weight: 800;
}
.contact-info .info-row span.label-row {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-info .info-row a, .contact-info .info-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.05rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-ink-soft) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "♯";
  position: absolute;
  right: -30px;
  bottom: -120px;
  font-family: var(--font-display);
  font-size: 28rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}
.cta-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; max-width: 540px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; max-width: 540px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.78);
  padding: 70px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}
.site-footer a:hover { color: #fff; }
.footer-brand p { max-width: 36ch; font-size: 0.95rem; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo .logo-sub { color: rgba(255,255,255,0.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Misc / utilities ---------- */
.center { text-align: center; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 48px; }
.alt-bg { background: var(--color-bg-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =========================================================
   v2 sections — marquee, pain points, pillars, journey
   + scroll-reveal + animated counters
   ========================================================= */

/* ---------- Marquee trust strip ---------- */
.trust-strip { padding: 22px 0 26px; }
.trust-strip .trust-strip-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.marquee-track > span,
.marquee-track > a > span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink);
  letter-spacing: -0.005em;
}
.marquee-track > a {
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px dashed transparent;
  transition: color var(--transition), border-color var(--transition);
}
.marquee-track > a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}
.marquee-track > a:hover > span {
  color: var(--color-gold);
}
.marquee-track .marquee-dot {
  color: var(--color-gold);
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0.85;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* hover-pause removed — marquee always scrolls */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Pain points section ---------- */
.pains .pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .pains .pain-grid { grid-template-columns: 1fr; }
}

/* 4-up card grid modifier (e.g., senior-housing systems section) */
.cards.cards-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) {
  .cards.cards-4 { grid-template-columns: 1fr; }
}
.pain-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
}
.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--color-gold-dark);
}
.pain-card .pain-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-bg-tint);
  color: var(--color-ink);
  margin-bottom: 18px;
}
.pain-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.pain-card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ---------- Pillar cards (extends .card) ---------- */
.pillar-card { position: relative; }
.pillar-eyebrow {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 16px;
}

/* ---------- Customer journey ---------- */
.journey-section { background: var(--color-bg-soft); }
.journey {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: journey;
  position: relative;
}
@media (max-width: 980px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } }
.journey-step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.journey-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.journey-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--color-ink);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.journey-step:nth-child(2) .journey-num { background: var(--color-teal); }
.journey-step:nth-child(3) .journey-num { background: var(--color-gold); color: var(--color-ink); }
.journey-step:nth-child(4) .journey-num { background: var(--color-gold-dark); }
.journey-step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.journey-step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
/* Connector dots between journey steps on wide screens */
.journey-step::after {
  content: "→";
  position: absolute;
  top: 38px;
  right: -16px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-gold);
  font-size: 1.4rem;
  opacity: 0.7;
}
.journey-step:last-child::after { display: none; }
@media (max-width: 980px) {
  .journey-step::after { display: none; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* Staggered children inside a revealed parent */
[data-reveal].is-revealed [data-reveal] { transition-delay: 0.08s; }
[data-reveal].is-revealed [data-reveal]:nth-child(2) { transition-delay: 0.16s; }
[data-reveal].is-revealed [data-reveal]:nth-child(3) { transition-delay: 0.24s; }
[data-reveal].is-revealed [data-reveal]:nth-child(4) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* ---------- Contact form inline feedback (Formspree AJAX) ---------- */
.contact-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.95rem;
  line-height: 1.45;
}
.contact-feedback strong {
  font-family: var(--font-display);
  font-weight: 700;
}
.contact-feedback-success {
  background: rgba(42, 157, 157, 0.10);
  border-color: rgba(42, 157, 157, 0.45);
  color: var(--color-ink);
}
.contact-feedback-error {
  background: rgba(200, 60, 60, 0.08);
  border-color: rgba(200, 60, 60, 0.45);
  color: var(--color-ink);
}
.contact-feedback-error a { color: inherit; text-decoration: underline; }

/* ---------- Partners & certifications strip ---------- */
.partner-strip {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.partner-strip .lead {
  max-width: 720px;
}
.partner-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 760px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.partner-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 18px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}
.partner-card img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.78;
  transition: filter var(--transition), opacity var(--transition);
}
.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.partner-card .partner-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.partner-card .partner-designation {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* =========================================================
   Pricing estimator — quote-request form (Step 6, off-wizard branch)
   The estimator sits on a dark teal background, so we restyle the form
   labels and helper colors. Inputs themselves keep the white background
   used elsewhere on the site (high contrast on the dark panel).
   ========================================================= */
.estimator-quote-form .quote-field { margin-bottom: 16px; }
.estimator-quote-form .quote-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.estimator-quote-form .quote-field input,
.estimator-quote-form .quote-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.estimator-quote-form .quote-field input::placeholder,
.estimator-quote-form .quote-field textarea::placeholder {
  color: rgba(12,36,64,0.4);
}
.estimator-quote-form .quote-field input:focus,
.estimator-quote-form .quote-field textarea:focus {
  outline: 0;
  border-color: var(--color-amber);
  box-shadow: 0 0 0 4px rgba(212,168,93,0.20);
}
.estimator-quote-form .quote-field textarea {
  min-height: 110px;
  resize: vertical;
}
.estimator-quote-form .quote-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 580px) {
  .estimator-quote-form .quote-field-row { grid-template-columns: 1fr; }
}
.estimator-quote-form .restart {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.estimator-quote-form .restart:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
