/* Revolution Auto Tire & Service - shared styles */

:root {
  --brand-blue: #163860;
  --brand-blue-dark: #0f2844;
  --brand-red: #c31f2e;
  --text: #2b2b2b;
  --text-muted: #4a5568;
  --bg-light: #f0f0f0;
  --bg-cream: #f6f6f2;
  --paper: #ffffff;
  --line: rgba(15, 40, 68, 0.10);
  --white: #ffffff;
  --max-width: 1100px;
  --content-narrow: 680px;
  --header-height: 80px;
  --section-pad: 5rem;
  --surface-muted: #f3f6fb;
  --surface-warm: #f6f6f2;
}

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

html {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}

.page-white {
  background: var(--white);
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  /* Sticky layers on Windows Chrome can soft-blur SVG/PNG children; keep this layer simple */
  isolation: isolate;
  transform: none;
  filter: none;
  backdrop-filter: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo-mark,
.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  color: var(--brand-blue);
  text-decoration: none;
}

.logo-text .auto {
  color: var(--brand-red);
}

.logo-text .tagline {
  display: block;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 2px;
  color: var(--brand-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--brand-blue);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--brand-blue);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-red);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn-outline:hover {
  background: var(--brand-blue);
  color: var(--white);
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: #2a2a2a;
  background-image:
    linear-gradient(rgba(15, 40, 68, 0.48), rgba(15, 40, 68, 0.40)),
    url("../images/hero-shop.jpg");
  background-size: cover;
  background-position: center 40%;
  padding: 3rem 1.5rem;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero .subhead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero .btn {
  font-size: 0.85rem;
  padding: 1rem 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--brand-blue);
}

/* Scroll sections */

.site-section {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-header {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem 2.5rem;
  text-align: center;
}

.section-header-compact {
  max-width: var(--max-width);
  padding: 0 1.5rem 2rem;
}

.section-header h2,
.section-header .subsection-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.25;
  color: var(--brand-blue);
}

.section-header-compact h2,
.section-header-compact .subsection-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.section-lead {
  margin: 1rem auto 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.subsection-title {
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: var(--brand-blue);
  text-align: center;
}

.partner-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.partner-pillar {
  margin-bottom: 2rem;
}

.partner-pillar:last-child {
  margin-bottom: 0;
}

.partner-pillar h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--brand-blue);
}

.partner-pillar .benefit-list {
  margin: 0;
}

.site-section-block-process .steps {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.site-section-block-process .step h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-blue);
}

.pillar-card strong {
  color: var(--brand-blue);
  font-weight: 700;
}

.purpose-list-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem var(--section-pad);
}

.site-section-purpose {
  background: var(--brand-blue);
  color: var(--white);
  border-top: none;
  border-bottom: 4px solid var(--brand-red);
  padding: 4.5rem 1.5rem;
  margin: 0;
}

.purpose-inner {
  max-width: 780px;
  margin: 0 auto;
}

.site-section-purpose h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

.purpose-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.purpose-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.purpose-list li > span {
  flex: 1;
  min-width: 0;
}

.purpose-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-red);
}

.purpose-list strong {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem var(--section-pad);
}

.pillar-grid-compact {
  padding-bottom: 0;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.75rem;
  background: var(--surface-muted);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.site-section-purpose .pillar-card {
  background: var(--surface-warm);
  border-top: 3px solid var(--brand-red);
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pillar-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-blue);
  line-height: 1.4;
}

.pillar-card-compact {
  padding: 1.35rem 1.25rem;
  background: var(--white);
  min-height: 72px;
}

.site-section-partner {
  background: var(--white);
  border-top: none;
}

.section-header-partner {
  max-width: 960px;
  padding-bottom: 2rem;
}

@media (min-width: 900px) {
  .section-header-partner h2 {
    white-space: nowrap;
  }
}

.site-section-partner > .site-section-block-muted:first-of-type {
  border-top: none;
}

.site-section-block {
  padding: 0 0 var(--section-pad);
}

.site-section-block-compact {
  padding-bottom: 2.5rem;
}

.site-section-partner > .site-section-block:not(.site-section-block-muted):not(.site-section-block-compact) {
  padding-top: var(--section-pad);
}

.site-section-block-muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.site-section-block-muted .section-header-compact {
  padding-top: 0;
}

.site-section-block:not(.site-section-block-muted) .three-col-inner {
  padding-top: 0;
}

.site-section-team {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-section-team .section-header {
  padding-bottom: 2rem;
}

.site-section-contact {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-section-contact .section-header {
  padding-bottom: 1.5rem;
}

/* Home page sections (legacy inner pages) */

.home-section {
  padding: 5rem 1.5rem;
}

.home-section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.home-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.25;
  color: var(--brand-blue);
}

.home-section p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.home-overview {
  background: var(--white);
}

.home-section-link {
  margin-top: 2rem;
  margin-bottom: 0;
  text-align: center;
}

.home-partner {
  background: #fafafa;
}

.home-partner-intro {
  margin-bottom: 0;
}

.home-partner .benefit-list {
  margin: 2rem 0 0;
}

.home-partner .home-section-link {
  margin-top: 3.5rem;
}

.home-section .benefit-list {
  margin: 2rem 0 0;
}

.home-section .benefit-list li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.benefit-list {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
}

/* Page hero (inner pages) */

.page-hero {
  background: var(--brand-blue);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.5rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid var(--brand-red);
  box-shadow: none;
  scroll-margin-top: calc(var(--header-height) + 16px);
  border-top: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.page-hero h1,
.page-hero h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero h1:last-child,
.page-hero h2:last-child {
  margin-bottom: 0;
}

.page-hero .subhead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.6;
}

.page-hero .cta-center {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Two-column section */

.split-section {
  padding: 4rem 1.5rem;
}

.split-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-image {
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
  min-height: 320px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.split-content h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--brand-blue);
}

.split-content p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Three columns */

.three-col {
  padding: 4rem 1.5rem;
  background: #f3f6fb;
  border-top: 1px solid rgba(15, 40, 68, 0.08);
  border-bottom: 1px solid rgba(15, 40, 68, 0.08);
}

.three-col-white {
  background: var(--white);
  border-top: 0;
  border-bottom: 0;
}

.section-note {
  margin: 2.5rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.three-col-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.section-heading .subsection-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand-blue);
}

.section-heading p {
  margin: 0 auto;
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--paper);
  padding: 2rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15, 40, 68, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(195, 31, 46, 0.28);
  box-shadow: 0 14px 34px rgba(15, 40, 68, 0.10);
}

.card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--brand-blue);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--surface-muted);
}

.card p,
.card ul {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  padding-left: 1.1rem;
  line-height: 1.65;
}

.card li {
  margin-bottom: 0.4rem;
}

.card li:last-child {
  margin-bottom: 0;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.card .muted {
  margin: 0;
  font-size: 0.95rem;
}

/* Content sections */

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.content-section.narrow {
  max-width: 760px;
}

.content-section h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--brand-blue);
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.pillar {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.pillar:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--brand-blue);
}

.numbered-list {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.numbered-list li {
  margin-bottom: 0.75rem;
}

/* Who We Are page */

.about-intro {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: var(--white);
}

.about-intro-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-intro .lead {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.beliefs-section {
  padding: 4rem 1.5rem;
  background: #fafafa;
}

.beliefs-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.belief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.belief-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--brand-blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.belief-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--brand-blue);
  line-height: 1.35;
}

.belief-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.belief-card.span-full {
  grid-column: 1 / -1;
  max-width: 540px;
  margin-inline: auto;
  width: 100%;
}

.about-cta-band {
  background: var(--brand-blue);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.about-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.about-cta-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
}

.about-cta-band p {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.95;
}

.about-cta-band .btn-primary {
  background: var(--white);
  color: var(--brand-blue);
}

.about-cta-band .btn-primary:hover {
  background: #f0f4f8;
  color: var(--brand-blue-dark);
}

.about-cta-band .cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--brand-blue);
  text-decoration: none;
}

.purpose-section {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.purpose-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.purpose-item {
  text-align: center;
  padding: 0 0.5rem;
}

.purpose-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.purpose-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.purpose-closing {
  max-width: 560px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}


.process {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.process-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 2rem;
  row-gap: 0.75rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  justify-items: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.step h3,
.step h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-blue);
  line-height: 1.3;
  align-self: center;
  width: 100%;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  align-self: start;
  width: 100%;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
  padding-top: 0;
  border-top: none;
}

.cta-note {
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Team grid */

.team-section {
  padding: 0 0 var(--section-pad);
}

.team-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-member {
  text-align: center;
  background: var(--white);
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(15, 40, 68, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-member:hover {
  transform: translateY(-3px);
  border-color: rgba(195, 31, 46, 0.25);
  box-shadow: 0 12px 28px rgba(15, 40, 68, 0.1);
}

.team-member-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 2rem 1.5rem 1.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.team-member-open:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: -2px;
  border-radius: 10px;
}

.team-photo-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eef3;
}

.team-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

.team-member h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--brand-blue);
}

.team-member .title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-member-open::after {
  content: "View Bio";
  display: block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-red);
}

/* Contact form */

.contact-layout {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.5rem var(--section-pad);
}

.contact-email {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.contact-email a {
  color: var(--brand-blue);
  text-decoration: none;
}

.contact-email a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.optional-label {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(15, 40, 68, 0.18);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(22, 56, 96, 0.12);
}

form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

form .btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #1f6b3a;
}

.form-status.is-error {
  color: #9b1c1c;
}

/* Contact modal */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.contact-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.contact-modal-close:hover {
  color: var(--brand-blue);
}

.contact-modal-panel h2 {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.5rem;
  color: var(--brand-blue);
}

.contact-modal-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-modal-alt {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-modal-alt a {
  color: var(--brand-blue);
}

body.modal-open {
  overflow: hidden;
}

/* Bio modal */

.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.bio-modal[hidden] {
  display: none;
}

.bio-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.bio-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.bio-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.bio-modal-close:hover {
  color: var(--brand-blue);
}

.bio-modal-photo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eef3;
}

.bio-modal-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bio-modal-panel h2 {
  margin: 0 2rem 0.35rem;
  font-size: 1.4rem;
  color: var(--brand-blue);
}

.bio-modal-title {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bio-modal-body {
  text-align: left;
}

.bio-modal-body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.bio-modal-body p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  background: var(--bg-light);
  border-top: 1px solid #ddd;
  padding: 1.25rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--brand-blue);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-red);
}

.footer-brand {
  font-weight: 600;
  color: var(--brand-blue);
}

.footer-copyright {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-email a {
  color: var(--brand-blue);
  font-weight: 500;
  text-decoration: underline;
}

.footer-email a:hover {
  color: var(--brand-red);
}

/* Utility */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Responsive */

@media (max-width: 900px) {
  .split-inner,
  .cards,
  .steps,
  .team-grid,
  .pillar-grid,
  .belief-grid,
  .purpose-grid,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-rows: none;
    row-gap: 2rem;
  }

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-row: auto;
  }

  .step-num {
    margin-bottom: 1rem;
  }

  .step h3,
  .step h4 {
    margin-bottom: 0.75rem;
    align-self: center;
  }

  .belief-card.span-full {
    max-width: none;
  }

  .split-image {
    order: -1;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.5rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: 60vh;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
