/* ===== JD Construction — styles ===== */
:root {
  --ink: #0f1115;
  --ink-soft: #2a2e35;
  --muted: #5b626c;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-muted: #f6f7f8;
  --accent: #e8512f;
  --accent-dark: #c8401f;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 17, 21, 0.10);
  --shadow-sm: 0 4px 14px rgba(15, 17, 21, 0.08);
  --container: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }

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

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-family: inherit; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.section .btn-outline { color: var(--ink); border-color: var(--ink); }
.section .btn-outline:hover { background: var(--ink); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 64px; width: auto; border-radius: 6px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-list a:hover { color: var(--accent-dark); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { color: var(--ink); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.phone-link:hover { color: var(--accent-dark); text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("https://res.cloudinary.com/dy9rfxlij/image/upload/q_auto,f_auto,w_1800/v1781586803/roof_example_a9jpvd.jpg");
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,21,.78) 0%, rgba(15,17,21,.62) 45%, rgba(15,17,21,.72) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center;
  padding: 88px 20px 96px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem;
  color: var(--accent); margin: 0 0 14px;
}
.eyebrow-dark { color: var(--accent-dark); }
.hero-copy h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-sub { font-size: 1.18rem; color: #e9ebee; max-width: 36ch; margin-bottom: 28px; }
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 16px 24px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; color: #f1f2f4; }

/* Quote card */
.quote-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.quote-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.quote-card-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.quote-card-note { text-align: center; font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,81,47,.15); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--ink); color: #fff; }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px;
  padding: 20px; font-weight: 600; font-size: .98rem;
}
.trust-item { display: inline-flex; align-items: center; gap: 8px; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-muted { background: var(--bg-muted); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-lead { color: var(--muted); font-size: 1.12rem; margin: 0; }

/* ===== Services ===== */
.services-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-card--feature { border-color: var(--accent); box-shadow: 0 12px 30px rgba(232,81,47,.18); }
.service-flag {
  position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.service-card--more { background: var(--ink); color: #fff; }
.service-card--more p { color: #cfd2d6; }
.service-card--more a { color: var(--accent); font-weight: 700; }

/* ===== Why Us ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.why-card h3 { color: var(--accent-dark); font-size: 1.08rem; }
.why-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 16px; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stat-label { font-size: .92rem; color: #d6d9dd; }

/* ===== Our Work ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 7 / 5; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cta {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--accent); color: #fff; aspect-ratio: 7 / 5; padding: 20px;
}
.gallery-cta h3 { color: #fff; }
.gallery-cta p { margin-bottom: 16px; }
.gallery-cta .btn-accent { background: #fff; color: var(--accent-dark); }
.gallery-cta .btn-accent:hover { background: var(--ink); color: #fff; }

.ba-title { text-align: center; font-size: 1.5rem; margin-bottom: 24px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.ba-item img { width: 100%; height: auto; }
.ba-item figcaption { padding: 14px 18px; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; box-shadow: var(--shadow-sm); }
.stars { color: var(--accent); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-size: 1.02rem; color: var(--ink-soft); }
.review-card cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: .9rem; }
.reviews-actions { text-align: center; margin-top: 36px; }

/* ===== CTA band ===== */
.cta-band { background: var(--accent); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 50px 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 4px; }
.cta-band p { margin: 0; font-size: 1.1rem; color: #fff; opacity: .95; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; font-size: 1.08rem; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--accent-dark); }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfd2d6; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { background: #fff; border-radius: 8px; padding: 6px; margin-bottom: 14px; height: 90px; width: auto; max-width: 100%; }
.footer-brand p { max-width: 34ch; font-size: .96rem; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; font-size: .96rem; }
.footer-col a { color: #cfd2d6; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #9aa0a8; }

/* ===== Mobile click-to-call bar ===== */
.mobile-call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--accent); color: #fff; text-align: center; font-weight: 800; font-size: 1.05rem;
  padding: 15px; box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.mobile-call-bar:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 20px; }
  .services-grid, .why-grid, .stats, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { position: static; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: var(--shadow); display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 14px 0; }
  .header-cta .btn-accent { display: none; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 56px; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .services-grid, .why-grid, .stats, .reviews-grid, .gallery, .before-after { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1 1 auto; }
  .phone-link { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
