/* ===== LPS Roofing — clean & professional theme ===== */
:root {
  --navy: #15375f;
  --navy-dark: #0f2742;
  --accent: #e8821e;       /* warm orange CTA */
  --accent-dark: #cf6f12;
  --ink: #1b2330;
  --muted: #5a6678;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 39, 66, 0.14);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(232, 130, 30, .32); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color:#fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--accent); margin: 0 0 .6rem; }
.eyebrow.center { text-align: center; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: #e7eef8; font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 16px; margin-left: 24px; }
.phone-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; }
.phone-link svg { width: 18px; height: 18px; fill: var(--accent); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(180deg, rgba(15,39,66,.86), rgba(15,39,66,.92)),
    url('/images/jobs/job01.jpg');
  background-size: cover;
  background-position: center 35%;
  padding: 70px 0 80px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero-copy h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin-bottom: .35em; }
.hero-copy .lede { font-size: 1.14rem; color: #dce6f2; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-actions.center { justify-content: center; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0; color: #cfe0f2; font-weight: 600; font-size: .95rem; }

/* Estimate card */
.estimate-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--accent);
}
.estimate-card h2 { font-size: 1.45rem; margin-bottom: .2em; }
.card-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 1rem; font-family: inherit; color: var(--ink); 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,130,30,.15);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* SMS consent checkbox */
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 4px; cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.consent span { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.consent a { color: var(--navy); font-weight: 600; }

/* Address autocomplete dropdown */
.field-address { position: relative; }
.address-suggest {
  list-style: none; margin: 4px 0 0; padding: 4px;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15,39,66,.18); max-height: 260px; overflow-y: auto;
}
.address-suggest[hidden] { display: none; }
.address-suggest li {
  padding: 10px 12px; border-radius: 7px; cursor: pointer; font-size: .95rem;
  color: var(--ink); line-height: 1.35;
}
.address-suggest li small { display: block; color: var(--muted); font-size: .82rem; }
.address-suggest li:hover, .address-suggest li.active { background: var(--bg-alt); }
.form-note { font-size: .9rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-note a { color: var(--navy); font-weight: 700; }
.form-status { font-size: .95rem; margin: 10px 0 0; text-align: center; font-weight: 600; }
.form-status.ok { color: #1c7a3f; }
.form-status.err { color: #c23636; }

/* ===== Trust bar ===== */
.trust-bar { background: var(--navy-dark); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 22px; text-align: center; }
.trust-grid .stat { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.trust-grid .stat-label { display: block; font-size: .85rem; color: #aebfd4; letter-spacing: .03em; }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 auto 0; }
.center .section-intro { margin: 0 auto; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 0 6px 18px rgba(15,39,66,.05);
}
.service-card.featured { border-top: 4px solid var(--accent); }
.service-icon { font-size: 2rem; margin-bottom: 10px; }
.service-card h3 { font-size: 1.22rem; }
.service-card p { color: var(--muted); font-size: .97rem; margin-bottom: .8rem; }
.link-arrow { font-weight: 700; color: var(--accent); font-size: .95rem; }
.link-arrow:hover { color: var(--accent-dark); }

/* Why */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.why-list { list-style: none; padding: 0; margin: 0 0 26px; }
.why-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); color: var(--muted); }
.why-list li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: #fff; background: var(--accent); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.why-list strong { color: var(--ink); }
.why-steps { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 6px 18px rgba(15,39,66,.05); }
.section-alt .why-steps { background: #fff; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: step; }
.steps li { display: flex; gap: 16px; padding: 14px 0; align-items: flex-start; }
.step-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* Service area */
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0; margin: 30px auto 18px; max-width: 760px; }
.area-list li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; font-weight: 600; color: var(--navy); }
.area-note { color: var(--muted); }
.area-note a { color: var(--accent); font-weight: 700; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; margin: 0; box-shadow: 0 6px 18px rgba(15,39,66,.05); }
.stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 14px; font-size: 1rem; color: var(--ink); }
.review figcaption { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* Our Work gallery */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px;
}
.gallery-item {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,39,66,.12); background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}
.gallery-item.gallery-wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Footer logo */
.footer-logo { height: 60px; width: auto; margin-bottom: 14px; display: block; }

/* Final CTA */
.final-cta { background: linear-gradient(180deg, var(--navy), var(--navy-dark)); color: #fff; padding: 70px 0; }
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.final-cta p { color: #cfe0f2; font-size: 1.1rem; margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c7d4e4; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand .brand-text, .footer-brand .brand-text small { color: #fff; }
.footer-brand .brand-text small { color: #9fb3cd; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.site-footer a { color: #c7d4e4; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .9rem; flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* Mobile call bar */
.mobile-call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--accent); color: #fff; font-weight: 800; text-align: center;
  padding: 15px; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}
.mobile-call-bar svg { width: 20px; height: 20px; fill: #fff; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.gallery-wide { grid-column: span 2; aspect-ratio: 16 / 7; }
  .hero { padding: 48px 0 60px; }
  .estimate-card { order: -1; }
}
@media (max-width: 560px) {
  .header-cta .btn-sm { display: none; }
  .phone-link { font-size: .95rem; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.gallery-wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
  body { padding-bottom: 64px; } /* room for mobile call bar */
  .mobile-call-bar { display: flex; }
}
