/* ========================================
   On-Tyme Auto Repair — Brand Styles
   Deep Navy (#0a1f3f) + Warm Gold (#c8a44e)
   Playfair Display + Inter
======================================== */

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

:root {
  --navy: #0a1f3f;
  --navy-light: #132d54;
  --navy-dark: #061529;
  --gold: #c8a44e;
  --gold-light: #d4b76a;
  --gold-dark: #b08d3a;
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --text-light: #888888;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── Typography ── */
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}

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

.section__title--light,
.why-card__title {
  color: var(--white);
}

.section__title--light em,
.why-card__title em {
  color: var(--gold);
}

.section__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Labels / Eyebrows ── */
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.label--gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.label--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 78, 0.5);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
}

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

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

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

.btn--dark {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}

.btn--dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 31, 63, 0.35);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 31, 63, 0.97);
  padding: 14px 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav__logo-mark {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 8px;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

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

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.25s var(--ease-out);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  margin-left: 8px;
  transition: all 0.3s var(--ease-out);
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle-icon {
  color: var(--white);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 21, 41, 0.95);
  backdrop-filter: blur(12px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 41, 0.92) 0%,
    rgba(10, 31, 63, 0.85) 40%,
    rgba(10, 31, 63, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  max-width: 860px;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

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

.hero__sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 44px;
}

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

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

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

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

.services__header {
  text-align: center;
  margin-bottom: 72px;
}

.services__header .section__lead {
  margin: 0 auto;
}

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

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  border: 1px solid rgba(10, 31, 63, 0.08);
  transition: all 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10, 31, 63, 0.12);
  border-color: transparent;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

.about__image {
  position: relative;
}

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

.about__image-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 200px;
  height: 200px;
  background: var(--gold);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.3;
}

.about__content {
  max-width: 480px;
}

.about__body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__values {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--text-dark);
  font-weight: 500;
}

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

/* ── Why Us ── */
.why {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

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

.why__header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.why__header .section__lead {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.6);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px 40px;
  transition: all 0.4s var(--ease-out);
}

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

.why-card__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}

.why-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}

.why-card__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

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

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 41, 0.93) 0%,
    rgba(10, 31, 63, 0.88) 100%
  );
}

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

.cta__inner .label {
  margin-bottom: 24px;
}

.cta__headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.cta__body {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

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

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

.contact__info {
  max-width: 440px;
}

.contact__details {
  margin: 44px 0;
  display: grid;
  gap: 32px;
}

.contact__detail {
  display: flex;
  gap: 20px;
}

.contact__detail-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: 12px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact__detail-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact__detail-value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact__link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 31, 63, 0.2);
  transition: all 0.25s var(--ease-out);
}

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

.contact__form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid rgba(10, 31, 63, 0.08);
}

.contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.contact__form-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

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

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid rgba(10, 31, 63, 0.1);
  border-radius: 8px;
  outline: none;
  transition: all 0.25s var(--ease-out);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-light);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 164, 78, 0.12);
}

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

.form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 20px;
  background: rgba(200, 164, 78, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(200, 164, 78, 0.2);
}

.form__success svg {
  color: var(--gold-dark);
}

.form__success p {
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.form__success a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--navy);
  transition: color 0.2s;
}

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

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 6px;
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact a {
  color: var(--gold);
  transition: color 0.2s;
}

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

.footer__copyright {
  grid-column: 1 / -1;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copyright p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

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

  .about__inner {
    gap: 48px;
  }

  .contact__inner {
    gap: 48px;
  }
}

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

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 32px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 1000;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.0625rem;
    padding: 14px 16px;
  }

  .nav__cta {
    margin-left: 0;
    justify-content: center;
    margin-top: 16px;
    padding: 14px 20px;
  }

  .hero__content {
    padding: 120px 24px 100px;
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .services {
    padding: 80px 0;
  }

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

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

  .about {
    padding: 80px 0;
  }

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

  .about__image img {
    height: 360px;
  }

  .about__image-accent {
    width: 120px;
    height: 120px;
    bottom: -16px;
    right: -16px;
  }

  .why {
    padding: 80px 0;
  }

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

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

  .cta {
    padding: 80px 0;
  }

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

  .contact {
    padding: 80px 0;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__form-wrap {
    padding: 32px 24px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .section__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero__headline {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

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

  .why-card__number {
    font-size: 2.25rem;
  }

  .why-card__title {
    font-size: 1.25rem;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__scroll {
    animation: none;
  }
}
