/* ============================================================
   EDWARDS PAINTING — SITE STYLES
   Palette: soft neutrals + bold navy. Gold reserved for the award.
   ============================================================ */
:root {
  --white: #FFFFFF;
  --gray: #F4F6F8;
  --line: #E2E7EC;
  --ink: #17222E;
  --ink-soft: #4E5D6C;
  --navy: #123A63;
  --navy-deep: #0C2A4A;
  --navy-tint: #E8EEF5;
  --gold: #C9A24B;

  --display: 'Playfair Display', Georgia, serif;
  --body: 'Nunito Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop > button {
  font-family: var(--body);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav > a:hover, .nav-drop > button:hover { background: var(--gray); }
.main-nav > a[aria-current="page"] { color: var(--navy); }

.nav-drop { position: relative; }
.nav-drop .caret {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.nav-drop.open .caret { transform: rotate(225deg) translateY(-1px); }
.drop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(23, 34, 46, 0.12);
  padding: 8px;
  display: none;
}
.nav-drop.open .drop-menu { display: block; }
.drop-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
}
.drop-menu a small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.drop-menu a:hover { background: var(--navy-tint); color: var(--navy); }

.header-phone {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--navy); }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: center;
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid #5B8BC4;
  outline-offset: 2px;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: "";
  display: block;
  width: 24px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle .bars::before { position: absolute; top: -8px; }
.nav-toggle .bars::after  { position: absolute; top: 8px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .header-cta, .header-phone { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 2px;
    box-shadow: 0 16px 32px rgba(23,34,46,0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button { width: 100%; text-align: left; font-size: 17px; padding: 13px 14px; }
  .nav-drop > button { display: flex; justify-content: space-between; }
  .drop-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--navy-tint);
    border-radius: 0;
    margin: 0 0 6px 14px;
    min-width: 0;
  }
  .main-nav .btn { margin-top: 10px; }
}

/* ============================================================
   SHARED SECTIONS
   ============================================================ */
main { display: block; }
section { padding: 76px 20px; }
.wrap { max-width: 1500px; margin: 0 auto; }
.gray { background: var(--gray); }

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.12;
  margin-bottom: 20px;
}
h1 em, h2 em { font-style: italic; color: var(--navy); }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 3.2vw, 44px);
  line-height: 1.18;
  margin-bottom: 14px;
}
.lead { font-size: 18.5px; color: var(--ink-soft); max-width: 640px; }

/* award plate — gold lives here only */
.award-plate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-deep);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(201, 162, 75, 0.55);
}
.award-plate .stars { color: var(--gold); font-size: 17px; letter-spacing: 3px; }
.award-plate .award-text { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.award-plate .award-text small {
  display: block;
  font-weight: 400;
  color: #B8C6D6;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* trust bar */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 18px 20px;
}
.trust-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.trust-inner span::before { content: "✓"; color: var(--navy); font-weight: 800; margin-right: 8px; }

/* ============================================================
   PAINT-CHIP SERVICE CARDS (the fan deck)
   ============================================================ */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.chip:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(23,34,46,0.10); }
.chip-swatch {
  height: 86px;
  background: var(--navy);
  position: relative;
}
.chip-swatch.s2 { background: #1C4A7C; }
.chip-swatch.s3 { background: #2A5A90; }
.chip-swatch.s4 { background: #0C2A4A; }
.chip-swatch.s5 { background: #35689E; }
.chip-swatch.s6 { background: #16406E; }
.chip-code {
  position: absolute;
  bottom: 10px; left: 16px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
}
.chip-body { padding: 20px 22px 24px; }
.chip-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 8px;
}
.chip-body p { color: var(--ink-soft); font-size: 15.5px; }
.chip-link {
  margin-top: 12px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--navy);
}

/* ============================================================
   FORM CARD (sticky rail on desktop home)
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 32px rgba(23, 34, 46, 0.10);
}
.form-card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}
.form-card .form-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 16px;
  background: var(--gray);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #5B8BC4;
  border-color: var(--navy);
  background: var(--white);
}
.form-card .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.form-success {
  display: none;
  background: var(--navy-tint);
  border: 1px solid #C6D6E8;
  color: var(--navy-deep);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 12px;
}
.form-success.show { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; } /* honeypot */

/* home hero: copy on the left, estimate form on the right */
.home-hero { padding-top: 60px; padding-bottom: 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 460px;
  gap: 72px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}
.hero-phone {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-deep);
}
.hero-phone:hover { color: var(--navy); }
.hero-form .form-card { margin: 0; }

/* stack the hero on tablets and phones; form comes first so it's reachable */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-form { order: -1; }
  .home-hero { padding-top: 40px; }
}

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 880px) { .areas-grid { grid-template-columns: 1fr; } }
.map-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(23,34,46,0.08);
}
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.city-chips span {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--navy);
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 15px;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 36px;
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 8px;
}
.step h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   SERVICE DETAIL PAGES
   ============================================================ */
.page-hero { padding: 64px 20px 56px; background: var(--gray); }
.svc-rows { margin-top: 8px; }
.svc-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: none; }
.svc-row .svc-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 6px;
}
.svc-row h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 8px;
}
.svc-row p { color: var(--ink-soft); max-width: 640px; }
@media (max-width: 700px) {
  .svc-row { grid-template-columns: 1fr; gap: 6px; }
}

.cta-band { background: var(--navy-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B8C6D6; max-width: 560px; margin: 0 auto 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: #C7D2DD;
  padding: 52px 20px 80px; /* extra bottom room for the mobile sticky bar */
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
footer .brand { font-family: var(--display); font-size: 23px; color: #fff; margin-bottom: 8px; }
footer a { color: #fff; }
footer .fine { font-size: 14px; line-height: 1.8; }
footer nav a { display: block; text-decoration: none; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
footer nav a:hover { text-decoration: underline; }

/* ============================================================
   MOBILE STICKY ACTION BAR
   ============================================================ */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(23,34,46,0.10);
}
.sticky-bar .btn { flex: 1; padding: 13px 10px; font-size: 15.5px; }
@media (max-width: 880px) {
  .sticky-bar { display: flex; }
}
