/* JB Tire — shared styles
   Industrial-clean, mobile-first, no framework */

:root {
  --ink: #0f1419;
  --ink-soft: #1a222c;
  --slate: #2c3642;
  --muted: #5c6b7a;
  --line: #d8dee6;
  --paper: #f4f6f8;
  --white: #ffffff;
  --accent: #e85d04;
  --accent-hover: #d14f00;
  --accent-deep: #9a3400;
  --ok: #1b7a4e;
  --shadow: 0 8px 28px rgba(15, 20, 25, 0.12);
  --radius: 12px;
  --max: 1120px;
  --header-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--white); }

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.15rem;
}

.logo-text span {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-compact {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-lg {
  padding: 0.9rem 1.45rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 93, 4, 0.22), transparent 55%),
    linear-gradient(145deg, #0f1419 0%, #1a222c 45%, #243040 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, transparent 28%, rgba(255,255,255,0.04) 29%, transparent 30%),
    radial-gradient(circle at 70% 55%, transparent 22%, rgba(255,255,255,0.03) 23%, transparent 24%);
  pointer-events: none;
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-meta strong {
  color: var(--white);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-card h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.quick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.quick-list li {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.quick-list li:last-child { border-bottom: 0; }

.quick-list svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent);
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.04);
}

.trust-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232, 93, 4, 0.12);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.trust-card h3 {
  margin-bottom: 0.35rem;
}

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

/* —— Service cards —— */
.service-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  border-color: rgba(232, 93, 4, 0.45);
  box-shadow: var(--shadow);
}

.service-card .svc-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card h3 { margin-bottom: 0.4rem; }

.service-card p {
  color: var(--muted);
  flex: 1;
  font-size: 0.98rem;
}

.service-card .card-link {
  margin-top: 1rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-deep);
}

.service-card .card-link:hover { color: var(--accent); }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--slate) 100%);
  color: var(--white);
  padding: 2.75rem 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 40ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Location —— */
.loc-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .loc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-panel h3 { margin-bottom: 0.75rem; }

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}

.info-list li:last-child { border-bottom: 0; }

.info-list .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 650;
}

.info-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.info-list a:hover { color: var(--accent); }

.map-placeholder {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #e8edf2 0%, #d4dce5 100%);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--slate);
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

/* —— About —— */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--line);
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 0.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 5.5px);
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item .when {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
}

.prose {
  max-width: 62ch;
}

.prose p { color: var(--slate); }

.owner-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.owner-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.owner-card .role {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* —— Form —— */
.form-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .form-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.contact-aside {
  background: var(--ink);
  color: var(--white);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem;
}

.contact-aside h2 {
  color: var(--white);
  font-size: 1.35rem;
}

.contact-aside p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-aside .big-phone {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 750;
  color: var(--white);
  text-decoration: none;
  margin: 1rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.contact-aside .big-phone:hover { color: var(--accent); }

.contact-aside .aside-meta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-aside .aside-meta li {
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.contact-aside .aside-meta a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.contact-aside .aside-meta a:hover { color: var(--accent); }

.contact-aside .aside-meta .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}


.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.2);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

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

.form-success {
  display: none;
  background: rgba(27, 122, 78, 0.1);
  border: 1px solid rgba(27, 122, 78, 0.35);
  color: var(--ok);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-success.is-visible { display: block; }

.form-success a {
  color: var(--ok);
  font-weight: 700;
}

/* —— Services detail —— */
.svc-detail {
  display: grid;
  gap: 1.25rem;
}

.svc-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .svc-block {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

.svc-block .svc-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
}

.svc-block p {
  margin: 0;
  color: var(--muted);
}

.svc-block .svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.12);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 650;
}

/* —— Layout: desktop header —— */
@media (min-width: 861px) {
  .header-inner {
    gap: 0.75rem;
  }

  .nav-wrap {
    display: flex !important;
    align-items: center;
    margin-left: auto;
  }

  .header-actions {
    margin-left: 0.25rem;
  }

  .nav-toggle {
    display: none;
  }
}

/* —— Mobile polish (~390px and up to tablet) —— */
@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    position: relative;
    gap: 0.5rem;
    min-height: 60px;
    padding-block: 0.35rem;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.45rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-text strong {
    font-size: 1.05rem;
  }

  .logo-text span {
    font-size: 0.62rem;
  }

  /* Call + Get Quote always visible outside the menu */
  .header-actions {
    order: 2;
    margin-left: 0;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    align-items: center;
    padding: 0.45rem 0.65rem;
  }

  .nav-wrap {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--ink-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.15rem;
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
  }

  .hero {
    padding: 2.25rem 0 2.75rem;
  }

  .hero-lead {
    max-width: none;
    font-size: 1.05rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.85rem;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .svc-block {
    grid-template-columns: 1fr;
  }

  .svc-block .svc-actions {
    width: 100%;
  }

  .svc-block .svc-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .quote-form,
  .contact-aside {
    padding: 1.15rem;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .big-phone {
    word-break: break-word;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .logo-text span {
    display: none;
  }

  .btn-compact {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
}


/* Shop photo */
.shop-photo {
  margin: 2.5rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.shop-photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.shop-photo figcaption {
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: #e2e8f0;
  background: #0f172a;
}


.svc-thumb {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 360 / 220;
}
.service-card .svc-thumb {
  margin-bottom: 0.85rem;
  max-width: none;
}
.svc-block .svc-thumb {
  grid-column: 1 / -1;
  max-width: 420px;
}
@media (min-width: 768px) {
  .svc-block .svc-thumb {
    grid-column: auto;
  }
}


.map-embed {
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  min-height: 280px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.map-embed-link {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  background: #0f172a;
  color: #e2e8f0;
}
.map-embed-link a {
  color: #fdba74;
  text-decoration: none;
}
.map-embed-link a:hover {
  text-decoration: underline;
}

