/* ============================================================
   James Automotive — honest small-town garage, industrial bold
   Concrete gray · charcoal steel · safety yellow · hazard stripe
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --concrete: #eef0f1;
  --concrete-2: #e2e5e7;
  --panel: #ffffff;
  --line: #cfd5d9;
  --steel: #23282c;
  --steel-2: #31383d;
  --ink: #1b2023;
  --muted: #5c666d;
  --yellow: #f2b514;
  --yellow-deep: #d99e05;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden; background: var(--concrete); color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif; font-size: 1.03rem; line-height: 1.65;
}
img { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.08; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.4rem; }
a { color: var(--steel); }

/* hazard stripe */
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--steel) 18px 36px); }

/* topbar & header */
.topbar { background: var(--steel); color: #cfd5d9; font-size: 0.9rem; text-align: center; padding: 0.45rem 1rem; }
.topbar strong { color: var(--yellow); }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
header.site { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(27,32,35,0.08); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.4rem; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 0.75rem; }
.wrench-mark {
  width: 50px; height: 50px; flex-shrink: 0; background: var(--steel);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center; color: var(--yellow);
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.35rem;
}
.brand-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.45rem; color: var(--ink); text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--yellow-deep); }
.brand-tag { display: block; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
nav.main { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.98rem; padding: 0.45rem 0.9rem; border-radius: 4px; transition: background 0.15s, color 0.15s; }
nav.main a:hover { background: var(--concrete-2); }
nav.main a.active { background: var(--steel); color: #fff; }
nav.main a.cta { background: var(--yellow); color: var(--ink); margin-left: 0.35rem; }
nav.main a.cta:hover { background: var(--yellow-deep); }

/* hero */
.hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,24,27,0.4) 0%, rgba(20,24,27,0.1) 40%, rgba(16,20,22,0.9) 100%); }
.hero-inner { padding-top: 5.5rem; padding-bottom: 3.2rem; width: 100%; }
.hero .kicker { display: inline-block; background: var(--yellow); color: var(--ink); font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 1rem; margin-bottom: 1.1rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; max-width: 16ch; text-shadow: 0 3px 24px rgba(0,0,0,0.5); }
.hero p.lede { max-width: 54ch; margin: 1rem 0 1.8rem; font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: #e5e9ec; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero .btns { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero--page { min-height: 44vh; }
.hero--page .hero-inner { padding-top: 4rem; padding-bottom: 2.4rem; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; padding: 0.85rem 1.8rem; border-radius: 4px; transition: transform 0.12s, background 0.15s, box-shadow 0.12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: var(--steel-2); }
.btn-outline { border: 2px solid rgba(255,255,255,0.8); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.14); }

/* info strip */
.info-strip { background: var(--steel); color: #cfd5d9; }
.info-strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.5rem 2rem; padding: 1.1rem 1.4rem; }
.info-strip .cell { display: flex; align-items: center; gap: 0.75rem; font-size: 0.97rem; }
.info-strip .cell strong { display: block; font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); }
.info-strip a { color: #fff; text-decoration: none; }
.info-strip a:hover { color: var(--yellow); }
.info-ico { font-size: 1.45rem; }

/* sections */
section.block { padding: 4.4rem 0; }
section.block--deep { background: var(--concrete-2); }
section.block--white { background: var(--panel); }
.eyebrow { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--yellow-deep); margin-bottom: 0.5rem; }
.block h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; margin-bottom: 0.6rem; }
.block .sub { color: var(--muted); max-width: 62ch; margin-bottom: 2.2rem; font-size: 1.06rem; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--yellow); display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(27,32,35,0.15); }
.card img { height: 210px; width: 100%; object-fit: cover; }
.card .pad { padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.split-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(27,32,35,0.18); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 840px) { .split, .split.rev { grid-template-columns: 1fr; gap: 1.8rem; } }
ul.checks { list-style: none; margin-top: 1rem; }
ul.checks li { padding-left: 2rem; position: relative; margin-bottom: 0.65rem; }
ul.checks li::before { content: "🔧"; position: absolute; left: 0; top: 1px; font-size: 0.95rem; }

/* services board */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(27,32,35,0.1); padding: clamp(1.4rem, 4vw, 2.8rem); }
.board-section { margin-bottom: 2.2rem; }
.board-section:last-child { margin-bottom: 0; }
.board-section > h3 { font-size: 1.5rem; color: var(--steel); display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.board-section > h3::after { content: ""; flex: 1; height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--steel) 12px 24px); border-radius: 4px; opacity: 0.85; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--concrete-2); align-items: baseline; }
.svc .n { font-weight: 600; }
.svc .p { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--yellow-deep); white-space: nowrap; }
.svc .d { grid-column: 1 / -1; color: var(--muted); font-size: 0.92rem; }
.pill { display: inline-block; background: #fdf2cf; color: #8a6a06; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 3px; padding: 0.12rem 0.55rem; margin-left: 0.5rem; vertical-align: 2px; }

/* reviews */
.review { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem; }
.review p { font-size: 1rem; margin-bottom: 0.9rem; font-style: italic; }
.review .who { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); font-size: 0.9rem; }
.review .stars { color: var(--yellow-deep); letter-spacing: 0.12em; margin-bottom: 0.3rem; }

/* hours & map */
table.hours { width: 100%; border-collapse: collapse; }
table.hours td { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--concrete-2); font-size: 1.02rem; }
table.hours td:last-child { text-align: right; font-family: 'Oswald', sans-serif; font-weight: 600; }
table.hours tr.closed td:last-child { color: var(--muted); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(27,32,35,0.16); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.tip { background: #fdf6dd; border-left: 5px solid var(--yellow); border-radius: 0 8px 8px 0; padding: 1rem 1.3rem; font-size: 0.98rem; margin: 1.6rem 0; }
.tip strong { color: #8a6a06; }

/* banner */
.banner { position: relative; color: #fff; isolation: isolate; overflow: hidden; border-radius: var(--radius); }
.banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,20,22,0.9) 0%, rgba(16,20,22,0.5) 60%, rgba(16,20,22,0.25) 100%); }
.banner .pad { padding: 3rem 2.6rem; max-width: 62%; }
.banner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.7rem; }
.banner p { color: #dfe4e8; margin-bottom: 1.5rem; }
@media (max-width: 720px) { .banner .pad { max-width: 100%; padding: 2.2rem 1.6rem; } }

/* footer */
footer.site { background: var(--steel); color: #b9c2c8; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.2rem; padding: 3rem 0 2rem; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: var(--yellow); font-size: 1rem; margin-bottom: 0.8rem; }
footer.site a { color: #b9c2c8; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 0.45rem; font-size: 0.96rem; }
footer.site .brand-name { color: #fff; }
footer.site p.small { font-size: 0.9rem; color: #97a2a9; margin-top: 0.6rem; }
.footnote { border-top: 1px solid rgba(185,194,200,0.25); padding: 1.2rem 0 1.6rem; font-size: 0.85rem; color: #8b969d; text-align: center; }
.footnote strong { color: #b9c2c8; }

@media (max-width: 640px) { .hero { min-height: 62vh; } nav.main { justify-content: center; width: 100%; } .nav-row { justify-content: center; } }
