:root {
  /* LRP Car & Van Repairs - palette taken from the logo artwork.
     Brand blue #1C49A2, white, pale blue #EDF5FD. */
  --ink: #0a1c3d;          /* deep navy: header, hero, footer */
  --ink-2: #0e2550;
  --ink-3: #16345f;
  --paper: #ffffff;
  --paper-2: #edf5fd;      /* pale blue from the logo background */
  --line: #d9e4f2;
  --text: #1b2434;
  --muted: #5b6675;
  --accent: #1c49a2;       /* brand blue */
  --accent-strong: #163b85;
  --accent-bright: #2e6bd8;
  --accent-on-dark: #8fb4f0; /* readable blue for text on navy */
  --accent-soft: #edf5fd;
  --ok: #197b4b;
  --err: #b3261e;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(10, 28, 61, .06), 0 8px 24px rgba(10, 28, 61, .08);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
ul.plain, ul.plain li { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.empty { color: var(--muted); background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: .94rem; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* On the navy hero and CTA band a blue button sits too close to the
   background, so the primary action becomes white with navy text. */
.hero .btn-primary,
.cta-band .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-primary:hover,
.cta-band .btn-primary:hover { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--ink); }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- header */

.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-logo { max-height: 76px; max-width: 260px; width: auto; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 800; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.14rem; }
.brand-text small { color: #9fb3d0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { color: #dfe4ea; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; }
.site-nav > a:hover, .site-nav > a.is-current { color: #fff; box-shadow: inset 0 -2px 0 var(--accent-on-dark); }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 6px; }
.nav-phone { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav-phone:hover { color: var(--accent-on-dark); }

.nav-toggle-label { display: none; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative; color: #fff; padding: clamp(56px, 9vw, 104px) 0;
  background: radial-gradient(120% 120% at 12% 0%, #1c3f7a 0%, var(--ink) 60%);
}
.hero.has-image::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-image); background-size: cover; background-position: center;
  opacity: .38;
}
.hero.has-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 61, .93) 0%, rgba(10, 28, 61, .66) 55%, rgba(10, 28, 61, .38) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent-on-dark); font-weight: 700; margin-bottom: 14px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero-sub { font-size: 1.13rem; color: #d3ddec; max-width: 46em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 30px 0 0; padding: 0; }
.hero-badges li { font-size: .93rem; color: #cbd6e6; }
.hero-badges li::before { content: "✓"; color: var(--accent-on-dark); font-weight: 700; margin-right: 8px; }

/* ------------------------------------------------------------------ strip */

.strip { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 28px; padding: 18px 20px; }
.strip-item { display: flex; flex-direction: column; margin: 0; font-size: .95rem; }
.strip-item strong { color: var(--accent-on-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; }
.strip-item a { color: #fff; text-decoration: none; font-weight: 600; }
.strip-item a:hover { text-decoration: underline; }
.strip-item .muted { color: #aab3bf; }

/* --------------------------------------------------------------- sections */

.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-alt { background: var(--paper-2); }
.page-head { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(34px, 5vw, 58px); }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.lede { font-size: 1.1rem; color: #d3ddec; max-width: 60ch; margin: 0; }
.page-head + .section { padding-top: clamp(36px, 5vw, 64px); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.grid-2-text { grid-template-columns: 1.1fr .9fr; }
.stack { display: grid; gap: 20px; }
.prose { max-width: 62ch; }

/* ------------------------------------------------------------------ cards */

.usp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.usp-list li { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.usp-list h3 { margin-bottom: .25em; font-size: 1.05rem; }
.usp-list p { margin: 0; color: var(--muted); font-size: .96rem; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-body .link-arrow { margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; color: var(--ink) !important; }

.thumb-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.thumb-strip img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-grid figcaption { padding: 12px 14px; font-size: .92rem; color: var(--muted); }

.review-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.review blockquote { margin: 0 0 14px; font-size: 1rem; }
.stars { color: var(--accent); letter-spacing: .12em; margin: 0 0 10px; }
.review-meta { display: flex; flex-direction: column; margin: 0; font-size: .92rem; }

.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stat-list li { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; display: flex; align-items: baseline; gap: 14px; }
.stat-list strong { font-size: 2.1rem; color: var(--accent-on-dark); line-height: 1; }

/* --------------------------------------------------------------- services */

.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.service-row {
  display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.service-row:not(:has(.service-image)) { grid-template-columns: 1fr; }
.service-image { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-copy h2 { margin-bottom: .25em; }
.service-summary { font-weight: 600; color: var(--ink-3); }
.service-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 0; }

/* -------------------------------------------------------------- cta band */

.cta-band { background: linear-gradient(100deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff; padding: clamp(38px, 5vw, 60px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d3ddec; margin: 0; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-outline:hover { border-color: #fff; }

/* ----------------------------------------------------------------- panels */

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.3rem; }
.panel-accent { background: var(--accent-soft); border-color: #cfe0f6; }
.big-phone { font-size: 1.7rem; font-weight: 800; margin: 0 0 .2em; }
.big-phone a { text-decoration: none; color: var(--ink); }

.contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.contact-list .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours-table th { text-align: left; font-weight: 600; padding: 7px 0; }
.hours-table td { padding: 7px 0 7px 12px; }
.hours-table tr + tr th, .hours-table tr + tr td { border-top: 1px solid var(--line); }
.hours-table tr.is-closed { color: var(--muted); }
.status { margin: 14px 0 0; font-weight: 700; color: var(--muted); }
.status.is-open { color: var(--ok); }

.map-embed { margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* -------------------------------------------------------- review banner */

.review-banner { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.review-banner-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px 26px;
  flex-wrap: wrap; padding: 16px 20px;
}
.review-banner-inner > * { margin: 0; }
.review-banner-text { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.review-banner-text strong { font-size: 1.05rem; color: var(--ink); }
.review-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stars-lg { font-size: 1.35rem; letter-spacing: .16em; margin: 0; }

.rating-summary {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.rating-summary > *:last-child { margin-left: auto; }
.rating-score { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; margin: 0; }
.rating-score span { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.rating-summary p { margin: 0; }
.review-grid-page { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

@media (max-width: 620px) {
  .rating-summary > *:last-child { margin-left: 0; }
  .review-banner-inner { justify-content: flex-start; }
}

/* -------------------------------------------------------------- lightbox */

.lightbox-link { display: block; cursor: zoom-in; }
.lightbox-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6, 14, 28, .95);
}
.lightbox.is-open { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-figure { margin: 0; max-width: 94vw; text-align: center; }
.lightbox-figure img {
  max-width: 94vw; max-height: 78vh; width: auto; height: auto; margin: 0 auto;
  border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); background: #0a1c3d;
}
.lightbox-caption { color: #e7edf6; margin: 14px auto 0; max-width: 60ch; font-size: .97rem; }
.lightbox-count { color: #8d9cb4; font-size: .85rem; margin-top: 4px; }

.lightbox button {
  position: absolute; font: inherit; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 999px; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem;
}
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 620px) {
  .lightbox button { width: 44px; height: 44px; font-size: 1.25rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-figure img { max-height: 68vh; }
}

/* ------------------------------------------------------------------ forms */

.form .field { margin-bottom: 16px; }
.form label, .form .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.form .req { color: var(--err); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"],
.form input[type="url"], .form input[type="password"], .form input:not([type]), .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(28, 73, 162, .3); outline-offset: 0; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reg-input { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.form-note { font-size: .88rem; color: var(--muted); }
.field-hidden { position: absolute; left: -9999px; }

.notice { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; border: 1px solid; }
.notice ul { margin: 0; padding-left: 20px; }
.notice-success { background: #eaf7ef; border-color: #b9e0c8; color: #17603c; }
.notice-success h2 { color: #17603c; font-size: 1.15rem; }
.notice-error { background: #fdecea; border-color: #f5c2bd; color: #8f1f18; }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #c3d0e2; padding: clamp(40px, 5vw, 64px) 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer h4 { font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-brand { font-size: 1.35rem; margin-bottom: .3em; }
.footer-logo { max-width: 250px; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.site-footer .plain li { margin-bottom: 6px; }
.footer-social { display: flex; gap: 16px; margin-top: 14px; }
.hours-mini { font-size: .9rem; border-collapse: collapse; }
.hours-mini th { text-align: left; font-weight: 600; color: #fff; padding-right: 14px; }
.hours-mini tr.is-closed { color: #8d9cb4; }
.hours-mini tr.is-closed th { color: #8d9cb4; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px; font-size: .85rem; color: #8d9cb4; }
.footer-legal p { margin: 0; }
.footer-legal a { color: #8d9cb4; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .grid-2, .grid-2-text { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .brand-logo { max-height: 54px; max-width: 180px; }
  .header-inner { min-height: 72px; }
  .nav-toggle-label {
    display: grid; gap: 5px; padding: 10px; cursor: pointer; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
  }
  .nav-toggle-label span { display: block; width: 22px; height: 2px; background: #fff; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); padding: 8px 20px 20px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav > a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav > a.is-current { box-shadow: none; color: var(--accent-on-dark); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin: 16px 0 0; }
  .nav-phone { padding: 10px 0; }
  .nav-actions .btn { width: 100%; }
  .header-inner { position: relative; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
