/* ==========================================================================
   Danielson Contractors — site stylesheet
   Replaces Bootstrap + MDB. Hand-rolled to ship only what we use.
   ========================================================================== */

/* Self-hosted font, variable-weight, latin subset */
@font-face{font-family:'Roboto';font-style:normal;font-weight:400 700;font-display:swap;src:url('/font/roboto-latin.woff2') format('woff2')}

/* Box-sizing reset */
*,*::before,*::after{box-sizing:border-box}

/* Root document defaults */
html{line-height:1.15;-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Roboto',system-ui,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif;font-size:1rem;line-height:1.5;color:#212529;background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;border:0}
a{color:#1565c0;text-decoration:none}
a:hover{text-decoration:underline}

/* SVG icon helper */
.i{width:1em;height:1em;vertical-align:-.125em;fill:currentColor;flex-shrink:0}

/* Skip-to-content link — visually hidden until a keyboard user tabs to it */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;background:#1C2331;color:#fff;padding:.75rem 1rem;border-radius:0 0 .25rem 0;font-weight:700;z-index:1080;text-decoration:none}
.skip-link:focus{left:0;top:0;width:auto;height:auto;overflow:visible;outline:3px solid #ffc107}

/* Container — Bootstrap-compatible breakpoints */
.container{width:100%;max-width:1140px;margin-right:auto;margin-left:auto;padding-right:15px;padding-left:15px}
@media(min-width:576px){.container{max-width:540px}}
@media(min-width:768px){.container{max-width:720px}}
@media(min-width:992px){.container{max-width:960px}}
@media(min-width:1200px){.container{max-width:1140px}}

/* Text utility */
.text-center{text-align:center}

/* Margin/padding utilities (Bootstrap-compatible 0–5 = 0/.25/.5/1/1.5/3 rem) */
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:1rem}.mt-4{margin-top:1.5rem}.mt-5{margin-top:3rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:1rem}.mb-4{margin-bottom:1.5rem}.mb-5{margin-bottom:3rem}
.pl-3{padding-left:1rem}

/* Buttons */
.btn{display:inline-block;padding:.5rem 1.5rem;border:0;border-radius:.25rem;font-weight:500;line-height:1.5;cursor:pointer;text-decoration:none;transition:background-color .15s ease,box-shadow .15s ease;font-family:inherit;font-size:1rem;color:#fff}
.btn:hover{text-decoration:none}
.btn:disabled,.btn[disabled]{opacity:.55;cursor:not-allowed;pointer-events:none}
.blue-gradient{background-image:linear-gradient(40deg,#45cafc,#303f9f);box-shadow:0 2px 5px rgba(0,0,0,.16);color:#fff}
.blue-gradient:hover{box-shadow:0 5px 11px rgba(0,0,0,.18);color:#fff}

/* Form controls */
/* Form-control: 2px dark border for ~10:1 contrast — well above WCAG 3:1 minimum. */
.form-control{display:block;width:100%;padding:.55rem .75rem;font-size:1rem;line-height:1.5;color:#212529;background:#fff;border:2px solid #2c3e50;border-radius:.25rem;font-family:inherit;transition:border-color .15s ease,box-shadow .15s ease}
.form-control:hover{border-color:#1C2331}
.form-control:focus{border-color:#1C2331;outline:0;box-shadow:0 0 0 .2rem rgba(28,35,49,.22)}

/* MDB-style form group with absolutely-positioned label + prefix icon.
   We dropped MDB's floating-label gimmick — labels sit cleanly above the input. */
.md-form{position:relative;padding-top:1.45rem;margin:1.25rem 0}
.md-form>label{position:absolute;top:0;left:0;display:block;font-weight:500;font-size:.92rem;color:#495057;line-height:1.1;margin:0}
.md-form>.prefix{position:absolute;left:.7rem;top:2.05rem;color:#6c757d;pointer-events:none;font-size:1.05rem}
.md-form>.form-control,.md-form>.md-textarea{padding-left:2.25rem}
.md-form>.md-textarea{resize:vertical;min-height:6.5rem;padding-top:.5rem}

/* Color utilities */
.grey-text{color:#757575}
.dark-grey-text{color:#424242}

/* Cloudflare Turnstile slot — reserve space so widget pop-in doesn't shift layout */
.cf-turnstile{min-width:300px;min-height:65px;display:block;margin:1rem auto 0}

/* Form action row (Turnstile + submit + status) */
.form-actions{text-align:center;margin:1.5rem 0 .5rem}
.form-actions .btn{margin-top:.25rem}
.form-status{min-height:1.25rem;font-size:.95rem;margin:.5rem 0 0}

/* Honor reduced motion */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Sticky primary nav — appears on every page so users have consistent access */
.topnav{position:sticky;top:0;z-index:100;background:rgba(28,35,49,.92);border-bottom:1px solid rgba(255,255,255,.10);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.topnav__inner{display:flex;align-items:center;justify-content:space-between;padding:.55rem 1rem;gap:1rem}
.topnav__brand{display:inline-flex;align-items:center;gap:.55rem;color:#fff;font-weight:700;text-decoration:none;font-size:1rem}
.topnav__brand:hover{text-decoration:none;color:#fff}
.topnav__logo{height:30px;width:auto;display:block}
.topnav__name{white-space:nowrap}
.topnav__links{list-style:none;padding:0;margin:0;display:flex;gap:.25rem;flex-wrap:wrap;align-items:center}
.topnav__links a{color:#fff;text-decoration:none;padding:.45rem .75rem;border-radius:.25rem;font-weight:500;font-size:.95rem;display:inline-block}
.topnav__links a:hover,.topnav__links a:focus{background:rgba(255,255,255,.12);text-decoration:none;color:#fff}
.topnav__call{background:#ffc107!important;color:#1c1c1c!important}
.topnav__call:hover,.topnav__call:focus{background:#ffd451!important;color:#1c1c1c!important}
@media(max-width:600px){
  /* Visually hide brand text on mobile but keep it for screen readers so the link still has an accessible name */
  .topnav__name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .topnav__links a{padding:.4rem .55rem;font-size:.88rem}
}

/* Mobile compaction so the contact section + Send button fit one viewport.
   Also offsets scroll to account for sticky nav. */
:where(#contact, #services, #main, .contact-card, .lc-contact-card){scroll-margin-top:60px}
@media(max-width:600px){
  #contact{margin-top:.5rem!important;margin-bottom:1rem!important}
  .contact-card,.lc-contact-card{padding:1.25rem 1rem!important}
  .section-title{font-size:1.45rem;margin-bottom:.75rem}
  .section-eyebrow{font-size:.78rem}
  .md-form{padding-top:1.15rem;margin:.7rem 0}
  .md-form>label{font-size:.85rem}
  .md-form>.prefix{top:1.65rem;font-size:.95rem;left:.6rem}
  .form-control{padding:.4rem .6rem;font-size:.95rem}
  .md-form>.form-control,.md-form>.md-textarea{padding-left:2rem}
  .md-form>.md-textarea{min-height:4rem;padding-top:.4rem}
  .form-help{font-size:.82rem;margin-top:.25rem}
  .form-actions{margin:.75rem 0 0}
  .form-actions .btn{padding:.45rem 1.25rem}
}

/* Footer call buttons — match the hero ghost buttons for visual consistency */
.site-footer__phones{display:flex;flex-wrap:wrap;gap:.65rem;justify-content:center;margin-bottom:1rem!important}
.site-footer__call{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.32);padding:.85rem 1.4rem;border-radius:999px;text-decoration:none;font-weight:600;font-size:1rem;transition:background-color .15s ease,transform .15s ease}
.site-footer__call:hover,.site-footer__call:focus{background:rgba(255,255,255,.18);color:#fff;text-decoration:none;transform:translateY(-2px);outline:3px solid #ffc107}
.site-footer__call .label{font-size:.75rem;opacity:.8;letter-spacing:.08em;text-transform:uppercase;margin-right:.15rem}

/* Brand color tokens — were only in per-page <style> blocks, now global */
:root{--dc-navy:#1C2331;--dc-navy-2:#0f1622;--dc-accent:#ffc107;--dc-accent-2:#ffd451}

/* Primary call-to-action button — same look as the hero "Request a free quote" */
.btn-cta{display:inline-flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,var(--dc-accent),var(--dc-accent-2));color:#1c1c1c;font-weight:700;padding:.9rem 1.8rem;border:0;border-radius:999px;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.35);font-family:inherit;font-size:1rem;line-height:1.5;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.btn-cta:hover,.btn-cta:focus{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.45);color:#1c1c1c;text-decoration:none;outline:3px solid var(--dc-navy)}
.btn-cta:disabled,.btn-cta[disabled]{opacity:.55;cursor:not-allowed;pointer-events:none;transform:none;box-shadow:none}

/* Mobile hero compaction so the scroll cue stays inside one viewport on phones. */
@media(max-width:600px){
  .hero{padding:2rem 1rem 3.5rem!important}
  .hero__logo{width:clamp(160px,30vw,220px)!important}
  .hero__title{font-size:clamp(1.55rem,6.5vw,2.4rem)!important;margin:.75rem 0 .9rem!important}
  .hero__subtitle{font-size:.95rem!important;line-height:1.5!important;margin-bottom:1.25rem!important}
  .hero__ccb{font-size:.78rem!important;margin-top:.5rem!important}
  .hero__pills{margin-bottom:1.25rem!important;gap:.4rem!important}
  .hero__pill{padding:.35rem .7rem!important;font-size:.78rem!important}
  .hero__cta-row{gap:.5rem!important}
  .hero__cta,.hero__cta--ghost{padding:.7rem 1.1rem!important;font-size:.92rem!important}
  .hero__scroll-cue{bottom:.5rem!important;font-size:.75rem!important;padding:.4rem .8rem!important}
}

/* Hero scroll cue — reusable across home + land-clearing pages, same position on both */
.hero-scroll-cue{position:absolute;left:50%;bottom:1.25rem;transform:translateX(-50%);display:inline-flex;align-items:center;gap:.5rem;color:#fff;text-decoration:none;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;opacity:.85;padding:.5rem 1rem;border-radius:999px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.18);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.hero-scroll-cue:hover,.hero-scroll-cue:focus{color:#fff;opacity:1;text-decoration:none;outline:3px solid #ffc107}
@media(max-width:600px){
  .hero-scroll-cue{bottom:.5rem;font-size:.75rem;padding:.4rem .8rem}
}

/* Subtle parallax on desktop — background image stays put while content scrolls past it.
   Disabled on touch / narrow / short viewports because background-attachment:fixed is
   janky on iOS and Android Chrome and unsupported in some mobile browsers. */
@media(min-width:768px) and (min-height:600px) and (hover:hover) and (pointer:fine){
  .hero,.lc-hero{background-attachment:fixed}
}
