/* Vibe.FX homepage mock-up
   Brand colours taken from the live site CSS and logo:
   - Logo blue ~ #0068B0
   - Theme navy / background #00275F
   - Theme primary (buttons on live site) #007BFF
   - Light surface #F4F4F4
   Font: Montserrat (the typeface actually used on vibefx.ca)
*/

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-500.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-700.woff2") format("woff2");
}

:root {
  --navy: #00275f;
  --navy-deep: #001a40;
  --blue: #0068b0;
  --blue-bright: #007bff;
  --blue-hover: #005a99;
  --text: #1c232b;
  --muted: #5a6570;
  --line: #dce2e8;
  --bg: #f4f4f4;
  --white: #ffffff;
  --cos-orange: #f09030;
  --header-h: 5.25rem;
  --max: 72rem;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 39, 95, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--blue-hover);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

/* ---------- Utility bar ---------- */
.util {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.util .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.util a {
  color: var(--white);
  text-decoration: none;
}

.util a:hover {
  color: #cfe6ff;
}

.util-left,
.util-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.util span,
.util a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.nav-btn {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-btn span,
.nav-btn span::before,
.nav-btn span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.nav-btn span::before,
.nav-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-btn span::before {
  top: -6px;
}

.nav-btn span::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

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

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

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover {
  background: #eef4fa;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-call {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  font-weight: 700;
}

.btn-call:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 8rem);
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 26, 64, 0.88) 0%, rgba(0, 39, 95, 0.55) 48%, rgba(0, 39, 95, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 26, 64, 0.15) 40%, rgba(0, 18, 40, 0.72) 100%),
    url("assets/hero-fan.jpg") center 40% / cover no-repeat;
}

.hero-inner {
  padding: 5.5rem 0 4.25rem;
  max-width: 40rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c5ddf5;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.15rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin: 0 0 1.15rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  color: #e8f1fa;
}

.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  max-width: 36rem;
  color: #e6edf5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.photo-credit {
  position: absolute;
  right: 1.25rem;
  bottom: 0.7rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Sections ---------- */
section {
  padding: 4.5rem 0;
  scroll-margin-top: 6rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.55rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 2rem;
}

.lede.tight {
  margin-bottom: 1.25rem;
}

/* Intro / about */
.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.intro-copy p {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.02rem;
}

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

.approach {
  margin-top: 1.4rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--blue);
  background: var(--bg);
  font-weight: 600;
  color: var(--navy);
}

.intro-photo {
  position: relative;
}

.intro-photo img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.intro-photo figcaption {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Services */
.services {
  background: var(--bg);
}

.services-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.service-card {
  background: var(--white);
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  box-shadow: 0 1px 0 rgba(0, 39, 95, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

/* Why us */
.why {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cap-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
}

.cap-list li {
  position: relative;
  padding-left: 1.1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
}

.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--blue);
  border-radius: 1px;
}

.why-aside p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.quotes {
  display: grid;
  gap: 1rem;
}

.quote {
  background: var(--bg);
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
}

.quote blockquote {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: var(--text);
}

.quote cite {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.quote cite span {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

/* Industries */
.industries {
  background: var(--navy);
  color: var(--white);
}

.industries h2,
.industries .section-kicker {
  color: var(--white);
}

.industries .section-kicker {
  color: #8ec2ee;
}

.industries .lede {
  color: #d5e3f0;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.industry {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border-radius: 6px;
}

/* Work strip */
.work {
  background: var(--white);
  padding-bottom: 3rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.work-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #ccc;
}

.work-grid img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-grid img:hover {
  transform: scale(1.04);
}

.work-grid figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* COS callout */
.cos {
  background: #f7f3ee;
  border-top: 1px solid #eadfce;
  border-bottom: 1px solid #eadfce;
}

.cos-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.cos-logo {
  max-width: 26rem;
  margin-bottom: 1.25rem;
}

.cos-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 1rem;
  box-sizing: border-box;
}

.cos h2 {
  margin-bottom: 0.75rem;
}

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

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

.cos-points li {
  padding-left: 0.9rem;
  border-left: 3px solid var(--cos-orange);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.cos-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Quote / form */
.quote-section {
  background:
    linear-gradient(90deg, rgba(0, 39, 95, 0.92), rgba(0, 39, 95, 0.82)),
    url("assets/work-4.jpg") center 30% / cover no-repeat;
  color: var(--white);
}

.quote-section h2,
.quote-section .section-kicker {
  color: var(--white);
}

.quote-section .section-kicker {
  color: #9ec9ef;
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.quote-copy p {
  color: #dce7f2;
  margin: 0 0 1.1rem;
}

.quote-copy .big-phone {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.quote-copy .big-phone:hover {
  color: #cfe6ff;
}

.form-card {
  background: var(--white);
  color: var(--text);
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.form-card h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.form-card .form-note {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: #fff6e5;
  border: 1px solid #f0d8a0;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
}

.form-card .form-error {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  color: #6b1c1c;
  background: #fdecec;
  border: 1px solid #e3b6b6;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
}

.form-card .form-error a {
  color: inherit;
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  margin-bottom: 0.75rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #c9d2db;
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.85rem;
  margin: 0.4rem 0 1rem;
}

.check input {
  margin-top: 0.2rem;
}

.form-card button[disabled],
.form-card .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d5dee8;
  padding: 3.25rem 0 1.5rem;
  font-size: 0.92rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr;
  gap: 2rem 1.5rem;
}

.site-footer a {
  color: #d5dee8;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.foot-contact p,

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

.foot-nav li {
  margin-bottom: 0.35rem;
}

.foot-nav a[data-placeholder]::after {
  content: "";
}




.social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social a {
  font-weight: 600;
  font-size: 0.85rem;
}

.foot-bottom {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #9aacbe;
}

.foot-bottom a {
  color: #9aacbe;
}

.placeholder-link {
  cursor: default;
  opacity: 0.85;
}


/* Insights / blog */
.insights {
  background: var(--bg);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.insight-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 39, 95, 0.04);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--blue);
}

.insight-card img {
  width: 100%;
  height: 15.5rem;
  object-fit: cover;
  object-position: center 30%;
}

.insight-body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.insight-body time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.insight-body h2,
.insight-body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.insight-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .insight-card img {
    height: 13.5rem;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .intro-grid,
  .why-grid,
  .cos-grid,
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .intro-photo img {
    height: 22rem;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .nav-toggle:checked ~ .nav,
  .nav-toggle:checked ~ .header-cta {
    display: flex;
  }

  .nav-row {
    flex-wrap: wrap;
    padding: 0.65rem 0;
    min-height: auto;
  }

  .logo {
    margin-right: auto;
  }

  .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 0 0.8rem;
    gap: 0.65rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
  }

  .header-cta {
    flex-basis: 100%;
    margin: 0 0 0.4rem;
    padding-bottom: 0.4rem;
  }

  .header-cta .btn {
    flex: 1;
  }

  .util-left span:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: 32rem;
    background-position: 65% center;
  }

  .hero-inner {
    padding: 3.5rem 0 2.75rem;
  }

  .services-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .cap-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  section {
    padding: 3.25rem 0;
  }

  .logo img {
    height: 42px;
  }

  .service-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-photo img {
    height: 16rem;
  }

  .hero .lead {
    font-size: 0.98rem;
  }

  .btn-call span.full {
    display: none;
  }
}

/* ---------- Multi-page layout ---------- */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item .sub {
  display: none;
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 17.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 0.45rem 0;
  z-index: 70;
  list-style: none;
  margin: 0;
}

.nav-item:hover .sub,
.nav-item:focus-within .sub {
  display: block;
}

.nav-item .sub a {
  display: block;
  padding: 0.45rem 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.nav-item .sub a:hover,
.nav-item .sub a[aria-current="page"] {
  background: var(--bg);
  color: var(--blue);
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}

.page-hero .lede {
  color: #d5e3f0;
  margin: 0;
  max-width: 46rem;
}

.page-hero .section-kicker {
  color: #8ec2ee;
}

.crumbs {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: #b9c9db;
}

.crumbs a {
  color: #cfe6ff;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--white);
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 1.02rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.25rem 0;
}

.page-block {
  padding: 3.25rem 0;
}

.page-block.alt {
  background: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.split img {
  width: 100%;
  height: 26rem;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: #d5e3f0;
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.svc-list-heading {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.svc-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.svc-index a {
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  display: block;
  box-shadow: 0 1px 0 rgba(0, 39, 95, 0.04);
}

.svc-index a:hover h3 {
  color: var(--blue);
}

.svc-index h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.svc-index p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.job-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.job-list li {
  background: var(--bg);
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--blue);
  font-weight: 600;
  color: var(--navy);
}

.map-embed {
  background: #e7eef5;
  border-radius: 8px;
  min-height: 16rem;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 16rem;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details p {
  margin: 0 0 0.45rem;
}

.video-groups {
  display: grid;
  gap: 2.25rem;
}

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

.video-card {
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 39, 95, 0.06);
}

.video-card img {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
}

.video-card p {
  margin: 0;
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.article-meta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}

.article-hero-img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 0 1.75rem;
}

.legal-note {
  background: #fff6e5;
  border: 1px solid #f0d8a0;
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.draft-banner {
  background: #f5c518;
  color: #00275f;
  font-weight: 700;
  text-align: center;
  padding: 0.9rem 1.25rem;
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.placeholder-mark {
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
}

.prose .policy-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

@media (max-width: 1100px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split img {
    height: 20rem;
  }
  .video-grid,
  .svc-list-heading {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.svc-index {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .nav-item .sub {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.15rem 0 0.15rem 0.7rem;
    min-width: 0;
  }
  .nav-item .sub a {
    padding: 0.3rem 0;
    font-size: 0.82rem;
  }
  .job-list,
  .video-grid,
  .svc-list-heading {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.svc-index {
    grid-template-columns: 1fr;
  }
}

/* ---------- Service handout modal ---------- */
.service-card {
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
  appearance: none;
}

.service-card:focus-visible,
.svc-index button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.svc-index button {
  text-align: left;
  font: inherit;
  width: 100%;
  appearance: none;
  cursor: pointer;
  background: var(--white);
  border: 0;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  display: block;
  box-shadow: 0 1px 0 rgba(0, 39, 95, 0.04);
  color: inherit;
}

.svc-index button:hover h3 {
  color: var(--blue);
}

.modal[hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 64, 0.72);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 10px;
  max-width: 40rem;
  width: min(100%, 40rem);
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  float: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  margin: 0 0 0.5rem 0.5rem;
}

.modal-close:hover {
  background: #e2e8ef;
}

.modal-dialog h2 {
  margin: 0 2.5rem 0.75rem 0;
  font-size: 1.3rem;
}

.modal-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
  margin: 0 0 0.85rem;
}

.modal-dialog img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  clear: both;
  flex-shrink: 0;
}

.modal-note {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.modal-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-hero .coverage-note {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}
.page-hero .coverage-note a {
  color: #cfe6f8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-hero .coverage-note a:hover,
.page-hero .coverage-note a:focus {
  color: #ffffff;
}

body.modal-open {
  overflow: hidden;
}

.handout-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1.5rem;
}

@media (max-width: 600px) {
  .modal {
    padding: 0;
    align-items: stretch;
  }
  .modal-dialog {
    max-width: none;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.photo-stack {
  display: grid;
  gap: 1.5rem;
}

.cos-logo-frame {
  margin: 0;
  background: #fff;
  padding: 1.75rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.cos-logo-frame a {
  display: block;
}

.split .cos-logo-frame img,
.cos-logo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
}
