/* ===========================================================
   Ambler Service & Repair — brand pulled from their sign:
   deep hometown blue, pine green, cream, light-blue pinstripe.
   =========================================================== */

:root {
  /* Brand blues from the hand-painted sign */
  --blue-900: #0e2c52;
  --blue-800: #143f77;
  --blue-700: #1b4f91;
  --blue-600: #235fa8;
  --pinstripe: #7fb2e0;   /* the light-blue border on their sign */

  /* Pine green from the tree logo */
  --green-700: #2b6f2f;
  --green-600: #388a37;
  --green-500: #4a9b3a;

  /* Warm paper + cream (their cream lettering) */
  --cream: #f6f1e7;
  --paper: #fbf9f3;
  --line: #e6ddcc;

  /* Ink */
  --ink: #15191f;
  --ink-soft: #444c58;
  --ink-faint: #6b7480;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(14,44,82,.06), 0 2px 8px rgba(14,44,82,.06);
  --shadow-md: 0 6px 22px rgba(14,44,82,.10), 0 2px 6px rgba(14,44,82,.06);
  --shadow-lg: 0 24px 60px rgba(10,30,60,.28);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 64px);

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 120px); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.on-dark { color: var(--pinstripe); }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }
.lead.on-dark { color: #d6e4f2; }

/* ---- Pinstripe frame: the signature motif from their sign ---- */
.pinstripe {
  position: relative;
  border: 2px solid var(--pinstripe);
  border-radius: var(--r-md);
}
.pinstripe::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid color-mix(in srgb, var(--pinstripe) 65%, transparent);
  border-radius: calc(var(--r-md) - 4px);
  pointer-events: none;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  min-height: 52px; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-call { background: var(--green-600); color: #fff; box-shadow: 0 8px 22px rgba(56,138,55,.32); }
.btn-call:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color:#fff; transform: translateY(-2px); }
.btn-dark { background: var(--blue-800); color:#fff; }
.btn-dark:hover { background: var(--blue-900); transform: translateY(-2px); }
.btn-outline { background:#fff; color: var(--blue-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-900); transform: translateY(-2px); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .tree { width: 34px; height: 40px; flex: none; }
.brand .word { line-height: .95; }
.brand .word b {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 22px; letter-spacing: .01em; color: var(--blue-800); display: block;
}
.brand .word span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--green-600); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--blue-800); }
.nav-cta { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--blue-900); font-size: 16px; }
.nav-cta .pill { background: var(--green-600); color:#fff; padding: 10px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(56,138,55,.28); transition: transform .15s, background .2s; }
.nav-cta .pill:hover { background: var(--green-700); transform: translateY(-1px); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .label { display: none; }
}
@media (max-width: 430px) {
  .nav { height: 66px; gap: 10px; }
  .brand .word b { font-size: 19px; }
  .brand .word span { font-size: 9.5px; letter-spacing: .18em; }
  .brand .tree { width: 28px; height: 34px; }
  .nav-cta .pill { padding: 9px 14px; font-size: 15px; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; background: var(--blue-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,28,52,.62) 0%, rgba(9,28,52,.42) 42%, rgba(9,28,52,.88) 100%),
    linear-gradient(90deg, rgba(9,28,52,.78) 0%, rgba(9,28,52,.20) 60%, rgba(9,28,52,.05) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(72px, 12vw, 150px); max-width: 760px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 22px;
}
.rating-badge .stars { color: #ffce4a; letter-spacing: 2px; }
.hero h1 { font-size: clamp(38px, 6.6vw, 68px); margin-bottom: 20px; text-wrap: balance; }
.hero h1 .ital { font-style: italic; color: var(--pinstripe); }
.hero .lead { max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14.5px; color: #cfe0f0; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .dot { color: var(--green-500); }

/* ---------------- Trust bar ---------------- */
.trustbar { background: var(--cream); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; padding-block: 20px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--blue-900); }
.trust-item svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }
.trust-item .sub { color: var(--ink-faint); font-weight: 500; }
.trust-sep { width: 1px; height: 26px; background: var(--line); }
@media (max-width: 720px){ .trust-sep{ display:none; } }

/* ---------------- Section heading ---------------- */
.sec-head { max-width: 640px; margin-bottom: 46px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 14px 0 16px; }
.sec-head p { color: var(--ink-soft); font-size: 18px; }

/* ---------------- Services ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  grid-column: span 4; display: flex; flex-direction: column; gap: 12px;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--pinstripe); }
.svc .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue-600) 12%, #fff); color: var(--blue-800); }
.svc .ic svg { width: 25px; height: 25px; }
.svc h3 { font-size: 20px; }
.svc p { color: var(--ink-soft); font-size: 15.5px; }
/* Feature the two signature services wider */
.svc.wide { grid-column: span 6; }
.svc.feature { grid-column: span 6; background: var(--blue-900); color: #fff; border-color: transparent; }
.svc.feature .ic { background: rgba(255,255,255,.12); color: #fff; }
.svc.feature p { color: #cfe0f0; }
.svc.feature .tag { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pinstripe); }
@media (max-width: 900px){ .svc, .svc.wide, .svc.feature { grid-column: span 6; } }
@media (max-width: 620px){ .svc, .svc.wide, .svc.feature { grid-column: 1 / -1; } }

/* ---------------- Warranty / why (split) ---------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } }
.warranty { background: var(--blue-900); color:#fff; }
.warranty .badge-seal {
  display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px 18px; margin-bottom: 22px;
}
.warranty .badge-seal b { font-family: var(--font-display); font-size: 20px; }
.warranty h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 18px; }
.warranty h2 .ital { font-style: italic; color: var(--pinstripe); }
.warranty .lead { margin-bottom: 26px; }
.perk-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.perk-list li { display: flex; gap: 14px; align-items: flex-start; }
.perk-list .chk { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-500); display: grid; place-items: center; margin-top: 2px; }
.perk-list .chk svg { width: 15px; height: 15px; color: #fff; }
.perk-list b { display:block; font-family: var(--font-display); font-size: 17px; }
.perk-list span { color: #cfe0f0; font-size: 15px; }
.warranty-photo { position: relative; }
.warranty-photo img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* ---------------- Real work strip ---------------- */
.work { background: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px){ .work-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline:auto; } }
.work-card { background:#fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.work-card .ph { aspect-ratio: 4/3; overflow: hidden; background:#222; }
.work-card .ph img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .ph img { transform: scale(1.05); }
.work-card .cap { padding: 16px 18px; }
.work-card .cap b { font-family: var(--font-display); font-size: 17px; color: var(--blue-900); }
.work-card .cap p { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }

/* ---------------- Reviews ---------------- */
.reviews-head { display:flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.google-score { display:flex; align-items: center; gap: 16px; background:#fff; border:1px solid var(--line); border-radius: var(--r-md); padding: 16px 22px; box-shadow: var(--shadow-sm); }
.google-score .num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--blue-900); }
.google-score .stars { color: #f4b400; font-size: 18px; letter-spacing: 2px; }
.google-score .meta { font-size: 13.5px; color: var(--ink-faint); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px){ .review-grid { grid-template-columns: 1fr; } }
.review {
  background:#fff; border:1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px;
  box-shadow: var(--shadow-sm); display:flex; flex-direction: column; gap: 14px; position: relative;
}
.review .stars { color:#f4b400; letter-spacing: 2px; font-size: 15px; }
.review p { font-size: 15.5px; color: var(--ink); }
.review .who { display:flex; align-items:center; gap: 12px; margin-top: auto; padding-top: 6px; }
.review .av { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-800); color:#fff; display:grid; place-items:center; font-family: var(--font-display); font-weight: 700; }
.review .who b { font-size: 15px; }
.review .who span { font-size: 12.5px; color: var(--ink-faint); display:block; }
.kw-chips { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; justify-content: center; }
.kw-chips .chip { background: var(--cream); border:1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--blue-900); }
.kw-chips .chip b { color: var(--green-600); }

/* ---------------- Interlock ---------------- */
.interlock { background: var(--blue-900); color:#fff; }
.interlock .split { align-items: center; }
.interlock .lead { margin: 18px 0 24px; }
.interlock img { width:100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.interlock ul { list-style:none; margin: 0 0 26px; padding: 0; display:grid; gap: 12px; }
.interlock ul li { display:flex; gap: 12px; align-items: flex-start; color:#d6e4f2; font-size: 15.5px; }
.interlock ul li svg { width: 20px; height:20px; color: var(--green-500); flex:none; margin-top: 3px; }

/* ---------------- Contact / location ---------------- */
.contact { background: var(--cream); }
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.info-block { display:grid; gap: 22px; align-content: start; }
.info-row { display:flex; gap: 14px; align-items: flex-start; }
.info-row .ic { flex:none; width: 44px; height: 44px; border-radius: 12px; background:#fff; border:1px solid var(--line); display:grid; place-items:center; color: var(--blue-800); box-shadow: var(--shadow-sm); }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { font-size: 16px; color: var(--blue-900); margin-bottom: 3px; }
.info-row a, .info-row p { color: var(--ink-soft); font-size: 15.5px; }
.info-row a:hover { color: var(--green-600); }
.hours-table { width:100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours-table td { padding: 11px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--blue-900); }
.hours-table tr.today { background: color-mix(in srgb, var(--green-500) 12%, #fff); }
.hours-table tr.today td:first-child { font-weight: 700; }
.hours-table .closed { color: var(--ink-faint); font-weight: 500; }
.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--r-md); margin-top: 6px; filter: saturate(1.05); }

/* Form */
.form-card { background:#fff; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form-card h3 { font-size: 24px; color: var(--blue-900); }
.form-card .sub { color: var(--ink-soft); font-size: 15px; margin: 8px 0 22px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15.5px; color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 18%, transparent); background:#fff;
}
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; text-align: center; }
.form-status { display:none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.form-status.ok { display:block; background: color-mix(in srgb, var(--green-500) 15%, #fff); color: var(--green-700); border:1px solid var(--green-500); }
.form-status.err { display:block; background:#fdecec; color:#b3261e; border:1px solid #f3b4b0; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--blue-900); color: #cdd9e7; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 62px; }
@media (max-width: 780px){ .footer-top { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand .word b { color:#fff; font-family: var(--font-display); font-style: italic; font-size: 24px; display:block; }
.footer-brand .word span { color: var(--pinstripe); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 320px; color:#a9bdd4; }
.footer-col h5 { font-family: var(--font-body); color:#fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a, .footer-col p { display:block; color:#bccbdd; font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color:#fff; }
.socials { display:flex; gap: 12px; margin-top: 6px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display:grid; place-items:center; color:#fff; transition: background .2s, transform .15s; }
.socials a:hover { background: var(--green-600); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display:flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color:#8ea6c1; }

/* ---------------- Mobile sticky call bar ---------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--blue-900) 96%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.14);
}
.callbar a { flex: 1; }
.callbar .btn { width: 100%; min-height: 50px; }
.callbar .btn-dir { background: rgba(255,255,255,.14); color:#fff; }
@media (max-width: 860px){ .callbar { display: flex; } body { padding-bottom: 78px; } }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 4px; }
