/* TallahasseeHomePros.com — Mobile-First Stylesheet
   Performance target: LCP < 2.5s, Lighthouse > 90
   ================================================ */

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1a56db;
  --blue-dark: #1341b3;
  --orange:    #f97316;
  --orange-dark:#ea6c0a;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.15);
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

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

/* ── TYPOGRAPHY ───────────────────────────────── */
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem);     line-height: 1.25; font-weight: 700; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem);   line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }

/* ── LAYOUT UTILITIES ─────────────────────────── */
.container   { max-width: 1120px; margin-inline: auto; padding-inline: 1rem; }
.section     { padding-block: 3rem; }
.section--lg { padding-block: 4.5rem; }
.text-center { text-align: center; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── HEADER / NAV ─────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .75rem;
  gap: 1rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  flex-shrink: 0;
}
.logo span { color: var(--orange); }

.phone-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .125rem;
}
.phone-cta small { font-size: .7rem; color: var(--gray-600); }
.phone-cta a.phone-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
}
.phone-cta a.phone-number:hover { text-decoration: none; color: var(--orange-dark); }

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--gray-700);
  order: -1;
}
.nav-toggle svg { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--gray-100);
  color: var(--blue);
  text-decoration: none;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  color: var(--white);
  padding-block: 3rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.hero h1 { color: var(--white); margin-bottom: .75rem; }
.hero-sub { font-size: 1.1rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-bullets { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  opacity: .95;
}
.hero-bullets li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--orange);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── LEAD FORM ────────────────────────────────── */
.lead-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  color: var(--gray-900);
}
.lead-form-card h2 {
  font-size: 1.3rem;
  margin-bottom: .25rem;
  color: var(--blue);
}
.lead-form-card .form-subhead {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

.form-row { display: grid; gap: .75rem; margin-bottom: .75rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-group label .req { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.form-group input.error,
.form-group select.error {
  border-color: #dc2626;
}
.form-group .field-error {
  font-size: .78rem;
  color: #dc2626;
  display: none;
}
.form-group .field-error.visible { display: block; }

/* Honeypot – hidden from real users */
.hp-field { display: none !important; visibility: hidden; }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem 1.5rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: .5rem;
  font-family: var(--font);
}
.btn-submit:hover  { background: var(--orange-dark); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-submit svg { flex-shrink: 0; }

.form-privacy {
  font-size: .72rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: .6rem;
  line-height: 1.4;
}

/* ── TRUST STRIP ──────────────────────────────── */
.trust-strip {
  background: var(--gray-50);
  border-block: 1px solid var(--gray-200);
  padding-block: 1.25rem;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}
.trust-item svg { color: var(--orange); flex-shrink: 0; }

/* ── SERVICES GRID ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}
.service-card h3 { margin-bottom: .25rem; }
.service-card p  { font-size: .9rem; color: var(--gray-600); flex: 1; }
.service-card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
}
.service-card .btn-link:hover { text-decoration: none; color: var(--blue-dark); }

/* ── HOW IT WORKS ─────────────────────────────── */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: steps;
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  counter-increment: steps;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.step-num::before { content: counter(steps); }
.step-body h3 { margin-bottom: .25rem; }
.step-body p  { font-size: .9rem; color: var(--gray-600); margin: 0; }

/* ── REVIEWS ──────────────────────────────────── */
.reviews-section { background: var(--gray-50); }
.reviews-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: .5rem; }
.review-card blockquote { font-size: .95rem; font-style: italic; margin-bottom: .75rem; color: var(--gray-700); }
.reviewer { font-size: .85rem; font-weight: 600; color: var(--gray-900); }
.reviewer span { color: var(--gray-600); font-weight: 400; }

/* ── CTA BAND ─────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, #c2410c 100%);
  color: var(--white);
  text-align: center;
  padding-block: 3.5rem;
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p  { opacity: .9; margin-bottom: 1.5rem; font-size: 1.05rem; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s;
  font-family: var(--font);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }

/* ── FOOTER ───────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: #9ca3af;
  padding-block: 2.5rem;
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-brand .logo { color: var(--white); font-size: 1.1rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; color: #9ca3af; }
.footer-links h4 { color: var(--white); font-size: .9rem; margin-bottom: .75rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: #9ca3af; transition: color .15s; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-contact h4 { color: var(--white); font-size: .9rem; margin-bottom: .75rem; }
.footer-contact address { font-style: normal; display: flex; flex-direction: column; gap: .4rem; }
.footer-contact a { color: #9ca3af; transition: color .15s; }
.footer-contact a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .8rem;
  color: #6b7280;
}
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: #9ca3af; }

/* ── SERVICE PAGE SPECIFIC ────────────────────── */
.service-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  color: var(--white);
  padding-block: 2.5rem;
}
.service-hero h1 { color: var(--white); }
.service-hero p { opacity: .9; font-size: 1.05rem; }

.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }

.content-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.content-main { min-width: 0; }
.content-aside { }

.aside-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.aside-card h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--blue); }

.checklist { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--gray-700);
}
.checklist li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: .1rem;
}

.faq-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  color: var(--gray-900);
}
.faq-q:hover { background: var(--gray-50); }
.faq-q .faq-icon { font-size: 1.25rem; color: var(--blue); transition: transform .2s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.faq-a.open { max-height: 400px; padding: 0 1rem 1rem; }
.faq-a p { font-size: .9rem; color: var(--gray-600); margin: 0; }

/* ── CONTACT PAGE ─────────────────────────────── */
.contact-intro { font-size: 1.05rem; color: var(--gray-600); max-width: 600px; margin-inline: auto; }

/* ── THANK YOU PAGE ───────────────────────────── */
.thankyou-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}
.thankyou-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}
.thankyou-wrap h1 { color: var(--blue); margin-bottom: .75rem; }
.thankyou-wrap p  { color: var(--gray-600); max-width: 480px; margin-inline: auto; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue);
  color: var(--white);
  padding: .8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s;
  margin-top: 1.5rem;
}
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }

/* ── RESPONSIVE — TABLET 640px+ ──────────────── */
@media (min-width: 640px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
  .hero-grid        { grid-template-columns: 1fr 1fr; align-items: center; }
  .reviews-grid     { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .nav-toggle       { display: none; }
  .site-nav         { display: block; position: static; border: none; box-shadow: none; padding: 0; }
  .site-nav ul      { flex-direction: row; gap: .25rem; }
  .site-nav a       { padding: .4rem .6rem; font-size: .875rem; }
  .steps-grid       { grid-template-columns: 1fr 1fr; }
}

/* ── RESPONSIVE — DESKTOP 1024px+ ────────────── */
@media (min-width: 1024px) {
  .hero { padding-block: 4.5rem; }
  .content-grid { grid-template-columns: 1fr 340px; align-items: start; }
  .reviews-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr; }
  .steps-grid    { grid-template-columns: repeat(4, 1fr); }
}

/* ── PRINT ────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
}
