/* ===== Simple Leads — regional-trust-v1 =====
   LEAN, call-first template for small regional / country-town trades.
   Design intent: looks credible and LOCAL, not agency-slick. In low-trust
   regional markets, over-polish reads as fake ("this site is too nice, it
   can't be real"). Restraint is a feature here — flat surfaces, plain
   borders, minimal shadow, click-to-call as the dominant CTA.

   Mobile rules and layout standards are baked in. Do not loosen these
   without updating the template version. See template.json for context.
   ============================================ */

:root {
  --primary: #2e6f9e;       /* CTA / accent — credible muted blue. Override per client. */
  --dark: #1c1c1c;          /* Headlines, dark bands */
  --bg: #ffffff;
  --bg-alt: #f4f3f0;        /* Alternating section background — warm, paper-like */
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --border: #e2e0db;
  --container: 1080px;      /* Narrower than flagship templates — feels less corporate */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg);
}

h1, h2, h3 {
  font-family: 'Bebas Neue', 'DM Sans', sans-serif;
  letter-spacing: 0.5px;
  color: var(--dark);
  line-height: 1.1;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ===== Containers — NEVER violate ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Click-to-call button — the dominant CTA across the page ===== */
.call-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  padding: 16px 28px;
  border-radius: 6px;
  border: 2px solid var(--primary);
}
.call-btn-primary:hover { filter: brightness(1.06); }
.call-btn-primary.big { font-size: 26px; padding: 18px 36px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(28, 28, 28, 0.96);
  z-index: 100;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: 1px;
}
.call-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
}

/* ===== HERO (full-bleed image) ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 88px;
  min-height: 600px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18,26,36,0.92) 0%, rgba(18,26,36,0.8) 45%, rgba(18,26,36,0.5) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 64px;
}
.hero-copy { color: #fff; }
.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #9ec7e6;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: 52px;
  margin-bottom: 18px;
  color: #fff;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 22px;
  max-width: 520px;
}
.trust-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.trust-bullets li {
  font-weight: 500;
  padding-left: 28px;
  position: relative;
  color: #fff;
}
.trust-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #9ec7e6;
  font-weight: bold;
}
.call-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
}

/* ===== HERO MEDIA (video + simple form) ===== */
.hero-video-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  margin-bottom: 16px;
}
.hero-video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.hero-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.form-headline {
  font-size: 24px;
  margin-bottom: 16px;
}
.hero-form input,
.hero-form textarea,
.cta2-section input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}
.hero-form textarea {
  resize: vertical;
  min-height: 76px;
}
.hero-form button,
.cta2-section button {
  width: 100%;
  padding: 15px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  margin-top: 4px;
}
.hero-form button:hover,
.cta2-section button:hover { filter: brightness(1.25); }
.qualifier {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* ===== PROOF STRIP ===== */
.proof-strip {
  background: var(--dark);
  color: #fff;
  padding: 18px 0;
}
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
}
.proof-item {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
}

/* ===== WHY / OWNER ===== */
.why-section {
  padding: 72px 0;
  background: var(--bg);
}
.why-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.why-photo img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}
.why-copy h2 {
  font-size: 38px;
  margin-bottom: 18px;
}
.why-copy p {
  font-size: 17px;
  margin-bottom: 20px;
}
.why-list {
  list-style: none;
  margin-bottom: 28px;
}
.why-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
}

/* ===== RECENT WORK ===== */
.work-section {
  padding: 72px 0;
  background: var(--bg-alt);
}
.work-section h2 {
  font-size: 38px;
  text-align: center;
  margin-bottom: 12px;
}
.work-lede {
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== FINAL CTA ===== */
.cta2-section {
  background: var(--dark);
  color: #fff;
  padding: 72px 0;
}
.cta2-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.cta2-section h2 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 14px;
}
.cta2-section > .cta2-inner > p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 28px;
}
.cta2-or {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 22px 0 12px;
}
.cta2-backtotop {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.cta2-backtotop:hover { background: rgba(255,255,255,0.1); }
.cta2-section form {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  color: #fff;
  font-size: 22px;
}
.footer-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-info a:hover { color: var(--primary); }
.footer-legal { font-size: 13px; }

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-media { max-width: 520px; }
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-photo { max-width: 420px; }
  .work-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE — NON-NEGOTIABLE RULES BELOW ===== */
@media (max-width: 640px) {

  /* Section padding — 56px 24px, never doubled with inner padding */
  .why-section,
  .work-section,
  .cta2-section {
    padding: 56px 24px;
  }

  /* Container and cta2-inner — zero side padding on mobile (section provides it) */
  .container,
  .cta2-inner {
    padding-left: 0;
    padding-right: 0;
  }

  /* Hero keeps its own padding — NOT zeroed */
  .hero { padding-top: 76px; min-height: 0; }
  .hero-inner {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 28px;
    padding-bottom: 40px;
  }
  /* Hero overlay — FLAT solid on mobile, never gradient */
  .hero-overlay { background: rgba(18,26,36,0.84); }

  /* Nav is not a section, so it must re-add its own side padding on mobile
     (the global .container zeroing above would otherwise clip brand + button) */
  .nav-inner { padding: 0 20px; }

  /* Proof strip needs its side padding back on mobile */
  .proof-inner { padding: 0 24px; }
  .proof-item { flex: 1 1 100%; }

  /* Hero headline — max 32px, line-height 1.05, no orphans */
  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  /* All section headings — max 30px on mobile */
  .why-copy h2,
  .work-section h2,
  .cta2-section h2 {
    font-size: 30px;
  }

  /* Click-to-call buttons full-width on mobile, capped sizes */
  .call-btn-primary {
    display: flex;
    width: 100%;
    font-size: 20px;
    padding: 15px 20px;
  }
  .call-btn-primary.big { font-size: 22px; padding: 16px 22px; }

  /* Nav phone button — smaller on mobile */
  .call-btn-nav {
    font-size: 13px;
    padding: 6px 12px;
  }
  .brand { font-size: 18px; }
}

@media (max-width: 380px) {
  .hero-copy h1 { font-size: 28px; }
}
