/* Fernwell Air & Plumbing concept. Airy sky tints, deep teal, coral for emergencies, rounded forms. */
:root {
  --navy: #0d2b45;
  --text: #17293a;
  --muted: #4a5b6b;
  --teal: #0b6e7f;
  --teal-dark: #085766;
  --teal-tint: #e3f1f3;
  --sky: #f2f8fa;
  --white: #ffffff;
  --line: #d5e3e8;
  --coral: #c03a12;
  --coral-dark: #9e2f0d;
  --coral-tint: #fdeee8;
  --focus: #0b6e7f;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.6 var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .concept-bar :focus-visible, .alert-bar :focus-visible { outline-color: #ffffff; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 50; border-radius: var(--radius-sm); }
.skip:focus { top: 3rem; }
h1, h2, h3 { color: var(--navy); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.05rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .8rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 37rem; }
.muted { color: var(--muted); }

/* Concept label */
.concept-bar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #e6eef3; font-size: .8rem; text-align: center; }
.concept-bar a { display: block; color: inherit; padding: .45rem 1rem; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }

/* Emergency bar */
.alert-bar { background: var(--coral); color: #fff; font-size: .95rem; }
.alert-row { display: flex; gap: .5rem 1rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .5rem 0; text-align: center; }
.alert-row svg { width: 18px; height: 18px; flex: none; }
.alert-row a { color: #fff; font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 559px) { .alert-q { display: none; } }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); min-height: 44px; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-word { display: grid; line-height: 1.05; }
.brand-word b { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.brand-word span { font-size: .72rem; font-weight: 600; letter-spacing: .2em; color: var(--teal-dark); margin-top: .15rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav-links { display: none; }
@media (min-width: 860px) { .nav-links { display: flex; gap: .25rem; } }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; padding: .6rem .85rem; border-radius: var(--radius-sm); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover { background: var(--sky); }
.nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 650; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.sub-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); overflow-x: auto; }
.sub-nav a:not(.btn) { flex: 1; justify-content: center; white-space: nowrap; font-size: .95rem; }
@media (min-width: 860px) { .sub-nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.35rem; border-radius: 999px; font: 650 1rem/1.1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-line { border-color: var(--teal); color: var(--teal-dark); background: var(--white); }
.btn-line:hover { background: var(--teal-tint); }
.btn-white { background: #fff; color: var(--navy); }
.head-call { display: none; }
@media (min-width: 560px) { .head-call { display: inline-flex; min-height: 44px; padding: .55rem 1.1rem; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #e6f2f5 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; padding: 3rem 0 0; align-items: end; }
.hero-copy { padding-bottom: 1rem; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.assure { display: grid; gap: .55rem; margin: 1.8rem 0 0; padding: 0; list-style: none; color: var(--text); }
.assure li { display: flex; gap: .6rem; align-items: center; }
.assure svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.hero-art { width: 100%; max-width: 560px; justify-self: center; }
.hero-art .flow { stroke-dasharray: 16 8; animation: drift 2.6s linear infinite; }
@keyframes drift { to { stroke-dashoffset: -48; } }
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; padding-top: 4.5rem; }
  .hero-copy { padding-bottom: 4.5rem; }
}

/* Sections */
.section { padding: 4.25rem 0; }
.section.tint { background: var(--sky); }
.section-head { display: grid; gap: .85rem; max-width: 44rem; margin-bottom: 2.4rem; }

/* Service tiles */
.tiles { display: grid; gap: 1rem; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: .6rem; align-content: start; background: var(--white); }
.tile-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; }
.tile-icon svg { width: 26px; height: 26px; }
.tile p { color: var(--muted); }

/* Emergency panel */
.emergency { background: var(--navy); color: #e8eff4; border-radius: calc(var(--radius) + 6px); padding: 2rem 1.5rem; display: grid; gap: 1.75rem; }
@media (min-width: 860px) { .emergency { grid-template-columns: 1.2fr 1fr; padding: 3rem; align-items: center; } }
.emergency h2 { color: #fff; }
.emergency p { color: #c4d3dd; }
.emergency ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.emergency li { display: flex; gap: .7rem; align-items: flex-start; }
.emergency li svg { width: 22px; height: 22px; color: #ff9b78; flex: none; margin-top: .15rem; }

/* Plans */
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .plans.two { grid-template-columns: repeat(2, 1fr); } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; align-content: start; }
.plan.feature { border: 2px solid var(--teal); }
.plan-flag { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.price-fill { border: 2px dashed #9db6c0; border-radius: var(--radius-sm); padding: .7rem .9rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: .2rem; }

/* Placeholders */
.fill-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .fill-grid { grid-template-columns: 1fr 1fr; } }
.fill { border: 2px dashed #9db6c0; border-radius: var(--radius); padding: 1.7rem; display: grid; gap: .75rem; align-content: start; background: var(--white); }
.fill-tag { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fill p { color: var(--muted); }
.fill dl { margin: 0; display: grid; gap: .6rem; }
.fill dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.fill dt { font-weight: 600; color: var(--text); }
.fill dd { margin: 0; color: var(--muted); text-align: right; }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; list-style: none; margin: 0; padding: 0; }
.areas li { display: flex; gap: .45rem; align-items: center; color: var(--muted); padding: .45rem 0; }
.areas svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.reviews { border: 2px dashed #9db6c0; border-radius: var(--radius); padding: 2.2rem 1.5rem; text-align: center; color: var(--muted); display: grid; gap: .5rem; justify-items: center; }
.reviews svg { width: 36px; height: 36px; color: #7f97a2; }
.reviews strong { color: var(--text); font-size: 1.1rem; }

/* CTA */
.cta { background: var(--teal); color: #fff; }
.cta-row { display: grid; gap: 1.5rem; padding: 3.5rem 0; align-items: center; }
@media (min-width: 860px) { .cta-row { grid-template-columns: 1fr auto; } }
.cta h2 { color: #fff; }
.cta p { color: #dff1f4; margin-top: .7rem; max-width: 36rem; }
.cta .actions { margin-top: 0; }
.cta .btn-line { background: transparent; color: #fff; border-color: #fff; }
.cta .btn-line:hover { background: rgba(255,255,255,.12); }

/* Inner page hero */
.page-hero { background: var(--sky); padding: 3rem 0 3.25rem; border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 1rem; }

/* Forms */
.layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .layout { grid-template-columns: 1.55fr 1fr; align-items: start; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 640px) { .form { padding: 2.25rem; } }
.form h2 { font-size: 1.55rem; margin-bottom: 1.4rem; }
.grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; align-content: start; }
.field label, legend { font-weight: 600; font-size: .97rem; color: var(--navy); }
.hint { color: var(--muted); font-size: .88rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid #8499a5; border-radius: var(--radius-sm); padding: .7rem .85rem; min-height: 50px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--teal); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: .6rem; }
@media (min-width: 640px) { .choice { grid-template-columns: repeat(3, 1fr); } }
.choice label { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; min-height: 50px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.choice input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--teal); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.form-foot p { color: var(--muted); font-size: .92rem; }
.form-note { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--teal-tint); color: var(--navy); font-weight: 600; border-left: 4px solid var(--teal); }
.aside { display: grid; gap: 1.25rem; }
.aside-card { border-radius: var(--radius); padding: 1.6rem; display: grid; gap: .75rem; }
.aside-card.urgent { background: var(--coral-tint); border: 1px solid #f3c7b6; }
.aside-card.urgent h2 { color: var(--coral-dark); }
.aside-card.plain { border: 1px solid var(--line); }
.aside-card h2 { font-size: 1.3rem; }
.aside-card p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--navy); min-height: 50px; list-style-position: outside; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* Footer */
.site-foot { background: #0a2236; color: #b9c9d4; padding: 3rem 0 6.5rem; font-size: .95rem; }
@media (min-width: 860px) { .site-foot { padding-bottom: 2.5rem; } }
.site-foot :focus-visible { outline-color: #ffffff; }
.site-foot a { color: #e2ecf2; min-height: 36px; display: inline-flex; align-items: center; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-foot .brand { color: #fff; }
.site-foot .brand-word span { color: #8fd3de; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; border-top: 1px solid #1f3a51; margin-top: 2.5rem; padding-top: 1.25rem; }
.quote-link { font-weight: 700; color: #8fd3de !important; }

/* Mobile action bar */
.call-bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(13,43,69,.08); }
.call-bar .btn { min-height: 48px; padding: .6rem; }
@media (min-width: 860px) { .call-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .flow { animation: none; }
  .btn { transition: none; }
}
