/* ============================================
   Sonic Lube — Auto Repair Website
   Clean Minimalist · Deep Navy + Warm Gold
   ============================================ */

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

:root {
  --navy: #0C1B33;
  --navy-light: #152A4A;
  --navy-dark: #081322;
  --gold: #C8A44E;
  --gold-light: #D4B96E;
  --gold-pale: #F5E6B8;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --cream: #FDFCFA;
  --gray-50: #FAFAF8;
  --gray-100: #F0EFEC;
  --gray-200: #E2E0DA;
  --gray-300: #C8C5BC;
  --gray-400: #9E9B91;
  --gray-500: #7A776D;
  --gray-600: #5C5950;
  --gray-700: #3D3A33;
  --gray-800: #2A2720;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--gray-700);
  background: var(--cream);
  line-height: 1.7;
  font-size: 15px;
  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, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gold-italic {
  color: var(--gold);
  font-style: italic;
}

/* SECTION LABELS */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.8;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 164, 78, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

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

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

.btn-lg {
  padding: 16px 36px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(12, 27, 51, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.4s var(--ease-out);
}

.site-header.scrolled .container {
  height: 64px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.85;
}

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

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

/* NAV */
.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
  position: relative;
}

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

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

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

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold) !important;
  font-weight: 500;
}

.nav-phone:hover {
  color: var(--gold-light) !important;
}

.nav-phone::after {
  display: none;
}

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

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

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

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  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;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 19, 34, 0.72) 0%,
    rgba(12, 27, 51, 0.65) 50%,
    rgba(8, 19, 34, 0.82) 100%
  );
}

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

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 300;
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  animation: float 2.5s ease-in-out infinite;
}

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

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

.services .container {
  text-align: center;
}

.services .section-desc {
  margin: 0 auto 72px;
}

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

.service-card {
  background: var(--white);
  padding: 48px 36px;
  text-align: left;
  transition: all 0.4s var(--ease-out);
  position: relative;
  border: 1px solid var(--gray-100);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(12, 27, 51, 0.08);
}

.service-card:hover .service-icon {
  color: var(--gold);
  transform: scale(1.05);
}

.service-icon {
  color: var(--navy);
  margin-bottom: 24px;
  transition: all 0.4s var(--ease-out);
}

.service-name {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 400;
}

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

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

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 78, 0.06);
  pointer-events: none;
}

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

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: 4px;
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.4;
}

.about-content .section-label {
  color: var(--gold);
}

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

.about-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

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

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

.why-us-content .section-title {
  margin-bottom: 40px;
}

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

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-list-marker {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-list span {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.why-list strong {
  color: var(--navy);
  font-weight: 500;
}

.why-us-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.why-us-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 4px;
}

.why-us-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 164, 78, 0.15);
  border-radius: 4px;
  pointer-events: none;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.3;
}

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

.cta-text {
  flex: 1;
}

.cta-headline {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 300;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

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

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

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

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

.contact-desc {
  color: var(--gray-500);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

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

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

.contact-item-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.6;
}

.contact-link {
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--gold);
}

.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

/* CONTACT FORM */
.contact-form-wrap {
  background: var(--white);
  padding: 48px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
  font-weight: 400;
}

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

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  outline: none;
  transition: all 0.3s;
  -webkit-appearance: none;
}

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

.form-input::placeholder {
  color: var(--gray-300);
}

.form-select {
  cursor: pointer;
  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='%239E9B91' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.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.2);
  border-radius: 4px;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-success svg {
  color: var(--gold);
  flex-shrink: 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 260px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s;
}

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

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-link {
  color: var(--gold);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s 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) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(8, 19, 34, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
    z-index: 999;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
  }

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

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

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

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

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

  .services {
    padding: 80px 0;
  }

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

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

  .about {
    padding: 80px 0;
  }

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

  .about-image-wrap img {
    height: 320px;
  }

  .about-stats {
    gap: 24px;
  }

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

  .why-us-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-us-image img {
    height: 360px;
  }

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

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

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .contact {
    padding: 80px 0;
  }

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

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

  .hero-content {
    padding-top: 60px;
  }

  .section-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

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

  .stat-divider {
    display: none;
  }
}
