/* ============================================================
   RESTORATION SITE — STYLE.CSS
   Anderson Group International — Bakersfield, CA
   ============================================================ */

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.7; color: #2d3748; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; transition: color .2s; }
a:hover { color: #1d4ed8; }
ul, ol { padding-left: 1.5em; }

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #2d3748;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --max-width: 1200px;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: .75rem; }
h3 { font-size: 1.5rem; margin-bottom: .5rem; }
h4 { font-size: 1.25rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }

/* ── UTILITY ───────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn { display: inline-block; padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-align: center; cursor: pointer; transition: all .2s; border: none; text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #1a1a1a; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--full { display: block; width: 100%; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ── HEADER / NAV ──────────────────────────────────────────── */
.site-header { background: var(--bg-dark); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.site-header__logo { font-size: 1.25rem; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.site-header__logo:hover { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: #cbd5e1; font-weight: 500; font-size: .95rem; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav__cta { background: var(--accent); color: #1a1a1a !important; padding: .5rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.site-nav__cta:hover { background: var(--accent-dark); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: .25rem; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); padding: 1rem 1.5rem; gap: .75rem; border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: flex; }
}

/* ── TOP BAR ───────────────────────────────────────────────── */
.top-bar { background: var(--primary); color: #fff; font-size: .875rem; padding: .4rem 0; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; flex-wrap: wrap; gap: .5rem; }
.top-bar a { color: #fff; font-weight: 500; }
.top-bar a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .top-bar__inner { justify-content: center; text-align: center; }
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%); color: #fff; padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,149.3C672,149,768,203,864,218.7C960,235,1056,213,1152,186.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center; background-size: cover; }
.hero__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; margin-bottom: 1.25rem; text-shadow: 0 2px 4px rgba(0,0,0,.2); }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; color: rgba(255,255,255,.9); }
.hero .btn { margin: 0 .5rem .75rem; }
@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
}

/* ── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section__header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section__header h2 { color: var(--primary); }
.section--dark .section__header h2 { color: #fff; }
.section__header p { color: var(--text-light); font-size: 1.1rem; }

/* ── SERVICES GRID ─────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: var(--max-width); margin: 0 auto; }
.service-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--primary); margin-bottom: .75rem; }
.service-card p { color: var(--text-light); margin-bottom: 1rem; }
.service-card a { font-weight: 600; color: var(--primary); }

/* ── WHY CHOOSE US ─────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: var(--max-width); margin: 0 auto; }
.feature-card { text-align: center; padding: 2rem 1.5rem; }
.feature-card__icon { font-size: 3rem; margin-bottom: 1rem; color: var(--accent); }
.feature-card h3 { margin-bottom: .75rem; }
.feature-card p { color: var(--text-light); }

/* ── PROCESS STEPS ─────────────────────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: var(--max-width); margin: 0 auto; counter-reset: step; }
.process-step { text-align: center; padding: 1.5rem; position: relative; }
.process-step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 1.25rem; font-weight: 700; margin: 0 auto 1rem; }
.process-step h4 { margin-bottom: .5rem; }
.process-step p { color: var(--text-light); font-size: .95rem; }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: var(--max-width); margin: 0 auto; }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.testimonial-card__stars { color: var(--accent); font-size: 1.25rem; margin-bottom: .75rem; }
.testimonial-card__text { font-style: italic; color: var(--text); margin-bottom: 1rem; line-height: 1.6; }
.testimonial-card__author { font-weight: 600; color: var(--primary); }
.testimonial-card__city { color: var(--text-light); font-size: .9rem; }

/* ── CTA BANNER ────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.cta-banner h2 { color: #fff; font-size: 2.25rem; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.15rem; margin-bottom: 2rem; color: rgba(255,255,255,.9); max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 2rem; }
.cta-banner .btn { margin: 0 .5rem; }

/* ── BLOG CARDS ────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: var(--max-width); margin: 0 auto; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__body { padding: 1.5rem; }
.blog-card__category { display: inline-block; background: var(--primary); color: #fff; padding: .2rem .75rem; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.blog-card__title { margin-bottom: .5rem; }
.blog-card__title a { color: var(--text); }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__meta { color: var(--text-light); font-size: .875rem; margin-bottom: .75rem; }
.blog-card__excerpt { color: var(--text-light); font-size: .95rem; margin-bottom: 1rem; }
.blog-card__link { font-weight: 600; color: var(--primary); }

/* ── ARTICLE LAYOUT ────────────────────────────────────────── */
.article-layout { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem; }
.article-layout__inner { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
@media (max-width: 968px) {
  .article-layout__inner { grid-template-columns: 1fr; }
}

/* Article Hero */
.article-hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%); color: #fff; padding: 3rem 1.5rem; }
.article-hero__inner { max-width: var(--max-width); margin: 0 auto; }
.article-hero__category { display: inline-block; background: var(--accent); color: #1a1a1a; padding: .25rem .75rem; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; }
.article-hero h1 { font-size: 2.25rem; margin-bottom: 1rem; color: #fff; }
.article-hero__meta { color: rgba(255,255,255,.8); font-size: .95rem; }

/* Article Content */
.article-content { line-height: 1.8; }
.article-content h2 { color: var(--primary); margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.article-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; }
.article-content li { margin-bottom: .5rem; }
.article-content blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }

/* Article CTA */
.article-cta { background: var(--bg-alt); border: 2px solid var(--primary); border-radius: var(--radius); padding: 2rem; margin-top: 2.5rem; text-align: center; }
.article-cta h3 { color: var(--primary); margin-bottom: .75rem; }
.article-cta p { margin-bottom: 1rem; }

/* Sidebar */
.article-sidebar { position: sticky; top: 5rem; }
.sidebar-toc { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-toc__title { font-size: 1rem; margin-bottom: .75rem; color: var(--primary); }
.sidebar-toc__list { list-style: none; padding: 0; }
.sidebar-toc__list li { margin-bottom: .5rem; }
.sidebar-toc__list a { color: var(--text-light); font-size: .9rem; }
.sidebar-toc__list a:hover { color: var(--primary); }

.sidebar-cta { background: var(--bg-dark); color: #fff; border-radius: var(--radius); overflow: hidden; }
.sidebar-cta__header { background: var(--primary); padding: 1.25rem; text-align: center; }
.sidebar-cta__title { color: #fff; font-size: 1.1rem; margin-bottom: .25rem; }
.sidebar-cta__subtitle { color: rgba(255,255,255,.85); font-size: .85rem; }
.sidebar-cta__body { padding: 1.25rem; }
.sidebar-cta__services { list-style: none; padding: 0; margin: 1rem 0; }
.sidebar-cta__services li { padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #cbd5e1; font-size: .9rem; }
.sidebar-cta__services li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.sidebar-cta__address { font-style: normal; color: #94a3b8; font-size: .85rem; margin-top: 1rem; line-height: 1.5; }

/* ── RELATED ARTICLES ──────────────────────────────────────── */
.related-articles { background: var(--bg-alt); padding: 3rem 1.5rem; }
.related-articles__inner { max-width: var(--max-width); margin: 0 auto; }
.related-articles__heading { text-align: center; margin-bottom: 2rem; color: var(--primary); }
.related-articles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.related-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.related-card__category { font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: .5rem; }
.related-card__title { margin-bottom: .5rem; }
.related-card__title a { color: var(--text); }
.related-card__title a:hover { color: var(--primary); }
.related-card__meta { color: var(--text-light); font-size: .85rem; }

/* ── SERVICE PAGE ──────────────────────────────────────────── */
.service-hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.service-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 1rem; }
.service-hero p { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 700px; margin: 0 auto; }
.service-content { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }
.service-content h2 { color: var(--primary); margin-top: 2.5rem; margin-bottom: 1rem; }
.service-content ul, .service-content ol { margin-bottom: 1.25rem; }
.service-content li { margin-bottom: .5rem; }

/* ── CONTACT / FORM ────────────────────────────────────────── */
.contact-section { padding: 4rem 1.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: var(--max-width); margin: 0 auto; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info h2 { color: var(--primary); margin-bottom: 1.5rem; }
.contact-info__item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info__icon { font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }
.contact-info__text h4 { margin-bottom: .25rem; }
.contact-info__text p { color: var(--text-light); margin-bottom: 0; }
.contact-info__text a { color: var(--primary); font-weight: 600; }

.contact-form { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; }
.contact-form h3 { color: var(--primary); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: var(--bg-dark); color: #cbd5e1; padding: 3rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; max-width: var(--max-width); margin: 0 auto 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #94a3b8; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .85rem; color: #64748b; max-width: var(--max-width); margin: 0 auto; }

/* ── BLOG INDEX ────────────────────────────────────────────── */
.blog-hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%); color: #fff; padding: 3rem 1.5rem; text-align: center; }
.blog-hero h1 { color: #fff; margin-bottom: .5rem; }
.blog-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ── ABOUT PAGE ────────────────────────────────────────────── */
.about-content { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }
.about-content h2 { color: var(--primary); margin-top: 2rem; margin-bottom: 1rem; }

/* ── SCHEMA / MISC ─────────────────────────────────────────── */
.breadcrumb { padding: .75rem 1.5rem; background: var(--bg-alt); font-size: .875rem; }
.breadcrumb__inner { max-width: var(--max-width); margin: 0 auto; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text); }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease-out; }

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  .site-header, .top-bar, .site-footer, .cta-banner, .sidebar-cta, .nav-toggle { display: none !important; }
  body { color: #000; }
}
