/* Truly Funding site styles. Sections follow the page order: base, utilities, buttons, icons,
   navigation, headers, home page sections, application pages, legal pages, contact, footer. */

/* ---------- Tokens ---------- */
:root {
  --yellow: #ffc412;
  --yellow-dark: #e6ad00;
  --navy: #103045;
  --navy-deep: #0b2233;
  --slate: #283c3f;
  --grey-line: #f0f2f1;
  --grey-text: #6b6b6b;
  --text: #333;
  --white: #fff;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --container: 1000px;
  --gutter: 20px;
  --focus: 3px solid var(--yellow);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.15; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }

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

[id] { scroll-margin-top: 16px; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(900px + 2 * var(--gutter)); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* ---------- Headings shared by sections ---------- */
.section { padding: 80px 0; }

.section__heading {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  text-align: center;
  margin-bottom: 0.9em;
  overflow-wrap: anywhere;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button--primary { background: var(--yellow); color: var(--navy); }
.button--primary:hover { background: var(--yellow-dark); }

.button--dark { background: var(--navy); color: var(--white); }
.button--dark:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.button--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.button--outline:hover { background: var(--navy); color: var(--white); }

.button[disabled],
.button[aria-busy='true'] { opacity: 0.65; cursor: progress; }

/* ---------- Icons (mask images so they take currentColor) ---------- */
.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon--pin {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}

.icon--phone {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16.5v3a2 2 0 0 1-2.2 2A19.8 19.8 0 0 1 2.5 5.2 2 2 0 0 1 4.5 3h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8.5 10.7a16 16 0 0 0 4.8 4.8l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.icon--mail {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%3E%3C/svg%3E");
}

.icon--home {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5.5 9.5V20h5v-5.5h3V20h5V9.5'/%3E%3C/svg%3E");
}

.icon--check {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' stroke-width='1.8'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E");
}

.line-icon { width: 100%; height: 100%; display: block; }

/* ---------- Navigation ---------- */
.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.nav__link {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle-bar { top: 50%; margin-top: -1px; }
.nav__toggle-bar::before,
.nav__toggle-bar::after { content: ''; }
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after { top: 6px; }

.nav.is-open .nav__toggle-bar { background: transparent; }
.nav.is-open .nav__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero (home page) navigation: white links, current item outlined in yellow. */
.nav--hero { color: var(--white); }
.nav--hero .nav__list { justify-content: flex-end; }
.nav--hero .nav__link:hover { color: var(--yellow); }
.nav--hero .nav__link[aria-current='page'] { border-color: var(--yellow); }

/* Plain header navigation */
.site-header .nav { color: var(--text); }
.site-header .nav__link { font-weight: 300; font-size: 0.9375rem; padding-inline: 12px; }
.site-header .nav__link:hover { color: var(--navy); border-bottom-color: var(--yellow); }
.site-header .nav__link[aria-current='page'] { border-bottom-color: var(--yellow); }

/* Seven nav items: tighten spacing just above the collapse point so the row never wraps. */
@media (min-width: 960px) and (max-width: 1199px) {
  .nav__link,
  .site-header .nav__link { padding-inline: 9px; font-size: 0.8125rem; }
  .nav__list { gap: 4px; }
}

@media (max-width: 959px) {
  /* Without JS (no .js class) the menu stays visible and simply wraps. */
  .js .nav__toggle { display: inline-block; }
  .js .nav__menu { display: none; }
  .js .nav.is-open .nav__menu { display: block; }

  .nav__list { justify-content: center; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__link { display: block; padding: 12px 14px; }

  .js .nav--hero.is-open .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(11, 34, 51, 0.97);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  .js .nav--hero .nav__link { padding-inline: var(--gutter); }

  .site-header .nav { display: flex; flex-direction: column; align-items: flex-end; }
  .js .site-header .nav.is-open .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--white);
    border-top: 1px solid var(--grey-line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .js .site-header .nav__link { padding-inline: var(--gutter); border-width: 0 0 0 4px; }
  .js .site-header .nav__link[aria-current='page'],
  .js .site-header .nav__link:hover { border-left-color: var(--yellow); }
}

/* ---------- Hero header (home page) ---------- */
.hero {
  padding-bottom: 56px;
  color: var(--white);
  background:
    linear-gradient(rgba(16, 40, 60, 0.78), rgba(16, 40, 60, 0.88)),
    var(--navy) url('/assets/img/hero-city.webp') center / cover no-repeat;
}

.hero a { text-decoration: none; }

.hero__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 8px;
  font-size: 0.8125rem;
  font-weight: 300;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__bar-item { display: inline-flex; align-items: center; gap: 8px; }
.hero__bar-item .icon { color: var(--yellow); }
a.hero__bar-item:hover { color: var(--yellow); }

/* Logo left, nav right, on one row. Positioned so the open mobile menu can drop below it. */
.hero__top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 4px;
}

.hero__logo { display: block; flex: none; }
.hero__logo img { width: 90px; height: auto; }

.hero__main { display: grid; gap: 32px; }

@media (min-width: 960px) {
  .hero__main--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
    align-items: start;
    gap: 48px;
  }
}

.hero__headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  color: var(--white);
  overflow-wrap: break-word;
}

.hero__rule {
  width: 120px;
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 3px solid var(--yellow);
}

.hero__subhead { max-width: 560px; margin-bottom: 24px; font-size: 1.0625rem; font-weight: 300; line-height: 1.7; }

.hero__points { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.hero__points li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.hero__points .icon { width: 1.25em; height: 1.25em; color: var(--yellow); }

.hero__call { margin: 0; font-weight: 300; }
.hero__call a { font-weight: 700; color: var(--yellow); }
.hero__call a:hover { text-decoration: underline; }

@media (max-width: 599px) {
  .hero { padding-bottom: 32px; }
  .hero__bar { justify-content: center; }
  .hero__bar-item--hide-sm { display: none; }
  .hero__logo img { width: 72px; }
  .hero__main { padding-top: 8px; }
  .hero__rule { margin: 14px 0; }
  .hero__subhead { font-size: 0.9375rem; margin-bottom: 16px; }
  .hero__points { margin-bottom: 16px; }
}

/* The options form card in the hero: dark text on white, so it reads on the photo background. */
.quote-card {
  width: 100%;
  max-width: 580px;
  padding: 18px 22px 20px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.hero .quote-card a { text-decoration: underline; }

.quote-card__heading {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  margin-bottom: 0.25em;
}

.quote-card__intro { margin-bottom: 10px; font-size: 0.8125rem; line-height: 1.5; font-weight: 300; color: var(--grey-text); }

/* Compact controls so the whole card, button included, fits a laptop screen. */
.quote-card .quote-form { gap: 8px; }
.quote-card .quote-form__grid { gap: 8px 14px; }
.quote-card .field__label { margin-bottom: 4px; font-size: 0.8rem; line-height: 1.2; }
.quote-card .quote-form .field__input { height: 40px; min-height: 40px; padding-block: 6px; font-size: 0.875rem; }
.quote-card .quote-form__more > summary { min-height: 32px; font-size: 0.8125rem; }
.quote-card .field--consent .consent { font-size: 0.7rem; line-height: 1.4; }
.quote-card .quote-form__submit { min-height: 46px; }

@media (max-width: 599px) {
  .quote-card { padding: 20px 16px; }
}

/* ---------- Plain header (all other pages) ---------- */
.site-header { position: relative; background: var(--white); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.site-header__logo img { width: 110px; }

@media (max-width: 959px) {
  .site-header__logo img { width: 84px; }
}

/* ---------- About ---------- */
.about__inner { text-align: center; }

.about__text {
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--grey-text);
  text-align: left;
  margin-bottom: 1.75em;
}

/* ---------- Some facts ---------- */
.facts { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }

.facts__intro { background: var(--yellow); display: flex; justify-content: flex-end; }

.facts__intro-inner { max-width: 420px; padding: 80px 40px 80px var(--gutter); }

.facts__heading { text-align: left; }

.facts__intro p { font-weight: 300; font-size: 0.875rem; color: var(--navy); margin-bottom: 1.75em; }

.facts__panel {
  display: flex;
  align-items: center;
  padding: 60px 40px;
  background: var(--slate);
  color: var(--white);
}

.facts__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
  width: 100%;
  max-width: 640px;
}

.fact { display: flex; flex-direction: column; align-items: center; text-align: center; }

.fact__icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  margin-bottom: 18px;
  background: var(--yellow);
  color: var(--slate);
}

.fact__value {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fact__label {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 959px) {
  .facts { grid-template-columns: 1fr; }
  .facts__intro { justify-content: center; }
  .facts__intro-inner { max-width: 720px; width: 100%; padding: 60px var(--gutter); }
  .facts__panel { justify-content: center; padding: 60px var(--gutter); }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Finance services ---------- */
.services__grid,
.team__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px;
  border: 3px solid var(--grey-line);
  text-align: center;
}

.service-card__icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--navy); }

.service-card__title,
.team-card__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card__text { margin: 0; font-weight: 300; font-size: 0.875rem; color: var(--grey-text); }

@media (max-width: 959px) {
  .services__grid,
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .services__grid,
  .team__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- "Works for you" band ---------- */
.band { padding: 80px 0; background: var(--yellow); }
.band__inner { text-align: center; }
.band .section__heading { margin-bottom: 0.6em; }
.band__text { font-weight: 300; font-size: 0.9375rem; color: var(--navy); margin-bottom: 1.75em; }
.band .button { text-transform: none; font-size: 0.875rem; letter-spacing: 0.02em; }
.band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }

/* ---------- Team / advisors ---------- */
.team-card { border: 3px solid var(--grey-line); text-align: center; padding-bottom: 24px; }

.team-card__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 22px; }

.team-card__name { margin-bottom: 4px; padding-inline: 12px; }

.team-card__role { margin: 0; padding-inline: 12px; font-weight: 300; font-size: 0.875rem; color: var(--grey-text); }

/* ---------- Application pages ---------- */
.application { padding: 48px 0 80px; }

.application__frame {
  display: block;
  width: 100%;
  min-height: 1500px;
  border: 0;
  background: var(--white);
}

/* ---------- Quote page ---------- */
.quote { padding: 56px 0 80px; background: #f5f6f6; border-top: 1px solid var(--grey-line); }

.quote__header { max-width: 760px; margin-bottom: 32px; }

.quote__heading {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  margin-bottom: 0.4em;
}

.quote__intro { margin: 0; font-weight: 300; color: var(--grey-text); }

.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.quote__card {
  padding: 32px;
  background: var(--white);
  border: 1px solid #e3e6e5;
  box-shadow: 0 2px 10px rgba(16, 48, 69, 0.06);
}

.quote__aside {
  padding: 28px 24px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
}

.quote__aside-heading {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 1.25rem;
  margin-bottom: 0.6em;
}

.quote__aside-subheading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 1.5em 0 0.5em;
}

.quote__services { list-style: none; }
.quote__services li { padding: 4px 0 4px 16px; position: relative; }
.quote__services li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; background: var(--yellow); }

.quote__aside-contact { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.quote__aside-contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; overflow-wrap: anywhere; }
.quote__aside-contact a:hover { color: var(--yellow); text-decoration: underline; }
.quote__aside-contact .icon { color: var(--yellow); }

.quote-form { display: flex; flex-direction: column; gap: 18px; }

.quote-form__note { margin: 0; font-size: 0.8125rem; color: var(--grey-text); }

.quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field--wide { grid-column: 1 / -1; }

.field__label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 700; color: var(--navy); }

.field__req { color: #c0392b; font-weight: 700; }

.quote-form .field__input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c9cfcd;
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.quote-form .field__select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23103045' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.quote-form .field__input::placeholder { color: #8a8a8a; opacity: 1; }

.quote-form .field__input:focus-visible { outline: var(--focus); outline-offset: 0; border-color: var(--navy); }

.quote-form [aria-invalid='true'] { border-color: #c0392b; box-shadow: inset 0 0 0 1px #c0392b; }

.field__error { margin: 4px 0 0; font-size: 0.8125rem; font-weight: 700; color: #b03a2e; }
.field__error:empty { display: none; }

.field--radios { margin: 0; padding: 0; border: 0; min-width: 0; }

.field__radios { display: flex; flex-wrap: wrap; gap: 8px 28px; }

.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }

.field--consent .consent { color: var(--text); font-size: 0.75rem; }
.field--consent .consent a { color: var(--navy); font-weight: 700; }
.field--consent .consent input { accent-color: var(--navy); }
.field--consent .consent input[aria-invalid='true'] { outline: 2px solid #c0392b; outline-offset: 2px; }

.quote-form__submit { width: 100%; min-height: 52px; font-size: 0.9375rem; }

/* Honeypot: same treatment as the contact form's. */
.quote-form__hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form__status { margin: 0; font-size: 0.9375rem; }
.quote-form__status:empty { display: none; }
.quote-form__status.is-success,
.quote-form__status.is-error { padding: 12px 14px; border-left: 4px solid; }
.quote-form__status.is-success { border-color: #2e8b57; background: #e8f6ee; color: #1d5c3a; }
.quote-form__status.is-error { border-color: #c0392b; background: #fbeaea; color: #8e2a20; }

.quote-form__call { margin: 0; text-align: center; font-size: 0.9375rem; }
.quote-form__call a { color: var(--navy); font-weight: 700; }

/* Optional fields folded away in the compact hero card. */
.quote-form__more { border-top: 1px solid var(--grey-line); border-bottom: 1px solid var(--grey-line); }

.quote-form__more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.quote-form__more > summary::-webkit-details-marker { display: none; }

.quote-form__more > summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.quote-form__more[open] > summary::before { transform: rotate(45deg); }

.quote-form__more > .quote-form__grid { padding-bottom: 14px; }

/* Shown after JS replaces the form on success. */
.quote-confirmation {
  padding: 24px;
  border-left: 4px solid var(--yellow);
  background: #fffaf0;
  color: var(--text);
}

.quote-confirmation:focus { outline: none; }
.quote-confirmation:focus-visible { outline: var(--focus); outline-offset: 3px; }

.quote-confirmation__heading {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}

.quote-confirmation p { margin: 0 0 0.75em; }
.quote-confirmation p:last-child { margin-bottom: 0; }
.quote-confirmation__reference { font-size: 0.9375rem; }
.quote-confirmation__reference strong { color: var(--navy); letter-spacing: 0.04em; }

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

@media (max-width: 599px) {
  .quote { padding: 40px 0 56px; }
  .quote__card { padding: 20px 16px; }
  .quote-form__grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages (privacy, terms, legal notice) ---------- */
.legal {
  max-width: calc(800px + 2 * var(--gutter));
  padding-block: 56px 80px;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.legal h1 {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  margin-bottom: 0.4em;
}

.legal h2 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--navy);
  font-size: 1.5rem;
  margin: 2em 0 0.6em;
}

.legal h3 { font-weight: 700; font-size: 1.125rem; color: var(--navy); margin: 1.6em 0 0.5em; }

.legal p { margin: 0 0 1em; }

.legal ul { margin: 0 0 1.2em; padding-left: 1.4em; }

.legal li { margin-bottom: 0.4em; }

.legal a { color: var(--navy); font-weight: 700; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }

.legal__updated { font-size: 0.875rem; color: var(--grey-text); margin-bottom: 2em; }

/* ---------- Contact section ---------- */
.contact { padding: 80px 0; background: var(--navy); color: var(--white); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 40px 48px;
}

.contact__heading {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  margin-bottom: 0.4em;
}

.contact__list { list-style: none; font-size: 0.9375rem; }

.contact__list li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; overflow-wrap: anywhere; }

.contact__list .icon { color: var(--yellow); }

.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--yellow); text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field { display: block; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #777; opacity: 1; }

.field input:focus-visible,
.field textarea:focus-visible { outline: var(--focus); outline-offset: 0; }

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: #ff8a80; box-shadow: inset 0 0 0 2px #ff8a80; }

/* Honeypot: off-screen for people, still in the form for bots. */
.contact-form__hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.6875rem;
  line-height: 1.6;
  cursor: pointer;
}

.consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--yellow); }

.consent a { color: var(--yellow); }

.contact-form__terms { margin: 0; font-size: 0.6875rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.contact-form__terms a { color: var(--yellow); }

.contact-form__submit { width: 100%; }

/* No-JS result messages: the form endpoint redirects to #<form>-sent or #<form>-error and :target
   reveals the matching paragraph. Light backgrounds keep them readable on navy and on white. */
.form-flash { display: none; margin: 0; padding: 12px 14px; border-left: 4px solid; font-size: 0.875rem; }
.form-flash:target { display: block; scroll-margin-top: 24px; }
.form-flash a { color: inherit; font-weight: 700; text-decoration: underline; }
.form-flash--success { border-color: #2e8b57; background: #e8f6ee; color: #1d5c3a; }
.form-flash--error { border-color: #c0392b; background: #fbeaea; color: #8e2a20; }

.contact-form__status { margin: 0; font-size: 0.875rem; min-height: 1.4em; }

.contact-form__status:empty { min-height: 0; }

.contact-form__status.is-success,
.contact-form__status.is-error { padding: 10px 14px; border-left: 4px solid; }

.contact-form__status.is-success { border-color: #6fcf97; background: rgba(111, 207, 151, 0.14); }

.contact-form__status.is-error { border-color: #ff8a80; background: rgba(255, 138, 128, 0.14); }

@media (max-width: 767px) {
  .contact { padding: 60px 0; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 20px 0;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer p { margin: 0; }

.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }

.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: var(--yellow); text-decoration: underline; }

@media (max-width: 599px) {
  .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer__links { justify-content: center; }
}

/* ---------- Shared small-screen spacing ---------- */
@media (max-width: 599px) {
  .section,
  .band { padding: 56px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
