/* Jr's Automotive Repair — Owensboro, KY
   Hand-built stylesheet. Palette: graphite + steel + automotive red. */

:root {
  --ink:      #14181d;
  --graphite: #1b2027;
  --steel:    #2a323c;
  --line:     #e4e7ec;
  --paper:    #f6f7f9;
  --white:    #ffffff;
  --muted:    #5b6572;
  --muted-d:  #9aa6b4;
  --red:      #c8102e;
  --red-d:    #a20d25;
  --amber:    #f4a915;
  --radius:   14px;
  --shadow:   0 18px 40px -22px rgba(16,22,30,.45);
  --wrap:     1180px;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

* { 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(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .3px;
  margin: 0;
  text-transform: none;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.ic { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .98rem; letter-spacing: .2px;
  padding: .82rem 1.5rem; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap; cursor: pointer; border: 0;
}
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--call { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(200,16,46,.7); }
.btn--call:hover { background: var(--red-d); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--ink); color: #cdd5df; font-size: .84rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.utility__row { display: flex; align-items: center; gap: 1.4rem; padding: .5rem 0; flex-wrap: wrap; }
.utility__item { display: inline-flex; align-items: center; gap: .45rem; }
.utility__item .ic { fill: var(--red); opacity: .95; }
.utility__hours { color: #e7ecf2; }
.utility__hours .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 3px rgba(244,169,21,.2);
}
.utility__hours.open .dot { background: #37d67a; box-shadow: 0 0 0 3px rgba(55,214,122,.2); }
.utility__call { margin-left: auto; color: #fff; font-weight: 600; }
.utility__call:hover { color: var(--red); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.header.scrolled { box-shadow: 0 8px 30px -18px rgba(16,22,30,.4); }
.header__row { display: flex; align-items: center; gap: 1.4rem; padding: .7rem 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); border-radius: 11px;
}
.brand__mark svg { width: 26px; height: 26px; fill: var(--red); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: 'Oswald', sans-serif; font-size: 1.32rem; letter-spacing: .4px; text-transform: uppercase; }
.brand__text em { font-style: normal; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  font-weight: 600; font-size: .96rem; color: var(--steel);
  position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header__cta { margin-left: .4rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, rgba(20,24,29,.92) 0%, rgba(20,24,29,.6) 55%, rgba(20,24,29,.35) 100%),
    url("images/hero.jpg") center/cover no-repeat,
    radial-gradient(1200px 600px at 80% -10%, #33404f 0%, #1b2027 45%, #12161b 100%);
  background-blend-mode: normal;
}
/* Fallback texture when no hero photo is present */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 26px);
  opacity: .8;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18,22,27,.9), transparent 40%);
}
.hero__inner { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); max-width: 760px; }
.eyebrow {
  display: inline-block; font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 3px; font-size: .8rem; font-weight: 600; color: var(--amber);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--red); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: #dfe5ec; margin: 1.4rem 0 2rem; max-width: 60ch; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__badges {
  display: flex; gap: 2.4rem; list-style: none; padding: 0; margin: 2.8rem 0 0;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.6rem;
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong { font-family: 'Oswald', sans-serif; font-size: 1.9rem; color: #fff; line-height: 1; }
.hero__badges span { font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-d); margin-top: .35rem; }

/* ---------- Trust strip ---------- */
.strip { background: var(--red); color: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.strip__item {
  text-align: center; padding: 1.6rem 1rem;
  border-right: 1px solid rgba(255,255,255,.18);
  display: flex; flex-direction: column; gap: .2rem;
}
.strip__item:last-child { border-right: 0; }
.strip__num { font-family: 'Oswald', sans-serif; font-size: 2.1rem; font-weight: 700; line-height: 1; }
.strip__lbl { font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section__head { max-width: 640px; margin: 0 0 3rem; }
.section__head--light { color: #fff; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin-top: .9rem; }
.section__head--light .section__sub { color: var(--muted-d); }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber)); transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__ic {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: #fdecef; margin-bottom: 1.1rem;
}
.card__ic svg { width: 30px; height: 30px; fill: var(--red); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.services__note { text-align: center; margin-top: 2.6rem; color: var(--muted); font-size: 1.02rem; }
.services__note a { color: var(--red); font-weight: 700; }

/* ---------- Split / About ---------- */
.section--split { background: var(--paper); }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.4rem; align-items: center; }
.split__media { position: relative; }
.photo {
  border-radius: var(--radius); aspect-ratio: 4/3; box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(20,24,29,.15), rgba(20,24,29,.55)),
    url("images/shop.jpg") center/cover no-repeat,
    linear-gradient(135deg, #2a323c 0%, #14181d 100%);
}
.photo--shop { position: relative; }
.photo--shop::after {
  content: "Add images/shop.jpg"; position: absolute; inset: auto 0 0 0; bottom: 50%;
  transform: translateY(50%); text-align: center; color: rgba(255,255,255,.5);
  font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; pointer-events: none;
}
.split__badge {
  position: absolute; right: -14px; bottom: -18px; background: var(--red); color: #fff;
  padding: 1rem 1.3rem; border-radius: 12px; box-shadow: var(--shadow); text-align: center;
}
.split__badge strong { font-family: 'Oswald', sans-serif; font-size: 1.5rem; display: block; line-height: 1; }
.split__badge span { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.split__body p { color: var(--muted); margin: 1rem 0; }
.split__body h2 { margin-top: .6rem; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background: var(--red); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='white'/%3E%3C/svg%3E") center/72% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='white'/%3E%3C/svg%3E") center/72% no-repeat;
}

/* ---------- Why us ---------- */
.section--why { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section--why::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 0%, rgba(200,16,46,.22), transparent 60%);
  pointer-events: none;
}
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; position: relative; }
.why__item {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 2rem 1.9rem; background: rgba(255,255,255,.03);
  transition: background .25s, transform .25s var(--ease);
}
.why__item:hover { background: rgba(255,255,255,.06); transform: translateY(-4px); }
.why__num { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--red); font-weight: 700; letter-spacing: 2px; }
.why__item h3 { margin: .5rem 0 .5rem; color: #fff; }
.why__item p { color: var(--muted-d); margin: 0; }

/* ---------- Reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; margin: 0; box-shadow: 0 10px 30px -24px rgba(16,22,30,.5);
}
.stars { color: var(--amber); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: .9rem; }
.quote blockquote { margin: 0; font-size: 1.06rem; line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: 1.1rem; color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ---------- Contact ---------- */
.section--contact { background: var(--paper); }
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: stretch; }
.contact__lead { color: var(--muted); margin: 1rem 0 1.8rem; }
.contact__rows { display: grid; gap: .9rem; margin-bottom: 2rem; }
.contact__card {
  display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.2rem; font-weight: 600;
  transition: border-color .2s, transform .2s var(--ease);
}
.contact__card:hover { border-color: var(--red); transform: translateX(4px); }
.contact__ic { width: 44px; height: 44px; border-radius: 10px; background: #fdecef; display: grid; place-items: center; flex: none; }
.contact__ic svg { width: 24px; height: 24px; fill: var(--red); }
.contact__card small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }

.hours h3 { margin-bottom: .7rem; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { color: var(--ink); font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours .closed td { color: var(--red); font-weight: 600; }

.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aeb8c4; padding: 3rem 0 5.5rem; }
.footer__row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2rem; align-items: start; }
.footer__brand { display: flex; flex-direction: column; gap: .3rem; }
.footer__brand strong { color: #fff; font-family: 'Oswald', sans-serif; font-size: 1.2rem; letter-spacing: .5px; }
.footer__brand a { color: var(--amber); font-weight: 600; margin-top: .2rem; }
.footer__nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__nav a:hover { color: #fff; }
.footer__meta { font-size: .86rem; margin: 0; text-align: right; }
.footer__meta span { color: var(--muted); }

/* ---------- Mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; gap: .6rem;
  background: var(--red); color: #fff; font-weight: 700; padding: .95rem;
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.5);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 2.4rem; }
  .split__badge { right: 12px; }
  .why__grid { grid-template-columns: 1fr; }
  .footer__row { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: #fff; flex-direction: column; gap: 0; padding: 5rem 1.6rem 2rem;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: -20px 0 40px -20px rgba(0,0,0,.4); margin: 0;
  }
  .nav.open { transform: none; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a::after { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .header__cta { display: none; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(2) { border-right: 0; }
  .strip__item:nth-child(1), .strip__item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .cards, .quotes { grid-template-columns: 1fr; }
  .hero__badges { gap: 1.6rem; }
  .hero__badges strong { font-size: 1.5rem; }
  .utility__item:not(.utility__call):not(.utility__hours) { display: none; }
  .callbar { display: flex; }
  body { padding-bottom: 3.4rem; }
  .footer { padding-bottom: 5rem; }
}
@media (max-width: 400px) {
  .hero__badges { flex-wrap: wrap; }
}
