/* Apex Plumbing Co. — demo site stylesheet (mobile-first) */

:root {
  --navy: #0c2b46;
  --navy-dark: #081f34;
  --orange: #f97316;
  --orange-dark: #ea6a0a;
  --orange-light: #fff3e8;
  --ink: #1c2b3a;
  --muted: #5b6b7d;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(12, 43, 70, 0.10);
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

/* ---------- top emergency bar ---------- */
.emergency-bar {
  background: var(--orange);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}
.emergency-bar a { color: #fff; text-decoration: underline; font-weight: 800; white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: var(--orange);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.15; color: var(--navy); }
.brand-name small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: none; list-style: none; gap: 1.4rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--orange-dark); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.hamburger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.55rem 0.6rem; cursor: pointer;
}
.hamburger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

/* mobile nav panel */
.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 0.4rem 4% 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.7rem 0; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: 10px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(249,115,22,.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-call { background: var(--navy); color: #fff; padding: 0.6rem 1rem; font-size: 0.9rem; white-space: nowrap; }
.btn-call:hover { background: var(--navy-dark); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.38;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,31,52,.55) 0%, rgba(8,31,52,.82) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 4.2rem 0 3.6rem; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(249,115,22,.16); border: 1px solid rgba(249,115,22,.6);
  color: #ffd9b8; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: 1.08rem; color: #d7e3ef; margin-bottom: 1.6rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.88rem; color: #c9d8e6; }
.hero-proof strong { color: #fff; }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  padding: 1.4rem 0; text-align: center;
}
.trust-item .big { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.trust-item .small { font-size: 0.82rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 3.4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .section-sub { color: #b9c9da; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: 0.6rem;
}
.section-navy .eyebrow { color: var(--orange); }
.section-title {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.15; color: var(--navy);
  margin-bottom: 0.7rem;
}
.section-navy .section-title { color: #fff; }
.section-sub { color: var(--muted); max-width: 38rem; margin-bottom: 2rem; }

/* ---------- services grid ---------- */
.services-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12,43,70,.14); }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem;
  background: var(--orange-light); display: grid; place-items: center;
}
.service-card h3 { font-family: var(--font-head); font-size: 1.12rem; color: var(--navy); }
.service-card p { font-size: 0.93rem; color: var(--muted); flex: 1; }
.service-card .from { font-size: 0.85rem; font-weight: 700; color: var(--orange-dark); }
.service-card .card-link { font-weight: 700; font-size: 0.9rem; color: var(--navy); text-decoration: none; }
.service-card .card-link:hover { color: var(--orange-dark); }

/* service detail rows (services page) */
.service-detail {
  display: grid; gap: 1.2rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem; box-shadow: var(--shadow);
}
.service-detail h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.25rem; margin: 0.4rem 0 0.5rem; }
.service-detail p { color: var(--muted); font-size: 0.95rem; }
.service-detail ul { margin: 0.7rem 0 0.7rem 1.1rem; color: var(--ink); font-size: 0.93rem; }
.service-detail li { margin-bottom: 0.3rem; }
.price-tag {
  display: inline-block; background: var(--orange-light); color: var(--orange-dark);
  font-weight: 800; font-size: 0.85rem; padding: 0.3rem 0.8rem; border-radius: 999px;
}

/* ---------- why us ---------- */
.why-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.5rem;
}
.why-card .num {
  font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: 1rem;
  letter-spacing: .1em; margin-bottom: .5rem;
}
.why-card h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: .4rem; }
.why-card p { color: #b9c9da; font-size: .93rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; position: relative; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 0.8rem;
}
.step h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.7rem;
}
.stars { color: var(--orange); font-size: 1rem; letter-spacing: 0.1em; }
.review-card blockquote { font-size: 0.95rem; color: var(--ink); }
.review-card .who { font-size: 0.85rem; color: var(--muted); }
.review-card .who strong { color: var(--navy); }

/* ---------- towns ---------- */
.towns-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 1.6rem;
}
.town {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem; font-weight: 600; font-size: 0.93rem; color: var(--navy);
  display: flex; align-items: center; gap: 0.5rem;
}
.town::before { content: "📍"; }

/* ---------- faq ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 0.7rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- cta banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 18px; color: #fff; padding: 2.4rem 1.6rem; text-align: center;
  box-shadow: 0 16px 40px rgba(249,115,22,.35);
}
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 0.6rem; }
.cta-banner p { color: #ffe9d6; margin-bottom: 1.4rem; }
.cta-banner .btn-navy { box-shadow: 0 8px 20px rgba(8,31,52,.35); }
.cta-phone { display: block; margin-top: 1rem; font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 3rem 0 2.6rem; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.6rem; }
.page-hero p { color: #b9c9da; max-width: 36rem; }
.crumbs { font-size: 0.82rem; color: #8fa3b8; margin-bottom: 1rem; }
.crumbs a { color: #c9d8e6; text-decoration: none; }

/* ---------- forms ---------- */
.quote-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 0.95rem; font-family: var(--font-body); color: var(--ink); background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }
.form-success {
  display: none; background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46;
  border-radius: 10px; padding: 1.2rem; font-weight: 600; margin-bottom: 1rem;
}
.form-success.show { display: block; }
.contact-side h3 { font-family: var(--font-head); color: var(--navy); margin-bottom: 0.4rem; }
.contact-line { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.95rem; }
.contact-line .ic { font-size: 1.2rem; }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c9da; padding: 3rem 0 7.5rem; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #b9c9da; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand p { margin-top: 0.7rem; max-width: 22rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.4rem;
  display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.82rem; color: #8fa3b8;
}

/* ---------- sticky mobile call bar ---------- */
.call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(12,43,70,.12);
}
.call-bar a {
  text-align: center; padding: 0.9rem 0.5rem; text-decoration: none;
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
}
.call-bar .call-now { background: var(--orange); color: #fff; }
.call-bar .get-quote { background: var(--navy); color: #fff; }

/* ---------- split (image + text) ---------- */
.split { display: grid; gap: 1.8rem; grid-template-columns: 1fr; align-items: center; }
.split img { border-radius: 16px; box-shadow: var(--shadow); }
.check-list { list-style: none; margin-top: 1rem; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: 0.6rem; font-size: 0.95rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange-dark); font-weight: 800; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
  .towns-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.4fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .towns-grid { grid-template-columns: repeat(4, 1fr); }
  .service-detail { grid-template-columns: 64px 1fr; }
  .service-detail .service-icon { width: 64px; height: 64px; font-size: 1.8rem; }
  .call-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
