/* =====================================================
   Tampete Homes — Static site rebuild (Cloudflare Pages)
   Owner: Tampete Homes LLC, DBA TAMPETE HOMES
   Live ref: https://www.tampetehomes.com (Wix)
   Palette/typography chosen to match the live site.
   ===================================================== */

:root {
  --orange: #ED5829;        /* primary accent from Wix site */
  --orange-dark: #C4441E;
  --blue: #1967B2;          /* secondary accent */
  --blue-dark: #0F4A85;
  --dark: #1A1A1A;
  --gray-900: #2B2B2B;
  --gray-700: #4A4A4A;
  --gray-500: #7A7A7A;
  --gray-300: #D1D5DB;
  --gray-200: #E5E5E5;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --max-width: 1200px;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo img { height: 58px; width: auto; }
.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.main-nav a {
  color: var(--gray-900);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange); }

.header-contact {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: right;
}
.header-contact strong { color: var(--orange); }
.header-contact a { color: var(--gray-900); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  color: var(--white);
  padding: 6rem 1.25rem 5rem;
  text-align: center;
  background: linear-gradient(rgba(10,20,40,0.72), rgba(10,20,40,0.72)),
    url("https://static.wixstatic.com/media/a8e1f3e15ccb41b88df85a10bb90531a.jpg/v1/fill/w_1920,h_1080,al_c,q_85,enc_auto/hero.jpg") center/cover no-repeat;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.hero .subline {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #E8E8E8;
  margin-bottom: 2rem;
}
.hero-checks {
  display: inline-grid;
  gap: 0.6rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  padding: 0;
  text-align: left;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}
.hero-checks li {
  list-style: none;
  padding-left: 1.75rem;
  position: relative;
}
.hero-checks li::before {
  content: "✅";
  position: absolute;
  left: 0;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--orange); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* ===================== SECTIONS ===================== */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: 0.5rem; }
.section-title .kicker {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Video Section */
.video-wrap {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* About / Owner Bio Split */
.bio-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.bio-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.bio-name {
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.bio-title {
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
  background: var(--dark);
  color: var(--white);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* 3-Steps / Feature Cards */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.step-card {
  background: var(--white);
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--orange);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF4EF;
  border-radius: 50%;
}
.step-icon img { width: 50px; height: 50px; object-fit: contain; }
.step-card h3 { color: var(--orange); }

/* Feature blocks 4-col */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature {
  text-align: center;
  padding: 1.5rem 1rem;
}
.feature img {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.feature h3 { color: var(--orange); }

/* Two-col text/image */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* FAQ Accordion */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--orange);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--orange); }
.faq-item .faq-body {
  padding-top: 1rem;
  color: var(--gray-900);
  font-size: 1.03rem;
  line-height: 1.7;
}
.faq-item .faq-body p { margin-bottom: 0.75rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.testimonial-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card h3 { margin-bottom: 1rem; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  width: calc(100% + 4rem);
}
.blog-meta {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* CTA band */
.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.25rem;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { font-size: 1.15rem; margin-bottom: 1.75rem; }
.cta-band .btn-primary { background: var(--white); color: var(--orange); }
.cta-band .btn-primary:hover { background: var(--dark); color: var(--white); }

/* Contact Form */
.form-wrap {
  background: var(--white);
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-900);
  font-size: 0.92rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--gray-100);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form-checks {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.form-checks label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
}
.form-submit { width: 100%; }

/* Office Info box */
.office-box {
  background: var(--dark);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 420px;
}
.office-box h3 { color: var(--orange); margin-bottom: 1rem; }
.office-box p { margin-bottom: 0.5rem; font-size: 0.98rem; }
.office-box a { color: var(--white); }
.office-box a:hover { color: var(--orange); }

/* Phone display pair (Office + Text) */
.phone-pair {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.phone-pair span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.phone-pair .lbl {
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--dark);
  color: #C9C9C9;
  padding: 3.5rem 1.25rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: #C9C9C9; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-logo { max-width: 240px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--orange); }
.footer-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .header-contact { display: none; }
  .bio-split, .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ Additions for subpages ============ */

.container.narrow { max-width: 860px; }

/* Page hero (small hero for interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0f4a82 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}
.page-hero .subline {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ content — support plain <p> inside details */
.faq-item > p,
.faq-item details > p {
  padding-top: 1rem;
  color: var(--gray-900);
  font-size: 1.03rem;
  line-height: 1.7;
  margin-bottom: 0;
}
details.faq-item > p { padding-top: 1rem; color: var(--gray-900); font-size: 1.03rem; line-height: 1.7; }
details.faq-item[open] > p { padding-top: 1rem; }
details.faq-item[open] summary { margin-bottom: 0.25rem; }

/* Process steps (how it works numbered list) */
.process-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--orange);
}
.process-num {
  width: 64px;
  height: 64px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-item h3 { margin-bottom: 0.5rem; color: var(--dark); }
.process-item p { color: var(--gray-700); margin-bottom: 0; }

/* Feature cards (4-up grid) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card h3 { color: var(--dark); margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray-700); margin-bottom: 0; }

/* Contact page split layout */
.contact-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-wrap h2 { margin-bottom: 1.5rem; }
.contact-form label {
  display: block;
  margin-bottom: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  transition: border-color 0.2s;
}
.contact-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(237, 88, 41, 0.15);
}
.reach-me {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.reach-me legend {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.reach-me .check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 1.5rem;
  font-weight: 400;
  color: var(--gray-700);
}
.reach-me .check input { margin: 0; }

/* Office box on contact page */
.office-box {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
}
.office-box h4 {
  color: var(--orange);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* News items */
.news-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  margin-bottom: 1.5rem;
}
.news-date {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.news-item h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.news-item h2 a { color: var(--dark); }
.news-item h2 a:hover { color: var(--orange); }
.news-item p { color: var(--gray-700); margin-bottom: 1.25rem; }

@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; gap: 2rem; }
  .process-item { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .process-num { width: 56px; height: 56px; font-size: 1.5rem; }
  .page-hero { padding: 4rem 1.25rem 3rem; }
}

/* =====================================================
   PHASE 3 — 50+ Friendly UX Overhaul
   Typography scale, contrast, spacing, sub-nav dropdown,
   sticky mobile CTA, reassurance blocks, accessibility.
   ===================================================== */

/* Body contrast upgrade — AAA target (7:1 on white) */
body {
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1.65;
}
p { font-size: 1.0625rem; line-height: 1.7; color: #1a1a1a; }
.container.narrow p { font-size: 1.125rem; }

/* Heading weight + tightening for clean hierarchy */
h1 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-weight: 700; letter-spacing: -0.005em; color: #111; }
h3 { font-weight: 600; color: #1a1a1a; font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* Remove shouty nav — no uppercase, readable weight */
.main-nav a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0.25rem;
  color: #1a1a1a;
}

/* Header phone — make it visible and tappable */
.header-contact {
  font-size: 0.95rem;
  gap: 0.15rem;
}
.header-contact a { font-weight: 700; font-size: 1.05rem; color: #1a1a1a; }
.header-contact strong { color: #ED5829; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Larger tap targets (WCAG 2.5.5 — 44x44 min) */
.btn { min-height: 48px; padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-lg { min-height: 56px; padding: 1.15rem 2.5rem; font-size: 1.15rem; }

/* Remove shouty button text-transform */
.btn { text-transform: none; letter-spacing: 0.01em; font-weight: 700; }

/* Better focus rings for keyboard + screen-reader users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #ED5829;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Section padding — more breathing room */
.section { padding: 5.5rem 0; }
@media (max-width: 860px) { .section { padding: 3rem 0; } }

/* ============ Sub-nav dropdown (How It Works menu) ============ */
.main-nav .has-sub { position: relative; }
.main-nav .sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  min-width: 240px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 6px;
  display: none;
  list-style: none;
  z-index: 1001;
  border: 1px solid #e5e5e5;
}
.main-nav .has-sub:hover > .sub-nav,
.main-nav .has-sub:focus-within > .sub-nav { display: block; }
.main-nav .sub-nav li { margin: 0; }
.main-nav .sub-nav a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #1a1a1a !important;
  font-size: 0.98rem;
  text-transform: none;
  white-space: nowrap;
  border-bottom: 1px solid #f1f1f1;
}
.main-nav .sub-nav li:last-child a { border-bottom: none; }
.main-nav .sub-nav a:hover { background: #fff5f1; color: #ED5829 !important; }

/* ============ Top sub-tabs (page-level anchor nav) ============ */
.sub-tabs {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 80px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sub-tabs ul {
  list-style: none;
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.sub-tabs li { margin: 0; }
.sub-tabs a {
  display: block;
  padding: 1.1rem 1.5rem;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  font-family: var(--font-heading);
}
.sub-tabs a:hover { color: #ED5829; border-bottom-color: #ED5829; }
@media (max-width: 700px) {
  .sub-tabs { position: static; }
  .sub-tabs ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .sub-tabs a { white-space: nowrap; padding: 0.9rem 1.1rem; font-size: 0.95rem; }
}

/* ============ Lede paragraph (intro under H2) ============ */
.lede {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #2b2b2b;
  margin-bottom: 1.25rem;
}

/* Eyebrow/trust marker above page hero H1 */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd7c4;
  background: rgba(255,255,255,0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Plain-list bullets (for explainer content) */
.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.plain-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
}
.plain-list li:last-child { border-bottom: none; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 10px;
  height: 10px;
  background: #ED5829;
  border-radius: 50%;
}
.plain-list strong { color: #111; }

/* Sub-headline inside explainer sections */
.sub-h3 {
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Centered CTA block */
.center-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem 0;
}
.cta-aside {
  font-size: 0.98rem;
  color: #4a4a4a;
  margin-top: 1rem;
}
.cta-aside a { color: #ED5829; font-weight: 700; }
.cta-band .cta-aside { color: rgba(255,255,255,0.9); }
.cta-band .cta-aside a { color: #fff; }

/* Reassurance box — the "we're not here to pressure you" block */
.reassurance-box {
  background: #fff;
  border-left: 5px solid #1967B2;
  padding: 2rem 2.25rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 2.5rem;
}
.reassurance-box h3 {
  color: #1967B2;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.reassurance-box p {
  color: #2b2b2b;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============ Sticky mobile CTA ============ */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ED5829;
  color: #fff !important;
  text-align: center;
  padding: 1.1rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  z-index: 999;
  min-height: 56px;
  display: none;
}
@media (max-width: 860px) {
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* ============ Process items — readability ============ */
.process-item h3 {
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 0.6rem;
}
.process-item p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1a1a1a;
}

/* Page hero tightening */
.page-hero {
  padding: 5.5rem 1.25rem 4.5rem;
  background: linear-gradient(135deg, #1967B2 0%, #0f4a82 100%);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.page-hero .subline {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  opacity: 0.97;
}

/* ============ Respect prefers-reduced-motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Mobile tightening ============ */
@media (max-width: 860px) {
  body { font-size: 17px; }
  p { font-size: 1rem; }
  .lede { font-size: 1.08rem; }
  .sub-tabs { top: 0; }
  .page-hero { padding: 3.5rem 1.25rem 3rem; }
  .main-nav .sub-nav {
    position: static;
    transform: none;
    box-shadow: none;
    display: block;
    border: none;
    padding: 0.25rem 0 0.5rem 1rem;
    background: transparent;
    min-width: 0;
  }
  .main-nav .sub-nav a { padding: 0.5rem 0; color: #4a4a4a !important; border: none; font-size: 0.95rem; }
  .reassurance-box { padding: 1.5rem 1.25rem; }
}

/* ============ Phase 20 punch-list additions ============ */

/* CTA band — larger stacked phone numbers */
.cta-phones {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.cta-phones a {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-phones a:hover { text-decoration: underline; color: #fff; }
.cta-phones .phone-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  font-weight: 600;
}

/* Bio section — YouTube Short embed */
.bio-video-wrap {
  aspect-ratio: 9/16;
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}
.bio-video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Contact page — address block with map link */
.office-address-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 0.75rem;
}
.office-address-link:hover { color: var(--orange); }
.office-address-link svg { flex-shrink: 0; margin-top: 0.15rem; }

/* Footer social — inline SVG icons */
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-social a:hover svg { fill: #fff; }

/* =====================================================
   PHASE 22 — Readability fix (dark text on dark backgrounds)
   The earlier Phase 3 override `p { color:#1a1a1a }` wins
   via specificity over inherited color:white on dark sections.
   This block re-enforces white/high-contrast text on every
   dark hero, band, footer, and CTA surface across the site.
   ===================================================== */

/* Page hero (blue interior hero) — force white subline + any <p> */
.page-hero,
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero p,
.page-hero .subline,
.page-hero li,
.page-hero span { color: #ffffff; }
.page-hero .subline { color: #f2f6fc; opacity: 1; }
.page-hero a { color: #ffd7c4; }
.page-hero a:hover { color: #ffffff; }

/* Main home hero */
.hero,
.hero p,
.hero .subline,
.hero li,
.hero h1, .hero h2, .hero h3 { color: #ffffff; }
.hero .subline { color: #E8E8E8; }

/* Article hero (navy banner on blog posts) */
.article-hero,
.article-hero h1,
.article-hero h2,
.article-hero h3,
.article-hero p,
.article-hero .dek,
.article-hero .breadcrumb,
.article-hero .byline,
.article-hero li { color: #ffffff; }
.article-hero .dek { color: #dce2ee; }
.article-hero .breadcrumb { color: #b8c1d0; }
.article-hero .byline { color: #c8d0de; }

/* CTA band (orange) */
.cta-band,
.cta-band h1,
.cta-band h2,
.cta-band h3,
.cta-band p,
.cta-band li,
.cta-band span { color: #ffffff; }
.cta-band a { color: #ffffff; }

/* Stats strip (dark background) */
.stats,
.stats .stat-label,
.stats .stat-num,
.stats p { color: #ffffff; }
.stats .stat-num { color: var(--orange); }

/* Dark section helper */
.section-dark,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.section-dark p, .section-dark li, .section-dark span { color: #ffffff; }
.section-dark a { color: #ffd7c4; }
.section-dark a:hover { color: #ffffff; }

/* Office box (dark card on contact page) */
.office-box,
.office-box p,
.office-box li,
.office-box span { color: #ffffff; }
.office-box h4 { color: var(--orange); }

/* Site footer (dark) — keep footer copy light grey, links white */
.site-footer,
.site-footer p,
.site-footer li,
.site-footer span { color: #c9c9c9; }
.site-footer h4 { color: #ffffff; }
.site-footer a { color: #c9c9c9; }
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-bottom { color: #888; }

/* News press-release hero (navy, mirrors article-hero) */
.news-article-hero,
.news-article-hero h1,
.news-article-hero p,
.news-article-hero .dek,
.news-article-hero .breadcrumb,
.news-article-hero .byline { color: #ffffff; }
.news-article-hero .dek { color: #dce2ee; }

/* Sticky mobile CTA already white — belt-and-braces */
.sticky-mobile-cta { color: #ffffff !important; }

/* =====================================================
   PHASE 23 — Google review text testimonial cards
   Text-based review cards (no photos/avatars). Built on
   the .step-card pattern so the visual language is
   consistent with the rest of the site.
   ===================================================== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.review-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--orange);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars {
  color: #F5B301;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1;
}
.review-quote {
  color: var(--gray-900);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}
.review-attr {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.85rem;
  font-family: var(--font-heading);
}
.review-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}
.review-meta {
  color: #667085;
  font-size: 0.88rem;
  margin-top: 0.15rem;
}
.review-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4285F4;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.review-badge-new {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
@media (max-width: 720px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   FIX 1 (2026-04-15) — Center hero checkmark items
   ===================================================== */
.hero-checks {
  display: grid;
  gap: 0.6rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  padding: 0;
  text-align: center;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  justify-items: center;
}
.hero-checks li {
  list-style: none;
  padding-left: 0;
  position: relative;
}
.hero-checks li::before {
  content: "✅";
  position: relative;
  left: auto;
  margin-right: 0.5rem;
}

/* =====================================================
   FIX 3 (2026-04-15) — Page-hero grey background
   Interior page heroes now use a dark grey matching
   the home page hero overlay instead of blue.
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, #2B2B2B 0%, #1A1A1A 100%);
}

/* =====================================================
   FIX 2 (2026-04-15) — Review grid 3-column layout
   ===================================================== */
.review-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .review-grid { grid-template-columns: 1fr; }
}
