/* ============================================================
   Huntsville Senior Remodeling Pros — Shared Stylesheet
   Domain: huntsvilleseniorremodeling.com
   ============================================================ */

:root {
  --navy: #1a2e44;
  --teal: #2a7d6f;
  --teal-light: #3a9d8f;
  --warm: #f5f0e8;
  --white: #fff;
  --text: #2c3e50;
  --muted: #6b7c8d;
  --border: #dde3ea;
  --cta: #e06b2a;
  --cta-hover: #c85a1e;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Georgia, serif; font-size: 18px; color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }

/* ── NAV ───────────────────────────────────────────────── */
nav {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: 62px;
  gap: 16px;
}
.nav-logo { color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-logo span { color: #5bc4b5; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.82); font-family: sans-serif; font-size: .85rem; text-decoration: none; padding: 8px 12px; border-radius: 6px; transition: background .15s, color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: .7rem; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--navy); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 8px 0; min-width: 230px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 300; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 9px 18px; color: rgba(255,255,255,.82); font-family: sans-serif; font-size: .85rem; text-decoration: none; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-phone { color: #fff; font-family: sans-serif; font-size: .95rem; font-weight: 700; text-decoration: none; background: var(--cta); padding: 9px 18px; border-radius: var(--radius); white-space: nowrap; transition: background .2s; }
.nav-phone:hover { background: var(--cta-hover); color: #fff; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: all .2s; }

@media (max-width: 860px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 62px; left: 0; right: 0; background: var(--navy); padding: 16px 24px 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-dropdown-menu { display: none; position: static; box-shadow: none; border: none; background: rgba(255,255,255,.05); border-radius: 0; padding-left: 16px; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-hamburger { display: block; }
}

/* ── HERO ──────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #2a4a6b 100%); color: #fff; padding: 72px 24px 80px; text-align: center; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #a8d8d0; font-family: sans-serif; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.25; margin-bottom: 20px; max-width: 740px; margin-left: auto; margin-right: auto; }
.hero h1 em { font-style: normal; color: #5bc4b5; }
.hero p { font-family: sans-serif; font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn-primary { background: var(--cta); color: #fff; padding: 15px 32px; border-radius: var(--radius); font-family: sans-serif; font-size: 1rem; font-weight: 700; text-decoration: none; display: inline-block; transition: background .2s; }
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-secondary { background: transparent; color: #fff; padding: 15px 32px; border-radius: var(--radius); border: 2px solid rgba(255,255,255,.4); font-family: sans-serif; font-size: 1rem; text-decoration: none; display: inline-block; transition: border-color .2s; }
.btn-secondary:hover { border-color: #fff; }
.btn-white { background: #fff; color: var(--teal); padding: 15px 32px; border-radius: var(--radius); font-family: sans-serif; font-size: 1rem; font-weight: 700; text-decoration: none; display: inline-block; transition: opacity .2s; }
.btn-white:hover { opacity: .9; color: var(--teal); }
.btn-teal { background: var(--teal); color: #fff; padding: 13px 28px; border-radius: var(--radius); font-family: sans-serif; font-size: .95rem; font-weight: 700; text-decoration: none; display: inline-block; transition: background .2s; }
.btn-teal:hover { background: var(--teal-light); color: #fff; }

/* ── TRUST BAR ─────────────────────────────────────────── */
.trust-bar { background: var(--teal); padding: 18px 24px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-item { color: #fff; font-family: sans-serif; font-size: .88rem; }

/* ── BREADCRUMB ────────────────────────────────────────── */
/* Same bg as hero (navy) so breadcrumb + hero merge visually */
.breadcrumb { background: var(--navy); padding: 10px 40px; font-family: sans-serif; font-size: .82rem; color: rgba(255,255,255,.55); }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: rgba(255,255,255,.35); }
[data-theme="dark"] .breadcrumb { background: var(--navy); color: rgba(255,255,255,.5); }
[data-theme="dark"] .breadcrumb a { color: rgba(255,255,255,.72); }
[data-theme="dark"] .breadcrumb a:hover { color: #fff; }

/* ── SECTIONS ──────────────────────────────────────────── */
section { padding: 72px 40px; }
.container { max-width: 1240px; margin: 0 auto; }
.section-label { font-family: sans-serif; font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 10px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 14px; line-height: 1.3; }
h3 { color: var(--navy); }
.subtitle { font-family: sans-serif; color: var(--muted); font-size: 1.05rem; max-width: 620px; margin-bottom: 48px; }

/* ── SERVICE CARDS ─────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--warm); border-radius: var(--radius); padding: 28px; border-left: 4px solid var(--teal); transition: box-shadow .2s; }
.service-card:hover { box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.1rem; color: var(--navy); margin: 12px 0 8px; }
.service-card p { font-family: sans-serif; font-size: .9rem; color: var(--muted); }
.service-icon { font-size: 2rem; }
.service-price { font-family: sans-serif; font-size: .82rem; color: var(--teal); font-weight: 700; margin-top: 12px; }
.service-card a.card-link { display: inline-block; margin-top: 14px; font-family: sans-serif; font-size: .82rem; color: var(--teal); font-weight: 700; text-decoration: none; }
.service-card a.card-link:hover { text-decoration: underline; }

/* ── WHY / STATS ───────────────────────────────────────── */
.why-section { background: var(--warm); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.why-item { text-align: center; }
.why-num { font-size: 2.5rem; font-weight: 700; color: var(--teal); font-family: sans-serif; }
.why-item h3 { font-size: 1rem; color: var(--navy); margin: 8px 0 6px; }
.why-item p { font-family: sans-serif; font-size: .85rem; color: var(--muted); }

/* ── PROCESS STEPS ─────────────────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-num { width: 44px; height: 44px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: sans-serif; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.step p { font-family: sans-serif; font-size: .88rem; color: var(--muted); }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-section { background: var(--warm); }
.faq-section h2 { color: var(--navy); }
.faq-section .section-label { color: var(--teal); }
.faq-section .subtitle { color: var(--muted); }
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-size: 1.4rem; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; user-select: none; }
.faq-q:hover { color: var(--teal); }
.faq-toggle { font-size: 1.4rem; color: var(--teal); flex-shrink: 0; transition: transform .2s; line-height: 1; }
.faq-a { font-family: sans-serif; color: var(--text); font-size: 1.1rem; line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 14px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ── FAQ (button variant used on index/contact/about/ada) ─ */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  text-align: left;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.4;
  transition: color .15s;
}
.faq-question:hover { color: var(--teal); }
.faq-icon { font-size: 1.4rem; color: var(--teal); flex-shrink: 0; line-height: 1; transition: transform .2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { font-family: sans-serif; font-size: 1.05rem; color: var(--text); line-height: 1.7; padding: 14px 0 6px; }
[data-theme="dark"] .faq-question { color: #ddeaf4; border-bottom-color: var(--border); }
[data-theme="dark"] .faq-question:hover { color: var(--teal); }
[data-theme="dark"] .faq-answer { color: var(--text); }

/* ── AREAS ─────────────────────────────────────────────── */
.areas-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.area-tag { background: var(--warm); border: 1px solid var(--border); padding: 7px 16px; border-radius: 20px; font-family: sans-serif; font-size: .88rem; color: var(--navy); }

/* ── CTA BAND ──────────────────────────────────────────── */
.cta-section { background: var(--teal); text-align: center; padding: 72px 24px; }
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { font-family: sans-serif; color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-outline { color: #fff; font-family: sans-serif; font-size: 1rem; padding: 15px 32px; border: 2px solid rgba(255,255,255,.5); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.btn-cta-outline:hover { border-color: #fff; color: #fff; }

/* ── FORM ──────────────────────────────────────────────── */
.form-section { background: var(--warm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-box { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-box h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 8px; }
.form-box > p { font-family: sans-serif; font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
label { display: block; font-family: sans-serif; font-size: .85rem; color: var(--navy); font-weight: 700; margin-bottom: 5px; margin-top: 14px; }
input, select, textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 7px; font-family: sans-serif; font-size: .95rem; color: var(--text); background: #fff; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { resize: vertical; min-height: 90px; }
.form-submit { background: var(--cta); color: #fff; border: none; padding: 14px 28px; border-radius: var(--radius); font-family: sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 20px; transition: background .2s; }
.form-submit:hover { background: var(--cta-hover); }
.form-disclaimer { font-family: sans-serif; font-size: .75rem; color: var(--muted); text-align: center; margin-top: 12px; }
.form-info h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 20px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-icon { width: 42px; height: 42px; background: var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.info-item h4 { font-size: .95rem; color: var(--navy); margin-bottom: 3px; }
.info-item p { font-family: sans-serif; font-size: .85rem; color: var(--muted); }

/* ── PRICING TABLE ─────────────────────────────────────── */
.pricing-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-family: sans-serif; }
.pricing-table th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-size: .88rem; }
.pricing-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text); }
.pricing-table tr:nth-child(even) td { background: var(--warm); }
.pricing-table .price { font-weight: 700; color: var(--teal); }

/* ── CONTENT BLOCKS ────────────────────────────────────── */
.content-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 700px) { .content-2col { grid-template-columns: 1fr; } }
.content-block h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.content-block p { font-family: sans-serif; font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.content-block ul { font-family: sans-serif; font-size: .93rem; color: var(--muted); padding-left: 20px; }
.content-block ul li { margin-bottom: 7px; }
.highlight-box { background: var(--warm); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.highlight-box p { font-family: sans-serif; font-size: .93rem; color: var(--text); margin: 0; }

/* ── FOOTER ────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,.5); text-align: center; padding: 40px 24px; font-family: sans-serif; font-size: .82rem; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; }
.footer-services { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; }
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.32); max-width: 720px; margin: 16px auto 0; line-height: 1.6; }

/* ── MISC ──────────────────────────────────────────────── */
@media (max-width: 600px) { section { padding: 52px 20px; } .trust-bar { gap: 16px; } .hero { padding: 52px 20px 60px; } }

/* ── DARK MODE ─────────────────────────────────────────── */
/* Manual toggle only — no OS auto-detection               */

/* Dark CSS variables */
[data-theme="dark"] {
  --navy: #0d1b2a;
  --teal: #35b8a8;
  --teal-light: #4acfbe;
  --warm: #182433;
  --white: #0f1923;
  --text: #cdd8e3;
  --muted: #7a93a8;
  --border: #253545;
  --cta: #e07535;
  --cta-hover: #c86020;
  --shadow: 0 2px 16px rgba(0,0,0,.4);
}

/* ── Dark mode: text color overrides ──────────────────── */
/* --navy is dark in dark mode (correct for backgrounds),  */
/* but all elements using navy as TEXT COLOR need fixing.  */

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: #ddeaf4; }

/* Exceptions: elements with hardcoded white text stay white */
[data-theme="dark"] .hero h1,
[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .hero h1 em { color: inherit; }

[data-theme="dark"] .faq-q { color: #ddeaf4; font-size: 1.4rem; }
[data-theme="dark"] .faq-q:hover { color: var(--teal); }

[data-theme="dark"] .area-tag { color: #b8cfe0; background: #1e2f40; border-color: var(--border); }

[data-theme="dark"] label { color: #b8cfe0; }

[data-theme="dark"] .form-box { background: #182433; }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { background: #0f1923; border-color: #2d3f52; color: var(--text); }

[data-theme="dark"] .btn-white { background: #1e2f40; color: var(--teal); }
[data-theme="dark"] .btn-white:hover { opacity: .85; }

[data-theme="dark"] .step-num { background: #1e3550; }

[data-theme="dark"] .section-label { color: var(--teal); }

/* Dark mode toggle button */
/* Dark mode toggle — fixed bottom-right */
.dark-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--navy);
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 9px 16px;
  font-family: sans-serif;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.dark-toggle:hover { border-color: rgba(255,255,255,.6); box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.dark-toggle .toggle-icon { font-size: 1rem; }
[data-theme="dark"] .dark-toggle { background: #1e3550; border-color: rgba(255,255,255,.2); }
