/* =========================================================
   Freddy's Tire Shop & Accessories
   Black & white, modern, simple
   ========================================================= */

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --white: #ffffff;
  --paper: #f6f6f4;
  --line: #e5e5e2;
  --gray: #6b6b6b;
  --gray-2: #9a9a9a;
  --max: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Display typography */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  display: inline-block;
  margin-bottom: 18px;
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--gray-2); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { margin-top: 18px; color: var(--gray); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--black);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid:hover { background: #fff; color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--black); }
.btn svg { width: 16px; height: 16px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 46px; height: 46px; object-fit: contain; }
.brand .word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--black);
}
.brand .word small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}
.nav-links a:hover { background: var(--paper); }
.nav-links a.active { background: var(--black); color: #fff; }
.nav-cta { margin-left: 10px; }
/* Keep the CTA number visible by default (white on black); still invert on hover.
   Needed because .nav-links a (0,1,1) otherwise beats .btn--solid (0,1,0). */
.nav-cta .btn--solid { color: var(--white); background: var(--black); }
.nav-cta .btn--solid:hover { color: var(--black); background: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px; height: 42px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--black);
  transition: 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
body.nav-open .menu-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 0.98;
}
.hero h1 em { font-style: normal; -webkit-text-stroke: 1.5px #fff; color: transparent; }
.hero p {
  margin-top: 26px;
  font-size: 19px;
  color: #c9c9c9;
  max-width: 520px;
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 46px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 28px;
}
.hero-meta .stat .n {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-meta .stat .l {
  font-size: 13px;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* Hero tire art */
.hero-art {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }
.tire-spin { transform-origin: center; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Brand partners strip
   ========================================================= */
.brands { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands .wrap { padding-top: 44px; padding-bottom: 44px; }
.brands-label {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 30px;
}
.brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.brands-row .brand-logo {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.brands-row .brand-logo:hover { opacity: 1; }
.brands-row img { height: 58px; width: auto; max-width: 230px; object-fit: contain; }

/* =========================================================
   Services grid
   ========================================================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-card {
  background: #fff;
  padding: 40px 34px;
  transition: background 0.3s var(--ease);
  position: relative;
}
.svc-card:hover { background: var(--black); color: #fff; }
.svc-card:hover h3 { color: #fff; }
.svc-card:hover .svc-num { color: rgba(255,255,255,0.35); }
.svc-card:hover p { color: #cfcfcf; }
.svc-card:hover .svc-icon { border-color: #fff; }
.svc-card:hover .svc-icon svg { stroke: #fff; }
.svc-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-2);
  letter-spacing: 0.1em;
}
.svc-icon {
  width: 52px; height: 52px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 18px 0 22px;
  transition: border-color 0.3s;
}
.svc-icon svg { width: 24px; height: 24px; stroke: var(--black); fill: none; stroke-width: 1.6; transition: stroke 0.3s; }
.svc-card h3 { font-size: 21px; margin-bottom: 10px; }
.svc-card p { color: var(--gray); font-size: 15.5px; }

/* Feature value props */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value h3 { font-size: 22px; margin-bottom: 10px; }
.value p { color: var(--gray); }
.value .vrule { width: 44px; height: 3px; background: var(--black); margin-bottom: 22px; }

/* =========================================================
   Reviews
   ========================================================= */
.reviews-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.gscore { display: flex; align-items: center; gap: 18px; }
.gscore .glogo { width: 30px; height: 30px; }
.gscore .num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 40px; line-height: 1; }
.gscore .stars { color: #111; letter-spacing: 2px; font-size: 18px; }
.gscore .meta { font-size: 14px; color: var(--gray); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.08); }
.review .stars { color: #111; letter-spacing: 2px; margin-bottom: 14px; }
.review p { font-size: 16px; flex: 1; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.review .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 16px;
}
.review .who .name { font-weight: 600; font-size: 15px; }
.review .who .src { font-size: 13px; color: var(--gray); }

/* =========================================================
   Map / Location
   ========================================================= */
.locate-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.locate-info { padding: 48px; }
.locate-info h2 { font-size: 34px; margin-bottom: 24px; }
.locate-list { list-style: none; }
.locate-list li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.locate-list li:last-child { border-bottom: none; }
.locate-list .ico {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px;
  stroke: var(--black); fill: none; stroke-width: 1.6;
}
.locate-list .k { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); margin-bottom: 3px; }
.locate-list .v { font-size: 17px; font-weight: 500; }
.locate-list .v a:hover { text-decoration: underline; }
.map-embed { min-height: 420px; position: relative; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 20px; }
.cta-band p { color: #c9c9c9; max-width: 560px; margin: 0 auto 34px; font-size: 18px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--black); color: #cfcfcf; padding: 72px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .word { color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; }
.footer-brand p { margin-top: 16px; font-size: 15px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 15px; color: #b8b8b8; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--gray-2);
}
.social { display: flex; gap: 12px; }
.social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: 0.2s var(--ease);
}
.social a:hover { background: #fff; border-color: #fff; }
.social a:hover svg { stroke: var(--black); }
.social svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.6; }

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero { background: var(--black); color: #fff; padding: 96px 0 80px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 64px);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); }
.page-hero p { color: #c9c9c9; margin-top: 18px; font-size: 19px; max-width: 600px; }
.breadcrumb { font-size: 13px; color: var(--gray-2); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; font-family: "Space Grotesk", sans-serif; }
.breadcrumb a:hover { color: #fff; }

/* =========================================================
   About page
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-grid h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 24px; }
.about-grid p { margin-bottom: 18px; color: #2a2a2a; }
.timeline { list-style: none; }
.timeline li { position: relative; padding-left: 40px; padding-bottom: 34px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--black); }
.timeline .yr { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; display: block; margin-bottom: 4px; }
.timeline p { color: var(--gray); margin: 0; }

/* =========================================================
   Tire size guide
   ========================================================= */
.guide-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.guide-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.guide-card .gfig { background: var(--paper); padding: 36px; display: flex; align-items: center; justify-content: center; min-height: 240px; border-bottom: 1px solid var(--line); }
.guide-card .gfig svg { width: 100%; max-width: 360px; height: auto; }
.guide-card .gbody { padding: 30px 32px 34px; }
.guide-card .step-tag { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.guide-card h3 { font-size: 23px; margin: 10px 0 12px; }
.guide-card p { color: var(--gray); }

.decode { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.decode div { background: #fff; padding: 22px 18px; }
.decode .code { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px; color: var(--black); }
.decode .what { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-top: 6px; }
.decode .desc { font-size: 14px; color: var(--gray); margin-top: 8px; }

.tip-box { background: var(--black); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; gap: 24px; align-items: flex-start; }
.tip-box svg { width: 34px; height: 34px; flex-shrink: 0; stroke: #fff; fill: none; stroke-width: 1.6; }
.tip-box h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.tip-box p { color: #c9c9c9; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 18px; align-items: center; margin-bottom: 16px; transition: 0.25s var(--ease); }
.contact-card:hover { border-color: var(--black); transform: translateX(4px); }
.contact-card .cico { width: 46px; height: 46px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .cico svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; }
.contact-card .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); }
.contact-card .v { font-size: 18px; font-weight: 600; }
.contact-card .v a:hover { text-decoration: underline; }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; color: var(--ink); }
form input, form textarea, form select {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.2s;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--black); }
form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 14px; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 16px 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table .today { font-weight: 700; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; gap: 36px; }
  .locate-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .guide-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  body.nav-open .nav-links { transform: none; }
  .nav-links a { padding: 14px 8px; border-radius: 8px; font-size: 17px; }
  .nav-links .nav-cta { margin: 10px 0 0; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .menu-toggle { display: block; }
  .svc-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .locate-info { padding: 32px; }
  .tip-box { flex-direction: column; }
  .decode { grid-template-columns: 1fr 1fr; }
}
