/* Layout: icy off-white page, deep teal stripe hero bands, white cards, dark footer. Brand: Figtree, Tampa Bay Cooling Co. (deep teal + ice blue). */
:root {
  --bg: #F1F5F6;
  --surface: #FFFFFF;
  --fg: #1C272C;
  --muted: #4D5C63;
  --line: #D3DEE2;
  --brand: #0E3A4A;
  --stripe: #114354;
  --on-brand: #F1F5F6;
  --on-brand-muted: #A6C6D2;
  --grass: #3EC6EA;
  --grass-hover: #22B4DC;
  --on-grass: #03222D;
  --accent: #0B5872;
  --footer-bg: #142026;
  --footer-fg: #E3ECEF;
  --footer-muted: #9FB0B7;
  --footer-line: #2A3A42;
  --error: #A3341F;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1519; --surface: #12212A; --fg: #E8EEF0; --muted: #A2B3BA; --line: #243640;
    --brand: #0A2E3B; --stripe: #0D3646; --on-brand: #F1F5F6; --on-brand-muted: #9FC2CE;
    --grass: #4FCDEE; --grass-hover: #72D8F2; --on-grass: #03222D; --accent: #6FD3EE;
    --footer-bg: #071014; --footer-fg: #E3ECEF; --footer-muted: #93A6AE; --footer-line: #1C2C33;
    --error: #F08A72; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1519; --surface: #12212A; --fg: #E8EEF0; --muted: #A2B3BA; --line: #243640;
  --brand: #0A2E3B; --stripe: #0D3646; --on-brand: #F1F5F6; --on-brand-muted: #9FC2CE;
  --grass: #4FCDEE; --grass-hover: #72D8F2; --on-grass: #03222D; --accent: #6FD3EE;
  --footer-bg: #071014; --footer-fg: #E3ECEF; --footer-muted: #93A6AE; --footer-line: #1C2C33;
  --error: #F08A72; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); color: var(--fg); padding: 10px 14px; border-radius: 8px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--muted); }
.brand-main { font-size: 23px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); margin-top: 3px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.main-nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; padding-block: 8px; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--grass); }
@media (max-width: 820px) {
  .main-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; gap: 20px; }
  .bar .btn { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color 0.15s ease;
}
.btn-primary { background: var(--grass); color: var(--on-grass); }
.btn-primary:hover { background: var(--grass-hover); }
.btn-ghost { background: transparent; color: var(--on-brand); border-color: var(--on-brand-muted); }
.btn-ghost:hover { border-color: var(--on-brand); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Hero: the diagonal stripe band */
.hero {
  background: repeating-linear-gradient(118deg, var(--brand) 0 70px, var(--stripe) 70px 140px);
  color: var(--on-brand);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 44px; align-items: start; padding-block: 56px 64px;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 40px 48px; gap: 32px; } }
.crumbs { margin: 0 0 14px; font-size: 14px; color: var(--on-brand-muted); }
.crumbs a { color: var(--on-brand); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-brand-muted); }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03; font-weight: 800;
  letter-spacing: -0.02em; margin: 12px 0 18px; text-wrap: balance;
}
.lead { font-size: 19px; line-height: 1.55; margin: 0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.phone-line { margin: 22px 0 0; font-size: 16px; color: var(--on-brand-muted); }
.phone-line strong { color: var(--on-brand); font-variant-numeric: tabular-nums; user-select: all; }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks li, .checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before, .checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303222D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
@media (max-width: 640px) { .checklist { grid-template-columns: minmax(0, 1fr); } }

/* Quote form */
.quote {
  background: var(--surface); color: var(--fg); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.5);
}
.quote h2 { font-size: 23px; line-height: 1.2; margin: 0 0 4px; }
.quote .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 460px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.quote label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.quote input, .quote select, .quote textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg);
}
.quote input:focus, .quote select:focus, .quote textarea:focus { border-color: var(--grass); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--grass) 35%, transparent); }
.quote textarea { min-height: 84px; resize: vertical; }
.quote .btn { width: 100%; margin-top: 16px; }
.form-status { margin: 10px 0 0; font-size: 14px; min-height: 1.3em; }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; }
.thanks h2 { color: var(--accent); }
.thanks p { margin: 8px 0 0; color: var(--muted); }

/* Sections */
.section { padding-block: 76px; }
.section.tight { padding-block: 56px; }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.015em; margin: 0 0 14px; text-wrap: balance;
}
.intro { color: var(--muted); max-width: 40em; margin: 0 0 34px; font-size: 18px; }
.section p { max-width: 65ch; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.band-alt .card { background: var(--bg); }
.card h3 { font-size: 20px; line-height: 1.2; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 780px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { border-top: 3px solid var(--grass); padding-top: 16px; min-width: 0; }
.steps .num { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; margin: 6px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.points strong { display: block; font-size: 17px; }
.points span { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.band-alt .table-wrap { background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 460px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
td:first-child { font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.source { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Service area chips */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 15px; font-weight: 500; }
.band-alt .areas li { background: var(--bg); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
@media (max-width: 780px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.faq p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: repeating-linear-gradient(118deg, var(--brand) 0 70px, var(--stripe) 70px 140px); color: var(--on-brand); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 52px; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; margin: 0 0 6px; text-wrap: balance; }
.cta-inner p { margin: 0; color: var(--on-brand-muted); }
.cta-inner .num { color: var(--on-brand); font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding-block: 52px 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.site-footer .brand { color: var(--footer-fg); }
.site-footer .brand-top { color: var(--footer-muted); }
.site-footer .brand-main { color: var(--footer-fg); }
.site-footer p { color: var(--footer-muted); margin: 14px 0 0; max-width: 34em; }
.foot-phone { color: var(--footer-fg) !important; font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }
.foot-h { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-muted); margin: 0 0 12px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--footer-fg); text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.legal { border-top: 1px solid var(--footer-line); margin-top: 40px; padding-top: 20px; font-size: 14px; color: var(--footer-muted); }
.foot-gap { margin-top: 26px; }
.site-footer .foot-areas { margin-top: 0; }

/* Additions for the full site */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.card { position: relative; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--grass); outline-offset: 3px; }
.card:has(h3 a):hover { border-color: var(--grass); }
.card .more { margin-top: auto; padding-top: 4px; color: var(--accent); font-weight: 700; font-size: 15px; }
.card-links { font-size: 14.5px; margin-top: auto !important; padding-top: 6px; }
.group-h { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.group-gap { margin-top: 40px; }
.checklist.one { grid-template-columns: minmax(0, 1fr); }
.note { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section:not(.band-alt) .note { background: var(--surface); }
.note h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.note p { margin: 0; color: var(--muted); }
.note .checklist { margin-top: 4px; }
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 24px; color: var(--muted); max-width: 720px; }
.placeholder p { margin: 0; }
.faq + .kicker { margin-top: 0; }
.phone-line a, .cta-inner .num a, .foot-phone a { color: inherit; text-decoration: none; }
.phone-line a:hover, .cta-inner .num a:hover, .foot-phone a:hover { text-decoration: underline; }
.legal a { color: var(--footer-fg); }
.creds { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.creds li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.creds li:last-child { border-bottom: 0; padding-bottom: 0; }
.creds span { color: var(--muted); min-width: 0; }
.creds strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Tool, mobile call bar, placeholders */
.tbd { color: var(--accent); background: color-mix(in srgb, var(--grass) 18%, transparent); padding: 1px 6px; border-radius: 6px; }
.narrow { max-width: 760px; }
.lifecheck { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; }
.band-alt .lifecheck { background: var(--bg); }
.lc-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.lc-fields .btn { grid-column: 1 / -1; }
.lifecheck label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.lifecheck select, .lifecheck input { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
.band-alt .lifecheck select, .band-alt .lifecheck input { background: var(--surface); }
.lifecheck select:focus, .lifecheck input:focus { border-color: var(--grass); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--grass) 35%, transparent); }
.lc-error { margin: 8px 0 0; font-size: 14px; color: var(--error); min-height: 1.2em; }
.lc-result { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.lc-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lc-headline { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.lc-detail { margin: 0; color: var(--muted); }
.lc-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.lc-meter span { display: block; height: 100%; width: 0; background: var(--grass); border-radius: inherit; transition: width 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .lc-meter span { transition: none; } }
.lc-cta { justify-self: start; margin-top: 4px; }
@media (max-width: 460px) { .lc-fields { grid-template-columns: minmax(0, 1fr); } }
.btn-call { background: var(--brand); color: var(--on-brand); }
.btn-call:hover { background: var(--stripe); }
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, 0.45);
  }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
.hero-inner.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.hero-inner.solo .lead { max-width: 40em; }
.areas-links li { padding: 0; }
.areas-links a { display: block; padding: 7px 15px; color: var(--fg); text-decoration: none; font-weight: 600; }
.areas-links li:hover { border-color: var(--grass); }
.areas-links a:hover { color: var(--accent); }
.lc-fields .full { grid-column: 1 / -1; }
.lc-math { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: minmax(0, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.band-alt .stat { background: var(--bg); }
.stat strong { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 480px) {
  .bar > .btn { display: none; }
  .main-nav { gap: 16px; }
}
