/* Friendswood Roofers - site styles. No build step: edit this file directly. */

:root {
  --navy: #0f2340;
  --navy-900: #0a172b;
  --navy-700: #1c3a66;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #dfe5ee;
  --slate-100: #eef2f7;
  --tint: #f5f7fa;
  --white: #fff;
  --accent: #b9530c;        /* buttons with white text (5.1:1) */
  --accent-hover: #9a440a;
  --accent-light: #f0a04b;  /* accents on navy backgrounds */
  --accent-soft: #fdf1e6;
  --success: #166534;
  --success-bg: #ecfdf3;
  --error: #b42318;
  --error-bg: #fef3f2;
  --focus: #2563eb;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 64, .06), 0 1px 3px rgba(15, 35, 64, .08);
  --shadow: 0 4px 6px -1px rgba(15, 35, 64, .08), 0 10px 24px -6px rgba(15, 35, 64, .14);
  --shadow-lg: 0 20px 40px -12px rgba(15, 35, 64, .28);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-900);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); font-weight: 800; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
table { border-collapse: collapse; width: 100%; }
code { font-size: .9em; background: var(--slate-100); padding: .1em .35em; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: .9rem; color: var(--slate-600); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* Icons */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.icon-sm { width: 1em; height: 1em; vertical-align: -.12em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.25em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(185, 83, 12, .55); }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--slate-100); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--slate-200); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-dark { background: transparent; color: var(--slate-700); border-color: transparent; text-decoration: underline; }
.btn-sub { display: block; font-size: .8rem; font-weight: 600; opacity: .8; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--navy); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .2s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-tag { font-size: .78rem; color: var(--slate-600); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list li + li { margin-top: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: block; padding: .5em .7em; border-radius: var(--radius-sm); color: var(--slate-900); font-weight: 600; font-size: .97rem; text-decoration: none; }
.nav-item > a:hover { color: var(--navy); background: var(--slate-100); }
.nav-item > a[aria-current="page"], .nav-item > a.is-section { color: var(--navy); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 34px; margin-left: -6px; background: none; border: 0; border-radius: var(--radius-sm); color: var(--slate-700); cursor: pointer; }
.sub-toggle:hover { background: var(--slate-100); }
.sub-toggle .icon { transition: transform .2s var(--ease); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.sub-menu li + li { margin-top: 0; }
.sub-menu a { display: block; padding: .55em .8em; border-radius: var(--radius-sm); color: var(--slate-900); text-decoration: none; font-weight: 600; font-size: .95rem; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--slate-100); color: var(--navy); }
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-call { padding-left: 1em; padding-right: 1em; }

.site-header .container { max-width: 1340px; }
.nav-item > a, .nav-actions .btn { white-space: nowrap; }
.btn-call-short { display: none; }
@media (min-width: 1280px) {
  .nav-item > a { padding: .5em .45em; font-size: .92rem; }
  .site-nav { gap: 10px; }
  .nav-actions .btn { padding-left: .95em; padding-right: .95em; font-size: .93rem; }
  .btn-call-full { display: none; }
  .btn-call-short { display: inline; }
  .brand-name { font-size: 1.05rem; }
}

@media (max-width: 1279px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header, .site-header.is-scrolled { backdrop-filter: none; background: #fff; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 14px; border-radius: 999px;
    background: var(--navy); color: #fff; border: 0; font: inherit; font-weight: 700; cursor: pointer;
  }
  .nav-toggle-open, .nav-toggle-close { display: inline-flex; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-open,
  .nav-toggle[aria-expanded="false"] .nav-toggle-close { display: none; }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 120px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-top: 1px solid var(--slate-200);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--slate-100); }
  .nav-item > a { flex: 1; padding: .9em .25em; font-size: 1.08rem; }
  .nav-item > a[aria-current="page"], .nav-item > a.is-section { box-shadow: inset 4px 0 0 var(--accent); padding-left: .8em; }
  .sub-toggle { width: 48px; height: 48px; }
  .sub-menu { position: static; display: none; width: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 10px 10px; opacity: 1; visibility: visible; transform: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 18px; gap: 12px; }
  .nav-actions .btn { min-height: 52px; }
  body.nav-open { overflow: hidden; }
  /* No-JavaScript layout: assets/css/nojs.css (loaded in <noscript>). */
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.02rem; }
  .logo { width: 38px; height: 38px; }
  .nav-toggle-label { display: none; }
}

/* Breadcrumbs */
.breadcrumbs { background: var(--tint); border-bottom: 1px solid var(--slate-200); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25em .5em; list-style: none; margin: 0; padding: .7em 0; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: .5em; color: var(--slate-600); }
.breadcrumbs li + li::before { content: "/"; color: var(--slate-400); }
.breadcrumbs a { color: var(--slate-700); }
.breadcrumbs [aria-current] { color: var(--slate-900); font-weight: 600; }

/* Hero (home) */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 23, 43, .95) 0%, rgba(10, 23, 43, .86) 48%, rgba(10, 23, 43, .45) 100%); }
.hero-inner { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); max-width: 1200px; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.15rem, 1.4rem + 3.2vw, 3.6rem); }
.hero .lead { color: #dde6f2; max-width: 58ch; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; }
.eyebrow { display: inline-block; margin-bottom: .8em; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: var(--accent-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: #e7edf6; font-weight: 600; font-size: .97rem; }
.hero-points li { margin: 0; display: inline-flex; align-items: center; gap: .45em; }
@media (max-width: 560px) {
  .hero-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; }
}
.hero-points .icon { color: var(--accent-light); }

/* Interior page hero */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -40px; width: 380px; height: 380px; border: 40px solid rgba(240, 160, 75, .12); transform: rotate(45deg); border-radius: 24px; pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #dbe4f0; max-width: 62ch; margin-bottom: 0; }
.page-hero .lead a { color: #fff; }
.page-hero .hero-actions { margin-bottom: 0; }
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-left: auto; margin-right: auto; }
.page-hero--center .hero-actions { justify-content: center; }
.success-mark { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: 16px; }
.success-mark .icon { width: 34px; height: 34px; }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--first { padding-top: clamp(40px, 5vw, 64px); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #dbe4f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--slate-600); margin-bottom: 0; }
.section-head--light p:last-child { color: #c9d5e5; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head--row h2 { margin-bottom: 0; }
.section-foot { margin-top: 32px; margin-bottom: 0; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 1fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
}
.split-media { margin: 0; }
.split-media img, .article-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { margin-top: .6em; font-size: .8rem; color: var(--slate-600); }
figcaption a { color: inherit; }
.lead-dark { font-size: 1.15rem; color: var(--slate-700); }

/* Cards */
.card-grid { display: grid; gap: 22px; list-style: none; margin: 0; padding: 0; }
.card-grid > li { margin: 0; }
.service-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.article-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8d3e2; }
.card:focus-within { box-shadow: var(--shadow); border-color: var(--navy-700); }
.service-card { padding: 26px 24px 24px; }
.service-card p { color: var(--slate-600); font-size: .98rem; }
.card-icon { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.card:hover .card-icon { background: var(--navy); color: var(--accent-light); }
.card-title { font-size: 1.2rem; margin-bottom: .45em; }
.card-link { color: var(--navy); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius); }
.card-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--accent); font-size: .95rem; }
.card-more .icon { transition: transform .2s var(--ease); }
.card:hover .card-more .icon { transform: translateX(4px); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--slate-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; }
.card-body p { color: var(--slate-600); font-size: .98rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .85rem; color: var(--slate-600); margin-bottom: .7em; }
.tag { display: inline-block; padding: .2em .7em; border-radius: 999px; background: var(--accent-soft); color: #8a3d08; font-weight: 700; font-size: .8rem; text-decoration: none; position: relative; z-index: 2; }
a.tag:hover { background: #fbe0c6; color: #6e3106; }

/* Signs grid */
.signs-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); list-style: none; padding: 0; margin: 0; }
.signs-grid li { display: flex; gap: 16px; margin: 0; padding: 20px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--slate-200); }
.signs-grid li > .icon { width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.signs-grid h3 { font-size: 1.08rem; margin-bottom: .3em; }
.signs-grid p { margin: 0; color: var(--slate-600); font-size: .97rem; }

/* Process */
.process-steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: none; }
.process-steps li { margin: 0; padding: 24px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.process-steps h3 { font-size: 1.1rem; margin: .7em 0 .4em; }
.process-steps p { margin: 0; font-size: .97rem; color: #c9d5e5; }
.step-num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-light); color: var(--navy); font-weight: 800; flex: none; }

/* Materials */
.material-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.material-card:hover { transform: none; }
.material-card--list { background: var(--navy); border-color: var(--navy); }
.material-card--list h3 { color: #fff; }
.material-card--list .check-list li { color: #dbe4f0; }
.material-card--list .check-list strong { color: #fff; }
.material-card--list .link-arrow { color: var(--accent-light); }
.check-list, .dot-list, .link-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 1.8em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9530c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.dot-list li { position: relative; padding-left: 1.3em; }
.dot-list li::before { content: ""; position: absolute; left: .2em; top: .65em; width: .45em; height: .45em; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.link-list li { padding: .45em 0; border-bottom: 1px solid var(--slate-200); margin: 0; }
.link-list a { font-weight: 600; }

/* Weather */
.weather-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .weather-layout { grid-template-columns: .85fr 1.15fr; } }
.weather-map { margin: 0; }
.weather-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--slate-100); border: 1px solid var(--slate-200); box-shadow: var(--shadow); }
.weather-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.weather-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 24px; text-align: center; color: var(--slate-700); font-size: .95rem; }
.weather-placeholder .icon { width: 36px; height: 36px; color: var(--slate-400); }
.weather-map figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: .85rem; }
.weather-ext { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; }
.weather-map.is-slow .weather-frame iframe { opacity: .9; }

/* FAQ accordions */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq-item[open] { border-color: #c8d3e2; box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--accent-hover); }
.faq-q { font-size: 1.05rem; margin: 0; font-weight: 700; color: var(--navy); }
.faq-icon { color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-a { padding: 0 20px 6px; color: var(--slate-700); }
.faq-item[open] .faq-a { animation: faq-in .25s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 240px 1fr; } .faq-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq-toc { background: var(--tint); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 18px 20px; }
.faq-toc-title { font-weight: 800; color: var(--navy); margin-bottom: .4em; }
.faq-toc ul { list-style: none; padding: 0; margin: 0; }
.faq-toc a { display: block; padding: .3em 0; font-weight: 600; }
.faq-group { margin-top: 40px; }
.faq-group:first-of-type { margin-top: 28px; }
.faq-group h2 { font-size: 1.5rem; }

.callout { background: var(--accent-soft); border: 1px solid #f6d3b1; border-left: 5px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 24px; }
.callout p { margin: 0; color: var(--slate-900); }
.callout .icon { color: var(--accent); }
.callout--safety { background: #fff7ed; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: #dbe4f0; padding: clamp(44px, 6vw, 72px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.next-step { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); background: var(--accent-soft); border: 1px solid #f6d3b1; border-radius: var(--radius); margin-bottom: 48px; }
.next-step h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.next-step p { margin: 0; max-width: 62ch; color: var(--slate-700); }
.related-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related-grid--two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 48px; }

/* Timeline (service process) */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 820px; }
.timeline li { display: flex; gap: 18px; margin: 0; padding-bottom: 26px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--slate-200); }
.timeline .step-num { background: var(--navy); color: #fff; }
.timeline h3 { font-size: 1.12rem; margin: .35em 0 .3em; }
.timeline p { margin: 0; color: var(--slate-700); }

.approach-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); counter-reset: approach; }
.approach-list li { margin: 0; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; counter-increment: approach; position: relative; }
.approach-list li::before { content: counter(approach, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.5rem; color: var(--accent); margin-bottom: .2em; }
.approach-list p { margin: 0; color: var(--slate-700); }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul:not(.check-list):not(.link-list):not(.dot-list), .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--accent); }
.problem-list { padding-left: 1.2em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; }
.table-wrap table { min-width: 560px; }
.table-wrap caption { caption-side: top; text-align: left; padding: 12px 16px; font-size: .9rem; color: var(--slate-600); }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--slate-200); font-size: .97rem; }
.table-wrap thead th { background: var(--navy); color: #fff; border-top: 0; font-weight: 700; }
.table-wrap tbody th { font-weight: 700; color: var(--navy); }
.table-wrap tbody tr:nth-child(even) { background: var(--tint); }
.credit-thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }

.side-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.side-card + .side-card { margin-top: 20px; }
.side-card .btn + .btn { margin-top: 10px; }
.facts { margin: 0 0 20px; }
.facts dt { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-600); margin-top: 12px; }
.facts dd { margin: .15em 0 0; font-weight: 600; color: var(--slate-900); }
@media (min-width: 900px) { aside.side-card { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Estimate section and form */
.estimate-section { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.estimate-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .estimate-layout { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.estimate-aside-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; color: var(--navy); line-height: 1.2; }
.call-panel { display: flex; align-items: center; gap: 16px; margin: 24px 0 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease), background-color .2s var(--ease); }
.call-panel:hover { color: #fff; background: var(--navy-700); transform: translateY(-2px); }
.call-panel > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent-light); color: var(--navy); }
.call-panel-label { display: block; font-size: .88rem; color: #c9d5e5; }
.call-panel-number { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: .01em; }
.call-panel--large { margin-top: 0; }
.contact-aside .side-card { margin-top: 20px; }
.tips-list { padding-left: 1.2em; }
.tips-list li::marker { font-weight: 800; color: var(--accent); }

.estimate-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.estimate-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .3em; }
.estimate-title:focus { outline: none; }
.estimate-intro { color: var(--slate-700); }
.form-note { font-size: .92rem; color: var(--slate-600); }
.req { color: var(--error); font-weight: 800; }
.optional { font-weight: 500; color: var(--slate-600); font-size: .9em; }
.form-grid { display: grid; gap: 18px 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; font-size: .97rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7em .85em;
  font: inherit; font-size: 1rem; color: var(--slate-900);
  background: #fff; border: 1.5px solid #7d8ca3; border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-600); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; background: var(--error-bg); }
.field-hint { margin: 6px 0 0; font-size: .87rem; color: var(--slate-600); }
.field-error { display: flex; align-items: flex-start; gap: .4em; margin: 6px 0 0; color: var(--error); font-weight: 700; font-size: .9rem; }
.field-error .icon { margin-top: .2em; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--navy); }
.field-check label { font-weight: 500; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.form-fineprint { margin: 0; font-size: .85rem; color: var(--slate-600); flex: 1 1 240px; }
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 20px; background: var(--error-bg); border: 1px solid #fecdca; border-left: 5px solid var(--error); color: var(--slate-900); }
.form-status.is-success { background: var(--success-bg); border-color: #abefc6; border-left-color: var(--success); }
.form-status-title { display: flex; gap: .5em; align-items: flex-start; font-weight: 700; margin: 0; }
.form-status-title .icon { margin-top: .25em; color: var(--error); }
.form-status.is-success .form-status-title .icon { color: var(--success); }
.form-status ul { margin: .5em 0 0; }
.form-status a { color: var(--error); font-weight: 600; }
.btn .spinner { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Blog filters */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 28px; }
.filter-label { margin: 0; font-weight: 700; color: var(--slate-700); }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.filter-list li { margin: 0; }
.filter-btn { display: inline-flex; align-items: center; min-height: 42px; padding: .4em 1em; border-radius: 999px; border: 1.5px solid var(--slate-200); background: #fff; color: var(--slate-900); font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-btn[aria-current="true"]::before { content: "✓"; margin-right: .4em; }
.article-grid--index .card-title { font-size: 1.25rem; }

/* Article */
.article-header { background: var(--tint); border-bottom: 1px solid var(--slate-200); padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }
.article-header h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
.article-byline { margin: 0; color: var(--slate-600); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .25em .6em; }
.article-figure { margin: 32px 0; }
.article-body { max-width: none; font-size: 1.08rem; }
.article-lead { font-size: 1.2rem; color: var(--slate-900); padding: 18px 22px; border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body .checklist { list-style: none; padding-left: 0; }
.article-body .checklist li { position: relative; padding-left: 2em; }
.article-body .checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15em; height: 1.15em; border: 2px solid var(--accent); border-radius: 4px; }
.article-faqs { margin-top: 48px; }
.article-cta { margin-top: 48px; padding: clamp(22px, 4vw, 34px); background: var(--navy); color: #dbe4f0; border-radius: var(--radius); }
.article-cta h2 { color: #fff; font-size: 1.6rem; }
.article-cta .btn-outline { color: #fff; border-color: #fff; }
.article-cta .btn-outline:hover { background: #fff; color: var(--navy); }
.article-disclaimer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--slate-200); }
.article { padding-bottom: clamp(48px, 6vw, 80px); }

/* Planner */
.planner { display: grid; gap: 22px; }
.planner-q { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 20px 22px 22px; margin: 0; background: #fff; }
.planner-q legend { font-weight: 800; font-size: 1.12rem; color: var(--navy); padding: 0 6px; display: flex; align-items: center; gap: 10px; }
.planner-num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9rem; }
.planner-q.has-error { border-color: var(--error); border-width: 2px; }
.option-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1.5px solid #7d8ca3; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.option label::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--slate-600); background: #fff; transition: all .15s var(--ease); }
.option label:hover { border-color: var(--navy); background: var(--tint); }
.option input:checked + label { border-color: var(--navy); background: #eaf0f8; box-shadow: inset 0 0 0 1px var(--navy); }
.option input:checked + label::before { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 45%, #fff 50%); }
.option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.planner-notes textarea { width: 100%; }
.planner-result { margin-top: 32px; padding: clamp(22px, 4vw, 32px); border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.planner-result:focus { outline: none; }
.summary-box { width: 100%; font: .97rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 14px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--tint); color: var(--slate-900); resize: vertical; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.copy-status { min-height: 1.5em; margin: 10px 0 0; font-weight: 700; color: var(--success); }
.planner-next { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.planner-next h3 { font-size: 1.1rem; }

.legal h2 { font-size: 1.45rem; }

/* Footer */
.site-footer { background: var(--navy-900); color: #c3cfdf; padding-top: 64px; font-size: .97rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 48px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.brand--footer { color: #fff; margin-bottom: 16px; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand-tag { color: var(--accent-light); }
.site-footer a { color: #e3eaf4; }
.site-footer a:hover { color: var(--accent-light); }
.footer-phone a { display: inline-flex; align-items: center; gap: .5em; font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; }
.footer-heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 14px; }
.footer-heading:not(:first-child) { margin-top: 26px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .5em; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .87rem; color: #9fb0c6; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--slate-200);
    box-shadow: 0 -6px 20px -8px rgba(15, 35, 64, .25);
  }
  .mobile-bar-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 10px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 1rem; white-space: nowrap; }
  @media (max-width: 400px) { .mobile-bar-btn { font-size: .94rem; gap: 6px; } .mobile-bar-estimate .icon { display: none; } }
  .mobile-bar-call { background: var(--navy); color: #fff; }
  .mobile-bar-estimate { background: var(--accent); color: #fff; }
  .mobile-bar-btn:hover { color: #fff; }
  .site-footer { padding-bottom: 8px; }
  body.nav-open .mobile-bar { display: none; }
}

/* Scroll reveal (only when JS is on and motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal].reveal-pending { opacity: 0; transform: translateY(18px); }
  .js [data-reveal].reveal-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover, .call-panel:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

@media (forced-colors: active) {
  .btn, .filter-btn, .option label, .card { border: 1px solid CanvasText; }
  .option input:checked + label { outline: 3px solid Highlight; }
}

@media print {
  .site-header, .mobile-bar, .site-footer, .cta-band, .estimate-section, .weather-map, .breadcrumbs { display: none !important; }
  body { padding: 0; }
  .page-hero, .hero { background: none; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
}

/* Very small phones (320-360px) */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: .95rem; }
  .brand-tag { font-size: .7rem; }
  .logo { width: 34px; height: 34px; }
  .nav-toggle { padding: 0 12px; }
  .mobile-bar { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .mobile-bar-btn { font-size: .88rem; padding: 0 6px; }
  .mobile-bar-btn .icon { display: none; }
}
