/* ========================================
   Vern's Auto Repair — Custom Styles
   Palette: Terracotta + Sand
   Fonts: Playfair Display + Inter
======================================== */

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

:root {
  --terracotta: #B85635;
  --terracotta-dark: #9A4528;
  --terracotta-light: #D4815A;
  --sand: #F5F0EB;
  --sand-dark: #E8DFD5;
  --sand-mid: #EDE5DB;
  --charcoal: #1A1A1A;
  --charcoal-light: #2D2D2D;
  --warm-gray: #6B6560;
  --warm-gray-light: #9A9490;
  --cream: #FDFBF9;
  --white: #FFFFFF;
  --green-dark: #1A3A2D;
  --shadow-sm: 0 1px 3px rgba(26,26,26,0.06), 0 1px 2px rgba(26,26,26,0.04);
  --shadow-md: 0 4px 16px rgba(26,26,26,0.08), 0 2px 4px rgba(26,26,26,0.04);
  --shadow-lg: 0 12px 40px rgba(26,26,26,0.10), 0 4px 12px rgba(26,26,26,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: 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; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
address { font-style: normal; }

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}

.accent { color: var(--terracotta); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  padding: 12px 28px;
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 12px 28px;
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--terracotta);
  padding: 14px 28px;
}
.btn-white:hover {
  background: var(--sand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; padding: 16px 28px; }

/* ── Section Tags ── */
.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  max-width: 540px;
  line-height: 1.7;
}

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

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,251,249,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.scrolled {
  border-bottom-color: var(--sand-dark);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
}
.logo-dot { color: var(--terracotta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 80px;
  flex: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
}
.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--charcoal);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-stat { flex: 1; }
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--warm-gray-light);
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sand-dark);
  flex-shrink: 0;
}

/* Hero Images */
.hero-image {
  position: relative;
  height: 600px;
}
.hero-image-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  height: 85%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-accent {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--sand);
}
.hero-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  top: 24px;
  left: 0;
  background: var(--white);
  color: var(--charcoal);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

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

.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;
  transition: var(--transition);
  border: 1px solid var(--sand-dark);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

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

.service-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
}

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

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

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

.about-image-wrap {
  position: relative;
  height: 560px;
}
.about-image-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 82%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-image-strip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--sand);
}
.about-image-strip img { width: 100%; height: 100%; object-fit: cover; }

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

.about-body {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
}

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

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

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

.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  border: 1px solid var(--sand-dark);
  transition: var(--transition);
  position: relative;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.why-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--sand-dark);
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition);
}
.why-card:hover .why-number { color: var(--terracotta-light); }

.why-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--charcoal);
}

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

/* ── Testimonials ── */
.testimonials {
  padding: 100px 0;
  background: var(--sand);
}

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--sand-dark);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--terracotta);
  opacity: 0.25;
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 24px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar { flex-shrink: 0; }

.testimonial-info { display: flex; flex-direction: column; }
.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--charcoal);
}
.testimonial-location {
  font-size: 0.8125rem;
  color: var(--warm-gray-light);
}

/* ── CTA ── */
.cta {
  padding: 80px 0;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.08;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.06;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta-title .accent { color: var(--terracotta-light); }

.cta-desc {
  font-size: 1.0625rem;
  color: var(--warm-gray-light);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

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

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

.contact-info .section-title { margin-bottom: 16px; }
.contact-desc {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.contact-item {
  display: flex;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm-gray);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.contact-item a {
  color: var(--terracotta);
  transition: var(--transition);
}
.contact-item a:hover { color: var(--terracotta-dark); text-decoration: underline; }

.contact-map { border-radius: var(--radius-md); overflow: hidden; }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 12px 14px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  background: var(--sand);
  color: var(--charcoal);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,86,53,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--warm-gray-light); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success svg { margin: 0 auto 16px; }
.form-success h4 {
  font-size: 1.375rem;
  margin-bottom: 8px;
  color: var(--green-dark);
}
.form-success p {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: var(--warm-gray-light);
  padding: 64px 0 0;
}

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

.footer-brand .logo-text { color: var(--white); }
.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 16px;
  color: var(--warm-gray-light);
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9375rem;
  color: var(--warm-gray-light);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--terracotta-light); }

.footer-contact address {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--warm-gray-light);
}
.footer-contact p {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.footer-contact a {
  color: var(--warm-gray-light);
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--terracotta-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--warm-gray);
}
.footer-bottom a {
  color: var(--warm-gray);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--terracotta-light); }

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { gap: 32px; }
  .hero-image { height: 480px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-toggle { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 60px;
  }
  .hero-image {
    height: 360px;
    order: -1;
  }
  .hero-image-main { width: 100%; height: 100%; }
  .hero-image-accent { display: none; }
  .hero-badge { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { height: 360px; }

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

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

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 1; max-width: 100%; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-features { grid-template-columns: 1fr; }
}
