/* Pro Painters Los Angeles — shared stylesheet
   Palette: Deep Navy #1a2a4a / Warm Gold #c9a227 / White #ffffff / Light Gray #f5f5f5 / Charcoal #333333
   Type: Fraunces (display/headline) + Inter (body/UI) */

:root {
  --navy: #0a2647;
  --navy-dark: #061729;
  --teal: #12718c;
  --teal-dark: #0d5870;
  --gold: #f2a30f;
  --gold-dark: #cf8908;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border: #e2e2e2;
  --charcoal: #333333;
  --charcoal-soft: #5b5f66;
  --radius: 3px;
  --max: 1180px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
p.lede { font-size: 1.15rem; color: var(--charcoal-soft); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { height: 46px; width: auto; display: block; }
.logo-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.1;
}
.logo-text span { color: var(--gold); display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.5px; color: #cfd6e4; }

.cta-group { display: flex; align-items: center; gap: 8px; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--teal);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 14px;
  border-radius: var(--radius);
  text-decoration: none;
}
.btn-text:hover { background: var(--teal); }

.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold); }
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: 0 12px 24px rgba(16, 26, 48, 0.18);
  border-top: 3px solid var(--gold);
  padding: 8px 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  color: var(--navy);
  padding: 10px 20px;
  display: block;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--light-gray); border-bottom-color: var(--border); color: var(--teal-dark); }
.dropdown a.dropdown-viewall {
  font-weight: 700;
  color: var(--teal-dark);
  border-bottom: none;
  background: var(--light-gray);
}
.dropdown a.dropdown-viewall:hover { background: var(--border); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}
.phone-link strong { color: var(--gold); }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }

.nav-toggle {
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: var(--navy-dark);
  padding: 8px 24px 18px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.mobile-menu .phone-link { display: block; color: var(--gold); padding: 12px 0 4px; font-weight: 700; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .phone-link { display: inline; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 72px;
}
.hero .container { display: grid; gap: 32px; align-items: center; }
.hero-kicker { color: var(--gold); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero p.lede { color: #cfd6e4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-trust div { font-size: 0.88rem; color: #cfd6e4; }
.hero-trust strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); font-weight: 600; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p.lede { color: #cfd6e4; margin-bottom: 0; }
.breadcrumbs { font-size: 0.85rem; color: #a9b3c8; margin-bottom: 16px; }
.breadcrumbs a { color: #cfd6e4; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-alt { background: var(--light-gray); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 8px; }
.card a.card-link { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--teal); }
.card a.card-link:hover { color: var(--teal-dark); }

.service-list, .location-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service-list li, .location-list li {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.service-list a, .location-list a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.service-list a:hover, .location-list a:hover { color: var(--teal-dark); }

.testimonial {
  background: var(--white);
  border-left: 4px solid var(--teal);
  padding: 22px 26px;
}
.testimonial p { font-style: italic; margin-bottom: 10px; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.9rem; }

.process-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.process-steps li { position: relative; padding-left: 52px; }
.process-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.05rem; list-style: none; display:flex; justify-content: space-between; gap:12px;}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--charcoal-soft); }

/* ---------- Quote form ---------- */
.quote-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  padding: 30px;
  border-radius: var(--radius);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-success {
  display: none;
  background: #eef6ee;
  border: 1px solid #bfe0bf;
  color: #2c5c2c;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 600;
}
.form-success.visible { display: block; }
.form-error {
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f4c7c3;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-top: 12px;
  font-size: 0.9rem;
}
.form-error a { color: #b3261e; font-weight: 700; }

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p.lede { color: #cfd6e4; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c1d3;
  padding: 52px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: none; letter-spacing: 0.3px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #b9c1d3; text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid a.footer-viewall { font-weight: 700; color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 52px; width: auto; }
.footer-logo span { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; font-weight: 600; }
.social-row { display: flex; gap: 14px; margin-top: 14px; }
.social-row a { border: 1px solid #384768; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid #2a3856;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: #8f9ab5; text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Utility ---------- */
.tel-link { color: var(--gold); font-weight: 700; text-decoration: none; }
.badge { display: inline-block; background: rgba(18,113,140,0.12); color: var(--teal-dark); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-right: 8px; }
.two-col { display: grid; gap: 40px; grid-template-columns: 1.3fr 0.9fr; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.img-frame { border: 1px solid var(--border); background: var(--light-gray); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--charcoal-soft); font-size: 0.85rem; text-align:center; padding: 12px; }
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--gold); color: var(--navy-dark); padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
