/* Brand-site stylesheet — no framework. Colours come from the site
   theme (CSS variables set in layout.liquid); nothing here is brand-specific. */

:root {
  --container: 1140px;
  --header-h: 6.5rem;
  --radius: 0.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--dark);
}

strong,
b {
  font-weight: 600;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1rem;
}

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

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

.lead {
  font-size: 1.3rem;
  font-weight: 300;
}

.display-2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.display-3 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
}

h2 strong {
  color: var(--secondary);
}

/* Buttons: pills */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 1.75rem;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.2rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-light {
  background: var(--light);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: #fff;
}

/* Risk warning: a thin light bar above everything */

.locked-risk-warning {
  background: var(--light);
  color: var(--dark);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 3;
}

.locked-risk-warning p {
  margin: 0;
}

.locked-risk-warning a {
  color: var(--primary);
}

/* Header: sits over the first section of every page */

.site-header {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand:hover {
  color: #fff;
}

.brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 220px;
}

.nav {
  display: flex;
  gap: 2.75rem;
}

.nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.header-cta {
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.9rem 2rem;
  white-space: nowrap;
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.25rem;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -9px;
}

.burger::after {
  top: 9px;
}

.mobile-menu[open] .burger {
  background: transparent;
}

.mobile-menu[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-panel {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.mobile-menu-panel a {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem 0;
}

.mobile-menu-panel a.btn {
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
}

/* Home hero: the photo, tinted in the brand colour */

.home-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 2rem) 0 9rem;
  background-color: var(--primary);
  background-image: url("/assets/images/bubbles.jpg?v=3e75401730");
  background-size: cover;
  background-position: 50% 30%;
  color: #fff;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0.55;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 0.25rem;
}

.home-hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.home-hero .lead {
  font-size: 1.6rem;
  line-height: 1.6;
  padding-right: 2rem;
}

.home-hero .lead strong {
  font-weight: 600;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 0;
  color: var(--primary-wave);
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 9rem;
  fill: currentColor;
}

.hero-wave::after {
  content: "";
  display: block;
  height: 1.5rem;
  background: var(--primary-wave);
}

/* The white card: loan example, Apply, representative example */

.loan-card {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
}

.loan-card-tab {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.85rem 2.5rem;
  margin-bottom: 1.25rem;
}

.locked-loan-example dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.locked-loan-example dl > div {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.25rem;
}

.locked-loan-example dt {
  font-size: 0.95rem;
  color: var(--dark);
}

.locked-loan-example dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.loan-card .btn-secondary {
  font-weight: 600;
  padding: 1rem 1.5rem;
}

.locked-rep-example {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--dark);
}

.loan-card .locked-rep-example {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.locked-rep-example p:last-child {
  margin-bottom: 0;
}

.locked-rep-example b,
.locked-rep-example strong {
  font-weight: 600;
}

.loan-card--lifted {
  max-width: 40rem;
  margin: -6rem auto 3rem;
  position: relative;
}

/* Home: "here to find you the right loan" */

.home-intro {
  padding: 6rem 0;
}

.home-intro-logo {
  width: auto;
  height: auto;
  max-width: min(320px, 100%);
  max-height: 170px;
  margin-bottom: 1.5rem;
}

.home-intro h2 {
  margin-bottom: 2rem;
}

/* Home: split "Who We Are" panel */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-panel {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.split-panel h2 {
  color: var(--light);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
}

.split-panel h2 strong {
  color: #fff;
}

.split-body {
  background: #fff;
  color: var(--dark);
  padding: 6rem 7rem;
  font-size: 1.1rem;
}

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

.split-body a {
  color: var(--dark);
  font-weight: 600;
}

.home-different {
  padding: 8rem 0 4rem;
}

.home-different .lead {
  color: var(--dark);
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.4rem;
}

/* Stepped skyline into the dark compare band */

.skyline {
  line-height: 0;
  color: var(--dark);
  margin-top: 2rem;
}

.skyline svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.compare {
  background: var(--dark);
  color: #fff;
  padding: 2rem 0 6rem;
}

.compare-head {
  max-width: 34rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.compare-head h2 {
  color: var(--light);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.compare-head .lead {
  margin: 0;
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.compare-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-card--ours {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
}

.compare-card--small {
  margin: 0 1.5rem;
  font-size: 1rem;
}

.compare-card-head {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1rem;
}

.compare-card-head img {
  width: auto;
  height: auto;
  max-width: min(260px, 100%);
  max-height: 90px;
}

.compare-card-head h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.compare-card-head p {
  margin: 0;
  color: var(--primary);
}

.compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-card li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--border);
}

.compare-card li:first-child {
  border-top: 0;
}

.compare-icon {
  flex: none;
  color: var(--primary-icon);
}

/* Inner pages */

.page-hero {
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 8rem) 0 8rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}

.page-hero-intro {
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  line-height: 1.3;
  margin: 0;
}

.section {
  padding: 6rem 0;
}

.prose {
  max-width: 47rem;
}

.prose-wide {
  max-width: var(--container);
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.rep-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-top: 3rem;
}

.rep-card .locked-rep-example {
  font-size: 1.1rem;
}

/* Support: the contact table */

.support table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1rem;
}

.support th,
.support td {
  border: 1px solid var(--border);
  padding: 1.25rem 0.75rem;
  vertical-align: top;
}

.support th {
  background: var(--light);
  color: var(--dark);
  font-weight: 600;
}

.support td a {
  font-weight: 600;
  text-decoration: none;
}

/* FAQ: a grid of question cards that open in place */

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

.faq {
  background: var(--footer-bg);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 12rem;
  padding: 2rem;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: block;
  margin-top: 1rem;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--secondary);
}

.faq[open] summary::after {
  content: "\2212";
}

.faq[open] {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--border);
}

.faq[open] summary {
  min-height: 0;
  padding-bottom: 0.5rem;
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  font-size: 1.05rem;
}

/* Qualify: requirement cards */

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

.requirement {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.requirement p {
  margin: 0;
}

.requirement .requirement-title {
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--dark);
  font-size: 0.95rem;
  padding: 6rem 0 4rem;
  margin-top: 3rem;
}

.footer-footnote {
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.footer-footnote p,
.footer-disclosures p,
.locked-company-disclosure p {
  margin: 0 0 1.5rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.footer-col h5 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  color: var(--dark);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  padding-bottom: 0.4rem;
}

.footer-col a:hover {
  color: var(--primary);
}

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

.footer-logo img {
  width: auto;
  height: auto;
  max-width: min(220px, 100%);
  max-height: 170px;
}

.footer-disclosures,
.locked-company-disclosure {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-disclosures a,
.footer-footnote a,
.locked-company-disclosure a {
  color: var(--dark);
}

.badge {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 0 1.5rem;
}

.copyright {
  margin: 0;
}

/* Wide tablets: the menu goes behind the burger */

@media (max-width: 1199px) {
  .nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .split-body {
    padding: 4rem 3rem;
  }
}

@media (max-width: 991px) {
  .home-hero-inner,
  .split,
  .compare-cards,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-bottom: 6rem;
  }

  .home-hero-cta {
    display: none;
  }

  .home-hero .lead {
    padding-right: 0;
  }

  .compare-cards {
    gap: 2rem;
  }

  .compare-card--small {
    margin: 0;
  }

  .footer-logo {
    order: -1;
  }

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

  .page-hero {
    padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .home-intro,
  .home-different {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 5.5rem;
  }

  .brand img {
    max-height: 52px;
    max-width: 170px;
  }

  .home-hero h1 {
    font-size: 2rem;
  }

  .home-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .home-hero .lead {
    font-size: 1.3rem;
  }

  .loan-card {
    padding: 1.5rem;
  }

  .loan-card-tab {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .locked-loan-example dl {
    grid-template-columns: 1fr;
  }

  .split-body {
    padding: 2.5rem 1.25rem;
  }

  .faqs,
  .requirements {
    grid-template-columns: 1fr;
  }

  .faq summary {
    min-height: 0;
  }

  .compare-card li {
    padding: 1.25rem;
    gap: 1rem;
  }

  .compare-icon {
    width: 40px;
    height: 40px;
  }

  .rep-card {
    padding: 1.5rem 1.25rem;
  }

  .rep-card .locked-rep-example {
    font-size: 1rem;
  }

  .support table,
  .support thead,
  .support tbody,
  .support tr,
  .support th,
  .support td {
    display: block;
  }

  .support thead {
    display: none;
  }

  .support td {
    border-top: 0;
  }

  .support tr td:first-child {
    border-top: 1px solid var(--border);
  }

  .site-footer {
    padding: 3rem 0 2.5rem;
  }

  .footer-footnote {
    padding: 0;
  }
}

/* ---------- Brand palette: Schibsted Grotesk, teal/coral, photo hero ---------- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin.woff2?v=4c8b93f431') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-ext.woff2?v=ee9eeb232c') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body, h1, h2, h3, h4, h5, h6, .btn, .lead, .display-1, .display-2, .display-3 {
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.brand img, .footer-logo img { height: auto; width: auto; max-width: 190px; max-height: 56px; }
.wordmark { font-weight: 700; letter-spacing: -0.01em; font-size: 1.4rem; color: var(--primary); }
.site-footer .wordmark { color: var(--dark); }

.kicker {
  display: inline-block;
  margin: 0 0 .6rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--primary-wave);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .95rem;
}

/* Photo hero: five slides crossfading, tinted in the brand colour. */
.photo-hero { position: relative; overflow: hidden; background: var(--primary-dark); }
.photo-hero-bg { position: absolute; inset: 0; z-index: 0; }
.photo-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: photo-crossfade 30s infinite;
}
.photo-hero-slide.s1 { background-image: url('/assets/images/slides/slide-01.jpg?v=0f8adc7fd7'); }
.photo-hero-slide.s2 { background-image: url('/assets/images/slides/slide-02.jpg?v=29975f7536'); animation-delay: 6s; }
.photo-hero-slide.s3 { background-image: url('/assets/images/slides/slide-03.jpg?v=3c3eba4ac3'); animation-delay: 12s; }
.photo-hero-slide.s4 { background-image: url('/assets/images/slides/slide-04.jpg?v=cfd82e364f'); animation-delay: 18s; }
.photo-hero-slide.s5 { background-image: url('/assets/images/slides/slide-05.jpg?v=33df27f6a4'); animation-delay: 24s; }
@keyframes photo-crossfade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  20% { opacity: 1; }
  23% { opacity: 0; }
  100% { opacity: 0; }
}
.photo-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(59,104,113,.92) 0%, rgba(59,104,113,.72) 45%, rgba(62,155,151,.45) 100%);
}
.photo-hero .home-hero-inner, .photo-hero .hero-captions { position: relative; z-index: 2; }
.photo-hero .home-hero-text h1, .photo-hero .home-hero-text .lead, .photo-hero .home-hero-text .kicker { color: #fff; }
.photo-hero .home-hero-text .kicker { background: rgba(255,255,255,.16); color: #fff; }
.hero-captions {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center;
  padding-top: 1rem; padding-bottom: 1.6rem; color: #eef6f6; font-size: .95rem; font-weight: 600;
}
.hero-captions span::before { content: "\2022"; margin-right: .45rem; color: var(--secondary); }

/* Soft cards */
.cards-3, .cards-4 {
  display: grid; gap: 1.25rem; margin: 2rem auto 1.75rem; max-width: 1100px; text-align: left;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card, .tick-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 1.4rem 1.3rem; box-shadow: 0 10px 24px rgba(59,104,113,.08);
}
.info-card h3, .tick-card h3 { color: var(--primary-dark); font-size: 1.15rem; margin: 0 0 .5rem; }
.tick-card { border-top: 4px solid var(--primary); }
.tick-card h3::before { content: "\2713"; color: var(--primary); margin-right: .4rem; }

.home-choose { background: var(--page); padding: 3rem 0 1rem; }
.home-eligible { background: var(--light); padding: 3rem 0; }
.home-faqs { padding: 3rem 0 1rem; }
.home-cta { background: var(--primary); color: #fff; padding: 3rem 0; }
.home-cta h2, .home-cta .lead { color: #fff; }
.section-tight { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.btn-outline-secondary { border: 2px solid var(--primary); color: var(--primary-dark); background: transparent; }
.btn-outline-secondary:hover { background: var(--primary); color: #fff; }
.footer-footnote { border-bottom: 1px solid var(--border); padding-bottom: .9rem; margin-bottom: 1.2rem; }

@media (max-width: 991px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .brand img { max-width: 150px; }
}

/* ---------- Layout pass: header in flow, hero below it, no overlay ---------- */
.site-header {
  position: relative;
  z-index: 50;
  height: auto;
  min-height: 5.25rem;
  padding: 0.5rem 1.25rem;
  background: #fff;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  gap: 2rem;
}
.brand, .brand:hover { color: var(--dark); }
.brand img { max-height: 48px; max-width: 200px; }
.nav { gap: 1.6rem; }
.nav a { color: var(--dark); font-size: 1.02rem; font-weight: 600; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.header-cta { font-size: 1rem; padding: 0.7rem 1.5rem; border-radius: 999px; }
.burger, .burger::before, .burger::after { background: var(--dark); }
.mobile-menu-panel {
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
  z-index: 60;
}
.mobile-menu-panel a { color: var(--dark); }
.mobile-menu-panel a.btn { color: #fff; }

/* The hero starts below the header now (it used to sit under a transparent one). */
.home-hero { margin-top: 0; padding: 3rem 0 3.25rem; }
.home-hero-inner, .hero-captions { position: relative; z-index: 1; }
.home-hero-cta { display: inline-block; }
.page-hero { padding: 3rem 0 3.5rem; }

@media (max-width: 991px) {
  .site-header { min-height: 4.5rem; padding: 0.4rem 1rem; }
  .home-hero { padding: 2.25rem 0 2.5rem; }
  .home-hero .home-hero-text { text-align: left; }
  .page-hero { padding: 2.25rem 0 2.5rem; }
}
@media (max-width: 640px) {
  .home-hero h1 { font-size: 2rem; }
  .home-hero-subtitle { font-size: 1.35rem; }
  .hero-captions { display: none; }
}

/* ---------- Logo + hero tint pass ---------- */
.brand img { max-height: 56px; max-width: 240px; }
.photo-hero::after {
  background: linear-gradient(90deg, rgba(59, 104, 113, 0.82) 0%, rgba(62, 155, 151, 0.55) 52%, rgba(62, 155, 151, 0.22) 100%);
}
.photo-hero .home-hero-text { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
@media (max-width: 640px) {
  .brand img { max-height: 44px; max-width: 200px; }
}

/* ---------- Inner pages: the hero sits below the header, not under it ---------- */
.page-hero {
  margin-top: 0;
  padding: 2.75rem 0 3rem;
  text-align: left;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
@media (max-width: 991px) {
  .page-hero { margin-top: 0; padding: 2rem 0 2.25rem; }
}
