/* ==========================================================================
   Bright Lives of Florida — stylesheet
   Brand: navy #063c7a  ·  sun orange #f5a51b  ·  sun yellow #fddf33
   ========================================================================== */

:root {
  --navy-900: #041f45;
  --navy-800: #063c7a;
  --navy-700: #0b4f9c;
  --navy-600: #1263bd;
  --blue-600: #0d5cad;
  --blue-500: #1f7ad6;
  --blue-400: #6ab3f0;
  --blue-100: #e8f1fd;
  --sun-500: #f5a51b;
  --sun-400: #fdc433;
  --sun-300: #fddf33;

  --ink: #0d1b2f;
  --body: #41526b;
  --muted: #5c6b80;
  --control-border: #7f8898;
  --line: #e3eaf3;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --surface-3: #eaf1f9;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 60, 122, .06), 0 2px 8px rgba(6, 60, 122, .06);
  --shadow: 0 10px 30px rgba(6, 60, 122, .12);
  --shadow-lg: 0 24px 60px rgba(4, 31, 69, .20);

  --wrap: 1160px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }

/* Without this the UA default (margin: 1em 40px) insets every hero figure. */
figure { margin: 0; }

/* Anchored headings must clear the 82px sticky header. */
#main, #services, #estimate, #estimate-form { scroll-margin-top: 96px; }
#main:focus { outline: none; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Colour alone is 1.19:1 against surrounding body text — underline in prose. */
main p a:not(.btn):not(.card-link),
.prose li a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--surface-2); }
.section--navy { background: var(--navy-800); color: #cfdff2; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--sun-400); }

.lead { font-size: 1.12rem; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 54px); }
.section-head--center { margin-inline: auto; text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: #fff; padding: 12px 18px; z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* --blue-500 measures 1.2-1.5:1 on the navy surfaces — invisible as a ring. */
.hero :focus-visible,
.page-head :focus-visible,
.cta-band :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--sun-500); color: #3b2401; box-shadow: 0 8px 20px rgba(245, 165, 27, .38); }
.btn--primary:hover { background: var(--sun-400); }

.btn--aqua { background: var(--navy-700); color: #fff; box-shadow: 0 8px 20px rgba(11, 79, 156, .30); }
.btn--aqua:hover { background: var(--navy-600); }

.btn--outline { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 82px; }

/* The toggle now precedes the panel it controls in the DOM, so Tab reaches the
   open menu instead of skipping past it. Visual order is restored here. */
.header-inner > .site-nav { order: 1; }
.header-inner > .header-cta { order: 2; }
.header-inner > .nav-toggle { order: 3; margin-left: 12px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none !important; margin-right: auto; }
.brand img { height: 56px; width: auto; }
@media (max-width: 560px) { .brand img { height: 46px; } }

.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--navy-800); text-decoration: none !important;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-3); }
.site-nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-100); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--navy-800); text-decoration: none !important; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--blue-600); }
.header-phone:hover { color: var(--blue-600); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; flex: none;
  border: 1px solid var(--control-border); border-radius: 12px; background: #fff;
  cursor: pointer; color: var(--navy-800);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1300px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 22px 20px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-toggle { display: flex; }
}
@media (max-width: 700px) {
  .header-cta .btn { display: none; }   /* the fixed call bar takes over here */
}
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
  .header-phone svg { width: 20px; height: 20px; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(106, 179, 240, .30), transparent 62%),
    radial-gradient(700px 500px at 94% 6%, rgba(245, 165, 27, .20), transparent 62%),
    linear-gradient(165deg, var(--navy-900), var(--navy-800) 52%, var(--navy-700));
  color: #d5e4f5;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 84px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 46c180 34 320-24 520-10s280 52 470 34S1290 24 1440 40V90H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(52px, 8vw, 96px) 0 clamp(92px, 12vw, 140px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--sun-400); }
.hero p.lead { color: #d5e4f5; font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 700;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  color: #e2edf9;
  padding: 7px 14px; border-radius: 999px;
}
.hero-badges svg { width: 15px; height: 15px; color: var(--sun-400); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: .9rem; color: #c9dcef; margin-top: 18px; }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.hero-media figcaption {
  margin-top: 12px; font-size: .88rem; color: #c9dcef; text-align: center;
}

/* ----------------------------------------------------------- image frame */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-3);
}
.media-frame img { width: 100%; display: block; }
.media-frame--ratio img { aspect-ratio: 3 / 2; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 4 / 5; object-fit: cover; }

.media-tags { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 14px; pointer-events: none; }
.media-tag {
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(4, 31, 69, .78); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.media-tag--after { background: rgba(245, 165, 27, .95); color: #3b2401; }

.media-caption { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }

/* -------------------------------------------------------------- services */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddff2; }
.service-card-media { position: relative; }
.service-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.service-card h3 { margin-bottom: .45em; }
.service-card p { font-size: .97rem; margin-bottom: 1.3em; }
.service-card .card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: .95rem; color: var(--blue-600); text-decoration: none !important;
}
.service-card:hover .card-link { gap: 12px; }
.service-card .card-link svg { width: 16px; height: 16px; }

.icon-tile {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--blue-100), #d9e8fb);
  color: var(--blue-600);
  border: 1px solid #d3e3f8;
}
.icon-tile svg { width: 27px; height: 27px; }
.icon-tile--sun { background: linear-gradient(140deg, #fff4dc, #ffe7bb); color: #a4670a; border-color: #ffe1b3; }

/* ----------------------------------------------------------------- lists */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d5cad' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section--navy .check-list li::before { background-color: rgba(253, 196, 51, .22); }
.check-list--two { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); column-gap: 28px; }

/* ------------------------------------------------------------- guarantee */
.guarantee-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.guarantee-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.guarantee-item h3 { font-size: 1.08rem; margin-bottom: .4em; display: flex; align-items: center; gap: 9px; }
.guarantee-item h3 svg { width: 20px; height: 20px; color: var(--sun-400); flex: none; }
.guarantee-item p { font-size: .96rem; margin: 0; }

/* ----------------------------------------------------------------- steps */
.step-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: var(--navy-800); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .96rem; margin: 0; }

/* ------------------------------------------------------------ split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-sm);
}
.panel--aqua { background: linear-gradient(150deg, var(--blue-100), #f0f6fe); border-color: #d5e4f7; }
.panel--spaced { margin-top: 22px; }

/* --------------------------------------------------------------- gallery */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; }

/* ------------------------------------------------------------------ form */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--navy-800); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: 13px 15px;
  background: #fff;
  border: 1.5px solid var(--control-border); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--blue-500); outline-offset: 1px;
  border-color: var(--blue-500); box-shadow: none;
}
.field input::placeholder, .field textarea::placeholder { color: #69768a; }
.form-hint { font-size: .84rem; color: var(--muted); margin: 0; }
.form-hint a { font-weight: 700; }

/* Never display:none — a live region that is removed from the box tree when the
   message arrives is not announced. Empty simply takes no space. */
.form-status { border-radius: var(--radius-sm); font-size: .96rem; }
.form-status:not(:empty) { padding: 15px 17px; }
.form-status--ok { background: #e7f7ee; border: 1px solid #bfe6cf; color: #0f5c37; }
.form-status--err { background: #fdecea; border: 1px solid #f6c9c2; color: #8f2c1e; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ CTA banner */
.cta-band {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(106, 179, 240, .30), transparent 62%),
    linear-gradient(140deg, var(--navy-800), var(--navy-700));
  color: #cfdff2;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; color: #d5e4f5; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 420px) {
  .cta-band-actions, .hero-actions { display: grid; grid-template-columns: 1fr; }
  .cta-band-actions .btn, .hero-actions .btn { white-space: normal; width: 100%; padding-inline: 14px; }
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- contacts */
.contact-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-cards--single { grid-template-columns: 1fr; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.contact-card .icon-tile { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; }
.contact-card .icon-tile svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: .3em; }
.contact-card p, .contact-card a { font-size: 1.02rem; font-weight: 700; color: var(--navy-800); margin: 0; }
.contact-card small { display: block; font-weight: 500; font-size: .88rem; color: var(--muted); margin-top: 4px; }
/* The address is longer than the card is wide at 220px. */
.contact-card .email { font-size: .92rem; overflow-wrap: anywhere; }
.site-footer .email { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #9db3ce; font-size: .96rem; padding: clamp(48px, 6vw, 72px) 0 26px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #bccee4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { margin-bottom: 16px; }
.footer-mark {
  display: inline-grid; place-items: center;
  background: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.footer-mark img { height: 54px; width: auto; }
.footer-note { font-size: .93rem; max-width: 42ch; margin-top: 16px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .88rem; color: #7e95b2;
}

/* ------------------------------------------------------- mobile call bar */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .call-bar .btn { padding: 13px 10px; font-size: .97rem; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ page heads */
.page-head {
  position: relative;
  background:
    radial-gradient(700px 380px at 8% -20%, rgba(106, 179, 240, .28), transparent 62%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #c9dcef;
  padding: clamp(46px, 6vw, 80px) 0 clamp(46px, 6vw, 76px);
}
.page-head h1 { color: #fff; max-width: 24ch; }
.page-head p { color: #d5e4f5; max-width: 62ch; margin: 0; font-size: 1.1rem; }
.page-head-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; } }
.breadcrumb { font-size: .88rem; color: #c9dcef; margin-bottom: 18px; }
.breadcrumb a { color: #c9dcef; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; opacity: .6; padding: 0 6px; }
.breadcrumb span { opacity: .6; padding: 0 6px; }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }

.small-print { font-size: .86rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ legal pages */
.legal { max-width: 68ch; }
.legal h2 { font-size: 1.35rem; }
.legal .check-list { margin-bottom: 1.1em; }
