/* ==========================================================================
   Tennessee Restoration Pros - Variant 3 "Storm"
   Deep indigo #1E1B4B + sky #0284C7, crimson #BE123C CTA, pill buttons,
   bold overlay band hero, light header, generous spacing.
   ========================================================================== */

:root {
  --indigo: #1E1B4B;
  --indigo-700: #2A2560;
  --indigo-600: #37307A;
  --sky: #0284C7;
  --sky-700: #0369A1;
  --sky-100: #E0F2FE;
  --sky-50: #F0F9FF;
  --crimson: #BE123C;
  --crimson-700: #9F1239;
  --ink: #0F172A;
  --body: #334155;
  --muted: #5B6B82;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F6F8FB;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 14px 40px rgba(30, 27, 75, .10);
  --shadow-sm: 0 3px 12px rgba(30, 27, 75, .07);
  --maxw: 1180px;
  --space: 5rem;
  --space-sm: 2.75rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--indigo);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.95rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--sky-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--indigo); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

img, svg { max-width: 100%; }
svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--crimson);
  color: #fff;
  padding: .7rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: .85rem 1.5rem;
  border-radius: var(--pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { text-decoration: none; }

.btn-cta {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 8px 22px rgba(190, 18, 60, .28);
}
.btn-cta:hover { background: var(--crimson-700); color: #fff; transform: translateY(-1px); }

.btn-lg { font-size: 1.12rem; padding: 1.05rem 2rem; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-outline-dark:hover { background: var(--indigo); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header (light, sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 6px 20px rgba(15, 23, 42, .05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--indigo);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; color: var(--indigo); }
.brand-drop {
  width: 30px;
  height: 30px;
  flex: none;
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  border-radius: 9px;
  padding: 5px;
}
.brand-drop svg { width: 100%; height: 100%; }

.main-nav { display: none; }
.main-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--sky-700); border-bottom-color: var(--sky); }
.header-cta { padding: .65rem 1.15rem; font-size: .95rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--indigo);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: .5rem 0 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block;
  padding: .8rem 1.15rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero (bold overlay band) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(2, 132, 199, .55), transparent 62%),
    linear-gradient(115deg, #171534 0%, var(--indigo) 48%, #23205C 100%);
  padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(3.2rem, 8vw, 5.75rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8%;
  right: -8%;
  bottom: -84px;
  height: 170px;
  background: linear-gradient(90deg, var(--crimson) 0%, #E11D48 42%, var(--sky) 100%);
  transform: rotate(-2.4deg);
  opacity: .92;
}
.hero-band {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 168px;
  height: 100%;
  background: linear-gradient(180deg, rgba(190, 18, 60, .5), rgba(190, 18, 60, 0));
}
.hero-grid {
  display: grid;
  gap: 2.25rem;
}
.hero h1 { color: #fff; max-width: 22ch; margin-bottom: .55rem; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #E7F5FF;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .95rem;
  border-radius: var(--pill);
  margin-bottom: 1.1rem;
}
.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: #DCE3F2;
  max-width: 58ch;
  margin-bottom: 1.6rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.hero-phone-note { color: #C7D2E8; font-size: .95rem; margin-top: 1rem; }
.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  backdrop-filter: blur(2px);
}
.hero-panel h2 { color: #fff; font-size: 1.12rem; margin-bottom: .8rem; }
.hero-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-panel li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: #E4EAF7;
  font-size: .97rem;
  padding: .5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}
.hero-panel li:last-child { border-bottom: 0; }
.hero-panel svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .2rem; color: #7DD3FC; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--indigo-700);
  color: #fff;
  padding: 1.1rem 0;
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .93rem;
  font-weight: 600;
  margin: 0;
}
.trust-strip svg { width: 1.15rem; height: 1.15rem; flex: none; color: #7DD3FC; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.kicker {
  display: inline-block;
  color: var(--crimson);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.35rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--sky-700); }
.card p { color: var(--body); font-size: .98rem; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--sky-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex: none;
}
.card-icon svg { width: 26px; height: 26px; }
.card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: .95rem;
}
.card-link a { text-decoration: none; }

/* Pill tag */
.tag {
  display: inline-block;
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  color: var(--sky-700);
  font-size: .8rem;
  font-weight: 700;
  border-radius: var(--pill);
  padding: .2rem .7rem;
  text-decoration: none;
}
.tag:hover { background: var(--sky-100); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--pill);
  background: var(--indigo);
  color: #fff;
  font-weight: 800;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.17rem; margin-bottom: .4rem; }
.step p { font-size: .97rem; margin: 0; }

/* ---------- Benefits ---------- */
.benefit {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.benefit svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--crimson); margin-top: .15rem; }
.benefit h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.benefit p { font-size: .95rem; margin: 0; }

/* ---------- City links ---------- */
.city-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.city-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .6rem .8rem;
  color: var(--ink);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.city-grid a:hover { border-color: var(--sky); color: var(--sky-700); }

.alpha-group { margin-bottom: 2rem; }
.alpha-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 .6rem;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--pill);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: .9rem;
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: .7rem; max-width: 900px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--crimson);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 700;
  color: var(--indigo);
  font-size: 1.03rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 1.25rem 1.2rem; }
.faq-item .faq-body p { font-size: .98rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: .87rem;
  color: var(--muted);
  padding: 1rem 0 .25rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li + li::before { content: "\203A"; color: var(--sky); font-weight: 700; }
.breadcrumbs a { color: var(--sky-700); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% -30%, rgba(2, 132, 199, .5), transparent 65%),
    linear-gradient(115deg, #171534, var(--indigo) 70%);
  color: #fff;
  padding: clamp(1.8rem, 4.5vw, 3rem) 0 clamp(2rem, 5vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--crimson), var(--sky));
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; max-width: 30ch; }
.page-hero p { color: #D6DEF1; max-width: 62ch; margin-bottom: 1.1rem; }
.page-hero .breadcrumbs { color: #AEBBD8; padding-top: 0; }
.page-hero .breadcrumbs a { color: #9FD4F5; }
.page-hero .breadcrumbs [aria-current="page"] { color: #EAF2FF; }

/* ---------- Content blocks ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--sky-50); color: var(--indigo); }
.prose blockquote {
  margin: 1.3rem 0;
  padding: 1rem 1.2rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout {
  background: linear-gradient(120deg, var(--indigo), var(--indigo-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #DCE3F2; }
.callout .btn-cta { margin-top: .4rem; }

.takeaways {
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  border-left: 5px solid var(--sky);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0;
}
.takeaways h2, .takeaways h3 { margin-top: 0; color: var(--indigo); font-size: 1.15rem; }
.takeaways ul { margin-bottom: 0; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.info-list li { margin: 0; padding: .55rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.info-list strong { color: var(--indigo); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; }
.post-meta { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo);
  color: #C9D2E8;
  padding: 3rem 0 6.5rem;
  margin-top: 0;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
  margin-bottom: .8rem;
}
.footer-brand .brand-drop { background: rgba(255, 255, 255, .14); }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .9rem; }
.site-footer p { font-size: .93rem; color: #C9D2E8; }
.site-footer a { color: #BFE3FF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-nav a { font-size: .94rem; }
.footer-phone { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; display: inline-block; margin-top: .3rem; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 2.2rem;
  padding-top: 1.4rem;
}
.footer-disclaimer p { font-size: .8rem; line-height: 1.6; color: #AEBBD8; margin-bottom: .7rem; }
.footer-bottom { margin-top: 1.2rem; font-size: .82rem; color: #9AA8C6; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--crimson);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, .22);
  display: block;
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
  padding: .95rem 1rem calc(.95rem + env(safe-area-inset-bottom));
}
.mobile-call-bar svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b { display: block; color: var(--indigo); font-size: 1.5rem; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1.35fr .85fr; align-items: center; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .mobile-call-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (min-width: 1100px) {
  .city-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .card:hover { transform: none; }
}
