/* =========================================================
   Draper Electric — site styles
   Plain CSS, no framework, no build step.
   Palette: rich emerald green + gold. Mobile-first.
   ========================================================= */

:root {
  --green-dk:      #0b3d2c;
  --green-2:    #124d38;
  --green:      #10794f;
  --gold:     #e0a417;
  --gold-dk:  #b8830a;
  --ink:       #14231c;
  --muted:     #586a60;
  --line:      #e2e9e4;
  --bg:        #f6f9f6;
  --card:      #ffffff;
  --success:   #1f9d55;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 3px rgba(8,40,29,.08), 0 8px 24px rgba(8,40,29,.06);
  --shadow-lg: 0 12px 40px rgba(8,40,29,.14);
  --wrap:      1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; color: var(--green-dk); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--green); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--tint { background: var(--card); }
.section--green-dk { background: var(--green-dk); color: #d9e8de; }
.section--green-dk h2 { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 700; color: var(--gold-dk); margin: 0 0 .5rem;
}
.section--green-dk .eyebrow { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: #2a2000; }
.btn--primary:hover { background: var(--gold-dk); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { background: #fff; color: var(--green-dk); border-color: var(--line); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }
/* Non-interactive number display (shows the phone number, not a call action) */
.btn--static { cursor: default; }
.btn--static:hover { transform: none; background: transparent; border-color: rgba(255,255,255,.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 20px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-dk); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .5rem .75rem; border-radius: 6px; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); background: #e7f2ec; }

.header-cta { display: flex; align-items: center; gap: .5rem; }
.header-cta__label { font-weight: 800; color: var(--green-dk); font-size: .98rem; white-space: nowrap; }
.header-cta .btn { padding: .55rem .95rem; font-size: .95rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--green-dk); text-decoration: none; font-size: 1.02rem; }
.header-phone:hover { color: var(--green); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 42px; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--green-dk); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(11,61,44,.86), rgba(11,61,44,.94)),
    url("../assets/hero.jpg") center/cover no-repeat, var(--green-dk);
  color: #e9f3ed;
}
.hero__inner { padding-top: clamp(56px, 10vw, 104px); padding-bottom: clamp(56px, 10vw, 104px); max-width: 720px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.18rem; color: #cfe0d5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .95rem; color: #e9f3ed; }
.trust-row svg { color: var(--gold); flex: 0 0 auto; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 10px; background: #e7f2ec; color: var(--green); display: flex; align-items: center; justify-content: center; }

.service-card { display: flex; flex-direction: column; }
.service-card ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.service-card li { margin-bottom: .25rem; }

/* ---------- Feature list ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks svg { color: var(--success); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Testimonials ---------- */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote__by { margin-top: auto; font-weight: 700; color: var(--green-dk); font-size: .95rem; }
.quote__src { font-weight: 600; color: var(--muted); font-size: .85rem; }

.review-badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; }
.review-badge { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; color: var(--green-dk); text-decoration: none; box-shadow: var(--shadow); }
.review-badge:hover { border-color: var(--green); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #dbe7e0; aspect-ratio: 4/3; }
.media img { width: 100%; height: 100%; object-fit: cover; }
/* Taller frame for portrait shots, anchored to the top so the skyline stays */
.media--tall { aspect-ratio: 4/5; }
.media--tall img { object-position: center top; }

/* ---------- Service area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.area-list span { background: #e7f2ec; color: var(--green-dk); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .9rem; }

/* ---------- "Everything else" list (kept subtle / background) ---------- */
.extras { max-width: 860px; margin: 2.5rem auto 0; }
.extras__intro { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.extras ul { columns: 3; column-gap: 2.2rem; list-style: none; padding: 0; margin: 0; }
.extras li { break-inside: avoid; color: var(--muted); font-size: .92rem; padding: .22rem 0; display: flex; gap: .5rem; align-items: baseline; }
.extras li::before { content: "›"; color: var(--gold-dk); font-weight: 700; }
@media (max-width: 640px) { .extras ul { columns: 2; column-gap: 1.4rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-dk), var(--green)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0d5; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--green-dk); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .85rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,121,79,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form small { color: var(--muted); font-size: .82rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; }
.info-row { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; }
.info-row svg { color: var(--green); flex: 0 0 auto; margin-top: 3px; }
.info-row a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info-row a:hover { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dk); color: #b1c7bb; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.site-footer a { color: #b1c7bb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Sticky mobile call/text bar ---------- */
.call-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--gold); box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
.call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem; font-weight: 800; color: #2a2000; text-decoration: none; font-size: 1.05rem; }
.call-bar a + a { border-left: 1px solid rgba(42,32,0,.22); }

/* Expectation microcopy under CTAs */
.cta-note { margin-top: 1rem; font-size: .95rem; }
.hero .cta-note, .cta-band .cta-note { color: #cfe0d5; }

/* Radio/checkbox "pill" groups for the estimate form */
.pillset { display: flex; flex-wrap: wrap; gap: .5rem; }
.pillset label {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem;
  font-weight: 600; font-size: .92rem; color: var(--ink); background: #fff; margin: 0;
}
.pillset input { position: absolute; opacity: 0; width: 0; height: 0; }
.pillset input:checked + span,
.pillset label:has(input:checked) { color: var(--green); }
.pillset label:has(input:checked) { border-color: var(--green); background: #e7f2ec; box-shadow: 0 0 0 2px rgba(16,121,79,.15); }

/* ---------- Page hero (interior pages) ---------- */
.page-head { background: linear-gradient(180deg, var(--green-dk), var(--green-2)); color: #e9f3ed; padding: clamp(48px, 7vw, 72px) 0; }
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { color: #cfe0d5; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: #a6c1b1; margin-bottom: .8rem; }
.breadcrumb a { color: #a6c1b1; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; } .mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-cta__label, .header-cta__email { display: none; }
}
@media (max-width: 720px) {
  .nav, .header-phone, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem; gap: .2rem; box-shadow: var(--shadow);
  }
  .nav.open a { padding: .8rem; }
  .grid--3, .grid--4, .grid--2, .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .call-bar { display: flex; }
  body { padding-bottom: 56px; } /* room for call bar */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
