/* ============================================================
   EngWest Solutions Inc. — Site Stylesheet
   Brand palette:
     --eng-orange : #D9602A   (primary accent)
     --eng-green  : #1F3D33   (deep evergreen)
     --eng-cream  : #E8DFD2   (warm neutral)
     --eng-ink    : #161616   (near-black)
     --eng-paper  : #FBFAF7   (off-white background)
   ============================================================ */

:root {
  --eng-orange: #D9602A;
  --eng-orange-soft: #E97B47;
  --eng-green: #1F3D33;
  --eng-green-deep: #142A22;
  --eng-cream: #E8DFD2;
  --eng-cream-soft: #F2EBE0;
  --eng-ink: #161616;
  --eng-paper: #FBFAF7;
  --eng-line: #E2DCD2;
  --eng-muted: #5C5C5C;

  --shadow-card: 0 1px 2px rgba(22,22,22,0.04), 0 8px 24px rgba(22,22,22,0.06);
  --shadow-deep: 0 4px 12px rgba(22,22,22,0.08), 0 24px 48px rgba(22,22,22,0.10);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Inter", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--eng-ink);
  background: var(--eng-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--eng-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--eng-green);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; color: var(--eng-ink); }
h4 { font-size: 1.05rem; color: var(--eng-ink); letter-spacing: 0.02em; text-transform: uppercase; }

p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: #2a2a2a; }

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

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--eng-orange);
  margin-bottom: 0.8em;
  display: inline-block;
}

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,247,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--eng-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--eng-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand .b-eng { color: var(--eng-orange); }
.brand .b-west { color: var(--eng-green); }
.brand .b-tagline {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eng-muted);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--eng-ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--eng-orange); text-decoration: none; }
.nav-links a.active { color: var(--eng-orange); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--eng-orange);
  border-radius: 2px;
}

.nav-cta {
  background: var(--eng-orange);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.nav-cta:hover { background: #BD4F1E; text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--eng-ink);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--eng-paper);
    border-bottom: 1px solid var(--eng-line);
    padding: 8px var(--gutter) 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--eng-line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-cta { display: inline-block; margin-top: 10px; padding: 12px 18px !important; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--eng-orange);
  color: #fff;
  border-color: var(--eng-orange);
}
.btn-primary:hover { background: #BD4F1E; border-color: #BD4F1E; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--eng-paper);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--eng-green);
  border-color: var(--eng-green);
}
.btn-outline:hover { background: var(--eng-green); color: #fff; }

/* -------- Hero -------- */
.hero {
  position: relative;
  background: var(--eng-green-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-art img,
.hero-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg,
      rgba(20,42,34,0.85) 0%,
      rgba(20,42,34,0.7) 35%,
      rgba(20,42,34,0.45) 65%,
      rgba(20,42,34,0.25) 100%),
    linear-gradient(180deg,
      rgba(20,42,34,0.0) 50%,
      rgba(10,24,20,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 12vw, 140px);
  max-width: 760px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: rgba(255,255,255,0.86);
  margin-bottom: 2em;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .eyebrow { color: var(--eng-orange-soft); }

/* Page-level slim hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--eng-green) 0%, var(--eng-green-deep) 100%);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--eng-orange);
  opacity: 0.18;
  filter: blur(2px);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--eng-cream);
  opacity: 0.08;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.88); max-width: 720px; }
.page-hero .container { position: relative; z-index: 2; }

/* -------- Sections -------- */
section { padding: clamp(64px, 8vw, 110px) 0; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-header { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-cream { background: var(--eng-cream-soft); }
.bg-green { background: var(--eng-green); color: #fff; }
.bg-green h1, .bg-green h2, .bg-green h3, .bg-green h4 { color: #fff; }
.bg-green .eyebrow { color: var(--eng-orange-soft); }
.bg-green p, .bg-green .lead { color: rgba(255,255,255,0.86); }

/* -------- Grids and Cards -------- */
.grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--eng-line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #d4cdc1;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--eng-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--eng-orange);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { color: #3a3a3a; margin: 0; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: #3a3a3a; }
.card ul li { margin-bottom: 4px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 500;
  color: var(--eng-orange);
}
.card-link::after {
  content: "→";
  transition: transform 0.15s ease;
}
.card:hover .card-link::after { transform: translateX(3px); }

/* Pillar (4 column) */
.pillar {
  text-align: left;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--eng-orange);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.pillar h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--eng-green); }
.pillar p { color: #444; font-size: 0.97rem; margin: 0; }

/* -------- Stats strip -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--eng-orange);
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 600;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--eng-muted);
  letter-spacing: 0.04em;
}
.bg-green .stat-num { color: var(--eng-orange-soft); }
.bg-green .stat-label { color: rgba(255,255,255,0.75); }

/* -------- Service block (alternating) -------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  padding: clamp(40px, 6vw, 60px) 0;
}
.service-block.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse > :first-child { order: 0; }
}
.service-block h2 { margin-top: 0; }

/* -------- Partner Network -------- */
.partners-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: #3a3a3a;
  font-size: 1.05rem;
  line-height: 1.7;
}
.disciplines-grid {
  gap: 16px;
}
.discipline-item {
  border: 1px solid var(--eng-line);
  border-left: 3px solid var(--eng-orange);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-weight: 600;
  color: var(--eng-green);
  font-size: 0.95rem;
}
@media (max-width: 760px) { .disciplines-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .disciplines-grid { grid-template-columns: 1fr; } }

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #2a2a2a;
}
/* On dark backgrounds (green hero/section), bullets need light text */
.bg-green .bullet-list li,
.hero .bullet-list li,
.aims-hero .bullet-list li,
.page-hero .bullet-list li,
.cta-strip .bullet-list li {
  color: rgba(255,255,255,0.9);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 2px;
  background: var(--eng-orange);
  border-radius: 2px;
}

.feature-illustration {
  background: var(--eng-cream);
  border-radius: var(--radius-lg);
  padding: 30px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-illustration.photo { padding: 0; background: transparent; }
.feature-illustration.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.feature-illustration.photo-placeholder {
  background: var(--eng-cream-soft);
  border: 2px dashed var(--eng-line);
  flex-direction: column;
  gap: 10px;
}
.feature-illustration.photo-placeholder span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--eng-muted);
}

/* Photo banner band */
.photo-band {
  position: relative;
  height: clamp(280px, 40vw, 460px);
  overflow: hidden;
  background: var(--eng-green-deep);
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,42,34,0.0) 40%, rgba(20,42,34,0.55) 100%);
  pointer-events: none;
}
.photo-band-caption {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center;
  color: rgba(255,255,255,0.86);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

/* -------- Team / Bio -------- */
.bio {
  background: #fff;
  border: 1px solid var(--eng-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
}
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } }
.bio-photo {
  background: linear-gradient(135deg, var(--eng-green) 0%, var(--eng-green-deep) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.bio-photo img,
.bio-photo svg {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .bio-photo img,
  .bio-photo svg { height: 260px; }
}
.bio-body { padding: 32px; }
.bio-body h3 { margin: 0 0 4px; font-size: 1.5rem; color: var(--eng-green); font-family: var(--font-display); }
.bio-role {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--eng-orange);
  margin-bottom: 14px;
}
.bio-credentials {
  font-size: 0.9rem;
  color: var(--eng-muted);
  margin-bottom: 14px;
}
.bio-highlights h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  color: var(--eng-green);
}

/* -------- Differentiator strip -------- */
.differentiator { text-align: left; }
.diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 96, 42, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--eng-orange-soft);
}
.diff-icon svg { width: 22px; height: 22px; }
.bg-green .differentiator h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.bg-green .differentiator p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin: 0; }

/* -------- Banner / CTA strip -------- */
.cta-strip {
  background: var(--eng-orange);
  color: #fff;
  padding: clamp(40px, 6vw, 70px) 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 24px; }
.cta-strip .btn-primary { background: #fff; color: var(--eng-orange); border-color: #fff; }
.cta-strip .btn-primary:hover { background: var(--eng-cream); border-color: var(--eng-cream); color: #BD4F1E; }
.cta-strip .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.7); }

/* -------- Forms -------- */
form.contact {
  background: #fff;
  border: 1px solid var(--eng-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--eng-ink);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.97rem;
  border: 1px solid var(--eng-line);
  border-radius: var(--radius-sm);
  background: var(--eng-paper);
  color: var(--eng-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--eng-orange);
  box-shadow: 0 0 0 3px rgba(217,96,42,0.18);
  background: #fff;
}

/* -------- Contact info card -------- */
.info-card {
  display: grid;
  gap: 22px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--eng-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--eng-orange);
}
.info-row .ico svg { width: 18px; height: 18px; }
.info-row h4 { margin: 0 0 2px; text-transform: none; font-size: 1rem; letter-spacing: 0; color: var(--eng-green); font-family: var(--font-sans); }
.info-row p { margin: 0; color: #3a3a3a; font-size: 0.98rem; }

/* -------- Footer -------- */
.site-footer {
  background: var(--eng-green-deep);
  color: rgba(255,255,255,0.78);
  padding: 60px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand-block .brand { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.footer-brand-block .b-west { color: var(--eng-cream); }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand-block p { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 320px; }
.site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li
rgin-bottom: 8px; }
.site-footer ul li a { color: rgba(255,255,255,0.65); text-decoration: none; }
.site-footer ul li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

/* -------- Tags -------- */
.tag {
  display: inline-block;
  background: var(--eng-cream);
  color: var(--eng-green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin: 4px;
  letter-spacing: 0.02em;
}

/* -------- Divider -------- */
.divider {
  width: 40px;
  height: 3px;
  background: var(--eng-orange);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* -------- Bio extras -------- */
.bio-stack { display: grid; gap: 28px; }
.bio-tags { margin-top: 12px; flex-wrap: wrap; display: flex; gap: 6px; }
.bio-tags .tag { margin: 0; }
.bio-highlights { margin-top: 18px; }
.bio-highlights h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--eng-green);
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

/* ---- 860px and below (tablet portrait / large phone) ---- */
@media (max-width: 860px) {

  /* Bio: green banner becomes a slim top strip instead of tall sidebar */
  .bio { grid-template-columns: 1fr; }
  .bio-photo { min-height: 8px; height: 8px; }
  .bio-body { padding: 24px 20px; }
  .bio-body h3 { font-size: 1.25rem; }

  /* Service blocks already collapse to 1fr, ensure photo comes second */
  .service-block { gap: 28px; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Footer bottom stacks on tablet */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---- 640px and below (phone landscape / small tablet) ---- */
@media (max-width: 640px) {

  /* Typography scale-down */
  body { font-size: 16px; }
  .lead { font-size: 1.08rem; }

  /* Hero */
  .hero { min-height: 520px; display: flex; align-items: center; }
  .hero-inner {
    padding: 72px 0 80px;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-sub { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }

  /* Page hero */
  .page-hero { padding: 48px 0 40px; }

  /* Sections */
  section { padding: 48px 0; }
  section.tight { padding: 36px 0; }
  .section-header { margin-bottom: 32px; }

  /* Cards */
  .card { padding: 22px 18px; }

  /* Differentiator icons — prevent SVGs expanding to full width on single-column layout */
  .diff-icon { width: 44px; height: 44px; flex-shrink: 0; }
  .diff-icon svg { width: 22px; height: 22px; max-width: 22px; }

  /* Card icons — same fix */
  .card-icon { width: 44px; height: 44px; flex-shrink: 0; }
  .card-icon svg { width: 22px; height: 22px; max-width: 22px; }

  /* Stats: 3 stats → single column on small phone */
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat-num { font-size: 2.4rem; }

  /* Feature illustrations: reduce aspect ratio so they're not too tall */
  .feature-illustration { aspect-ratio: 3/2; }

  /* Tags: wrap tightly */
  .tag { font-size: 0.78rem; padding: 5px 11px; }

  /* Bio */
  .bio-body { padding: 20px 16px; }
  .bio-body h3 { font-size: 1.15rem; }

  /* CTA strip buttons */
  .cta-strip .btn { display: block; width: 100%; max-width: 320px; margin: 0 auto 10px; }

  /* Footer */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { font-size: 0.8rem; }

  /* Form */
  form.contact { padding: 20px 16px; }
}

/* ---- 420px and below (small phones) ---- */
@media (max-width: 420px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .nav { height: 64px; }
  .brand-logo { height: 32px; }
  .pillar-num { font-size: 2rem; }
  .btn { padding: 12px 20px; font-size: 0.93rem; }
}
