/* ============================================
   Baity Tire — Classic & Elegant Auto Repair Site
   Palette: Terracotta + Sand
   Fonts: Playfair Display + Lora + Inter
============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --terracotta: #B85C38;
  --terracotta-dark: #8B4226;
  --terracotta-deep: #6B3420;
  --sand: #E8D5C0;
  --sand-light: #F5EDE3;
  --sand-lighter: #FBF7F2;
  --sand-dark: #C4A882;
  --brown-dark: #3D2B1F;
  --brown-deeper: #2A1F17;
  --cream: #FAF6F1;
  --cream-dark: #F0E8DE;
  --text-primary: #2A1F17;
  --text-secondary: #5C4033;
  --text-muted: #8B7355;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(42, 31, 23, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 31, 23, 0.10);
  --shadow-lg: 0 8px 32px rgba(42, 31, 23, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown-dark);
}

p {
  font-family: 'Lora', Georgia, serif;
  color: var(--text-secondary);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 92, 56, 0.1);
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown-dark);
}

.nav-logo-icon {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.nav-phone):not(.btn) {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.nav-phone):not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width var(--transition);
}

.nav-links a:not(.nav-phone):not(.btn):hover {
  color: var(--terracotta);
}

.nav-links a:not(.nav-phone):not(.btn):hover::after {
  width: 100%;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terracotta);
  padding: 8px 16px;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-phone:hover {
  background: var(--terracotta);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown-dark);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--terracotta);
}

.mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta) !important;
  margin-top: 16px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: var(--sand-light);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(184, 92, 56, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184, 92, 56, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-left {
  padding-right: 20px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--terracotta);
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--brown-dark);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-headline em {
  color: var(--terracotta);
  font-style: italic;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--sand-dark);
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--sand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 92, 56, 0.15);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: var(--brown-dark);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(184, 92, 56, 0.2);
  flex-shrink: 0;
}

/* Hero Right */
.hero-right {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-accent-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  z-index: 2;
}

.accent-card-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.accent-card-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── Section Shared ── */
.section-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--brown-dark);
}

.section-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ── Services ── */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.services .container {
  max-width: 1200px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(184, 92, 56, 0.08);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 92, 56, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--sand-light);
  color: var(--terracotta);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--terracotta);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 10px;
  color: var(--brown-dark);
}

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

/* ── About ── */
.about {
  padding: 100px 0;
  background: var(--sand-light);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-col {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: -20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--sand-light);
}

.about-img-accent img {
  width: 100%;
  display: block;
}

.about-text-col .section-title {
  margin-bottom: 24px;
}

.about-body {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.about-values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  margin-top: 2px;
}

.value-item span:last-child {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-top: 3px;
}

/* ── Why Us ── */
.why-us {
  padding: 100px 0;
  background: var(--cream);
}

.why-header {
  text-align: center;
  margin-bottom: 56px;
}

.why-header .section-desc {
  margin: 0 auto;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(184, 92, 56, 0.08);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 92, 56, 0.15);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 100px 0;
  background: var(--brown-dark);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(184, 92, 56, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(184, 92, 56, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Contact ── */
.contact {
  padding: 100px 0;
  background: var(--sand-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-info {
  padding-right: 24px;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  color: var(--text-secondary);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.detail-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--brown-dark);
}

.detail-value a {
  color: var(--terracotta);
  transition: color var(--transition);
}

.detail-value a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

.contact-map iframe {
  border-radius: var(--radius-lg);
}

/* ── Footer ── */
.footer {
  background: var(--brown-deeper);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo-icon {
  color: var(--terracotta);
}

.footer-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
  color: var(--terracotta);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    padding-right: 0;
  }

  .hero-headline {
    font-size: clamp(1.875rem, 6vw, 2.75rem);
  }

  .hero-right {
    order: -1;
  }

  .hero-image-frame {
    border-radius: var(--radius-md);
  }

  .hero-accent-card {
    bottom: -16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .trust-divider {
    display: none;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-accent {
    right: 16px;
    bottom: -20px;
  }

  .why-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding-right: 0;
  }

  .contact-map {
    min-height: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .why-stats {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
