/* ================================================================
   Chase Rogers Home Inspections — Professional Website CSS
   Mobile-Responsive · CSS Only · No External Frameworks
   ================================================================ */

/* 1. CSS Custom Properties */
:root {
  --primary:        #1b3a6b;
  --primary-dark:   #112550;
  --primary-light:  #2457a4;
  --accent:         #d97706;
  --accent-light:   #f59e0b;
  --accent-dark:    #b45309;
  --success:        #15803d;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --bg:             #ffffff;
  --bg-light:       #f8fafc;
  --bg-section:     #f1f5f9;
  --border:         #e2e8f0;
  --white:          #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 8px rgba(0,0,0,.08),0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 20px rgba(0,0,0,.09),0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 30px rgba(0,0,0,.10),0 10px 12px rgba(0,0,0,.05);
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  18px;
  --max-w:      1200px;
  --trans:      .2s ease;
  --trans-slow: .35s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.70; color: var(--text); background: var(--bg); }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary-light); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent); }
ul   { list-style: none; }
p    { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--primary); }

/* 3. Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* 4. Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section .container { padding: 0 24px; }
.section--light   { background: var(--bg-light); }
.section--accent  { background: var(--bg-section); }
.section--dark    { background: var(--primary); color: var(--white); }
.section--dark h2,.section--dark h3,.section--dark h4 { color: var(--white); }

.section__header { text-align: center; max-width: 740px; margin: 0 auto 3.5rem; }
.section__label  {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section--dark .section__label { color: var(--accent-light); }
.section__subtitle { font-size: 1.1rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.65; }
.section--dark .section__subtitle { color: rgba(255,255,255,.72); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* 5. Sticky Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.site-logo { display: flex; flex-direction: column; text-decoration: none; }
.logo-name  { font-size: 1.1rem; font-weight: 800; color: var(--primary); line-height: 1.2; letter-spacing: -.02em; }
.logo-tag   { font-size: .68rem; color: var(--text-muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

.header-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links  { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: .875rem; font-weight: 600; color: var(--text); transition: color var(--trans); }
.nav-links a:hover { color: var(--primary); }

.header-cta   { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-size: .875rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.header-phone:hover { color: var(--accent); }

/* Mobile nav (CSS-only checkbox toggle) */
.nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; }
.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2.5px; background: var(--primary); border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }

/* 6. Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.75rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: all var(--trans); white-space: nowrap; }
.btn--primary  { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover  { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(217,119,6,.35); }
.btn--secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn--secondary:hover { background: rgba(255,255,255,.15); color: var(--white); border-color: var(--white); }
.btn--outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover  { background: var(--primary); color: var(--white); }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* 7. Hero */
.hero { background: linear-gradient(135deg,#0e2040 0%,var(--primary) 55%,#1e4d8c 100%); color: var(--white); padding: 96px 24px 108px; position: relative; overflow: hidden; }
.hero::before { 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='%23ffffff' fill-opacity='0.04'%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/svg%3E"); }
.hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.95); font-size: .82rem; font-weight: 600; padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(1.85rem,4.8vw,3.25rem); color: var(--white); line-height: 1.15; margin-bottom: 1.25rem; max-width: 820px; }
.hero-subtitle { font-size: clamp(1rem,2vw,1.2rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 3rem; }
.hero-trust   { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.trust-badge  { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.88); font-size: .85rem; font-weight: 500; }
.trust-badge::before { content:'✓'; width: 22px; height: 22px; background: rgba(217,119,6,.9); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; flex-shrink: 0; color: white; }

/* 8. Stats Bar */
.stats-bar { background: var(--primary-dark); padding: 52px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; max-width: var(--max-w); margin: 0 auto; }
.stat-item   { color: var(--white); }
.stat-number { font-size: clamp(1.85rem,3.5vw,2.65rem); font-weight: 800; color: var(--accent-light); line-height: 1; margin-bottom: .4rem; }
.stat-label  { font-size: .82rem; color: rgba(255,255,255,.65); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* 9. Service Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.5rem; }
.service-card  { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: all var(--trans-slow); }
.service-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon  { width: 52px; height: 52px; background: linear-gradient(135deg,var(--primary),var(--primary-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.375rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--primary); }
.service-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* 10. Process Steps */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; position: relative; }
.process-steps::before { content:''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(to right,var(--accent),var(--primary-light)); z-index: 0; }
.process-step  { position: relative; z-index: 1; text-align: center; }
.step-number   { width: 56px; height: 56px; background: var(--accent); color: var(--white); font-size: 1.25rem; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--accent); }
.process-step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.process-step p  { font-size: .875rem; color: var(--text-muted); }

/* 11. Feature list */
.feature-list { display: flex; flex-direction: column; gap: .8rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; }
.feature-list li::before { content:'✓'; min-width: 22px; height: 22px; background: var(--success); color: white; border-radius: 50%; font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 3px; flex-shrink: 0; }

/* 12. About */
.about-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual  { background: linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%); border-radius: var(--radius-xl); padding: 3rem 2.5rem; color: white; text-align: center; position: relative; overflow: hidden; }
.about-visual::before { content:'🏠'; position: absolute; font-size: 9rem; opacity: .06; top: -1rem; right: -2rem; line-height: 1; }
.about-icon    { font-size: 4rem; margin-bottom: 1.25rem; }
.about-visual h3 { color: white; font-size: 1.4rem; margin-bottom: .5rem; }
.about-visual p  { color: rgba(255,255,255,.75); font-size: .9rem; }
.cert-badges   { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.cert-badge    { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.92); padding: .35rem .875rem; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p  { color: var(--text-muted); }

/* 13. Stats / Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card  { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.testimonial-quote { font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: .5rem; font-family: Georgia,serif; }
.testimonial-stars { color: var(--accent); margin-bottom: .75rem; font-size: .9rem; }
.testimonial-text  { color: var(--text); font-size: .95rem; font-style: italic; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author{ display: flex; align-items: center; gap: .75rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-light)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.author-name     { font-weight: 700; color: var(--primary); font-size: .875rem; line-height: 1.3; }
.author-location { font-size: .78rem; color: var(--text-muted); }

/* 14. Service Area */
.area-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.area-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 2px solid var(--border); }
.area-card h3 { font-size: 1.25rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 3px solid var(--accent); display: inline-block; }
.city-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.city-link  { display: inline-block; padding: .35rem .875rem; background: var(--bg-light); border: 1px solid var(--border); border-radius: 100px; font-size: .82rem; color: var(--primary); font-weight: 500; text-decoration: none; transition: all var(--trans); }
.city-link:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* 15. Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.65fr; gap: 4rem; align-items: start; }
.contact-info h2  { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details  { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item     { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon     { width: 44px; height: 44px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; flex-shrink: 0; }
.contact-item-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: .2rem; }
.contact-item-value { font-size: .975rem; font-weight: 600; color: var(--text); text-decoration: none; display: block; }
.contact-item-value:hover { color: var(--accent); }

.contact-form  { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.form-title    { font-size: 1.25rem; color: var(--primary); margin-bottom: 1.5rem; text-align: center; }
.form-group    { margin-bottom: 1.2rem; }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label    { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-label span { color: var(--accent); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .975rem; font-family: var(--font);
  color: var(--text); background: var(--bg); transition: border-color var(--trans), box-shadow var(--trans);
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(36,87,164,.12); }
.form-textarea { min-height: 110px; resize: vertical; }
.form-submit   { width: 100%; padding: 1rem; font-size: 1.05rem; margin-top: .5rem; }
.form-note     { text-align: center; font-size: .78rem; color: var(--text-muted); margin-top: .75rem; }

/* 16. CTA Banner */
.cta-banner { background: linear-gradient(135deg,var(--accent-dark),var(--accent)); padding: 72px 24px; text-align: center; }
.cta-banner h2 { color: white; font-size: clamp(1.65rem,3.2vw,2.4rem); margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; }
.btn--cta      { background: var(--primary-dark); color: white; border-color: var(--primary-dark); font-size: 1.15rem; padding: 1rem 2.5rem; }
.btn--cta:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(17,37,80,.35); }

/* 17. Footer */
.site-footer   { background: #0d1f3c; color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-inner  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px; }
.footer-grid   { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo-name { color: white; font-size: 1.15rem; margin-bottom: .4rem; }
.footer-brand .logo-tag  { color: rgba(255,255,255,.45); }
.footer-desc   { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; margin: 1rem 0; }
.footer-phone  { font-size: 1.15rem; font-weight: 700; color: var(--accent-light); text-decoration: none; display: block; margin-bottom: .375rem; }
.footer-phone:hover { color: white; }
.footer-addr   { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-col h4 { color: white; font-size: .975rem; margin-bottom: 1.25rem; font-weight: 700; }
.footer-links  { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color var(--trans); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 24px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy   { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-legal  { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.4); transition: color var(--trans); }
.footer-legal a:hover { color: rgba(255,255,255,.75); }

/* 18. City-page specifics */
.breadcrumb    { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.breadcrumb a  { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { margin: 0 .4rem; opacity: .45; }
.nearby-cities { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.nearby-link   { display: inline-block; padding: .3rem .85rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.88); border-radius: 100px; font-size: .82rem; text-decoration: none; transition: all var(--trans); }
.nearby-link:hover { background: rgba(255,255,255,.22); color: white; }
.city-highlight { background: var(--accent); color: white; border-color: var(--accent); }

/* 19. Cities Index */
.cities-index-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; }
.cities-index-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; transition: all var(--trans-slow); text-decoration: none; color: var(--text); display: block; }
.cities-index-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--primary); }
.cities-index-card .city-county { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .25rem; }

/* 20. Utility */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.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; }

/* 21. Responsive */
@media (max-width: 1024px) {
  .grid-4          { grid-template-columns: repeat(2,1fr); }
  .process-steps   { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid      { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .header-nav {
    position: fixed; top: 68px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--border); padding: 1.5rem 24px;
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    box-shadow: var(--shadow-lg); transform: translateY(-110%); opacity: 0;
    transition: all var(--trans-slow); pointer-events: none; z-index: 999;
  }
  .nav-toggle:checked ~ .header-inner .header-nav { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-links a { font-size: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); width: 100%; display: block; }
  .header-cta { width: 100%; flex-direction: column; align-items: flex-start; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .about-grid, .testimonials-grid, .area-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero  { padding: 60px 20px 72px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .cities-index-grid { grid-template-columns: repeat(2,1fr); }
}
