/* ==========================================================================
   Ultimate Motorsport Dubai — Shared Stylesheet
   Brand: Navy blue primary, orange (#FDB903) accent, grey neutrals
   ========================================================================== */

:root {
  --navy-900: #050e1f;
  --navy-800: #0a1a33;
  --navy-700: #0f2647;
  --navy-600: #16345e;
  --blue-500: #1e4fa3;
  --blue-400: #2f68c9;
  --orange: #fdb903;
  --orange-dark: #d99a00;
  --grey-900: #1a1d22;
  --grey-700: #454a52;
  --grey-500: #767c86;
  --grey-300: #c6cad0;
  --grey-100: #eef0f3;
  --white: #ffffff;

  --font: 'Nirmala UI', 'Segoe UI', 'Segoe UI Semibold', system-ui, -apple-system,
    'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-md: 0 12px 32px rgba(5, 14, 31, 0.16);
  --shadow-sm: 0 4px 14px rgba(5, 14, 31, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--grey-700); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--orange);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--grey-700);
  max-width: 640px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-100);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--orange);
  color: var(--navy-900);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta .btn { padding: 11px 22px; font-size: 0.82rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-900);
  margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-500) 130%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: linear-gradient(135deg, transparent 40%, rgba(253,185,3,0.12) 41%, rgba(253,185,3,0.12) 44%, transparent 45%),
              linear-gradient(135deg, transparent 55%, rgba(255,255,255,0.06) 56%, rgba(255,255,255,0.06) 58%, transparent 59%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; }

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero .lede { color: rgba(255,255,255,0.82); font-size: 1.2rem; }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 620px;
}

.hero-stats .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Page header (non-home hero) ---- */
.page-header {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 76px 0 64px;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header .lede { color: rgba(255,255,255,0.8); }

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--grey-100); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.75); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* ---- Grids / Cards ---- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy-900);
  color: var(--orange);
  font-weight: 800;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 1rem;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--grey-700);
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--orange);
}

.section-navy .feature-list li { color: rgba(255,255,255,0.85); }

/* ---- Split (image/text) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.panel {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 380px;
  background: linear-gradient(150deg, var(--navy-700), var(--blue-500));
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: var(--white);
}
.panel-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--orange);
}

/* ---- Stat strip ---- */
.stat-strip {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0;
}
.stat-strip .grid { text-align: center; }
.stat-strip .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}
.stat-strip .stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--blue-500));
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.82); margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---- Tables (packages) ---- */
.table-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
table.compare th, table.compare td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey-100);
  text-align: left;
  font-size: 0.95rem;
}
table.compare th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
table.compare tr:last-child td { border-bottom: none; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3 { color: var(--white); }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-item .icon {
  width: 38px; height: 38px;
  flex: none;
  background: var(--orange);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
}
.contact-item a, .contact-item span { color: rgba(255,255,255,0.9); font-weight: 600; }

form.enquiry {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
form.enquiry label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  margin-bottom: 8px;
}
form.enquiry .field { margin-bottom: 20px; }
form.enquiry input,
form.enquiry select,
form.enquiry textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--grey-900);
  background: var(--white);
}
form.enquiry input:focus,
form.enquiry select:focus,
form.enquiry textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}
form.enquiry textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid img { height: 40px; margin-bottom: 14px; }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline-hide { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 10px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 88px 0 70px; }
  .hero-stats { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-md);
  }
}
