/* Craft Pros Home Improvements — shared styles */
:root {
  --navy: #142F6B;
  --navy-dark: #0E2352;
  --orange: #F47B20;
  --orange-dark: #D9660F;
  --ink: #13203A;
  --muted: #5A6680;
  --bg: #EEF1F6;
  --lines: #D3D9E4;
  --white: #FFFFFF;
  --radius: 6px;
  --wrap: 1120px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 6px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: 1.2rem; letter-spacing: 0.03em;
  padding: 14px 24px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  min-height: 52px;
}
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--navy-ghost { border-color: var(--navy); color: var(--navy); }
.btn--navy-ghost:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  background: var(--navy); color: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-right: auto; }
.brand svg { width: 44px; height: 36px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1; font-size: 1.5rem; }
.brand-name small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: #C9D3E8; margin-top: 3px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); }
.header-phone { color: var(--white); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-cta { padding: 10px 18px; min-height: 44px; font-size: 1.05rem; }
.menu-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white);
  border-radius: var(--radius); font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: 1rem; padding: 8px 12px; cursor: pointer;
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { padding-top: 56px; padding-bottom: 60px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.2rem); }
.hero h1 span { color: var(--orange); display: block; }
.hero p { font-size: 1.2rem; color: #D7DFEE; max-width: 560px; margin-bottom: 28px; }
.hero-roof { position: absolute; right: -40px; bottom: -10px; width: 520px; max-width: 70%; opacity: .12; z-index: 0; }

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid var(--lines); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.trust li::before { content: ""; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); flex: none; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card {
  background: var(--white); border: 1px solid var(--lines); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink); display: block;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--orange); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card--feature { grid-column: span 3; background: var(--navy); border-color: var(--navy); color: var(--white); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.card--feature h3 { color: var(--white); font-size: 2rem; }
.card--feature p { color: #D7DFEE; font-size: 1.05rem; }
.card--feature .more { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--orange); font-size: 1.2rem; white-space: nowrap; }
.services-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Work gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.photo {
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: repeating-linear-gradient(135deg, #DDE3EE 0 14px, #E6EAF2 14px 28px);
  border: 1px solid var(--lines);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: linear-gradient(transparent, rgba(19,32,58,.8)); color: var(--white); font-size: .88rem; font-weight: 500;
}
.photo--empty figcaption { background: none; color: var(--muted); top: 0; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Meet Matt */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split .photo { aspect-ratio: 1 / 1; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--lines); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white);
  font-family: var(--head); font-weight: 700; font-size: 1.5rem; margin-bottom: 12px;
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); margin: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.review { background: var(--bg); border-left: 4px solid var(--orange); padding: 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.review p { font-style: italic; }
.review cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--orange); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 1.15rem; margin-bottom: 24px; }
.cta-band .btn--navy { background: var(--navy); color: var(--white); }
.cta-band .btn--navy:hover { background: var(--navy-dark); }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #C9D3E8; padding: 48px 0 100px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 1.2rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* Mobile call / estimate bar */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0; background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav.is-open a { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .services, .gallery, .steps, .reviews { grid-template-columns: 1fr 1fr; }
  .card--feature { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split .photo { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -2px 12px rgba(0,0,0,.2);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px;
    font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; text-decoration: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar .call { background: var(--navy); color: var(--white); }
  .mobile-bar .est { background: var(--orange); color: var(--white); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 36px 0; }
  .hero .wrap { padding-top: 36px; padding-bottom: 40px; }
  .hero p { margin-bottom: 20px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .lead { font-size: 1rem; }
  /* Services: two-up small cards, roofing full width */
  .services { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .card { padding: 14px; }
  .card h3 { font-size: 1.2rem; margin-bottom: 2px; }
  .card p { font-size: .85rem; line-height: 1.4; }
  .card--feature { grid-column: span 2; grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .card--feature h3 { font-size: 1.7rem; }
  .card--feature .more { font-size: 1.05rem; }
  /* Gallery: 4 photos on phones */
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
  .gallery--home .photo:nth-child(n+5) { display: none; }
  /* Meet Matt: shorter photo */
  .split { gap: 18px; }
  .split .photo { aspect-ratio: 16 / 9; }
  /* Steps: number beside text */
  .steps { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px; }
  .steps li::before { width: 40px; height: 40px; font-size: 1.3rem; margin: 0; grid-row: span 2; }
  .steps h3 { font-size: 1.15rem; margin-bottom: 2px; }
  .steps p { font-size: .92rem; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .site-footer { padding-top: 32px; }
  .brand-name { font-size: 1.3rem; }
}

/* Inner page heading */
.page-head { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); }
.page-head .wrap { padding-top: 48px; padding-bottom: 40px; }
.page-head h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head p { color: #D7DFEE; font-size: 1.1rem; max-width: 620px; margin-bottom: 8px; }
.page-head-call a { color: var(--orange); font-weight: 600; text-decoration: none; }

/* Estimate form */
.form-section { padding: 32px 0 64px; }
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--lines); border-radius: var(--radius); padding: 8px; }
.form-fallback { font-size: .9rem; color: var(--muted); text-align: center; margin: 8px 0 4px; }
.form-side { background: var(--white); border: 1px solid var(--lines); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; }
.form-side ol { padding-left: 1.2em; margin: 0 0 1em; }
.form-side li { margin-bottom: 6px; }
.form-side p { color: var(--muted); font-size: .95rem; }
.form-side-contact a { font-weight: 600; text-decoration: none; }
.mobile-bar--single { grid-template-columns: 1fr !important; }

@media (max-width: 900px) {
  .form-wrap { grid-template-columns: 1fr; }
  .form-side { position: static; }
}
@media (max-width: 560px) {
  .page-head .wrap { padding-top: 28px; padding-bottom: 24px; }
  .form-section { padding: 12px 0 40px; }
  .form-wrap { padding: 0 8px; gap: 16px; }
  .form-card { padding: 0; border: none; background: transparent; }
}

/* Inner pages */
.page-head-btns { margin-top: 20px; }
.inline-link { color: var(--orange); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.check-list li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.check-list li::before { content: ""; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); flex: none; position: relative; top: -1px; }
.svc-list { display: grid; gap: 20px; }
.svc { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--lines); border-radius: var(--radius); padding: 20px; scroll-margin-top: 88px; }
.svc p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card .big { font-size: 1.25rem; font-weight: 600; color: var(--navy); word-break: break-word; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 12px; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc .photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .check-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-head-btns .btn { flex: 1 1 100%; }
  .svc { padding: 14px; }
}

/* Photos */
.feature-photo { max-width: 820px; margin: 24px 0; }
.feature-photo .photo { aspect-ratio: 4 / 3; }
.svc--nophoto { grid-template-columns: 1fr; }
.gallery .photo img, .split .photo img, .svc .photo img { transition: transform .3s; }
.gallery--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .gallery--two { grid-template-columns: 1fr; } }

/* Legal pages + footer links */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 4px; }
.footer-legal { margin-left: 8px; white-space: nowrap; }
.footer-legal a { color: #C9D3E8 !important; text-decoration: underline; }
.footer-legal span { margin: 0 4px; opacity: .6; }
.form-consent { font-size: .85rem; color: var(--muted); text-align: center; margin: 10px 12px 0; }
@media (max-width: 560px) { .footer-legal { display: block; margin: 8px 0 0; } }
.fb-icon { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 6px; }
.fb-link { display: inline-flex; align-items: center; }
.contact-card .fb-icon { color: #1877F2; }
.signoff { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--orange); font-size: 1.5rem; line-height: 1.1; margin-top: 1.2em; }
.signoff span { display: block; font-family: var(--body); text-transform: none; font-weight: 600; font-size: .95rem; color: var(--muted); margin-top: 6px; }

/* ---- Accessibility: contrast fixes (brand orange kept; navy text on orange) ---- */
:root { --orange-text: #A94B09; }
.btn--orange, .header-cta { color: var(--navy); }
.btn--orange:hover { background: #F79443; color: var(--navy); }
.eyebrow { color: var(--orange-text); }
.hero .eyebrow, .page-head .eyebrow { color: var(--orange); }
.signoff { color: var(--orange-text); }
.cta-band, .cta-band h2 { color: var(--navy); }
.cta-band p { color: var(--ink); }
.cta-band .btn--ghost { border-color: var(--navy); color: var(--navy); }
.cta-band .btn--ghost:hover { background: rgba(20,47,107,.08); }
.mobile-bar .est { color: var(--navy); }
.site-footer .footer-h { color: var(--white); font-size: 1.2rem; }
.h3 { font-size: 1.5rem; }
.jotform-frame { width: 100%; min-height: 1400px; height: 1400px; border: 0; display: block; }
.hero h1 { margin-bottom: 28px; }
