/* Anaheim Restoration Solutions — production stylesheet */
:root {
  --navy: #1b3a63;
  --navy-dark: #122a49;
  --red: #c8202f;
  --red-dark: #a5161f;
  --ink: #1c2530;
  --muted: #5a6472;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --border: #e1e6eb;
  --success-bg: #eef6ee;
  --sticky-h: 60px;
  --max-w: 1180px;
  --radius: 10px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: var(--sticky-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; }

/* Utility bar */
.utility-bar { background: var(--navy-dark); color: #fff; font-size: .85rem; }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; flex-wrap: wrap; gap: 6px; }
.utility-bar__phone { color: #fff; font-weight: 700; }

/* Header / nav */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.site-header__logo img { height: 52px; width: auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav > ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a { font-weight: 600; color: var(--ink); padding: 10px 2px; display: inline-block; }
.primary-nav > ul > li > a:hover { color: var(--red); text-decoration: none; }
.has-dropdown .dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.12); list-style: none; margin: 0; padding: 10px 0;
  min-width: 280px; max-height: 70vh; overflow-y: auto; z-index: 60;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a { display: block; padding: 8px 18px; color: var(--ink); font-weight: 400; }
.dropdown li a:hover { background: var(--bg-alt); text-decoration: none; color: var(--red); }
.dropdown li a strong { color: var(--navy); }
.nav-call-btn { background: var(--red); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.nav-call-btn:hover { background: var(--red-dark); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-align: center; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); text-decoration: none; }
.btn--secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; text-decoration: none; }
.hero .btn--secondary { color: #fff; border-color: #fff; }
.hero .btn--secondary:hover { background: #fff; color: var(--navy); }
.btn--lg { font-size: 1.05rem; padding: 14px 28px; }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 20px 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { display: flex; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 48px 0; margin-top: 4px; }
.hero--home { padding: 64px 0; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero__inner--no-media { grid-template-columns: 1fr; }
.hero__inner--no-media .hero__text { max-width: 760px; }
.hero__text h1 { color: #fff; }
.hero__subhead { font-size: 1.1rem; opacity: .92; max-width: 640px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 14px; }
.hero__badge { display: inline-block; background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hero__media img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.25); }

/* Trust block */
.trust-block { background: var(--success-bg); border-left: 4px solid var(--navy); padding: 18px 24px; margin: 28px auto; border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem; }
.trust-block p { margin: 0; }

/* Content */
.content { padding: 10px 20px 20px; }
.content-section { max-width: 780px; }
.content ul li { margin-bottom: .4em; }
.inline-image { margin: 24px auto; max-width: 780px; }
.inline-image img { border-radius: var(--radius); }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; max-width: 900px; }
.image-gallery img { border-radius: var(--radius); }

/* Related links */
.related-links { padding: 10px 20px 30px; }
.related-links__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-links__list li a { display: inline-block; background: var(--bg-alt); padding: 8px 16px; border-radius: 999px; font-size: .92rem; }
.related-links__list li a:hover { background: #e9edf1; text-decoration: none; }

/* FAQs */
.faqs { padding: 10px 20px 30px; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { margin-bottom: .3em; }
.faq-item p { margin: 0; color: var(--muted); }

/* Final CTA */
.final-cta { background: var(--red); color: #fff; padding: 42px 0; margin-top: 20px; }
.final-cta__inner { text-align: center; }
.final-cta h2 { color: #fff; margin-top: 0; }
.final-cta .btn--primary { background: #fff; color: var(--red); }
.final-cta .btn--primary:hover { background: #f0f0f0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #d7dfe8; padding: 44px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 30px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #d7dfe8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5em; font-size: .92rem; }
.footer-col--brand img { height: 42px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-col--brand p { font-size: .9rem; color: #b9c3cf; }
.footer-nap a { color: #fff; font-weight: 700; }
.footer-col__areas { display: grid; grid-template-columns: 1fr; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; font-size: .78rem; color: #9aa6b3; }

/* Contact form */
.contact-form { padding: 10px 20px 30px; max-width: 620px; }
.contact-form__form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-row input, .form-row textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; font-family: inherit; }
.form-row--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* 404 */
.section--404 { text-align: center; padding: 70px 20px; }
.explore-links { margin-top: 20px; color: var(--muted); }

/* Sticky mobile call bar */
.sticky-call-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: var(--sticky-h); background: var(--red); z-index: 100; }
.sticky-call-bar__link { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; color: #fff; font-weight: 700; font-size: .95rem; }
.sticky-call-bar__icon { font-size: 1.1rem; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,.1); padding: 10px 20px 20px; gap: 8px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > ul { flex-direction: column; gap: 0; width: 100%; }
  .has-dropdown .dropdown { position: static; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-call-btn { text-align: center; margin-top: 10px; }
  .sticky-call-bar { display: block; }
  body { padding-bottom: var(--sticky-h); }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .utility-bar__inner { flex-direction: column; align-items: flex-start; gap: 2px; }
}
