/* Ron's Used Tires — modern tire shop site */
:root {
  --bg: #0b0c0e;
  --bg-elevated: #141618;
  --bg-card: #1a1d21;
  --surface: #22262b;
  --text: #f4f1ea;
  --text-muted: #a8a29a;
  --accent: #e85d04;
  --accent-hot: #ff6b1a;
  --accent-deep: #c2410c;
  --amber: #fbbf24;
  --border: rgba(244, 241, 234, 0.08);
  --border-strong: rgba(244, 241, 234, 0.14);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 76px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h1, h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(3.2rem, 8vw, 5.75rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 12, 14, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(232, 93, 4, 0.55);
  background: #e8e4dc;
  box-shadow: 0 0 0 2px rgba(11, 12, 14, 0.35);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.logo--footer .logo-mark {
  width: 36px;
  height: 36px;
}

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

.logo-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.5rem;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(232, 93, 4, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

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

.btn-marketplace {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.28);
}

.btn-marketplace:hover {
  background: #166fe5;
  border-color: #166fe5;
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.38);
}

.btn-call {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

.btn-call:hover {
  border-color: var(--accent);
  color: var(--accent-hot);
}

.btn-lg {
  padding: 1.05rem 1.75rem;
  font-size: 1.1rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--accent-hot);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--amber);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 12, 14, 0.94) 0%, rgba(11, 12, 14, 0.82) 48%, rgba(11, 12, 14, 0.55) 100%),
    linear-gradient(to top, rgba(11, 12, 14, 0.95) 0%, transparent 45%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
}

.hero-content {
  max-width: 720px;
}

.hero-mascot {
  justify-self: end;
  width: min(100%, 380px);
  text-align: center;
}

.hero-mascot img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 6px);
  border: 2px solid var(--border-strong);
  background: #e8e4dc;
  box-shadow: var(--shadow), 0 0 0 1px rgba(232, 93, 4, 0.2);
}

.hero-mascot-caption {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.eyebrow--light {
  color: var(--amber);
}

.hero h1 span {
  color: var(--accent-hot);
}

.hero-lead {
  max-width: 34rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 32rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-strong);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-lead {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.services {
  padding: 5.5rem 0;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 93, 4, 0.08), transparent),
    var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.service-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card--featured {
  grid-column: span 8;
}

.service-card--more {
  grid-column: span 4;
}

.service-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.service-card--featured .service-card-media {
  aspect-ratio: 21 / 10;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

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

/* About */
.about {
  padding: 5.5rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-media img,
.about-media video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  vertical-align: middle;
  background: var(--bg-card);
}

.about-media video {
  cursor: pointer;
  /* Leave room for native controls at the bottom */
  object-position: center top;
}

.about-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  pointer-events: none;
  z-index: 1;
}

.about-badge-phone {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--accent-hot);
}

.about-badge-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-copy h2 {
  margin-bottom: 1rem;
}

.about-copy > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

.checklist {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.85rem;
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-deep));
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.2);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--accent-hot), var(--accent-deep));
  background-size: 0.7rem, cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gallery */
.gallery {
  padding: 5.5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 0.85rem;
}

.gallery-item {
  grid-column: span 4;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  /* Prefer heads / upper subjects over aggressive center crop */
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease);
  background: var(--bg-card);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item--video {
  position: relative;
  grid-column: 1 / -1;
  grid-row: auto;
  height: auto;
  min-height: 0;
  background: #0b0c0e;
}

.gallery-item--video video {
  width: 100%;
  height: auto;
  max-height: min(72vh, 780px);
  object-fit: contain;
  object-position: center center;
  transition: none;
}

.gallery-item--wide {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery-item--tall {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-item--tall img {
  object-position: center top;
}

/* CTA */
.cta {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(232, 93, 4, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.cta-copy {
  max-width: 28rem;
}

.cta-copy h2 {
  margin-bottom: 0.65rem;
}

.cta-copy p {
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 3rem 0 6rem;
  border-top: 1px solid var(--border);
  background: #08090a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.logo--footer .logo-name {
  font-size: 1.4rem;
}

.footer-contact p {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-contact a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--accent-hot);
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--amber);
}

.footer-email-label {
  margin-top: 1.15rem !important;
}

.footer-location {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.footer-contact a.footer-email {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  word-break: break-word;
}

.cta-actions .btn-ghost {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile call FAB */
.mobile-call {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-deep));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(232, 93, 4, 0.45);
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card,
  .service-card--featured,
  .service-card--more {
    grid-column: span 1;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-mascot {
    justify-self: center;
    order: -1;
    width: min(100%, 280px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-media {
    max-width: 420px;
  }

  .gallery-grid {
    grid-auto-rows: 200px;
  }

  .gallery-item--wide {
    grid-column: span 12;
    grid-row: span 2;
  }

  .gallery-item {
    grid-column: span 6;
    grid-row: span 1;
  }

  .gallery-item--tall {
    grid-column: span 6;
    grid-row: span 2;
  }

  .gallery-item--video {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(11, 12, 14, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }

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

  .site-nav a:not(.btn) {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .site-nav .btn-call {
    margin-top: 0.75rem;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    align-items: center;
    padding-bottom: 2.5rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(11, 12, 14, 0.55) 0%, rgba(11, 12, 14, 0.88) 55%, rgba(11, 12, 14, 0.96) 100%);
  }

  .hero-mascot {
    width: min(100%, 240px);
  }

  .hero-mascot-caption {
    font-size: 1.15rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero-stats li {
    flex-direction: row;
    align-items: baseline;
    gap: 0.65rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item--video {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-item--video video {
    max-height: min(70vh, 640px);
  }

  .cta-inner {
    padding: 1.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mobile-call {
    display: inline-flex;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
