:root {
  --navy: #102d4d;
  --navy-dark: #0a2038;
  --blue: #1d6fb8;
  --turquoise: #2bb7b3;
  --gold: #f2bd3e;
  --cream: #fbfaf6;
  --light: #f4f7fa;
  --text: #17283a;
  --muted: #667789;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 45, 77, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background: var(--white); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 5px 20px rgba(16,45,77,.08); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: 210px; height: 74px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; }
.main-nav a { padding: 34px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--blue); border-color: var(--gold); }
.header-cta { display: flex; gap: 10px; align-items: center; background: var(--navy); color: white; padding: 12px 17px; border-radius: 10px; }
.header-cta small, .header-cta strong { display: block; }
.header-cta small { font-size: 10px; opacity: .85; }
.header-cta strong { font-size: 15px; }
.menu-toggle { display: none; border: 0; background: none; font-size: 28px; color: var(--navy); }
.hero { position: relative; min-height: 610px; background: url('./images/deck.jpg') center/cover no-repeat; display: grid; align-items: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,31,54,.97) 0%, rgba(8,31,54,.88) 44%, rgba(8,31,54,.25) 78%, rgba(8,31,54,.05) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-copy { max-width: 720px; color: white; padding: 72px 0; }
.eyebrow, .section-kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; color: var(--gold); margin: 0 0 14px; }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; }
h1 { font-size: clamp(48px, 6vw, 82px); line-height: .95; text-transform: uppercase; margin: 0; letter-spacing: -2px; }
h1 span { color: var(--gold); }
.hero-text { max-width: 620px; font-size: 20px; line-height: 1.55; opacity: .93; margin: 28px 0 30px; }
.trust-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 28px 0 34px; }
.trust-row div { display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; align-items: center; }
.trust-row span { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 800; }
.trust-row strong { font-size: 12px; text-transform: uppercase; }
.trust-row small { font-size: 11px; opacity: .8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 0 25px; border-radius: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg,var(--gold),#f7cc60); color: var(--navy-dark); }
.btn-outline { color: white; border-color: white; }
.btn-light { background: white; color: var(--navy); }
.about-strip { padding: 48px 0; background: white; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1.5fr; gap: 48px; align-items: center; }
.about-copy h2, .section-heading h2, .estimate h2, .contact h2 { font-size: clamp(30px,4vw,48px); margin: 0 0 16px; color: var(--navy); }
.about-copy p { line-height: 1.7; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.feature-grid article span { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--light); color: var(--navy); font-size: 24px; box-shadow: var(--shadow); }
.feature-grid article:nth-child(even) span { background: var(--gold); }
.feature-grid h3 { font-size: 15px; text-transform: uppercase; margin: 16px 0 7px; }
.feature-grid p { font-size: 13px; line-height: 1.5; margin: 0; color: var(--muted); }
.section { padding: 88px 0; }
.services { background: linear-gradient(#f7f9fb,#fff); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading p:last-child { color: var(--muted); line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { overflow: hidden; border-radius: 18px; background: white; box-shadow: var(--shadow); transition: .25s ease; }
.service-card:hover { transform: translateY(-6px); }
.service-card img { height: 205px; object-fit: cover; }
.service-card > div { padding: 22px; position: relative; }
.service-icon { position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: white; display: grid; place-items: center; border: 4px solid white; font-size: 20px; }
.service-card h3 { margin: 12px 0 10px; font-size: 18px; color: var(--navy); }
.service-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.service-note { background: var(--cream); border-left: 5px solid var(--gold); padding: 18px 20px; margin-top: 28px; border-radius: 8px; color: var(--muted); }
.work { background: var(--navy); color: white; }
.work h2 { color: white; }
.split-heading { max-width: none; display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.split-heading > p { max-width: 460px; color: rgba(255,255,255,.75)!important; }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.work-grid figure { margin: 0; background: white; color: var(--navy); border-radius: 15px; overflow: hidden; }
.work-grid img { height: 280px; object-fit: cover; }
.work-grid figcaption { padding: 16px 18px; font-weight: 800; }
.estimate { background: var(--cream); }
.estimate-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.estimate-copy p { color: var(--muted); line-height: 1.7; }
.estimate-copy ul { list-style: none; padding: 0; margin-top: 30px; }
.estimate-copy li { margin: 14px 0; font-weight: 700; }
.estimate-copy li:before { content: '✓'; color: var(--turquoise); margin-right: 10px; font-weight: 900; }
.estimate-form { background: white; padding: 30px; border-radius: 18px; box-shadow: var(--shadow); display: grid; gap: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13px; font-weight: 800; color: var(--navy); display: grid; gap: 8px; }
input, select, textarea { width: 100%; border: 1px solid #d6e0e8; border-radius: 8px; padding: 13px 14px; font: inherit; background: #fbfcfd; }
textarea { resize: vertical; }
.form-status { min-height: 20px; margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.contact { background: linear-gradient(135deg,var(--blue),var(--turquoise)); color: white; }
.contact-box { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact h2 { color: white; margin-bottom: 5px; }
.contact p { margin: 0; }
.contact .section-kicker { color: #fff2ae; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
footer { background: var(--navy-dark); color: white; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 30px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.72); line-height: 1.7; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding: 18px; margin-top: 35px; color: rgba(255,255,255,.55); font-size: 13px; }
.floating-call { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); box-shadow: 0 15px 35px rgba(0,0,0,.25); z-index: 20; font-size: 25px; }
@media (max-width: 980px) {
  .brand-logo { width: 170px; height: 62px; }
  .menu-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 88px; background: white; flex-direction: column; gap: 0; padding: 10px 30px 20px; box-shadow: 0 18px 30px rgba(16,45,77,.1); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; }
  .trust-row { grid-template-columns: repeat(2,1fr); }
  .about-grid, .estimate-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .split-heading, .contact-box { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px,1180px); }
  .hero { min-height: 720px; }
  .hero-overlay { background: rgba(8,31,54,.84); }
  h1 { font-size: 48px; }
  .hero-text { font-size: 17px; }
  .trust-row, .feature-grid, .service-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .section { padding: 66px 0; }
  .service-card img { height: 220px; }
  .contact-actions { width: 100%; }
}

/* v8: robust responsive header and logo sizing */
.site-header {
  min-height: 0;
}
.nav-wrap {
  height: 78px;
  min-height: 78px;
}
.brand {
  width: 156px;
  height: 64px;
  overflow: hidden;
  flex: 0 0 156px;
}
.brand-logo {
  display: block !important;
  width: auto !important;
  max-width: 156px !important;
  height: auto !important;
  max-height: 64px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 980px) {
  .nav-wrap {
    position: relative;
    height: 72px;
    min-height: 72px;
  }
  .brand {
    width: 122px;
    height: 54px;
    flex-basis: 122px;
  }
  .brand-logo {
    max-width: 122px !important;
    max-height: 54px !important;
  }
  .menu-toggle {
    margin-left: auto;
    padding: 8px;
    line-height: 1;
  }
  .main-nav {
    top: 72px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 68px;
  }
  .nav-wrap {
    width: calc(100% - 28px);
    height: 68px;
    min-height: 68px;
    padding: 0;
  }
  .brand {
    width: 108px;
    height: 50px;
    flex: 0 0 108px;
  }
  .brand-logo {
    max-width: 108px !important;
    max-height: 50px !important;
  }
  .menu-toggle {
    font-size: 27px;
  }
  .main-nav {
    top: 68px;
  }
}
