/* Hubbs Auto Repair — Oneida, NY */
/* Theme: Industrial Dark — auto repair */

@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --brand: #D4A84B;
  --brand-dark: #B8912F;
  --bg: #0D0D0D;
  --bg-alt: #141414;
  --bg-card: #1A1A1A;
  --text: #E8E4DE;
  --text-muted: #9A968F;
  --text-heading: #F5F2ED;
  --border: #2A2724;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Teko', sans-serif;
  color: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 600; }

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---- LABEL ---- */
.label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
  display: block;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav__phone {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__phone svg {
  width: 18px;
  height: 18px;
  fill: var(--brand);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 12vw, 10rem) 1.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 168, 75, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(212, 168, 75, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #0D0D0D 0%, #1A1714 50%, #0D0D0D 100%);
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 75, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 75, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__est {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero__est::before,
.hero__est::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--brand);
  opacity: 0.5;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand);
  color: #0D0D0D;
  padding: 0.9rem 2rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s;
}

.hero__cta:hover {
  background: var(--brand-dark);
  color: #0D0D0D;
  transform: translateY(-2px);
}

.hero__cta svg {
  width: 18px;
  height: 18px;
  fill: #0D0D0D;
}

/* ---- STATS ---- */
.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ---- SERVICES ---- */
.services {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.services__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.services__header h2 {
  margin-top: 0.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(212, 168, 75, 0.3);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 168, 75, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 0.6rem;
  text-transform: none;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---- REVIEWS ---- */
.reviews {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--bg-alt);
}

.reviews__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.review-card__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--brand);
}

.review-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}

.review-card__author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- ABOUT ---- */
.about {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.about__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about__inner h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.about__inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ---- HOURS ---- */
.hours {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--bg-alt);
}

.hours__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hours__info h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.hours__address {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hours__phone {
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: block;
  margin-bottom: 2rem;
}

.hours__phone:hover { color: var(--brand-dark); }

.hours__table {
  width: 100%;
  border-collapse: collapse;
}

.hours__table tr {
  border-bottom: 1px solid var(--border);
}

.hours__table td {
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.hours__table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.hours__table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.hours__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

.hours__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) contrast(1.1) brightness(0.7);
}

/* ---- CTA ---- */
.cta-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-section .hero__cta {
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  text-transform: uppercase;
}

.footer__info {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.footer__credit {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__credit a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__credit a:hover {
  color: var(--brand);
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .services__grid { grid-template-columns: 1fr; gap: 1rem; }
  .reviews__grid { grid-template-columns: 1fr; gap: 1rem; }
  .hours__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__info { text-align: center; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav__brand { font-size: 1.2rem; }
  .nav__phone { font-size: 0.85rem; }
}
