/*
Theme Name: Finesse Heating & Plumbing
Theme URI: https://finesse.wpst.dev
Author: Paul Fraser
Description: Bespoke theme for Finesse Plumbing & Heating Engineers. Content is edited via the page editor and ACF fields.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: finesse
*/

/* =========================================================
   Finesse Plumbing & Heating — site styles

   SIZING: the design artboard is 2200pt wide with a 1440pt content
   column. One CSS unit --u = one design point (fixed at 0.8px on
   desktop). Every font size below is the literal size measured in the
   PDF × var(--u), so the type is the same size the client sees when
   the PDF is open on screen, whatever the browser width.

     design 26pt body  ->  calc(26 * var(--u))  -> 20.8px

   FONTS: Figtree throughout (300 light / 400 / 600 semibold / 700 bold).
   Raleway is only used for the form fields and the copyright line,
   exactly as in the PDFs.
   ========================================================= */

:root {
  --orange: #ec6b00;
  --blue: #0081c6;
  --navy: #1a305d;
  --navy-text: #1d315b;
  --ink: #1f1e21;
  --grey-100: #eaeaeb;
  --grey-300: #d5d6d7;
  --grey-500: #808080;
  --white: #ffffff;

  --font-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-form: "Raleway", "Helvetica Neue", Arial, sans-serif;

  /* 1 design pt = 0.8px, fixed. Matches the PDF viewed at ~80-90% zoom:
     body 26pt -> 20.8px, h2 50pt -> 40px, hero 99pt -> 79px, nav 26pt -> 20.8px.
     Change this one number to scale the whole site. */
  --u: 0.8px;

  --container: calc(1440 * var(--u));   /* design content column */
  --gutter: 24px;
  --col-gap: calc(65 * var(--u));       /* gap between the two columns */
  --radius-tab: calc(80 * var(--u));    /* the signature single-corner curve */
  --radius-btn: calc(40 * var(--u));

  /* type scale — values are the pt sizes measured in the PDFs */
  --fs-hero: calc(82 * var(--u));       /* design is 99pt; 82 keeps it inside the content column */
  --fs-hero-sm: calc(76 * var(--u));    /* plumbing + heat pump heroes */
  --hero-copy: calc(var(--container) / 2); /* copy column ends at the container's right edge */
  --fs-h2: calc(50 * var(--u));
  --fs-h3: calc(35 * var(--u));
  --fs-body: calc(26 * var(--u));
  --fs-nav: calc(23 * var(--u));
  --fs-call: calc(30 * var(--u));
  --fs-pill: calc(42 * var(--u));
  --fs-tab: calc(32 * var(--u));
  --fs-tab-big: calc(50 * var(--u));
  --fs-plan-h2: calc(74 * var(--u));
  --fs-plan-price: calc(70 * var(--u));
  --fs-plan-sub: calc(36 * var(--u));
  --fs-plan-terms: calc(30 * var(--u));
  --fs-address: calc(27 * var(--u));
  --fs-emergency: calc(36 * var(--u));
  --fs-form: calc(18 * var(--u));
  --fs-submit: calc(20 * var(--u));
  --fs-legal: calc(16 * var(--u));
}

/* ---------- Reset / 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: 300;
  font-size: var(--fs-body);
  line-height: 1.38;
  color: var(--navy-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }

h1, h2, h3, h4 { margin: 0; color: var(--navy-text); font-family: var(--font-display); }
h1 { font-weight: 300; font-size: var(--fs-hero); line-height: 1.12; color: var(--ink); letter-spacing: -0.03em; }
h1 strong { font-weight: 700; }
.hero__copy h1 strong { display: block; } /* bold phrase on its own line, as in the designs */
h2 { font-weight: 300; font-size: var(--fs-h2); line-height: 1.2; margin-bottom: 0.55em; }
h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; margin-bottom: 0.2em; }

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

/* ---------- Header ---------- */
.site-header { background: var(--white); padding: calc(60 * var(--u)) 0 calc(24 * var(--u)); }
.site-header__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: calc(325 * var(--u)); height: auto; }
.site-header__right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: calc(28 * var(--u)); }

.btn-call {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-call);
  line-height: 1;
  color: var(--white);
  background: var(--blue);
  padding: calc(25 * var(--u)) calc(45 * var(--u));
  border-radius: var(--radius-btn) 0 var(--radius-btn) 0;
  display: inline-block;
  white-space: nowrap;
  transition: background .2s;
}
.btn-call:hover { background: #006ea9; }

.site-nav ul { display: flex; gap: calc(48 * var(--u)); flex-wrap: nowrap; justify-content: flex-end; }
.site-nav a { white-space: nowrap; }
.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-nav);
  line-height: 1.2;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Sections ---------- */
.section { padding: calc(90 * var(--u)) 0; }
.section--grey { background: var(--grey-100); }
.section--white { background: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: start; }
.grid-2--center { align-items: center; }

.text-block p, .text-block li { font-size: var(--fs-body); line-height: 1.38; }
.text-block ul.bullets li { position: relative; padding-left: 0.85em; margin-bottom: 0.77em; } /* 2.15 line pitch in the PDF */
.text-block ul.bullets li::before { content: "•"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.text-block ul.bullets--tight li { margin-bottom: 0.4em; }
.text-block h3 { margin-top: 0.7em; }
.text-block h3:first-child { margin-top: 0; }
.text-block h2 + h3 { margin-top: 0; }

.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall img { aspect-ratio: 1 / 1; }
.figure--square img { aspect-ratio: 10 / 9; }
.figure--wide img { aspect-ratio: 8 / 7; }
.figure--photo img { aspect-ratio: 3 / 2; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: start; }
.hero__copy { padding: calc(70 * var(--u)) 0 calc(40 * var(--u)); }
.hero__copy h1 { margin-bottom: calc(44 * var(--u)); }
.hero__media img { width: 100%; }
.hero--sm h1 { font-size: var(--fs-hero-sm); }
@media (min-width: 901px) and (max-width: 1250px) {
  h1, .hero--sm h1 { font-size: min(var(--fs-hero), 5vw); }
  .plan h2 { font-size: min(var(--fs-plan-h2), 5vw); }
}

/* Full-bleed left image (van / heat pump / plumbing)
   The hero grid ignores the container: left half runs from the viewport edge
   to the centre line; the copy sits in the design's right-hand column. */
.hero--bleed .hero__inner {
  max-width: none;
  padding: 0;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.hero--bleed .hero__media { width: 100%; }
.hero--bleed .hero__media img { width: 100%; }
.hero--bleed .hero__copy {
  max-width: var(--hero-copy);
  padding-left: calc(25 * var(--u));
  padding-right: var(--gutter);
}
.hero--photo .hero__media img { aspect-ratio: 1 / 1; max-height: calc(690 * var(--u)); object-fit: cover; }
/* Heat pumps hero: portrait photo, so crop from nearer the top — keeps the engineer's head in frame when the box is wider than tall (laptops) */
.page-template-template-heat-pumps .hero--photo .hero__media img { object-position: 50% 20%; }

/* Heat pump specialists pill */
.pill-cta {
  display: inline-flex; align-items: center; gap: calc(20 * var(--u));
  background: var(--grey-300);
  padding: calc(14 * var(--u)) calc(40 * var(--u)) calc(14 * var(--u)) calc(24 * var(--u));
  color: var(--navy);
  font-family: var(--font-body);
  transition: background .2s;
}
.pill-cta:hover { background: #c9cbcd; }
.pill-cta img { width: calc(166 * var(--u)); height: auto; }
.pill-cta strong { display: block; font-size: var(--fs-pill); font-weight: 600; line-height: 1.1; }
.pill-cta span { font-weight: 300; font-size: var(--fs-pill); line-height: 1.1; }

/* Product hero (boiler on gradient) — same full-width grid as the bleed hero;
   the boiler panel is 660pt wide and sits 150pt left of the centre line, as in the PDF */
.hero--product .hero__inner { max-width: none; padding: 0; grid-template-columns: 1fr 1fr; gap: 0; }
.hero--product .hero__media {
  width: min(calc(660 * var(--u)), calc(100% - 150 * var(--u)));
  margin: 0 calc(150 * var(--u)) 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #ececee 100%);
  padding: calc(60 * var(--u)) calc(80 * var(--u));
}
.hero--product .hero__copy {
  max-width: var(--hero-copy);
  padding-left: calc(30 * var(--u));
  padding-right: var(--gutter);
}
.hero--product .hero__media img { max-height: calc(880 * var(--u)); width: auto; margin: 0 auto; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Tab buttons (single curved corner) ---------- */
.tab-btn {
  display: block;
  color: var(--white);
  font-family: var(--font-body);
  border-radius: 0 0 var(--radius-tab) 0;
  padding: calc(36 * var(--u)) calc(40 * var(--u));
  transition: filter .2s;
}
.tab-btn:hover { filter: brightness(.92); }
.tab-btn--orange { background: var(--orange); }
.tab-btn--blue { background: var(--blue); }
.tab-btn > strong { font-weight: 600; font-size: var(--fs-tab); line-height: 1.1; }
.tab-btn--large { padding: calc(32 * var(--u)) calc(36 * var(--u)) calc(28 * var(--u)); }
.tab-btn--large > strong { display: block; font-size: var(--fs-tab-big); line-height: 1.0; font-weight: 700; }
.tab-btn--large span { display: block; font-weight: 300; font-size: var(--fs-body); line-height: 1.2; margin-top: calc(14 * var(--u)); }
.tab-btn + .tab-btn { margin-top: calc(20 * var(--u)); }

/* Image with tab button attached to the bottom */
.figure-cta { display: flex; flex-direction: column; }
.figure-cta img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure-cta .tab-btn { border-radius: 0 0 var(--radius-tab) 0; }
.figure-stack { display: flex; flex-direction: column; gap: calc(40 * var(--u)); }

/* ---------- Team banner ---------- */
.team-banner { padding: calc(80 * var(--u)) 0 0; background: var(--white); }
.team-banner .container { max-width: calc(1860 * var(--u)); }
.team-banner img { width: 100%; margin: 0 auto; }

/* ---------- Logos / badges ---------- */
.badge-row { display: flex; gap: calc(60 * var(--u)); align-items: center; flex-wrap: wrap; margin: calc(40 * var(--u)) 0 calc(16 * var(--u)); }
.badge-row img { height: calc(170 * var(--u)); width: auto; }
/* Supplier logos (home): first two logos share the top row, the rest sit three to a row — as in the design */
.logo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: calc(40 * var(--u)) calc(36 * var(--u)); align-items: center; margin: calc(36 * var(--u)) 0 calc(48 * var(--u)); }
.logo-row img { grid-column: span 2; width: auto; height: auto; max-width: 100%; max-height: calc(90 * var(--u)); justify-self: center; }
.logo-row img:nth-child(-n+2) { grid-column: span 3; max-height: calc(110 * var(--u)); }
.accredited-list li { font-weight: 600; font-size: var(--fs-body); line-height: 1.38; }

/* ---------- Map ---------- */
.map-embed { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }

/* ---------- Care plan bands ---------- */
.plan { padding: calc(100 * var(--u)) 0 calc(110 * var(--u)); color: var(--white); font-weight: 400; }
.plan h2 { color: var(--white); font-weight: 300; font-size: var(--fs-plan-h2); line-height: 1.08; margin-bottom: calc(55 * var(--u)); max-width: 10em; }
.plan--orange { background: var(--orange); }
.plan--blue { background: var(--blue); }
.plan--navy { background: var(--navy); }
.plan--grey { background: var(--grey-500); }

.plan__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: start; }

.plan-card {
  background: var(--ink);
  color: var(--white);
  padding: calc(50 * var(--u)) calc(40 * var(--u)) calc(70 * var(--u));
  border-radius: 0 0 calc(180 * var(--u)) 0;
}
.plan-card__price { font-weight: 700; font-size: var(--fs-plan-price); color: var(--orange); line-height: 1.1; }
.plan-card__sub { font-size: var(--fs-plan-sub); font-weight: 400; line-height: 1.28; margin: calc(18 * var(--u)) 0 0; }
.plan-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.7); margin: calc(44 * var(--u)) 0; }
.plan-card p { font-size: var(--fs-body); font-weight: 400; line-height: 1.38; margin-bottom: 0.3em; }

.plan__details h3 { color: var(--white); font-weight: 600; font-size: calc(40 * var(--u)); line-height: 1.2; margin-bottom: calc(24 * var(--u)); }
.plan__details ul li { position: relative; padding-left: 0.75em; font-size: var(--fs-body); font-weight: 400; line-height: 1.23; margin-bottom: 0.3em; }
.plan__details ul li::before { content: "•"; position: absolute; left: 0; }
.plan__details p { font-size: var(--fs-body); font-weight: 400; line-height: 1.38; margin: 0.3em 0 0; }
.plan__details p:first-of-type { margin-top: 0.6em; }
.plan__terms { display: inline-block; white-space: nowrap; margin-top: calc(50 * var(--u)); font-size: var(--fs-plan-terms); font-weight: 600; text-transform: uppercase; line-height: 1.2; border-bottom: 2px solid transparent; }
.plan__terms:hover { border-bottom-color: currentColor; }

/* ---------- Footer / contact ---------- */
.site-footer { background: var(--grey-300); padding: calc(100 * var(--u)) 0 calc(90 * var(--u)); color: var(--ink); font-weight: 300; }
.site-footer__grid { display: grid; grid-template-columns: calc(560 * var(--u)) 1fr; gap: var(--col-gap); }
.site-footer__logo img { width: calc(325 * var(--u)); }
.site-footer h2 { color: var(--ink); font-size: var(--fs-h2); line-height: 1.2; margin-bottom: 0; }
.site-footer address { font-style: normal; font-size: var(--fs-address); line-height: 1.41; margin-bottom: calc(24 * var(--u)); }
.site-footer address strong { display: block; font-weight: 600; }
.site-footer address a { font-weight: 600; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: calc(20 * var(--u)) calc(40 * var(--u)); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--font-form);
  font-weight: 400;
  font-size: var(--fs-form);
  padding: calc(16 * var(--u)) calc(20 * var(--u));
  border: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
}
.contact-form ::placeholder { color: var(--ink); opacity: 1; }
.contact-form textarea { min-height: calc(170 * var(--u)); resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); }
.contact-form__foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: calc(24 * var(--u)); align-items: flex-start; margin-top: calc(10 * var(--u)); }
.btn-submit {
  font-family: var(--font-form); font-weight: 400; font-size: var(--fs-submit); text-transform: uppercase; line-height: 1;
  background: var(--navy); color: var(--white); border: 0; padding: calc(24 * var(--u)) calc(18 * var(--u)); cursor: pointer;
}
.btn-submit:hover { background: #12244a; }
.site-footer__legal { font-family: var(--font-form); font-size: var(--fs-legal); line-height: 1.31; font-weight: 700; margin: 0; }
.site-footer__legal a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.emergency { font-weight: 600; font-size: var(--fs-emergency); line-height: 1.2; color: var(--navy-text); margin-top: calc(40 * var(--u)); }
.emergency a { color: var(--navy-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --u: 0.65px; --gutter: 20px; }         /* body 16.9px */
  .grid-2, .hero__inner, .plan__grid, .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  h1, .hero--sm h1 { font-size: clamp(1.75rem, 6.5vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 5.5vw, 2rem); }
  .plan h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); max-width: none; }
  .plan-card__price { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .tab-btn--large > strong { font-size: clamp(1.25rem, 5vw, 1.8rem); }
  .tab-btn { padding: 20px 24px; }
  .tab-btn--large { padding: 22px 24px 18px; }
  /* Heroes stack: image on top, copy below, both inside the gutter */
  .hero--bleed .hero__inner, .hero--product .hero__inner, .hero--finance .hero__inner { grid-template-columns: 1fr; gap: 20px; padding: 0 var(--gutter); }
  .hero--bleed .hero__copy, .hero--product .hero__copy { max-width: none; padding: 4px 0 32px; }
  .hero--bleed .hero__media { margin: 0 calc(-1 * var(--gutter)); width: auto; }
  .hero--bleed .hero__media img { width: 100%; }
  .hero--photo .hero__media img { aspect-ratio: 4 / 3; max-height: none; }
  .hero--product .hero__media { width: 100%; margin: 0; padding: 24px 40px; }
  .hero--product .hero__media img { max-height: 260px; }
  #spread-the-cost > .grid-2 > .figure--logo { order: 1; } /* Ideal4Finance panel under the text on mobile */
  .hero__copy { padding: 4px 0 32px; }
  .hero__copy h1 { margin-bottom: 24px; }
  .plan__terms { white-space: normal; }
  .section { padding: 48px 0; }
  .grid-2 > .figure { order: -1; }
  .grid-2 > .text-block { order: 0; }
  .plan { padding: 48px 0 56px; }
  .site-header { padding: 24px 0 12px; }
  .site-header__row { align-items: center; flex-wrap: wrap; }
  .site-nav ul { flex-wrap: wrap; gap: 18px; }
  .site-header__right { align-items: flex-end; gap: 12px; }
  .site-header__logo img, .site-footer__logo img { width: 190px; }
  .btn-call { padding: 12px 22px; }
  .contact-form input, .contact-form textarea { font-size: 14px; padding: 10px 12px; }
  .btn-submit { font-size: 14px; padding: 13px 14px; }
  .site-footer__legal { font-size: 11px; }
}
@media (max-width: 640px) {
  /* Header: one compact row — logo | call | burger. Menu drops down OVER the page. */
  .site-header { position: relative; z-index: 50; padding: 16px 0; }
  .site-header__row { flex-wrap: nowrap; align-items: center; gap: 12px; }
  .site-header__logo img { width: 130px; }
  .site-header__right { flex-direction: row; align-items: center; justify-content: flex-end; gap: 6px; }
  .btn-call { font-size: .85rem; padding: 9px 14px; }
  .btn-call__label { display: none; }
  .nav-toggle { display: block; position: relative; width: 42px; height: 42px; padding: 0; }
  .nav-toggle span { position: absolute; left: 8px; width: 26px; margin: 0; transition: transform .25s, opacity .2s; }
  .nav-toggle span:nth-child(1) { top: 12px; }
  .nav-toggle span:nth-child(2) { top: 19.5px; }
  .nav-toggle span:nth-child(3) { top: 27px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: 0 12px 24px rgba(0,0,0,.12); border-top: 1px solid var(--grey-100);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 4px var(--gutter) 12px; }
  .site-nav li + li { border-top: 1px solid var(--grey-100); }
  .site-nav a { display: block; font-size: 1.05rem; padding: 14px 0; border-bottom: 0; }
  .site-nav a[aria-current="page"], .site-nav .current-menu-item > a { color: var(--orange); }
  .contact-form { grid-template-columns: 1fr; }
  .badge-row img { height: 80px; }
  .logo-row img { max-height: 48px; }
  .logo-row img:nth-child(-n+2) { max-height: 60px; }
  .plan-card { border-radius: 0 0 60px 0; }
}


/* =========================================================
   WordPress additions
   ========================================================= */
/* Editor / WYSIWYG content inside a text block gets the design bullets */
.text-block ul { list-style: none; margin: 0 0 1em; padding: 0; }
.text-block ul li { position: relative; padding-left: 0.85em; margin-bottom: 0.77em; font-size: var(--fs-body); line-height: 1.38; }
.text-block ul li::before { content: "•"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.text-block ul.accredited-list li { padding-left: 0; margin-bottom: 0; }
.text-block ul.accredited-list li::before { content: none; }
.text-block ol { margin: 0 0 1em; padding-left: 1.4em; }
.text-block a { text-decoration: underline; }
.text-block a:hover { color: var(--blue); }
.text-block img { margin: 1em 0; }
.h2--spaced { margin-top: 1.4em; }
.section--flush-top { padding-top: 0; }
.text-block--narrow { max-width: calc(1000 * var(--u)); }
.page-title { font-weight: 300; font-size: var(--fs-h2); line-height: 1.2; color: var(--navy-text); letter-spacing: 0; margin-bottom: 0.6em; }

/* Care plan right column: WYSIWYG lists / paragraphs */
.plan__details ul { margin: 0; padding: 0; list-style: none; }
.plan__details ul li::before { color: inherit; }
.plan-card p:last-child { margin-bottom: 0; }

/* Contact form notices */
.contact-form__notice { font-family: var(--font-form); font-size: var(--fs-form); font-weight: 700; margin: 0; color: var(--navy); }
.contact-form__notice--error { color: #b00020; }

/* WordPress menu markup: current item underline */
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--orange); }

/* Admin bar */
.admin-bar .site-header { padding-top: calc(60 * var(--u)); }

/* =========================================================
   Finance page
   ========================================================= */
:root { --fs-rate: calc(36 * var(--u)); --fs-small: calc(19 * var(--u)); --fs-pill: calc(18 * var(--u)); }
.hero--finance .hero__inner { align-items: center; }
.hero--finance .hero__copy h1 { margin-bottom: 0; }

.figure--logo img { aspect-ratio: 6 / 5; object-fit: cover; }
.rates { margin: 0.4em 0 1.2em; }
.text-block ul.rates li { padding-left: 0; margin-bottom: 0.9em; }
.text-block ul.rates li::before { content: none; }
.rate__title { display: block; font-weight: 700; font-size: var(--fs-rate); line-height: 1.15; color: var(--navy-text); }
.rate__sub { display: block; font-weight: 700; font-size: var(--fs-body); line-height: 1.2; color: var(--navy-text); }
.cta-block { margin: 1.2em 0; }
.cta-block p { font-weight: 700; margin-bottom: 0.5em; }
.btn-pill {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-pill);
  line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--white);
  padding: calc(12 * var(--u)) calc(24 * var(--u)); border-radius: calc(6 * var(--u)); transition: filter .2s;
}
.btn-pill:hover { filter: brightness(.92); }
.text-block .btn-pill, .text-block .btn-pill:hover { text-decoration: none; color: var(--white); }
.btn-pill--blue { background: var(--blue); }
.btn-pill--orange { background: var(--orange); }
.text-block .small-print p { font-size: var(--fs-small); line-height: 1.35; }
.small-print--legal { margin-top: 1.2em; }
.text-block .small-print--legal p strong { display: block; font-size: var(--fs-body); font-weight: 700; margin-bottom: 0.15em; }
@media (max-width: 900px) {
  .rate__title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .btn-pill { font-size: 13px; padding: 10px 18px; }
}

/* =========================================================
   Wide screens (client, 2nd pass): headline starts where it always did — on
   the centre line — but is bigger and is allowed to run out to the RIGHT,
   past the nav's edge (by up to half the page margin), rather than pushing left.
   The orange / blue / grey buttons stay inside the content column.
   ========================================================= */
@media (min-width: 1251px) {
  .hero--bleed .hero__inner, .hero--product .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero--bleed .hero__copy, .hero--product .hero__copy {
    max-width: none;
    padding-right: calc(var(--gutter) * 2);
  }
  /* How far the headline may run past the nav's right edge: half the page margin, max 200pt */
  :root { --hero-overhang: min(calc(max(0px, (100vw - var(--container)) / 2) * 0.5), calc(200 * var(--u))); }
  .hero--bleed .hero__copy h1, .hero--product .hero__copy h1 {
    max-width: calc(var(--container) / 2 - var(--gutter) + var(--hero-overhang));
    font-size: min(calc(90 * var(--u)), 4.8vw);
  }
  .hero--bleed .hero__copy > .tab-btn, .hero--product .hero__copy > .tab-btn,
  .hero--bleed .hero__copy > .pill-cta {
    max-width: calc(var(--container) / 2 - var(--gutter) - 30 * var(--u));
  }
}


.gform-theme--foundation .gform_fields {
	gap: 10px !important;
}
