/* ============================================================
   D&S Roofing — styles.css (v2)
   Black / white / gold (#C8A45B) / dark gray
   Display: Manrope · Body: Inter
   Signature: gold "ridge line" that runs under the hero & CTA,
   echoing a roofline — the one bold element on the page.
   ============================================================ */

:root {
  --black:      #0e0d0b;
  --char:       #1a1815;   /* charcoal panels */
  --char-2:     #24211d;
  --white:      #ffffff;
  --paper:      #faf8f5;   /* light body sections */
  --paper-2:    #f1ede6;   /* tinted sections */
  --gold:       #c8a45b;
  --gold-deep:  #a9863f;
  --gray:       #5f594f;   /* body text on light */
  --line:       #e5dfd4;
  --onDark-dim: rgba(255,255,255,.66);
  --shadow-sm:  0 1px 2px rgba(14,13,11,.06), 0 4px 16px rgba(14,13,11,.06);
  --shadow-md:  0 8px 24px rgba(14,13,11,.10), 0 24px 56px rgba(14,13,11,.12);
  --shadow-gold: 0 8px 24px rgba(200,164,91,.38);
  --r:          18px;
  --r-lg:       28px;
  --wrap:       1160px;
  --ease:       cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--black);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: "Manrope", sans-serif; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--black); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }

/* ---------- Icons ---------- */
.ico, .t-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.t-ico { width: 20px; height: 20px; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-xl { padding: 19px 36px; font-size: 1.12rem; }

.btn-gold { background: var(--gold); color: var(--black); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: #d6b46c; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,164,91,.5); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--char-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.38); }
.btn-outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); transform: translateY(-2px); }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* ---------- Header (dark, matches hero) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,13,11,.78);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 52px; width: auto; display: block; }

.site-nav { display: flex; gap: 32px; margin-left: auto; }
.site-nav a { font-size: .95rem; font-weight: 500; color: var(--onDark-dim); transition: color .2s; }
.site-nav a:hover { color: var(--gold); }
.header-call { margin-left: 6px; font-size: .95rem; padding: 11px 20px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Manrope", sans-serif; font-weight: 800;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 20px;
}
.eyebrow-center { justify-content: center; }
.eyebrow-onDark { color: var(--gold); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,164,91,.22); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(200,164,91,.16), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(200,164,91,.07), transparent 60%),
    linear-gradient(175deg, var(--black) 0%, var(--char) 100%);
  color: var(--white);
  padding: 84px 0 96px;
}
/* Signature: gold roofline ridge along the hero's bottom edge */
.hero-ridge, .cta-ridge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent);
}
.hero-ridge::before, .cta-ridge::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  border-left: 26px solid transparent; border-right: 26px solid transparent;
  border-bottom: 16px solid var(--gold);
}

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; }
.hero-copy { max-width: 560px; }
h1 { font-size: clamp(2.9rem, 6.4vw, 4.9rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--gold); position: relative; }
.hero-sub { font-size: 1.18rem; color: var(--onDark-dim); margin: 24px 0 34px; max-width: 480px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-phone {
  display: inline-flex; flex-direction: column; padding: 15px 24px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); backdrop-filter: blur(6px);
  transition: transform .2s var(--ease), border-color .25s, background .25s;
}
.hero-phone:hover { transform: translateY(-2px); border-color: rgba(200,164,91,.6); background: rgba(200,164,91,.08); }
.hero-phone-label { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hero-phone-num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.65rem; color: var(--gold); letter-spacing: .01em; }

.hero-media { position: relative; }
.hero-photo {
  margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  outline: 1px solid rgba(255,255,255,.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/6; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(14,13,11,.88); color: var(--white);
  padding: 13px 17px; border-radius: 15px; font-size: .9rem; line-height: 1.3;
  border: 1px solid rgba(200,164,91,.35); backdrop-filter: blur(8px);
}
.hero-badge strong { color: var(--gold); }
.hero-badge-ico { display: inline-flex; color: var(--gold); }
.hero-badge-ico svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--paper); border-bottom: 1px solid var(--line); padding: 24px 0; }
.trust-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 38px; }
.trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: .96rem; color: var(--black);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .why-copy h2, .area-copy h2, .reviews-inner h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); font-weight: 800; }
.section-lead { font-size: 1.13rem; color: var(--gray); margin-top: 16px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px 28px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(200,164,91,.4); }
.card:hover::after { width: 100%; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(150deg, rgba(200,164,91,.2), rgba(200,164,91,.08));
  color: var(--gold-deep); margin-bottom: 20px;
  transition: transform .3s var(--ease);
}
.card:hover .card-ico { transform: scale(1.06) rotate(-3deg); }
.card-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.26rem; font-weight: 800; margin-bottom: 9px; }
.card p { color: var(--gray); font-size: .98rem; margin: 0; }

.card-emergency { background: linear-gradient(165deg, var(--char), var(--black)); border-color: var(--black); }
.card-emergency h3 { color: var(--white); }
.card-emergency p { color: rgba(255,255,255,.68); }
.card-emergency .card-ico { background: rgba(200,164,91,.18); color: var(--gold); }
.card-link {
  display: inline-block; margin-top: 16px;
  font-family: "Manrope", sans-serif; font-weight: 800; color: var(--gold);
  transition: transform .2s var(--ease);
}
.card-link:hover { transform: translateX(4px); }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-copy .section-lead { margin-bottom: 32px; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reason {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 15px; padding: 18px 22px;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .25s;
}
.reason:hover { transform: translateX(5px); border-color: rgba(200,164,91,.5); }
.check { flex: none; width: 27px; height: 27px; border-radius: 50%; background: var(--gold); position: relative; }
.check::after {
  content: ""; position: absolute; left: 10px; top: 6px;
  width: 6px; height: 11px; border: solid var(--black);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0);
  animation: check-pop .45s var(--ease) forwards;
}
@keyframes check-pop { to { transform: rotate(45deg) scale(1); } }

/* ---------- Process / steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(200,164,91,.4); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.25rem;
  background: var(--black); color: var(--gold);
}
/* connector line between steps on wide screens */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 53px; right: -13px; width: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 9px);
}
.step h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: .96rem; margin: 0; }
.process-cta { text-align: center; margin-top: 44px; }

/* ---------- Reviews placeholder ---------- */
.reviews-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.reviews-text { color: var(--gray); font-size: 1.13rem; margin: 18px 0 30px; }
.review-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Manrope", sans-serif; font-weight: 800;
  background: var(--white); border: 1.5px solid var(--gold); color: var(--black);
  padding: 13px 24px; border-radius: 999px; box-shadow: 0 8px 22px rgba(200,164,91,.24);
}

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.area-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; }
.area-list li { position: relative; padding-left: 24px; font-weight: 600; color: var(--char-2); }
.area-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gold);
}
.area-more { color: var(--gold-deep) !important; font-weight: 800 !important; }
.area-more::before { background: var(--black) !important; }

.map-frame {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(600px 400px at 46% 47%, rgba(200,164,91,.12), transparent 60%), linear-gradient(160deg, var(--char), var(--black));
  box-shadow: var(--shadow-md); outline: 1px solid rgba(255,255,255,.08);
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,164,91,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,164,91,.1) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 46% 47%, #000 50%, transparent 88%);
}
.map-pin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(200,164,91,.22);
}
.map-pin-main { width: 17px; height: 17px; background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.16); }
.map-pin-main span {
  position: absolute; left: 24px; top: -5px; white-space: nowrap;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: .84rem; color: var(--white);
}
.map-ring, .map-ring-2 {
  position: absolute; left: 46%; top: 47%; width: 190px; height: 190px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1.5px dashed rgba(200,164,91,.45);
  animation: ring-pulse 5.5s ease-in-out infinite;
}
.map-ring-2 { width: 300px; height: 300px; border-color: rgba(200,164,91,.2); animation-delay: 1.4s; }
@keyframes ring-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity:.55 }
  50%     { transform: translate(-50%,-50%) scale(1.1); opacity:.9 }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; padding: 110px 0;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(200,164,91,.16), transparent 65%),
    linear-gradient(180deg, var(--black), var(--char));
  color: var(--white);
}
.cta-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; }
.cta-inner h2 { font-size: clamp(2.4rem, 5.4vw, 3.7rem); font-weight: 800; }
.cta-sub { font-size: 1.18rem; color: var(--onDark-dim); margin: 20px 0 38px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.cta-fineprint { margin-top: 26px; font-size: .92rem; color: rgba(255,255,255,.45); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.78); padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-logo { height: 62px; width: auto; display: block; }
.footer-tag { color: var(--gold); font-family: "Manrope", sans-serif; font-weight: 700; margin-top: 16px; }
.footer-col h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 15px; font-weight: 800; }
.footer-col a { display: block; margin-bottom: 11px; font-weight: 500; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 26px; font-size: .88rem; color: rgba(255,255,255,.45); }
.footer-bottom p { margin: 0; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--gold); color: var(--black);
  align-items: center; justify-content: center; gap: 10px;
  padding: 16px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 -8px 24px rgba(14,13,11,.28);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 480px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .area-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-call { margin-left: auto; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 72px 0; }
  .cards, .steps, .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  body { padding-bottom: 62px; }
  .mobile-callbar { display: flex; }

  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn, .why-copy .btn { width: 100%; }
  .hero-phone { width: 100%; align-items: center; }
}

@media (max-width: 420px) {
  .header-call { font-size: .88rem; padding: 10px 15px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .check::after { transform: rotate(45deg) scale(1); }
}
