/* ============================================
   Great Lakes Auto Service — Custom Styles
   ============================================ */

/* --- Base & Utilities --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
  border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid #34d399; outline-offset: 2px; }

.btn-primary {
  background: #065f46; color: #fefdf8; border-color: #065f46;
}
.btn-primary:hover {
  background: #047857; border-color: #047857;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,95,70,0.35);
}

.btn-outline {
  background: transparent; color: #065f46; border-color: #065f46;
}
.btn-outline:hover {
  background: #065f46; color: #fefdf8;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,95,70,0.25);
}

.btn-outline-light {
  background: transparent; color: #065f46; border-color: #065f46;
}
.btn-outline-light:hover {
  background: #065f46; color: #fefdf8;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,95,70,0.25);
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- Section Shared --- */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #047857; margin-bottom: 12px;
  background: #d1fae5; padding: 6px 14px; border-radius: 50px;
}
.section-tag--light { background: rgba(255,255,255,0.15); color: #a7f3d0; }

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 400;
  line-height: 1.15; color: #064e3b; margin-bottom: 16px;
}
.section-title--light { color: #fefdf8; }
.section-em { font-style: italic; color: #10b981; }
.section-em--light { color: #6ee7b7; }

.section-desc {
  font-size: 1.1rem; line-height: 1.7; color: #374151;
  max-width: 560px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin: 0 auto; }

/* --- Navigation --- */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(254,253,248,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6,95,70,0.08);
  transition: box-shadow 0.3s ease;
}
.nav-header.scrolled { box-shadow: 0 4px 30px rgba(6,95,70,0.1); }

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

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem; color: #064e3b; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-icon { color: #065f46; }
.nav-logo-text { font-weight: 400; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: #064e3b;
}

.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0;
}
.nav-link {
  padding: 8px 16px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 500; color: #374151; text-decoration: none;
  transition: all 0.2s;
}
.nav-link:hover { color: #065f46; background: #d1fae5; }

.nav-cta-btn {
  padding: 10px 22px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 600; color: #fefdf8; background: #065f46;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta-btn:hover { background: #047857; transform: translateY(-1px); }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #fefdf8 0%, #ecfdf5 50%, #d1fae5 100%);
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(16,185,129,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6,95,70,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 48px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,95,70,0.08); color: #047857;
  padding: 8px 18px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 24px;
}

.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400; line-height: 1.1; color: #064e3b;
  margin-bottom: 24px; max-width: 600px;
}
.hero-em { font-style: italic; color: #10b981; }

.hero-sub {
  font-size: 1.15rem; line-height: 1.75; color: #374151;
  max-width: 480px; margin-bottom: 36px;
}

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

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 500; color: #065f46;
}
.hero-trust-item svg { color: #10b981; flex-shrink: 0; }

/* Hero Image */
.hero-img-col { position: relative; }
.hero-img-wrapper {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 25px 60px rgba(6,95,70,0.2);
}
.hero-img {
  width: 100%; height: auto; display: block;
  border-radius: 24px;
}
.hero-img-accent {
  position: absolute; inset: 16px; border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.3); pointer-events: none;
}
.hero-floating-card {
  position: absolute; bottom: -20px; left: -20px;
  background: #065f46; color: #fefdf8; padding: 20px 24px;
  border-radius: 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 16px 40px rgba(6,95,70,0.4);
}
.hero-floating-stat {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.2rem; color: #6ee7b7; line-height: 1;
}
.hero-floating-label {
  font-size: 0.82rem; font-weight: 500; line-height: 1.4;
  opacity: 0.9; max-width: 90px;
}

/* --- Services --- */
.services {
  position: relative; background: #fefdf8;
  overflow: hidden;
}
.services-pattern {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #065f46, #10b981, #6ee7b7, #10b981, #065f46);
}

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

.service-card {
  background: #fefdf8; border: 1px solid #eae5d9;
  border-radius: 20px; padding: 32px 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  border-color: #a7f3d0; transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6,95,70,0.1);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: flex; align-items: center; justify-content: center;
  color: #065f46; margin-bottom: 20px;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }
.service-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem; color: #064e3b; margin-bottom: 10px;
}
.service-desc { font-size: 0.95rem; line-height: 1.7; color: #4b5563; }

/* --- About --- */
.about { background: #ecfdf5; overflow: hidden; }

.about-grid { display: grid; gap: 48px; align-items: center; }

.about-images { position: relative; }
.about-img-main { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(6,95,70,0.15); }
.about-img { width: 100%; height: auto; display: block; }
.about-img-secondary {
  position: absolute; bottom: -32px; right: -16px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(6,95,70,0.25);
  border: 4px solid #ecfdf5;
}
.about-img-secondary .about-img { width: 100%; height: auto; display: block; }
.about-img-accent-shape {
  position: absolute; top: -24px; left: -24px;
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  opacity: 0.5; z-index: -1;
}

.about-content .section-tag { margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }
.about-text {
  font-size: 1.05rem; line-height: 1.8; color: #374151; margin-bottom: 16px;
}
.about-stats {
  display: flex; align-items: center; gap: 20px;
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid rgba(6,95,70,0.12);
}
.about-stat { text-align: center; flex: 1; }
.about-stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem; color: #065f46;
}
.about-stat-label {
  font-size: 0.82rem; color: #6b7280; margin-top: 2px;
}
.about-stat-divider {
  width: 1px; height: 40px; background: rgba(6,95,70,0.15);
}

/* --- Why Us --- */
.why-us {
  position: relative; background: #065f46; overflow: hidden;
}
.why-us-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(110,231,183,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.why-us > div { position: relative; z-index: 1; }

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

.why-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 32px 28px;
  transition: all 0.35s;
}
.why-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.why-card-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3rem; color: rgba(110,231,183,0.25);
  line-height: 1; margin-bottom: 16px;
}
.why-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem; color: #fefdf8; margin-bottom: 10px;
}
.why-card-desc { font-size: 0.95rem; line-height: 1.7; color: rgba(254,253,248,0.75); }

/* --- Testimonials --- */
.testimonials { background: #fefdf8; }

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

.testimonial-card {
  background: #fefdf8; border: 1px solid #eae5d9;
  border-radius: 20px; padding: 32px 28px;
  transition: all 0.35s; position: relative;
}
.testimonial-card:hover {
  border-color: #a7f3d0; transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6,95,70,0.08);
}
.testimonial-quote {
  color: #a7f3d0; margin-bottom: 16px;
}
.testimonial-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem; font-style: italic;
  line-height: 1.75; color: #374151; margin-bottom: 24px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-author-avatar { color: #065f46; opacity: 0.6; }
.testimonial-author-name {
  font-weight: 600; font-size: 0.95rem; color: #064e3b;
}
.testimonial-author-location { font-size: 0.82rem; color: #6b7280; }

/* --- CTA --- */
.cta {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  padding: 80px 0;
}
.cta-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(6,95,70,0.1); color: #065f46;
  margin-bottom: 24px;
}
.cta-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 400;
  color: #064e3b; margin-bottom: 16px;
}
.cta-em { font-style: italic; color: #10b981; }
.cta-desc {
  font-size: 1.1rem; line-height: 1.7; color: #374151;
  max-width: 500px; margin: 0 auto 36px;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* --- Contact --- */
.contact { background: #ecfdf5; }

.contact-grid { display: grid; gap: 48px; align-items: start; }

.contact-desc {
  font-size: 1.05rem; line-height: 1.75; color: #374151;
  margin-bottom: 32px;
}

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

.contact-detail {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-detail-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(6,95,70,0.08); display: flex;
  align-items: center; justify-content: center;
  color: #065f46; flex-shrink: 0;
}
.contact-detail-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6b7280; margin-bottom: 4px;
}
.contact-detail-value {
  font-size: 1rem; line-height: 1.6; color: #064e3b;
  text-decoration: none; transition: color 0.2s;
}
.contact-detail-value:hover { color: #10b981; }

.contact-map { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(6,95,70,0.1); }

/* Contact Form */
.contact-form-wrap { }
.contact-form-card {
  background: #fefdf8; border: 1px solid #eae5d9;
  border-radius: 24px; padding: 40px 36px;
  box-shadow: 0 16px 50px rgba(6,95,70,0.08);
}
.contact-form-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem; color: #064e3b; margin-bottom: 8px;
}
.contact-form-desc {
  font-size: 0.95rem; color: #6b7280; margin-bottom: 28px;
}

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

.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid #eae5d9; background: #faf9f6;
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  color: #064e3b; transition: all 0.2s;
}
.form-input:focus {
  outline: none; border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
  background: #fff;
}
.form-input::placeholder { color: #9ca3af; }
.form-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.form-textarea { resize: vertical; min-height: 100px; }

.contact-success {
  text-align: center; padding: 40px 20px;
  color: #065f46;
}
.contact-success svg { color: #10b981; margin-bottom: 16px; }
.contact-success-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem; margin-bottom: 8px;
}
.contact-success-text { color: #6b7280; font-size: 0.95rem; }

/* --- Footer --- */
.footer { background: #022c22; color: rgba(254,253,248,0.7); }

.footer-grid { display: grid; gap: 32px; }
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem; color: #fefdf8; text-decoration: none;
  margin-bottom: 12px;
}
.footer-logo:hover { opacity: 0.85; }
.footer-logo-icon { color: #6ee7b7; }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; }

.footer-heading {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6ee7b7; margin-bottom: 16px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: rgba(254,253,248,0.65);
  text-decoration: none; transition: color 0.2s;
}
.footer-link:hover { color: #6ee7b7; }
.footer-link svg { flex-shrink: 0; opacity: 0.7; }

.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 12px;
}
.footer-copyright { font-size: 0.85rem; color: rgba(254,253,248,0.45); }
.footer-location { font-size: 0.82rem; color: rgba(254,253,248,0.35); }

/* --- 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.revealed { 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; }

/* --- Mobile Navigation --- */
@media (max-width: 767px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(254,253,248,0.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 24px;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 12px 24px; }
  .nav-cta-btn { margin-top: 8px; }
}

/* --- Responsive --- */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-col { order: 2; }
  .hero-text-col { order: 1; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text-col { grid-column: span 7; }
  .hero-img-col { grid-column: span 5; }
}

@media (max-width: 767px) {
  .hero { padding-top: 72px; padding-bottom: 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-floating-card { bottom: -12px; left: 12px; padding: 14px 18px; }
  .hero-floating-stat { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-img-secondary { bottom: -20px; right: -8px; }
  .about-img-accent-shape { width: 80px; height: 80px; top: -16px; left: -16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-col { order: 2; margin-top: 32px; }
  .hero-text-col { order: 1; }
}
