/* ───────────────────────────────────────────────────
   605 Automotive Repair — Classic & Elegant Style
   Palette: Teal + Slate Grey
──────────────────────────────────────────────────── */

/* ── Custom Properties ────────────────────────────── */
:root {
  --teal-dark: #1a5f5f;
  --teal-mid: #237a7a;
  --teal-light: #2d9494;
  --teal-pale: #e8f2f2;
  --teal-ghost: #f2f8f8;
  --slate-900: #1a2332;
  --slate-800: #243044;
  --slate-700: #2f3e55;
  --slate-600: #4a5c73;
  --slate-500: #6b7f99;
  --slate-400: #8fa3b8;
  --slate-300: #b8c5d4;
  --slate-200: #d6e0ea;
  --slate-100: #eef2f7;
  --slate-50:  #f6f8fb;
  --white:     #ffffff;
  --cream:     #fafbfc;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm:  0 1px 3px rgba(26,35,50,0.06), 0 1px 2px rgba(26,35,50,0.04);
  --shadow-md:  0 4px 16px rgba(26,35,50,0.08), 0 2px 4px rgba(26,35,50,0.04);
  --shadow-lg:  0 12px 40px rgba(26,35,50,0.12), 0 4px 12px rgba(26,35,50,0.06);
  --shadow-xl:  0 24px 60px rgba(26,35,50,0.16), 0 8px 20px rgba(26,35,50,0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input, textarea, select, button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button { cursor: pointer; }

ul { list-style: none; }

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--teal-light); }

/* ── Skip Link ────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--teal-dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* ── Container ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--slate-900);
}

/* ── Section System ───────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 20px;
  color: var(--slate-900);
}

.section-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate-500);
  max-width: 600px;
}

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

.section-header--centered {
  text-align: center;
}

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

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-outline-dark {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-outline-dark:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ───────────────────────────────────────────────────
   HEADER / NAV
──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* ── Logo ─────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  transition: color var(--transition);
}

.site-header.scrolled .logo { color: var(--slate-900); }

.logo-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal-light);
  background: var(--teal-dark);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  line-height: 1.3;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Navigation ───────────────────────────────────── */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.primary-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.site-header.scrolled .primary-nav a {
  color: var(--slate-600);
}

.site-header.scrolled .primary-nav a:hover {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

/* ── Nav Toggle ───────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger {
  position: relative;
  margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
  background: var(--slate-700);
}

/* ───────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,35,50,0.82) 0%,
    rgba(26,95,95,0.72) 50%,
    rgba(26,35,50,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  max-width: 560px;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

.trust-dot {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

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

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

.service-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--white);
  border-color: var(--teal-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--teal-dark);
  transition: all var(--transition);
}

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

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--slate-900);
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-500);
}

/* ───────────────────────────────────────────────────
   ABOUT
──────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: var(--slate-50);
}

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

.about-image {
  position: relative;
}

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

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--teal-dark);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.12;
}

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

.about-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate-600);
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ───────────────────────────────────────────────────
   WHY US
──────────────────────────────────────────────────── */
.why-us {
  padding: 100px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-item {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.why-item:hover::before {
  transform: scaleX(1);
}

.why-item:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-md);
}

.why-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--teal-pale);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.why-item:hover .why-number {
  color: var(--teal-pale);
}

.why-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.why-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate-500);
}

/* ───────────────────────────────────────────────────
   CTA BANNER
──────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cta-title {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* ───────────────────────────────────────────────────
   CONTACT
──────────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--slate-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

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

.contact-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate-500);
  margin-bottom: 36px;
}

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

.contact-item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.contact-item dt svg {
  color: var(--teal-dark);
  flex-shrink: 0;
}

.contact-item dd {
  margin-left: 28px;
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.7;
}

.contact-item dd a {
  color: var(--slate-600);
  transition: color var(--transition);
}

.contact-item dd a:hover {
  color: var(--teal-dark);
}

/* ── Form ─────────────────────────────────────────── */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--slate-800);
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45,148,148,0.1);
}

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

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--slate-400);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  margin: 0 auto 16px;
  color: var(--teal-dark);
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.form-success p {
  font-size: 15px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ───────────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-mark {
  display: inline-block;
  margin-bottom: 8px;
}

.footer-brand .logo-wordmark {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

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

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-contact a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ───────────────────────────────────────────────────
   ANIMATIONS (scroll reveal)
──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ───────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    gap: 48px;
  }
}

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

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--slate-900);
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
  }

  .primary-nav.open {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .primary-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .primary-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
  }

  .primary-nav li:last-child {
    margin-top: 16px;
  }

  .hero-content {
    padding: 120px 0 100px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .services {
    padding: 72px 0;
  }

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

  .about {
    padding: 72px 0;
  }

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

  .about-image { order: -1; }

  .about-stats {
    gap: 24px;
  }

  .why-us {
    padding: 72px 0;
  }

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

  .cta-banner {
    padding: 64px 0;
  }

  .contact {
    padding: 72px 0;
  }

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

  .contact-form-wrapper {
    padding: 28px;
  }

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

  .form-group--full {
    grid-column: 1;
  }

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

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 32px;
  }

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

  .trust-dot { display: none; }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    justify-content: center;
  }
}

/* ── Mobile nav overlay ───────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
