/* MEXX CARS - Shared Global Styles */

:root {
  --bg: #000000;
  --bg-light: #05060a;
  --accent: #11e5fe;
  --accent-soft: rgba(17, 229, 254, 0.18);
  --text: #ffffff;
  --muted: #ffffff;
  --border: #1b1e24;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.6);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--accent) 0, #05060a 45%, #000 100%);
  background-size: 100% 100vh;
  background-repeat: no-repeat;
  background-color: #000000;
  color: var(--text);
  line-height: 1.6;
}

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

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

.page {
  min-height: 100vh;
  color: var(--text);
}

/* ===== HEADER / NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.65));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 172px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
}

.brand-text-main {
  min-width: 125px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  text-align: center;
}

nav a {
  padding: 0.3rem 0;
  position: relative;
  color: var(--muted);
  transition: color 0.18s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  transition: width 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  font-size: 0.8rem;
  text-align: right;
  color: var(--muted);
  line-height: 1.2;
}

.nav-phone strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== BUTTONS ===== */
.btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffffff);
  color: #000000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* ===== MAIN LAYOUT ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title span {
  background: linear-gradient(90deg, var(--accent), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  color: var(--muted);
  max-width: 620px;
  font-size: 0.95rem;
}

.section-subtitle strong {
  font-weight: 700;
}

/* ===== CARDS & GRIDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.card {
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card p,
.card ul {
  font-size: 0.9rem;
  color: var(--muted);
}

.card ul {
  list-style: none;
  margin-top: 0.35rem;
}

.card ul li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--accent);
}

.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(17, 229, 254, 0.9);
  margin-top: 0.1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

/* ===== FOOTER ===== */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
}

/* ===== FORMS ===== */
form {
  display: grid;
  gap: 0.8rem;
  font-size: 0.9rem;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

textarea {
  border-radius: 16px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(17, 229, 254, 0.7);
  background: rgba(0, 0, 0, 0.85);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  /* Show a stacked nav on smaller screens instead of hiding it */
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-align: center;
    /* mobile collapse: start closed (max-height 0) and expand when header has .nav-open */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  main,
  .nav-inner {
    padding-inline: 1rem;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Toggle state: when header has .nav-open, show the stacked nav */
header.nav-open nav {
  max-height: 420px;
  /* enough to show links; adjust if you add more links */
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  /* shown only on mobile via media query */
  background: transparent;
  border: none;
  padding: 0.4rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle .hamburger {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-toggle .hamburger::before {
  top: -7px;
}

.nav-toggle .hamburger::after {
  top: 7px;
}

/* show toggle on small screens */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text);
  }

  /* ensure nav-cta appears below nav when expanded */
  .nav-cta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
  }
}

@media (max-width: 600px) {
  main {
    padding-inline: 1rem;
  }

  .nav-inner {
    padding-inline: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}