/* ============================================
   THE WEST COMPANY LLC — Auto Repair Website
   Bold Editorial · Midnight Blue + Mint
   ============================================ */

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

:root {
  --midnight: #0a1628;
  --midnight-light: #132240;
  --midnight-mid: #1a2d52;
  --mint: #5eead4;
  --mint-dark: #3dd4b8;
  --mint-muted: rgba(94, 234, 212, 0.12);
  --cream: #f4f1eb;
  --cream-light: #faf8f4;
  --warm-gray: #6b6560;
  --warm-gray-light: #9e9790;
  --white: #ffffff;
  --black: #050a14;

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

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--midnight);
  background: var(--cream-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(94, 234, 212, 0.1);
  transition: transform 0.4s var(--ease-out), background 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.97);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mint);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--mint);
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mint);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--midnight) !important;
  background: var(--mint);
  padding: 10px 20px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--mint-dark);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

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

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

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--midnight);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

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

.nav-overlay-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.25s ease;
}

.nav-overlay-link:hover {
  color: var(--mint);
}

.nav-overlay-cta {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--midnight);
  background: var(--mint);
  padding: 14px 32px;
  border-radius: 4px;
  margin-top: 16px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--midnight);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-headline .accent {
  color: var(--mint);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-bottom: 40px;
}

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

.hero-trust {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.6;
}

.trust-item svg {
  color: var(--mint);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item strong {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Hero Images */
.hero-right {
  position: relative;
  min-height: 580px;
}

.hero-image-main {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

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

.hero-image-float {
  position: absolute;
  bottom: -40px;
  left: -40px;
  background: var(--white);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  max-width: 280px;
}

.hero-image-float img {
  border-radius: 6px;
  width: 100%;
  height: 204px;
  object-fit: cover;
}

.hero-float-caption {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--warm-gray);
  padding: 12px 16px 4px;
}

/* Hero Divider */
.hero-divider {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(94, 234, 212, 0.3), transparent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--mint);
  color: var(--midnight);
}

.btn-primary:hover {
  background: var(--mint-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

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

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

.btn-large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--midnight);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-headline .accent {
  color: var(--mint-dark);
  font-style: italic;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--cream-light);
}

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

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid rgba(10, 22, 40, 0.06);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10, 22, 40, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--mint-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-dark);
  margin-bottom: 24px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--warm-gray);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-image-col img {
  border-radius: 8px;
  width: 100%;
  height: 640px;
  object-fit: cover;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.about-content-col .section-eyebrow {
  color: var(--mint);
}

.about-content-col .section-headline {
  color: var(--white);
}

.about-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.about-signature {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-signature-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  font-style: italic;
}

.about-signature-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

/* ============================================
   WHY US
   ============================================ */
.why {
  padding: 120px 0;
  background: var(--cream);
}

.why-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto 80px;
}

.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
}

.why-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mint-dark);
  opacity: 0.5;
  line-height: 1;
  padding-top: 4px;
}

.why-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--warm-gray);
}

.why-cta {
  text-align: center;
}

.why-cta .btn-primary {
  margin-bottom: 16px;
}

.why-cta-sub {
  font-size: 0.9rem;
  color: var(--warm-gray-light);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--cream-light);
}

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

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--warm-gray);
  margin-bottom: 40px;
}

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

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

.contact-detail svg {
  color: var(--mint-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

.contact-detail a {
  color: var(--mint-dark);
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: var(--midnight);
}

/* Form */
.contact-form-col {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  border: 1px solid rgba(10, 22, 40, 0.06);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--midnight);
  background: var(--cream-light);
  border: 1.5px solid rgba(10, 22, 40, 0.1);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray-light);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--warm-gray-light);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.form-success.visible {
  display: flex;
}

.form-success svg {
  color: var(--mint-dark);
  margin-bottom: 20px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--midnight);
}

.footer-map {
  filter: grayscale(0.4) contrast(1.1);
  opacity: 0.85;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.footer-brand .nav-logo-mark {
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
}

.footer-brand .nav-logo-text {
  font-size: 1.15rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 280px;
  line-height: 1.6;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

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

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    min-height: 400px;
    order: -1;
  }

  .hero-image-main img {
    height: 500px;
  }

  .hero-image-float {
    bottom: -24px;
    left: 16px;
  }

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

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

  .about-image-col img {
    height: 420px;
  }

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

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

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    padding: 32px 24px 48px;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

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

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

  .hero-trust {
    flex-direction: column;
    gap: 20px;
  }

  .hero-image-main img {
    height: 380px;
  }

  .hero-image-float {
    display: none;
  }

  .services {
    padding: 80px 0;
  }

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

  .service-card {
    padding: 32px 28px;
  }

  .about {
    padding: 80px 0;
  }

  .why {
    padding: 80px 0;
  }

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

  .contact {
    padding: 80px 0;
  }

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

  .footer-inner {
    padding: 40px 24px 24px;
  }

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

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

  .nav-inner {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-headline {
    font-size: 1.8rem;
  }
}
