/* ==========================================================
   Keith On Purpose — shared stylesheet
   Used by every page (index, about, services, contact)
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  --navy: #0b2239;
  --navy-deep: #0c1f33;
  --navy-text: #002b45;
  --orange: #f77f00;
  --yellow: #fcba44;
  --red: #d62828;
  --sky: #eaf1f8;
  --beige: #e8e1b8;
  --white: #ffffff;
  --gray: #5f6b7a;
  --gray-light: #d5dde6;

  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 34, 57, 0.12);
  --max: 1160px;
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy-text);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.center { text-align: center; }
.bg-sky { background: var(--sky); }
.bg-beige { background: var(--beige); }
.bg-navy { background: var(--navy-deep); color: var(--beige); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.eyebrow.red { color: var(--red); }
.eyebrow.orange { color: var(--orange); }
.eyebrow.yellow { color: var(--yellow); }
.eyebrow.navy { color: var(--navy-text); }

.lead { font-size: 1.15rem; color: var(--gray); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy-text);
  color: var(--navy-text);
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline:hover { background: var(--navy-text); color: var(--white); }
.btn-dark { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }
.btn-dark:hover { background: var(--navy-text); }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--white); border-radius: 6px; }
.btn-orange:hover { background: #e07100; box-shadow: 0 6px 16px rgba(247, 127, 0, 0.35); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy-deep); border-radius: 6px; }
.btn-red { background: var(--red); border-color: var(--red); color: var(--white); border-radius: 6px; }
.btn-navy-sq { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); border-radius: 6px; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }

/* ---------- Navigation (shared) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e4e9ef;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
  width: min(100% - 2.5rem, 1320px);
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy-deep);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-deep);
  padding: 0.3rem 0;
}
.nav-links a:hover,
.nav-links a.active { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.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; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer (shared) ---------- */
.site-footer { background: var(--beige); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { font-family: var(--font-head); font-weight: 600; font-size: 1.8rem; color: var(--navy-text); margin: 0 0 0.4rem; }
.footer-tag { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 1.2rem; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.9rem; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { text-decoration: none; font-size: 0.9rem; color: var(--navy-text); }
.footer-col a:hover { text-decoration: underline; }
.socials { display: flex; gap: 0.7rem; }
.socials a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 0.7rem; font-weight: 700; text-decoration: none;
  font-family: Arial, sans-serif;
}
.socials .fb { background: #1877f2; }
.socials .ig { background: linear-gradient(45deg, #f9a825, #e1306c, #833ab4); }
.socials .tk { background: #000; }
.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(11, 34, 57, 0.15);
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Homepage: hero ---------- */
.hero { background: var(--sky); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--navy-deep); margin-bottom: 1rem; }
.hero .lead { margin-bottom: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* ---------- Homepage: foundation ---------- */
.foundation-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 560px;
}
.foundation-media {
  background: var(--sky);
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
}
.photo-block { position: relative; width: min(100%, 340px); }
.photo-block::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50%;
  background: var(--yellow);
  transform: translateX(-30%);
}
.photo-block img { position: relative; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.foundation-copy { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.foundation-copy .lead { color: var(--navy-text); font-size: 1.2rem; }
.foundation-copy p.small { font-size: 0.92rem; color: var(--gray); }
.pillars {
  background: var(--sky);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.2rem 0 2rem;
}
.pillar h4 { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 600; }
.pillar .bar { display: block; width: 44px; height: 2px; margin-bottom: 0.7rem; }
.pillar p { font-size: 0.8rem; color: var(--gray); margin: 0; line-height: 1.5; }
.years { font-family: var(--font-head); color: var(--orange); font-size: 2.6rem; font-weight: 600; line-height: 1; margin-bottom: 0.3rem; }
.years-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }

/* ---------- Homepage: service cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.5rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: 0 4px 16px rgba(11, 34, 57, 0.06);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card .tag { font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; }
.card > p { color: var(--gray); font-size: 0.95rem; }
.card ul { margin: 0.5rem 0 1.5rem; font-size: 0.9rem; }
.card li { margin-bottom: 0.45rem; }
.card li::before { content: "•"; margin-right: 0.5rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.tag.orange { color: var(--orange); }
.tag.yellow { color: var(--yellow); }
.tag.red { color: var(--red); }

/* ---------- Homepage: outcomes (feature rows) ---------- */
.outcomes-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.outcomes-head p { font-size: 0.95rem; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.feature-row img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-row.reverse .feature-media { order: 2; }
.feature-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.feature-copy > p { font-size: 0.95rem; }
.checks li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.checks li::before { content: "✓"; margin-right: 0.6rem; font-weight: 700; }
.checks.orange li::before { color: var(--orange); }
.checks.red li::before { color: var(--red); }
.checks.yellow li::before { color: var(--yellow); }
.cta-center { text-align: center; padding-top: 1rem; }
.cta-center h2 { margin-bottom: 1.5rem; }

/* ---------- Homepage: advantage ---------- */
.adv-head { max-width: 860px; margin: 0 auto 3rem; }
.adv-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.adv-head p { color: var(--gray); font-size: 0.95rem; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.adv-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.7rem 1.4rem 1.4rem;
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 4px 14px rgba(11, 34, 57, 0.06);
}
.adv-card.red { border-color: var(--red); }
.adv-card.orange { border-color: var(--orange); }
.adv-card h3 { font-size: 1.15rem; }
.adv-card .tag { font-family: var(--font-head); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.adv-card > p { font-size: 0.88rem; color: var(--gray); }
.adv-card ul { list-style: disc; padding-left: 1.1rem; font-size: 0.85rem; margin-top: 1rem; }
.adv-card li { margin-bottom: 0.35rem; }

/* ---------- Homepage: testimonials ---------- */
.trust-head { max-width: 640px; }
.trust-head p { color: var(--gray); font-size: 0.95rem; }
.quote-feature { margin: 3rem 0; max-width: 940px; }
.quote-mark { font-family: Georgia, serif; font-size: 5rem; line-height: 0.6; color: var(--yellow); display: block; margin-bottom: 1rem; }
.quote-feature blockquote { margin: 0 0 1.5rem; font-family: var(--font-head); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.45; }
.quote-feature cite { font-style: normal; font-size: 0.8rem; font-weight: 700; color: #333; }
.quotes-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.quote-card { background: var(--beige); border: 1px solid var(--navy-text); border-radius: 8px; padding: 2rem 2.2rem; }
.quote-card blockquote { margin: 0 0 1.5rem; font-style: italic; font-size: 0.92rem; }
.quote-card cite { font-style: normal; font-size: 0.8rem; font-weight: 700; }

/* ---------- Homepage: stats + CTA ---------- */
.stats { background: var(--white); padding: 3rem 0 4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.stat {
  background: var(--navy-text);
  border-radius: 12px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  color: var(--beige);
  box-shadow: var(--shadow);
}
.stat .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3rem); color: var(--orange); line-height: 1.1; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.stat .big.yellow { color: var(--yellow); }
.stat h3 { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--beige); margin-bottom: 1rem; font-weight: 600; }
.stat p { font-size: 0.88rem; margin: 0; }
.cta-band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.cta-band h2 { font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); }
.cta-band p { font-size: 0.92rem; max-width: 52ch; }
.booking-box { background: var(--beige); color: var(--navy-text); border-radius: 8px; padding: 2.2rem; text-align: center; box-shadow: var(--shadow); }
.booking-box h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; }
.booking-box small { display: block; margin-top: 1.2rem; font-size: 0.78rem; }

/* ---------- Homepage: partners ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; text-align: center; }
.partner-icon {
  width: 46px; height: 46px; margin: 0 auto 1rem;
  border: 1px solid; border-radius: 8px;
  display: grid; place-items: center; font-size: 1.3rem;
}
.partner h3 { font-size: 1.15rem; font-weight: 600; }
.partner p { font-size: 0.88rem; color: var(--gray); }

/* ---------- Forms (used by contact page) ---------- */
.form label { display: block; font-size: 0.72rem; font-weight: 700; margin-bottom: 0.3rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 0.85rem;
  padding: 0.8rem 0.9rem; margin-bottom: 1.1rem;
  background: var(--gray-light); border: 1px solid #b8c2cd; border-radius: 3px;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

/* ---------- Placeholders (swap for real images/logo later) ---------- */
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  background: repeating-linear-gradient(45deg, #dfe6ee, #dfe6ee 14px, #e9eef4 14px, #e9eef4 28px);
  border: 2px dashed #9fb0c3;
  color: #5a6b7e;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.ph-square { aspect-ratio: 1 / 1; border-radius: 12px; box-shadow: var(--shadow); }
.ph-portrait { position: relative; aspect-ratio: 3 / 4; }
.ph-wide { aspect-ratio: 4 / 3; border-radius: 18px; }
.logo-ph {
  display: grid;
  place-items: center;
  width: 130px;
  height: 46px;
  border: 2px dashed #9fb0c3;
  background: #eef2f7;
  color: #5a6b7e;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ---------- Social icons ---------- */
.socials a svg { width: 16px; height: 16px; display: block; }

/* ---------- Inner pages: shared ---------- */
.page-hero { background: var(--beige); text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero h1 { max-width: 820px; margin-inline: auto; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--navy-deep); }
.page-hero p { max-width: 660px; margin-inline: auto; font-size: 0.95rem; }

/* ---------- About ---------- */
.story { background: var(--beige); padding: 1rem 0 clamp(3rem, 6vw, 5rem); }
.story-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: stretch; }
.story-media .ph { height: 100%; min-height: 420px; aspect-ratio: auto; }
.story-card { background: var(--white); padding: clamp(1.6rem, 4vw, 2.6rem); }
.story-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.story-card p { font-size: 0.88rem; }
.pullquote {
  border: 1px solid var(--navy-text);
  padding: 1.6rem 1.8rem;
  margin: 1.8rem 0 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
}
.mission { background: var(--white); text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.mission p { max-width: 820px; margin-inline: auto; }
.mission-cards-wrap { background: var(--beige); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.mission-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.m-card { background: var(--white); border-top: 3px solid var(--orange); border-radius: 4px; padding: 1.5rem; }
.m-card.yellow { border-color: var(--yellow); }
.m-card.red { border-color: var(--red); }
.m-card h3 { font-size: 1rem; font-weight: 500; }
.m-card p { font-size: 0.82rem; margin: 0; color: var(--navy-text); }

/* ---------- Services ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-media .ph { height: 100%; min-height: 380px; aspect-ratio: auto; border-radius: 0; }
.split-copy { padding: clamp(2rem, 5vw, 4rem); align-self: center; }
.split-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split-copy > p { font-size: 0.95rem; }
.dots { margin: 1.2rem 0 1.8rem; }
.dots li { position: relative; padding-left: 1.6rem; margin-bottom: 0.8rem; font-size: 0.92rem; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.split.orange-bg { background: var(--orange); color: var(--white); }
.split.orange-bg h2, .split.orange-bg .eyebrow { color: var(--white); }
.split.orange-bg .checks li::before { color: var(--white); }
.split.orange-bg .split-media .ph { background: #f9a34d; border-color: #fff; color: #fff; }
.plain-list li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.plain-list li::before { content: "•"; margin-right: 0.6rem; }
.coming {
  max-width: 780px; margin: 0 auto; text-align: center;
  border: 1px solid var(--navy-text); background: var(--gray-light);
  padding: 2.5rem 2rem;
}
.coming h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.coming p { font-size: 0.9rem; max-width: 560px; margin-inline: auto; }
.btn-disabled { background: #bfc7cf; border-color: #bfc7cf; color: #555; cursor: not-allowed; border-radius: 6px; }
.btn-disabled:hover { transform: none; }

/* ---------- Contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; }
.contact-info { background: var(--navy-deep); color: var(--white); padding: clamp(2rem, 5vw, 3rem); }
.contact-info h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2rem); }
.contact-info .intro { color: var(--yellow); font-size: 0.88rem; font-weight: 500; }
.contact-line { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: 0.9rem; }
.contact-line a { color: var(--white); }
.contact-form-wrap { background: var(--sky); padding: clamp(2rem, 5vw, 3rem); }
.form .btn-orange { width: 100%; border-radius: 3px; }
.contact-note { text-align: center; font-style: italic; font-size: 0.9rem; padding: 2.5rem 0; }
.form-status { font-size: 0.85rem; margin-top: 0.8rem; min-height: 1.2em; }

@media (max-width: 860px) {
  .story-grid, .split, .contact-split, .mission-cards { grid-template-columns: 1fr; }
  .split-media .ph, .story-media .ph { min-height: 260px; }
  .split.reverse-m .split-media { order: -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links { display: none; }
  .nav.open { flex-wrap: wrap; padding-bottom: 1rem; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    order: 3; width: 100%; gap: 1rem; margin: 0.5rem 0 0;
  }
  .stats-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .hero-grid, .foundation-grid, .feature-row, .cta-band-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: -1; }
  .foundation-grid { min-height: 0; }
  .stats-grid, .quotes-2 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-4, .partners-grid, .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Mobile / tablet refinements ---------- */
@media (max-width: 860px) {
  .hero .ph-square, .hero-img { max-width: 520px; margin-inline: auto; }
  .photo-block { width: min(100%, 300px); }
  .cta-band-grid { gap: 2rem; }
  .quote-card { padding: 1.5rem; }
  .contact-line a { overflow-wrap: anywhere; }
  .nav.open .nav-links a { padding: 0.5rem 0; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--max)); }
  .nav { width: min(100% - 2rem, 1320px); }
  .section { padding: 2.5rem 0; }
  .eyebrow { letter-spacing: 0.1em; }
  .card { padding: 1.6rem 1.3rem; }
  .stat { padding: 1.8rem 1.2rem; }
  .booking-box { padding: 1.6rem 1.2rem; }
  .split-copy, .foundation-copy { padding: 2rem 1.25rem; }
  .story-card { padding: 1.5rem 1.25rem; }
  .contact-info, .contact-form-wrap { padding: 2rem 1.25rem; }
  .logo-ph { width: 110px; height: 40px; }
  /* 16px inputs stop iOS Safari from zooming when a field is focused */
  .form input, .form select, .form textarea { font-size: 16px; }
  .footer-grid { gap: 2rem; }
}
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .btn { padding-inline: 1.1rem; }
  .socials { flex-wrap: wrap; }
}
/* Touch devices: bigger tap targets */
@media (pointer: coarse) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-toggle { padding: 0.75rem; }
  .footer-col a { display: inline-block; padding: 0.3rem 0; }
  .socials a { width: 40px; height: 40px; }
  .socials a svg { width: 20px; height: 20px; }
}

/* ---------- QA additions ---------- */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--navy-deep); color: #fff; padding: 0.7rem 1.1rem; border-radius: 6px; font-family: var(--font-head); font-size: 0.85rem; text-decoration: none; transition: top 0.15s ease; }
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.socials a { transition: transform 0.15s ease; }
.socials a:hover { transform: translateY(-2px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: #1b6b3a; font-weight: 500; }
.form-status.err { color: var(--red); font-weight: 500; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Final polish ---------- */
.partner-icon svg, .contact-line svg { width: 24px; height: 24px; flex: none; }
.contact-line svg { color: var(--yellow); margin-top: 2px; }
.adv-cards .adv-card { padding: 2rem 1.7rem; }
.adv-cards .adv-card p { margin-bottom: 0; }
.adv-card .tag { margin-bottom: 0.9rem; }
.story-card p + p { margin-top: 0.2rem; }
.story-card p { font-size: 0.95rem; line-height: 1.7; }
.m-card p { font-size: 0.9rem; }
.cta-simple { text-align: center; }
.cta-simple h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.cta-simple p { max-width: 520px; margin: 0 auto 1.6rem; color: var(--beige); }
.feature-row:last-of-type { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.nav-links { gap: clamp(1rem, 2.2vw, 2.6rem); }

/* ---------- Logo + photos ---------- */
.brand { flex: none; }
.brand .logo-img { height: 52px; width: auto; display: block; }
.split-media img, .story-media img { display: block; width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.feature-media img { box-shadow: 0 8px 24px rgba(11, 34, 57, 0.12); }
@media (max-width: 860px) {
  .split-media img, .story-media img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .brand .logo-img { height: 44px; }
}

/* preview: larger foundation photo */
.foundation-media{padding:0;display:block;position:relative}
.photo-block{width:100%;height:100%}
.photo-block::before{width:14px;transform:none;z-index:2}
.photo-block img{height:100%;min-height:560px;aspect-ratio:auto;object-position:62% 20%}
@media (max-width:1000px){.photo-block img{min-height:0;height:auto;aspect-ratio:4/5;object-position:62% 0%}}

/* preview: photo CTAs */
.cta-photo{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center;margin-top:clamp(2rem,5vw,3.5rem)}
.cta-photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 0%;border-radius:18px;box-shadow:0 8px 24px rgba(11,34,57,.12)}
.cta-photo-copy{text-align:left}.cta-photo-copy h2{margin-bottom:1rem}.cta-photo-copy p{margin-bottom:1.5rem}
.coming-photo{max-width:980px;display:grid;grid-template-columns:0.9fr 1.1fr;gap:2rem;align-items:center;text-align:left;padding:1.5rem}
.coming-photo img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:50% 20%}
.coming-photo .coming-copy p{margin-inline:0}
@media (max-width:860px){.cta-photo,.coming-photo{grid-template-columns:1fr}.cta-photo-copy{text-align:center}.coming-photo{text-align:center}.coming-photo .coming-copy p{margin-inline:auto}}

/* ---- readability bumps ---- */
.eyebrow{font-size:0.8rem}
.card .tag{font-size:0.78rem}
.nav-links a{font-size:0.84rem}
.btn-sm{font-size:0.88rem}
.footer-tag{font-size:0.8rem}
.years-label{font-size:0.8rem}
.card ul{font-size:0.95rem}
.card > p{font-size:1rem}
.form label{font-size:0.92rem;font-weight:600}
.contact-info .intro,.contact-line{font-size:1rem}
.contact-note{font-size:1rem}
.footer-col a,.footer-col li{font-size:0.95rem}
cite{font-size:0.9rem}
/* ---- flipped CTA ---- */
.cta-photo.flip img{order:2}
@media (max-width:860px){.cta-photo.flip img{order:0}}
/* ---- contact page ---- */
.contact-split{grid-template-columns:1fr 1.05fr}
.contact-photo{display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;object-position:50% 15%;border-radius:14px;margin:1.8rem 0 2rem}
.next-steps h3{color:var(--white);font-size:1.25rem;margin-bottom:1rem}
.next-steps ol{list-style:none;counter-reset:s;padding:0;margin:0}
.next-steps li{counter-increment:s;position:relative;padding-left:2.6rem;margin-bottom:1rem;font-size:1rem;line-height:1.5}
.next-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:1.9rem;height:1.9rem;border-radius:50%;background:var(--orange);color:#fff;display:grid;place-items:center;font-weight:700;font-size:0.9rem}
.contact-form-wrap{display:flex;align-items:flex-start;justify-content:center}
.contact-form-wrap .form{background:#fff;border-radius:16px;padding:clamp(1.5rem,4vw,2.5rem);box-shadow:0 10px 30px rgba(11,34,57,.10);width:100%}
.form input,.form select,.form textarea{font-size:1rem;padding:0.85rem 1rem;background:#fff;border:1px solid #c5cfda;border-radius:8px}
.form textarea{min-height:130px}
.form .btn-orange{border-radius:8px;padding:1rem;font-size:1rem}

/* ---- contrast + wrap fixes ---- */
.eyebrow.orange{color:#b35400}
.eyebrow.amber{color:#9a5b00}
.page-hero p{max-width:720px;margin-inline:auto;text-wrap:balance}
.coming-photo{max-width:1060px}
.coming-photo h2{font-size:clamp(1.4rem,2.3vw,1.7rem);text-wrap:balance}
h1,h2{text-wrap:balance}
.booking-box h3{color:var(--navy-deep)}

.cta-photo-copy p{max-width:40ch;text-wrap:balance}
@media (max-width:860px){.cta-photo-copy p{margin-inline:auto}}

/* KOP Advantage color coding */
.adv-card{border-bottom-width:5px}
.adv-card.yellow{border-color:var(--yellow)}
.adv-card.orange{border-color:var(--orange)}
.adv-card.red{border-color:var(--red)}
.adv-card .tag{font-size:0.75rem}
.btn-yellow{color:#06121e;font-weight:700;font-size:0.92rem;letter-spacing:0.01em}

/* dark card for yellow-coded service */
.card.card-dark{background:#0c1f33;color:#e8eef5}
.card.card-dark h3,.card.card-dark li{color:#fff}
.card.card-dark > p{color:#cdd8e4}
.adv-card.yellow{background:#0c1f33;color:#e8eef5}
.adv-card.yellow h3{color:#fff}
.adv-card.yellow > p{color:#cdd8e4}

/* =====================================================================
   TYPE SCALE (final polish)
   Based on a golden-ratio scale: body 18px desktop, steps of sqrt(1.618)
   (~1.272): 14.2 / 18 / 22.9 / 29.1 / 37 / 47(≈ body x 1.618²).
   Body never below 16px; small labels never below 13px.
   ===================================================================== */
:root {
  --fs-label: 0.85rem;                                   /* 13.6px uppercase labels */
  --fs-ui:    0.95rem;                                   /* 15.2px buttons, nav, footer */
  --fs-card:  clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);  /* 16 -> 17px dense text */
  --fs-body:  clamp(1.0625rem, 1rem + 0.22vw, 1.125rem); /* 17 -> 18px main text */
  --fs-lead:  clamp(1.2rem, 1.1rem + 0.5vw, 1.35rem);    /* 19 -> 21.6px intros */
  --fs-h3:    clamp(1.25rem, 1.1rem + 0.5vw, 1.4rem);    /* 20 -> 22.4px */
}
body { font-size: var(--fs-card); line-height: 1.6; }
h1, h2 { line-height: 1.15; }
h3 { line-height: 1.25; }

/* main reading text */
.page-hero p, .outcomes-head p, .adv-head p, .split-copy > p, .feature-copy > p,
.story-card p, .contact-info .intro, .coming p, .cta-band p, .cta-photo-copy p,
.foundation-copy p, .foundation-copy p.small { font-size: var(--fs-body); }
.lead, .foundation-copy .lead { font-size: var(--fs-lead); }

/* card / list text */
.card > p, .card ul, .checks li, .adv-card > p, .adv-card ul, .dots li, .plain-list li,
.m-card p, .partner p, .stat p, .next-steps li, .contact-line, .contact-note,
.pillar p, .quote-card blockquote { font-size: var(--fs-card); }
.form input, .form select, .form textarea { font-size: 1rem; }

/* UI text */
.btn, .btn-sm, .btn-yellow { font-size: var(--fs-ui); }
.nav-links a { font-size: 0.9rem; }
.footer-col a, .footer-col li, .footer-col h4, .footer-bottom, .form label, .form-status,
.booking-box small, cite, .quote-card cite, .skip-link { font-size: var(--fs-ui); }

/* small uppercase labels */
.eyebrow, .card .tag, .adv-card .tag, .footer-tag, .years-label, .pillar h4, .stat h3 { font-size: var(--fs-label); }
.card .tag, .adv-card .tag { line-height: 1.45; }

/* sub-headings */
.adv-card h3, .partner h3, .m-card h3, .booking-box h3 { font-size: var(--fs-h3); }
.card h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.5rem); }

/* comfortable line length (about 60-70 characters) */
.page-hero p { max-width: 36em; }
.adv-head p { max-width: 38em; margin-inline: auto; }
.container > h2 + p { max-width: 40em; }
/* small-phone safety for the contact form */
.contact-form-wrap { box-sizing: border-box; min-width: 0; }
.contact-form-wrap .form { box-sizing: border-box; min-width: 0; }
@media (max-width: 400px) { .contact-form-wrap { padding-inline: 0.75rem; } }

/* fixes after type pass */
.foundation-copy p.years { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.foundation-copy p.years-label { font-size: var(--fs-label); }
.nav-toggle { min-width: 44px; min-height: 44px; }

/* contact page: stack on tablets and phones */
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-photo { aspect-ratio: 4 / 3; }
}

.footer-logo{display:inline-block;margin-bottom:.6rem}
.footer-logo img{height:56px;width:auto}
.footer-logo img{height:76px}
@media (max-width:560px){.footer-logo img{height:68px}}
