/* ═══════════════════════════════════════════════════════════
   Hilltop Automotive & Performance — Styles
   Palette: Forest Green #1B4332 · Off-White #F7F5F0 · Gold accent #C8A96E
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --green-dark:    #1B4332;
  --green-mid:     #2D6A4F;
  --green-light:   #40916C;
  --off-white:     #F7F5F0;
  --cream:         #EFEDE6;
  --gold:          #C8A96E;
  --gold-light:    #D4BA8A;
  --text-dark:     #1A1A1A;
  --text-mid:      #4A4A4A;
  --text-light:    #7A7A7A;
  --white:         #FFFFFF;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.7;
  -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 2rem;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.nav.scrolled .nav__logo {
  color: var(--green-dark);
}

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

.nav__logo-accent {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}

.nav.scrolled .nav__logo-accent {
  color: var(--green-mid);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a:not(.nav__cta) {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  position: relative;
}

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

.nav__links a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__links a:not(.nav__cta):hover {
  color: var(--white);
}

.nav.scrolled .nav__links a:not(.nav__cta) {
  color: var(--text-mid);
}

.nav.scrolled .nav__links a:not(.nav__cta):hover {
  color: var(--green-dark);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold) !important;
  text-transform: none !important;
  transition: color 0.3s !important;
}

.nav__cta::after {
  display: none !important;
}

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

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle-line {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav.scrolled .nav__toggle-line {
  background: var(--green-dark);
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle.active .nav__toggle-line:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active .nav__toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      var(--green-dark) 0%,
      #0D2818 30%,
      #1A3A2A 50%,
      var(--green-mid) 80%,
      var(--green-light) 100%
    );
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(200, 169, 110, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(64, 145, 108, 0.15) 0%, transparent 50%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/474/black-and-white-car-vehicle-vintage.jpg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: luminosity;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem 6rem;
  max-width: 800px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.hero__title-em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.3);
}

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

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

.btn--white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

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

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200, 169, 110, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ─── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 1rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-header__line {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* ─── SERVICES ─────────────────────────────────────────────── */
.services {
  padding: 7rem 0;
  background: var(--off-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(27, 67, 50, 0.06);
  transition: all 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27, 67, 50, 0.08);
  border-color: rgba(200, 169, 110, 0.2);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  font-weight: 300;
}

/* ─── ABOUT ────────────────────────────────────────────────── */
.about {
  padding: 7rem 0;
  background: var(--cream);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 16px;
}

.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: 12px;
  opacity: 0.2;
  z-index: -1;
}

.about__text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.about__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(27, 67, 50, 0.1);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-dark);
}

.about__stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.about__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(27, 67, 50, 0.15);
}

/* ─── WHY US ───────────────────────────────────────────────── */
.why {
  padding: 7rem 0;
  background: var(--off-white);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(27, 67, 50, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green-light));
  opacity: 0;
  transition: opacity 0.4s;
}

.why-card:hover::before {
  opacity: 1;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(27, 67, 50, 0.07);
}

.why-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--green-dark);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: 1rem;
}

.why-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.why-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

/* ─── CTA ──────────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0D2818 60%, var(--green-mid) 100%);
}

.cta__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(200, 169, 110, 0.1) 0%, transparent 60%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.cta__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CONTACT ──────────────────────────────────────────────── */
.contact {
  padding: 7rem 0;
  background: var(--cream);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact__detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--green-mid);
  border: 1px solid rgba(27, 67, 50, 0.08);
}

.contact__detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact__detail-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact__link {
  color: var(--green-mid);
  transition: color 0.3s;
}

.contact__link:hover {
  color: var(--green-dark);
}

.contact__map {
  margin-top: 2rem;
  overflow: hidden;
}

.contact__form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(27, 67, 50, 0.06);
}

.contact__form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.contact__form-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.08);
}

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

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

/* Success state */
.contact__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.contact__success svg {
  color: var(--green-mid);
}

.contact__success h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-dark);
}

.contact__success p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
}

.contact__form.hidden {
  display: none;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__logo {
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.footer__logo .nav__logo-accent {
  color: var(--gold) !important;
}

.footer__tagline {
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  font-weight: 300;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__phone,
.footer__email {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer__phone:hover,
.footer__email:hover {
  color: var(--gold);
}

.footer__address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  margin-top: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

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

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

  .about__inner {
    gap: 2.5rem;
  }

  .about__image img {
    height: 500px;
  }
}

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

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--green-dark);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a:not(.nav__cta) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
  }

  .nav__links a:not(.nav__cta):hover {
    color: var(--gold);
  }

  .hero__content {
    padding: 7rem 1.5rem 5rem;
  }

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

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

  .about__image {
    order: -1;
  }

  .about__image img {
    height: 400px;
  }

  .about__image-accent {
    display: none;
  }

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

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

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

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

  .hero__title {
    font-size: 2.4rem;
  }

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

  .service-card {
    padding: 1.75rem;
  }

  .contact__form-wrap {
    padding: 1.75rem;
  }
}
