/* ============================================
   LYME AUTOMOTIVE REPAIR — STYLESHEET
   ============================================ */

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-900: #0a1f35;
  --navy-800: #0f2a4a;
  --navy-700: #153a62;
  --navy-600: #1a4a7a;
  --navy-500: #1e5588;
  --gold-500: #c8a44e;
  --gold-400: #d4b362;
  --gold-300: #e0c47a;
  --gold-600: #a8872e;
  --white: #ffffff;
  --off-white: #f7f5f0;
  --gray-50: #faf9f7;
  --gray-100: #f3f1ed;
  --gray-200: #e8e5df;
  --gray-300: #d1cdc5;
  --gray-400: #a8a29a;
  --gray-500: #78716c;
  --gray-600: #5c5752;
  --gray-700: #3d3935;
  --gray-800: #252320;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(10,31,53,0.06), 0 1px 2px rgba(10,31,53,0.04);
  --shadow-md: 0 4px 16px rgba(10,31,53,0.08), 0 2px 4px rgba(10,31,53,0.04);
  --shadow-lg: 0 12px 40px rgba(10,31,53,0.12), 0 4px 12px rgba(10,31,53,0.06);
  --shadow-xl: 0 24px 60px rgba(10,31,53,0.16);
  --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(--gray-700);
  background: var(--white);
  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;
  color: var(--navy-800);
  line-height: 1.2;
  font-weight: 700;
}

/* SECTION LABELS */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}

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

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
}

.section-subtitle--light {
  color: rgba(255,255,255,0.7);
}

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

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

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

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

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

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

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-outline-navy:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 31, 53, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold-500);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.logo-mark::before { left: 5px; }
.logo-mark::after { right: 5px; }

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.logo-accent {
  color: var(--gold-500);
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-menu li a:not(.btn) {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu li a:not(.btn):hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

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

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

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 31, 53, 0.92) 0%,
    rgba(15, 42, 74, 0.85) 40%,
    rgba(21, 58, 98, 0.75) 100%
  );
}

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

.hero-badge {
  display: inline-block;
  background: rgba(200, 164, 78, 0.15);
  border: 1px solid rgba(200, 164, 78, 0.3);
  color: var(--gold-400);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 580px;
}

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

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-500);
  flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(15, 42, 74, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy-700);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--navy-800);
  color: var(--gold-500);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 12px;
}

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

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

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

.why-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 640/720;
}

.why-content .section-intro {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 40px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.why-check svg {
  width: 14px;
  height: 14px;
  color: var(--navy-900);
}

.why-item strong {
  display: block;
  font-size: 1rem;
  color: var(--navy-800);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.why-item span {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  padding: 100px 0;
  background: var(--navy-900);
}

.reviews .section-label {
  color: var(--gold-500);
}

.reviews .section-subtitle {
  color: rgba(255,255,255,0.5);
}

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

.review-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}

.review-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(200, 164, 78, 0.3);
  transform: translateY(-4px);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--gold-500);
}

.review-stars svg {
  width: 18px;
  height: 18px;
}

.review-text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-400);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,164,78,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0 60px;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
}

.contact-info .section-intro {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 40px;
}

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

.contact-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--navy-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-row strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.contact-row p,
.contact-row a {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.contact-row a:hover {
  color: var(--gold-600);
}

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 28px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,164,78,0.12);
}

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

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

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(200, 164, 78, 0.08);
  border: 1px solid rgba(200, 164, 78, 0.25);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-success svg {
  width: 22px;
  height: 22px;
  color: var(--gold-600);
  flex-shrink: 0;
}

/* MAP */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-900);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  max-width: 360px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  width: 100%;
  text-align: center;
}

.footer-copy p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  line-height: 1.8;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

/* Default visible state for reduced-motion or no-JS */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

  .reviews-grid .review-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 31, 53, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu li a:not(.btn) {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-menu li .btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding: 140px 24px 80px;
  }

  .hero-trust {
    gap: 20px;
  }

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

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

  .why-image {
    order: -1;
  }

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

  .reviews-grid .review-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

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

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

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

  .footer-inner {
    gap: 24px;
  }
}

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

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

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

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