/* =========================================================
   DavidRobertsBuilders.com — 2026 site stylesheet
   Shared by all pages in the new design.
   ========================================================= */

:root {
  --green: #2c7a2c;
  --green-dark: #215e21;
  --navy: #1f2d3d;
  --ink: #2b2b2b;
  --muted: #5c6670;
  --line: #e3e6e9;
  --bg-soft: #f4f6f7;
  --white: #ffffff;
  --max: 1200px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--green); }
a:hover { color: var(--green-dark); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

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

.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #dfe6ec; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo img { max-height: 64px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 10px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a.current { color: var(--green); }
.nav .btn { padding: 10px 18px; color: var(--white); margin-left: 8px; }

.menu-toggle {
  display: none;
  background: none; border: 2px solid var(--navy); border-radius: var(--radius);
  padding: 6px 12px; font-size: 1rem; font-weight: 600; color: var(--navy); cursor: pointer;
}

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; background: #111; aspect-ratio: 21 / 9; max-height: 620px; width: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.slide.active img { animation: kenburns 6s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

.slide-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 60px;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.45));
  color: #fff;
}
.slide-caption .title { font-size: 3.2rem; font-weight: 700; line-height: 1.1; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.slide-caption .sub { font-size: 1.3rem; margin-top: 12px; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.slide.active .title { animation: rise .9s ease-out both .3s; }
.slide.active .sub { animation: rise .9s ease-out both .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(0,0,0,.35); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer; line-height: 46px; padding: 0;
}
.slider-arrow:hover { background: rgba(0,0,0,.6); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dots button.active { background: #fff; }

/* ---------- Intro ---------- */
.intro { padding: 44px 0 36px; text-align: center; }
.intro .tagline { font-size: 1.15rem; color: var(--muted); margin: 0 0 18px; }
.intro .small { font-size: .95rem; color: var(--muted); margin-top: 14px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy); color: #fff; }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.trust strong { display: block; font-size: 1.5rem; }
.trust span { font-size: .92rem; color: #cfd8e0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.step p { margin: 0; color: var(--muted); }

/* ---------- Cost ---------- */
.cost { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; }
.price-box { background: var(--bg-soft); border-left: 5px solid var(--green); padding: 20px 24px; border-radius: var(--radius); margin: 0 0 20px; }
.price-box .range { font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.price-box .note { font-size: .9rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.checklist li { padding: 4px 0 4px 26px; position: relative; break-inside: avoid; }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); margin: 0 0 14px; }
.card-body .links { margin-top: auto; }
.card-body .links a { font-weight: 600; margin-right: 16px; }

/* ---------- Areas ---------- */
.areas { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 20px; }
.areas a { text-decoration: none; color: var(--navy); }
.areas a:hover { color: var(--green); text-decoration: underline; }

/* ---------- About ---------- */
.about { max-width: 780px; margin: 0 auto; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; text-align: center; padding: 48px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0 0 18px; font-size: 1.1rem; }
.cta-band a { color: #fff; }
.cta-band .btn { background: #fff; color: var(--green); border-color: #fff; }
.cta-band .btn:hover { background: var(--bg-soft); }
.cta-band .btn-outline { background: transparent; color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfd8e0; font-size: .95rem; padding: 36px 0 20px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 2px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 16px; font-size: .85rem; text-align: center; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 0; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .site-header .wrap { position: relative; }
  .slide-caption .title { font-size: 2.4rem; }
  .cost { grid-template-columns: 1fr; gap: 10px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .areas { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .topbar .wrap { justify-content: center; gap: 16px; }
  .topbar .email { display: none; }
  .logo img { max-height: 48px; }
  .slider { aspect-ratio: 4 / 3; }
  .slide-caption { padding: 0 24px; }
  .slide-caption .title { font-size: 1.8rem; }
  .slide-caption .sub { font-size: 1rem; }
  .slider-arrow { display: none; }
  .trust ul { grid-template-columns: 1fr 1fr; gap: 18px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .areas { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 40px 0; }
}

/* Respect visitors who turn off motion */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active img, .slide.active .title, .slide.active .sub { animation: none !important; transition: none !important; }
}

/* =========================================================
   Forms + Quick Estimate
   ========================================================= */
.page-head { background: var(--bg-soft); padding: 36px 0 28px; text-align: center; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.field input[type=number], .field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font-size: 1.05rem; padding: 12px 14px; border: 1px solid #c9ced3; border-radius: var(--radius); background: #fff; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: 14px; border: 2px solid #c9ced3; border-radius: var(--radius); font-weight: 600; cursor: pointer; color: var(--navy); }
.choice input:checked + span { border-color: var(--green); background: #eaf4ea; color: var(--green-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--green); }

.form-error { color: #b42318; font-weight: 600; margin: 0 0 14px; }
.btn-block { display: block; width: 100%; text-align: center; cursor: pointer; font-family: inherit; }

.result { max-width: 640px; margin: 28px auto 0; scroll-margin-top: 100px; }
.result-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; text-align: center; }
.result-box .label { color: #cfd8e0; font-size: .95rem; }
.result-box .range { font-size: 2.2rem; font-weight: 700; margin: 6px 0; }
.result-box .per { color: #cfd8e0; font-size: .95rem; }

.result details { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; padding: 14px 18px; background: #fff; }
.result summary { font-weight: 600; color: var(--green); cursor: pointer; }
.breakdown { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
.breakdown td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; white-space: nowrap; }
.breakdown tr.total td { font-weight: 700; border-bottom: 0; }

.remarks { background: #fff8e6; border-left: 5px solid #d89b00; border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; font-size: .95rem; }
.remarks ul { margin: 6px 0 0; padding-left: 20px; }
.remarks li { margin-bottom: 4px; }

.sample-banner { background: #fde2e1; color: #8a1c14; text-align: center; font-weight: 600; padding: 10px; }
.thanks-note { text-align: center; color: var(--muted); margin-top: 24px; }

/* =========================================================
   City / content pages
   ========================================================= */
.page-head .btn-row { margin-top: 18px; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.content-grid h2 { margin-top: 1.4em; }
.content-grid h2:first-child { margin-top: 0; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.sidebar .step h3 { margin-bottom: 6px; }
.sidebar .btn { display: block; text-align: center; }
.sidebar .phone { font-size: 1.2rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.tour { margin: 0 0 12px; }
.tour a { font-weight: 600; }
.tour span { display: block; font-size: .92rem; color: var(--muted); }

@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; }
}
