/* ===== Speed Motors Ltd. — base ===== */
:root {
  --black: #0a0a0a;
  --black-2: #121212;
  --black-3: #1a1a1a;
  --card: #151515;
  --line: #2a2a2a;
  --gold: #d4af37;
  --gold-2: #f4d97b;
  --gold-grad: linear-gradient(135deg, #f4d97b 0%, #d4af37 45%, #b8860b 100%);
  --silver: #cfcfcf;
  --text: #ececec;
  --muted: #a5a5a5;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 116px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: "Cinzel", Georgia, serif; line-height: 1.2; font-weight: 600; }

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--gold-grad);
  color: #1a1300;
  box-shadow: 0 10px 24px rgba(212, 175, 55, .28);
}
.btn--gold:hover { box-shadow: 0 14px 30px rgba(212, 175, 55, .42); }
.btn--outline { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn--outline:hover { background: rgba(212, 175, 55, .12); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--lg { padding: 15px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ===== Topbar ===== */
.topbar {
  background: var(--black-2);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.topbar__inner { display: flex; align-items: center; gap: 14px; padding: 9px 22px; flex-wrap: wrap; justify-content: center; }
.topbar__sep { color: var(--line); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 78px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.btn) { font-size: .95rem; color: var(--text); font-weight: 500; transition: color .2s; }
.nav > a:not(.btn):hover { color: var(--gold-2); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--gold-2); transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(212, 175, 55, .14), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #141414 60%, #0a0a0a 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero__content { position: relative; padding: 80px 22px; max-width: 760px; }
.hero__eyebrow {
  color: var(--gold-2);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 20px; }
.hero__sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__phones { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .95rem; }
.hero__phones a { color: var(--gold-2); font-weight: 600; }
.hero__phones span { color: var(--line); }

/* ===== Sections ===== */
.section { padding: 86px 0; }
.section--alt { background: var(--black-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__kicker { color: var(--gold-2); letter-spacing: 3px; text-transform: uppercase; font-size: .78rem; font-weight: 600; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 12px 0 14px; }
.section__lead { color: var(--muted); }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.05));
  border: 1px solid rgba(212,175,55,.35);
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.12rem; color: var(--gold-2); margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-card--cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.03));
  border-color: rgba(212,175,55,.4);
}
.service-card--cta h3 { color: var(--text); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text .section__title { margin-top: 10px; }
.about__list { list-style: none; margin: 20px 0 28px; display: grid; gap: 10px; }
.about__list li { position: relative; padding-left: 28px; color: var(--text); }
.about__list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-2); font-weight: 700; }
.about__card {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about__card h3 { color: var(--gold-2); margin-bottom: 18px; }

.contact-list { list-style: none; display: grid; gap: 14px; margin-bottom: 22px; }
.contact-list li { display: flex; flex-direction: column; font-size: .95rem; }
.contact-list li span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.contact-list li a { color: var(--gold-2); font-weight: 600; }
.contact-list--lg li { margin-bottom: 4px; }

/* ===== Why us ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.why-item { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.why-item__num { font-family: "Cinzel", serif; font-size: 2rem; color: rgba(212,175,55,.5); margin-bottom: 10px; }
.why-item h3 { font-size: 1.12rem; color: var(--gold-2); margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: .94rem; }

/* ===== Contact / form ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info p { color: var(--muted); margin: 14px 0 24px; }
.contact-info__phones { display: grid; gap: 12px; margin-bottom: 26px; }

.booking-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.booking-form h3 { color: var(--gold-2); margin-bottom: 20px; font-size: 1.3rem; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.field textarea { resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: #e2554c; }
.form-note { margin-top: 14px; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #5cd68a; }
.form-note.err { color: #e2554c; }

.map-wrap { margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { display: block; filter: grayscale(.3) contrast(1.05); }

/* ===== Footer ===== */
.footer { background: var(--black-2); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__brand img { height: 64px; margin-bottom: 12px; }
.footer__brand p { color: var(--gold-2); font-style: italic; font-size: .95rem; }
.footer__col h4 { color: var(--gold-2); font-size: 1rem; margin-bottom: 14px; }
.footer__col p { color: var(--muted); font-size: .92rem; }
.footer__col a:hover { color: var(--gold-2); }
.footer__bar { border-top: 1px solid var(--line); padding: 18px 0; }
.footer__bar .container { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); flex-wrap: wrap; gap: 8px; }
.footer__bar a:hover { color: var(--gold-2); }

/* ===== Floating call (mobile) ===== */
.fab-call {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: 1.5rem;
  background: var(--gold-grad);
  color: #1a1300;
  box-shadow: 0 10px 26px rgba(212,175,55,.45);
  z-index: 60;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,.5); }
  70% { box-shadow: 0 0 0 16px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(80vw, 320px);
    background: #0b0b0b;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 90px 28px 40px;
    gap: 18px;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .3s ease;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px rgba(0, 0, 0, .7);
    z-index: 105;
  }
  .nav.open { transform: translateX(0); }
  .nav > a:not(.btn) { font-size: 1.1rem; padding: 8px 0; color: #fff; font-weight: 600; }
  .nav > a:not(.btn):hover { color: var(--gold-2); }

  /* Dim overlay behind the menu */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 90;
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .nav .btn { width: 100%; }
  .brand__logo { height: 54px; }
  .nav-toggle { display: flex; z-index: 110; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .fab-call { display: grid; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { min-height: 80vh; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .booking-form { padding: 24px; }
  .brand__logo { height: 46px; }
  .topbar { display: none; }
}
