/* Version: 2.0.9 */
/* J's Auto Repair - shared stylesheet, "Blue 2" denim and soft navy scheme. */
/* Mobile-first layout tuned for iPhone (safe areas, notch, no input zoom), then widened for tablets and desktops. */
/* All colors live in the :root block below, so a color change is a one-place edit. */

/* ========================================================================= */
/* ## Colors and base                                                        */
/* ========================================================================= */
:root {
  --accent: #56789e;
  --accent-light: #9bb7d6;
  --on-accent: #fdfcf9;
  --dark: #1e2a38;
  --mid: #2a3a4c;
  --stripe1: #22303f;
  --stripe2: #1e2a38;
  --text: #2a2a2a;
  --muted: #5e5e5e;
  --paper: #f7f5f0;
  --card: #fdfcf9;
  --line: #e4e0d6;
  --max: 1150px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  border: solid #000;
  border-width: 0.25em 0.5em;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img,
iframe {
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

/* ========================================================================= */
/* ## Top bar, header and navigation                                         */
/* ========================================================================= */
.topbar {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding-top: env(safe-area-inset-top);
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-weight: 900;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.logo b {
  color: var(--accent-light);
}

.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 10px 10px;
  color: #d9dee4;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-light);
}

/* ========================================================================= */
/* ## Buttons                                                                */
/* ========================================================================= */
.btn {
  display: block;
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  background: #4a6a8e;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn-row .btn {
  flex: 1 1 220px;
}

/* ========================================================================= */
/* ## Hero and page title bands                                              */
/* ========================================================================= */
.hero,
.page-title {
  background: repeating-linear-gradient(45deg, var(--stripe1) 0 22px, var(--stripe2) 22px 44px);
  color: #fff;
}

.hero {
  padding: 40px 0;
}

.hero .wrap {
  display: grid;
  gap: 28px;
}

.kicker {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 14px 0;
}

.hero h1 span {
  color: var(--accent-light);
  white-space: nowrap;
}

.hero p {
  color: #cfd6de;
  margin: 0 0 22px;
}

.page-title {
  padding: 34px 0;
}

.page-title h1 {
  margin: 0;
  font-size: 2rem;
  text-transform: uppercase;
}

.page-title p {
  margin: 6px 0 0;
  color: #cfd6de;
}

.band {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 16px;
}

/* ========================================================================= */
/* ## Sections, service grid and stats                                       */
/* ========================================================================= */
.sec {
  padding: 48px 0;
}

.sec-title {
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.bar {
  width: 60px;
  height: 5px;
  background: var(--accent);
  margin-bottom: 26px;
}

.svc {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.svc article {
  background: var(--card);
  padding: 20px;
}

.svc h3 {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 1rem;
}

.svc h3::before {
  content: "\25B8\00A0";
  color: var(--accent);
}

.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.fix-layout {
  display: grid;
  gap: 28px;
}

/* The badge is images/ase-badge.png, so it can be replaced by dropping in a new file with the same name. */
/* It is sized by height and the width follows the image's own shape, so a tall, wide or square file all display without stretching. */
.ase-badge {
  display: block;
  height: 170px;
  width: auto;
  max-width: 240px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

/* The two badges stack in one centered column beside the services. */
/* The column is as wide as the top badge, and the second badge (images/ase-specialist.png) stretches to that same width. */
/* width 0 plus min-width 100% stops the wide image from widening the column, so the top badge alone sets the width. */
.badges {
  display: flex;
  flex-direction: column;
  width: fit-content;
  margin: 0 auto;
  gap: 22px;
}

.ase-wide {
  display: block;
  width: 0;
  min-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

/* "Locally Owned" section: same off-white as the section above, separated by a thin divider line and centered. */
.local {
  padding-top: 0;
}

.local-inner {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  text-align: center;
}

.local .bar {
  margin-left: auto;
  margin-right: auto;
}

.local p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  text-transform: uppercase;
  font-size: 1.35rem;
  margin: 32px 0 10px;
}

.prose h2:first-child {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 28px 0;
}

.stat {
  background: var(--dark);
  color: #cfd6de;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-light);
  text-transform: uppercase;
}

/* ========================================================================= */
/* ## Forms (hero quick form and contact form)                               */
/* ========================================================================= */
.panel {
  background: var(--card);
  color: var(--text);
  padding: 22px;
  border-top: 6px solid var(--accent);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.panel .btn {
  width: 100%;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* A 16px minimum font size stops iOS Safari from zooming in when a field is tapped. */
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 11px;
  border: 1px solid #cfcac0;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.form-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 14px;
}

/* Honeypot field for spam bots, hidden from people and screen readers. */
.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-left: 5px solid;
}

.notice-ok {
  background: #e9f2ea;
  border-color: #4f8a5b;
  color: #1f4a29;
}

.notice-err {
  background: #f8e9e7;
  border-color: #a8544a;
  color: #5e1f18;
}

.notice ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.contact-layout {
  display: grid;
  gap: 24px;
}

.info {
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  padding: 22px;
}

.info h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
}

.info p {
  margin: 0 0 16px;
}

.info p:last-child {
  margin-bottom: 0;
}

.map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  margin-top: 24px;
}

/* ========================================================================= */
/* ## Footer                                                                 */
/* ========================================================================= */
.site-footer {
  background: var(--dark);
  color: #aeb7c2;
  padding: 32px 0 calc(24px + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
}

.site-footer p {
  margin: 0 0 4px;
}

.copyright {
  border-top: 1px solid #33445a;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 0.85rem;
}

/* ========================================================================= */
/* ## Tablet and desktop widths                                              */
/* ========================================================================= */
@media (min-width: 700px) {
  .svc {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn {
    display: inline-block;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0;
  }

  .fix-layout {
    grid-template-columns: 3fr 1fr;
    align-items: center;
  }

  .fix-layout .svc {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .wrap {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .contact-layout {
    grid-template-columns: 2fr 1fr;
  }

  .contact-layout .panel .btn {
    width: auto;
  }
}
