/* CT-009 Cape Plumbing and Electrical — Shell B
   Palette from logo: dual-trade blue + brick red on charcoal/white
   Fonts: Lexend (display) + Atkinson Hyperlegible (body) — mobile clarity
   Self-contained — no shared/styles.css */

:root {
  --blue: #1f5fa8;
  --blue-deep: #163f72;
  --red: #b83a3a;
  --red-soft: #f8ecec;
  --blue-soft: #e8f0f9;
  --ink: #14181f;
  --muted: #5a6573;
  --line: #d9e0e8;
  --soft: #f5f6f8;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(20, 24, 31, 0.08);
  --banner-h: 36px;
  --cta-bar-h: 72px;
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --max: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(var(--cta-bar-h) + 1rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.55rem;
}
p { margin: 0 0 0.85rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.demo-banner {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #f0f3f7;
  text-align: center; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.55rem 1rem; min-height: var(--banner-h);
}

.header {
  position: sticky; top: var(--banner-h); z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-brand {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
}
.header-brand img {
  width: 52px; height: 40px; object-fit: contain;
  background: #0a0a0a; border-radius: 8px; padding: 3px;
}
.header-name { display: none; }
@media (min-width: 600px) { .header-name { display: inline; } }
.header-actions { display: flex; gap: 0.4rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 650; font-size: 0.82rem;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #972f2f; color: var(--white); }
.btn-wa { background: #128c7e; color: var(--white); }
.btn-wa:hover { background: #0e7368; color: var(--white); }
.btn-line {
  background: var(--white); color: var(--ink); border-color: var(--line);
}
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 0.8rem 1.2rem; font-size: 0.95rem; }

.hero-dual {
  padding: 3.25rem 0 2.75rem;
  background:
    linear-gradient(105deg, var(--blue-soft) 0%, var(--soft) 48%, var(--red-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-dual__grid {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 800px) {
  .hero-dual__grid { grid-template-columns: 1.3fr 0.9fr; }
}
.tag {
  display: inline-flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.tag span {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.tag-plumb { background: var(--blue); color: var(--white); }
.tag-elec { background: var(--red); color: var(--white); }
.hero-dual h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.65rem); max-width: 16ch; margin-bottom: 0.85rem;
}
.lede { color: var(--muted); max-width: 46ch; margin-bottom: 1.25rem; }
.phone-stack {
  display: grid; gap: 0.55rem; margin-bottom: 1.25rem; max-width: 28rem;
}
.phone-stack a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.75rem; padding: 0.85rem 1.1rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow);
}
.phone-stack a:hover { border-color: var(--blue); color: var(--blue); }
.phone-stack em {
  font-style: normal; font-weight: 500; font-size: 0.85rem; color: var(--muted);
}

.honesty {
  background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 1rem 1.15rem; max-width: 32rem;
  font-size: 0.95rem; color: var(--muted);
}
.honesty strong { color: var(--ink); font-family: var(--font-display); }

.logo-box {
  justify-self: center; text-align: center;
  background: #0a0a0a; border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
  max-width: 300px; width: 100%;
}
.logo-box img { margin: 0 auto 0.85rem; width: min(240px, 100%); }
.logo-box p {
  margin: 0; color: #b8c0cc; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
}

.hours-bar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: 1.15rem 1.35rem;
}
.hours-bar h2 { color: var(--white); font-size: 1.05rem; margin: 0; }
.hours-bar .time {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.hours-bar .hint { width: 100%; margin: 0; font-size: 0.9rem; opacity: 0.85; }

section { padding: 2.85rem 0; }
.band { background: var(--soft); }
.sec-h { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.sec-p { color: var(--muted); max-width: 52ch; margin-bottom: 1.45rem; }

.trade-grid {
  display: grid; gap: 0.85rem;
}
@media (min-width: 700px) { .trade-grid { grid-template-columns: 1fr 1fr; } }
.trade-card {
  border-radius: var(--radius); padding: 1.3rem 1.35rem;
  border: 1px solid var(--line); background: var(--white);
}
.trade-card.plumb { border-top: 4px solid var(--blue); }
.trade-card.elec { border-top: 4px solid var(--red); }
.trade-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.trade-card ul {
  margin: 0; padding: 0 0 0 1.1rem; color: var(--muted); font-size: 0.98rem;
}
.trade-card li { margin-bottom: 0.35rem; }

.reviews {
  display: grid; gap: 0.85rem;
}
@media (min-width: 760px) { .reviews { grid-template-columns: 1fr 1fr 1fr; } }
.reviews figure {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.reviews img { width: 100%; height: auto; }
.reviews figcaption {
  padding: 0.65rem 0.85rem; font-size: 0.82rem; color: var(--muted);
}
.soft-note { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }

.social-row {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.social-row a {
  font-family: var(--font-display); font-weight: 650; font-size: 0.9rem;
  padding: 0.65rem 1.1rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.social-row a:hover { border-color: var(--blue); color: var(--blue); }

.contact-block {
  display: grid; gap: 1rem;
}
@media (min-width: 720px) { .contact-block { grid-template-columns: 1.2fr 0.8fr; } }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.35rem;
}
.panel h3 { font-size: 1.05rem; }
.panel p:last-child { margin-bottom: 0; }
.note-panel {
  background: var(--red-soft); border: 1px solid #e8cfcf;
  border-radius: var(--radius); padding: 1.3rem 1.35rem;
}
.note-panel h3 { margin-bottom: 0.4rem; }

.cta-end { background: var(--blue-soft); text-align: center; }
.cta-end .sec-p { margin-inline: auto; }
.cta-end .cta-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem;
  margin-top: 1.15rem;
}

.foot {
  padding: 1.4rem 0 2rem; font-size: 0.875rem; color: var(--muted);
  text-align: center; border-top: 1px solid var(--line);
}

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem;
  padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20, 24, 31, 0.1);
}
.sticky-cta .btn { font-size: 0.78rem; padding: 0.55rem 0.4rem; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
