/* ============================================================
   SITE CONFIG — edit these when cloning this template
   ------------------------------------------------------------
   1. Colors: change the four brand variables below.
   2. Brand name, phone, city: search-and-replace in HTML files:
        "Fort Wayne Appliance Pros"  -> new brand
        "(260) 408-8218"             -> new display phone
        "+12604088218"               -> new tel:/schema phone
        "Fort Wayne"                 -> new city
        "fortwayneappliancepros.com" -> new domain (when cloning —
        update canonical, og:url, sitemap.xml, robots.txt too)
   3. Services: edit /services/ pages + nav + sitemap.
   ============================================================ */

:root {
  /* Brand palette — swap these 4 for a new niche */
  --brand: #14532d;          /* primary: deep green */
  --brand-dark: #0d3b20;     /* hover / footer */
  --accent: #d97706;         /* CTA amber */
  --accent-dark: #b45309;    /* CTA hover */

  /* Neutrals */
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-muted: #6b6560;
  --line: #e7e5e4;
  --paper: #ffffff;
  --paper-alt: #f7f6f4;
  --brand-tint: #f0f7f2;

  /* Type & spacing */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --radius: 8px;
  --maxw: 68rem;
  --measure: 42rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2 {
  font-family: var(--font-display);
  line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-top: 0; }
h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.6em; }
p, ul { margin: 0 0 1em; max-width: var(--measure); }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }
a { color: var(--brand); }
strong { color: var(--ink); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 60px;
}
.brand-link {
  font-weight: 700; text-decoration: none; color: var(--ink);
  font-size: 1.05rem; line-height: 1.2;
}
.brand-link span { color: var(--brand); }
.header-nav { display: none; }
.header-nav > a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.95rem;
}
.header-nav > a:hover { color: var(--brand); }
@media (min-width: 820px) {
  .header-nav { display: flex; align-items: center; gap: 1.25rem; }
}

/* Services dropdown — native <details>, no JS */
.nav-services { position: relative; }
.nav-services summary {
  cursor: pointer; color: var(--ink-soft); font-size: 0.95rem;
  list-style: none; display: flex; align-items: center; gap: 0.35rem;
}
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after {
  content: ""; width: 0; height: 0; margin-top: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-services summary:hover, .nav-services[open] summary { color: var(--brand); }
.nav-services ul {
  position: absolute; top: calc(100% + 0.65rem); left: 0; z-index: 70;
  min-width: 15.5rem; margin: 0; padding: 0.4rem; list-style: none;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}
.nav-services li { margin: 0; }
.nav-services ul a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.95rem;
  white-space: nowrap;
}
.nav-services ul a:hover { background: var(--brand-tint); color: var(--brand); }

.call-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 0.65rem 1rem; border-radius: var(--radius);
  min-height: 48px; white-space: nowrap; font-size: 1rem;
  transition: background 0.15s;
}
.call-btn:hover { background: var(--accent-dark); }
.call-btn svg { flex: none; }

/* ---------- Hero ---------- */
.hero { background: var(--brand); color: #fff; padding: 2.75rem 0 2.5rem; }
.hero h1 { color: #fff; max-width: 46rem; }
.hero .sub { font-size: 1.2rem; color: #e8f2ec; max-width: 40rem; }
.hero-photo { margin: 1.75rem 0 0; }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.hero-photo figcaption { font-size: 0.8rem; color: #a9c9b6; margin-top: 0.5rem; }
@media (min-width: 820px) {
  .hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem; align-items: center;
  }
  .hero-photo { margin: 0; }
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.75rem; }
.call-btn--big { font-size: 1.2rem; padding: 0.85rem 1.4rem; }
.ghost-btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0.85rem 1.4rem; border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius); color: #fff; text-decoration: none;
  font-weight: 600;
}
.ghost-btn:hover { background: rgba(255,255,255,0.1); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0; list-style: none; }
.trust-strip li { font-size: 0.95rem; color: #d3e6da; display: flex; align-items: center; gap: 0.4rem; }
.trust-strip li::before { content: "✓"; color: #7fd6a2; font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 2.75rem 0; }
.section-alt { background: var(--paper-alt); }
.answer-block { font-size: 1.15rem; max-width: var(--measure); }

.card-grid {
  display: grid; gap: 1rem; margin-top: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem 1.25rem 1.1rem; background: var(--paper); display: block;
  text-decoration: none; color: var(--ink);
}
a.card:hover { border-color: var(--brand); background: var(--brand-tint); }
.card h3 { color: var(--brand); margin-bottom: 0.35em; }
.card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.card .card-more, .feature-card .card-more { font-size: 0.9rem; font-weight: 600; color: var(--brand); }

/* Featured service (breaks the uniform grid) */
.feature-card {
  display: grid; margin-top: 1.5rem; overflow: hidden;
  text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
}
.feature-card-photo { order: -1; }
.feature-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-card-body { padding: 1.4rem 1.35rem; }
.feature-card-body h3 { color: var(--brand); font-size: 1.35rem; }
.feature-card-body p { color: var(--ink-soft); margin-bottom: 0.75rem; }
.feature-card:hover { border-color: var(--brand); }
.feature-card:hover h3 { text-decoration: underline; }
@media (min-width: 820px) {
  .feature-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .feature-card-photo { order: 0; }
  .feature-card-body { padding: 1.75rem 2rem; align-self: center; }
}

/* Compact service list under the feature */
.service-list { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-item {
  display: block; padding: 0.95rem 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.service-item h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  margin: 0 0 0.2em; font-size: 1.05rem; color: var(--brand);
}
.service-item h3::after { content: "›"; color: var(--ink-muted); font-weight: 400; }
.service-item p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.service-item:hover h3 { text-decoration: underline; }

/* ---------- Split section (text + photo) ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split-photo img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
}
@media (min-width: 820px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; }
}

.steps { list-style: none; padding: 0; counter-reset: step; max-width: var(--measure); }
.steps li { counter-increment: step; display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.steps li::before {
  content: counter(step); flex: none; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line); padding: 0.9rem 0; max-width: var(--measure);
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq details p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 2.75rem 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { margin: 0 0 1.25rem; color: #e8f2ec; }
.cta-band .call-btn { font-size: 1.3rem; padding: 0.9rem 1.6rem; }
@media (min-width: 820px) {
  .cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .cta-band p { margin-bottom: 0; }
  .cta-band .call-btn { flex: none; }
}

/* CTA band with embedded quote form (home + service pages) */
.cta-band--form .wrap { display: grid; gap: 2.25rem; }
.cta-band--form .cta-band-copy p { margin-bottom: 1.25rem; }
@media (min-width: 820px) {
  .cta-band--form .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    align-items: center;
  }
}
.quote-form--card {
  background: var(--paper); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
}
.quote-form--card .form-title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); margin: 0 0 1rem;
}
.quote-form--card .form-note { margin-bottom: 0; }

/* ---------- Form ---------- */
.quote-form { max-width: 28rem; }
.quote-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.quote-form input, .quote-form textarea {
  width: 100%; padding: 0.7rem 0.8rem; margin-bottom: 1rem;
  border: 1px solid #a8a29e; border-radius: var(--radius);
  font: inherit; min-height: 48px;
}
.quote-form textarea { min-height: 90px; resize: vertical; }
.quote-form button {
  background: var(--accent); color: #fff; border: 0; font: inherit;
  font-weight: 700; padding: 0.85rem 1.4rem; border-radius: var(--radius);
  min-height: 48px; cursor: pointer; width: 100%;
}
.quote-form button:hover { background: var(--accent-dark); }
.form-note { font-size: 0.9rem; color: var(--ink-muted); }

/* ---------- Content pages ---------- */
.page-hero { background: var(--brand-tint); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero p { font-size: 1.1rem; max-width: var(--measure); margin-bottom: 0; }
.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.85rem 1.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.15rem 0; margin: 1.9rem 0; max-width: var(--measure);
}
.inline-cta p {
  margin: 0; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
}
.cost-table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin-bottom: 1rem; }
.cost-table th, .cost-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.cost-table th { background: var(--paper-alt); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #cfe3d7; padding: 2.5rem 0 5.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: var(--accent);
}
.mobile-call-bar a {
  flex: 1; text-align: center; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.1rem; padding: 0.9rem 0; min-height: 52px;
}
@media (min-width: 820px) {
  .mobile-call-bar { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
}
