/* Pinecrest Plumbing & Heating — fictional example site by Botelho Technologies */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #eaf0f8;
  --ink: #0f1d33;
  --ink-2: #3a4a63;
  --line: #d3dcea;
  --navy: #12305e;
  --navy-ink: #ffffff;
  --blue: #1d5fbf;
  --link: #1a56b0;
  --accent: #f0a23b;
  --accent-ink: #1c1203;
  --accent-hover: #f5b55e;
  --banner-bg: #0f1d33;
  --banner-ink: #f6f8fb;
  --focus: #1d5fbf;
  --shadow: 0 1px 2px rgba(15, 29, 51, .06), 0 8px 24px rgba(15, 29, 51, .07);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1424;
    --surface: #13203a;
    --surface-alt: #0f1b31;
    --ink: #e8eef8;
    --ink-2: #b4c1d6;
    --line: #26375a;
    --navy: #0a1220;
    --navy-ink: #e8eef8;
    --blue: #7fb0ff;
    --link: #8db8ff;
    --accent: #f4ac4c;
    --accent-ink: #1c1203;
    --accent-hover: #f8c278;
    --banner-bg: #f0a23b;
    --banner-ink: #1c1203;
    --focus: #8db8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
svg { display: block; }

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

/* Demo banner + skip link */
.demo-banner { margin: 0; background: var(--banner-bg); text-align: center; font-size: .875rem; padding: 8px 16px; }
.demo-banner a { color: var(--banner-ink); font-weight: 600; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: 8px;
  font-weight: 700; box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.bm-bg { fill: var(--navy); }
.bm-tree { fill: var(--accent); }
@media (prefers-color-scheme: dark) { .bm-bg { fill: #1d3b6e; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.2rem; letter-spacing: -.01em; }
.brand-text small { font-size: .8rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.phone svg { width: 18px; height: 18px; fill: var(--blue); }
.phone:hover span { text-decoration: underline; }

.site-nav { padding-bottom: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 8px;
}
.site-nav li:first-child a { padding-left: 0; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 10px 20px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none; cursor: pointer;
}
.btn-lg { min-height: 54px; padding: 12px 24px; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(240, 162, 59, .22), transparent 60%),
    linear-gradient(160deg, #12305e 0%, #0d2348 60%, #0a1b38 100%);
  color: #f3f6fb;
  padding: 48px 0 56px;
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffc985; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 18px; max-width: 16em; }
.lede { font-size: 1.12rem; color: #d3ddee; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-actions .btn { flex: 1 1 220px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: #d3ddee; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-art { display: none; }
.hero-art svg { width: 100%; height: auto; max-width: 420px; margin-left: auto; }
.ha-card { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.ha-pipe { fill: none; stroke: #9fc2f5; stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; }
.ha-pipe-shadow { fill: none; stroke: rgba(0, 0, 0, .25); stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; }
.ha-joint { fill: #cfe0fa; stroke: #12305e; stroke-width: 3; }
.ha-valve { fill: #12305e; stroke: #9fc2f5; stroke-width: 3; }
.ha-accent { fill: #f0a23b; }
.ha-drop { fill: #7fb0ff; }
.ha-tag { fill: #f0a23b; }
.ha-tag-t1 { fill: #1c1203; font: 700 11px var(--font); letter-spacing: .12em; }
.ha-tag-t2 { fill: #1c1203; font: 800 18px var(--font); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-alt); }
.section h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 800; }
.section-lede { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; margin-bottom: 28px; }
.muted { color: var(--ink-2); }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; margin: 12px 0 6px; }
.card p { color: var(--ink-2); margin: 0; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--surface-alt); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: none; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }
.step-n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800;
}
@media (prefers-color-scheme: dark) { .step-n { background: var(--accent); color: var(--accent-ink); } }

.pricing-grid { display: grid; gap: 28px; align-items: start; }
.price-box {
  background: var(--surface); border: 2px solid var(--accent); border-radius: 18px; padding: 26px; box-shadow: var(--shadow);
}
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 1.1rem; color: var(--ink-2); font-weight: 600; }
.price-big { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.price-notes { margin: 16px 0 0; padding: 16px 0 0 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.price-notes li + li { margin-top: 6px; }
.licensed { background: var(--surface-alt); border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 16px; max-width: 34em; }
.placeholder { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface); border: 1px dashed var(--ink-2); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }

.towns { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }

.reviews { display: grid; gap: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 12px; font-size: 1.05rem; flex: 1; }
.review blockquote p { margin: 0; }
.review figcaption { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.sample-tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }

.request { background: linear-gradient(160deg, #12305e, #0a1b38); color: #f3f6fb; text-align: center; }
.request-inner { max-width: 720px; }
.request h2 { color: #fff; }
.request p { color: #d3ddee; font-size: 1.1rem; }
.request .btn { margin: 10px 0 14px; max-width: 100%; white-space: normal; }
.request .example-note { font-size: .9rem; font-style: italic; }
.request-alt a { color: #ffc985; font-weight: 700; }

.faq-wrap { max-width: 800px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 1.05rem; min-height: 44px; position: relative; list-style: none; border-radius: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--blue); }
details[open] summary::after { content: "−"; }
details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: #0a1426; color: #d3ddee; padding: 48px 0 24px; font-size: .98rem; }
.site-footer a { color: #ffc985; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { font-weight: 800; font-size: 1.15rem; color: #fff; }
.footer-h { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 10px; }
.site-footer p { margin-bottom: .6em; }
.site-footer .placeholder { background: transparent; border-color: #8ea0bd; color: #d3ddee; }
.footer-base { border-top: 1px solid #22314d; margin-top: 28px; padding-top: 18px; font-size: .9rem; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; }
  .hero-art { display: block; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 80px 0; }
}
