/* ========================================
   Hyams Auto & Service — Brand Styles
   Deep Navy (#0C1D3A) + Warm Gold (#C89600)
   Playfair Display + Inter
   ======================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a2e;
  background: #FAFAF8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --navy:    #0C1D3A;
  --navy-lt: #162D50;
  --gold:    #C89600;
  --gold-lt: #E2B30A;
  --cream:   #FAFAF8;
  --cream-dk:#F0EDE6;
  --text:    #1a1a2e;
  --text-mute:#5a5a72;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(12,29,58,.08);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--text-mute); }

/* ---------- LAYOUT ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

.section__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section__title { margin-bottom: 16px; }
.section__lead  { font-size: 1.1rem; color: var(--text-mute); max-width: 560px; }
.section__header { text-align: center; margin-bottom: 64px; }
.section__header .section__lead { margin: 0 auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-lt); box-shadow: 0 8px 24px rgba(200,150,0,.35); }
.btn--outline-light {
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 18px 36px; font-size: 1rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,29,58,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav__name { font-size: 1.1rem; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__menu a:not(.nav__cta) {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav__menu a:not(.nav__cta):hover { color: #fff; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  transition: background .2s, transform .15s;
}
.nav__cta:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* Mobile toggle */
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__bar {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav__menu.open { max-height: 400px; padding: 24px 0; }
  .nav__menu a:not(.nav__cta) { padding: 14px 32px; display: block; }
  .nav__cta { margin: 8px 24px 16px; text-align: center; justify-content: center; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/3807811/pexels-photo-3807811.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280') center/cover no-repeat;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12,29,58,.92) 0%, rgba(12,29,58,.78) 50%, rgba(12,29,58,.88) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero__title {
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero__accent {
  color: var(--gold);
  font-style: italic;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  z-index: 2;
  color: rgba(255,255,255,.4);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ---------- SERVICES ---------- */
.services { background: var(--cream); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12,29,58,.05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(12,29,58,.12); }
.card__icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(200,150,0,.1);
  margin-bottom: 24px;
}
.card__title { margin-bottom: 12px; color: var(--navy); }
.card__body  { font-size: .95rem; line-height: 1.7; color: var(--text-mute); }

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ---------- ABOUT ---------- */
.about { background: #fff; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about__body {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-mute);
}
.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(12,29,58,.08);
}
.stat__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.stat__label {
  font-size: .82rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__image img { height: 320px; }
}

/* ---------- WHY US ---------- */
.why { background: var(--navy); color: #fff; }
.why .section__eyebrow { color: var(--gold); }
.why .section__title   { color: #fff; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.why__item { position: relative; padding-left: 72px; }
.why__num {
  position: absolute;
  left: 0; top: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(200,150,0,.3);
  line-height: 1;
}
.why__title {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 10px;
}
.why__body { font-size: .95rem; color: rgba(255,255,255,.65); line-height: 1.7; }

@media (max-width: 640px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* ---------- CONTACT ---------- */
.contact { background: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact__info { display: flex; flex-direction: column; }
.contact__lead { font-size: 1.05rem; margin-bottom: 36px; color: var(--text-mute); }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--text);
}
.contact__details a {
  color: var(--navy);
  font-weight: 500;
  transition: color .2s;
}
.contact__details a:hover { color: var(--gold); }
.contact__map { min-height: 400px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { min-height: 300px; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  padding: 56px 0 32px;
  color: rgba(255,255,255,.6);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer__tagline { font-size: .9rem; color: rgba(255,255,255,.5); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: .85rem;
}
.footer__bottom a { color: var(--gold); transition: color .2s; }
.footer__bottom a:hover { color: var(--gold-lt); }

/* ---------- SCROLL REVEAL (below fold only, progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fallback: ensure content visible even if JS is blocked */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 1; transform: none; }
}
