/* Inner-page chrome for /flotte/* and 404. Header stays in document flow. */

:root {
  --yellow: #ffd100;
  --yellow-soft: #ffe566;
  --black: #0a0a0a;
  --charcoal: #141414;
  --steel: #1c1c1e;
  --muted: #9a9aa3;
  --text: #f2f2f4;
  --radius: 14px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 209, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: 0;
  min-height: 0;
}

@media (min-width: 720px) { .nav { gap: 1.5rem; } }

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  padding: 0.45rem 0;
}

.logo-link img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(168px, 44vw);
  object-fit: contain;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 720px) {
  .logo-link img { height: 64px; max-width: 210px; }
}

@media (min-width: 1100px) {
  .logo-link img { height: 72px; max-width: 236px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a { color: var(--text); opacity: 0.9; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-soft); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

.btn-phone-icon { flex-shrink: 0; display: block; }

.nav-phone-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  flex-shrink: 0;
}

.nav-phone-only svg { display: block; }
.nav-phone-only:hover { background: var(--yellow-soft); }

@media (min-width: 900px) { .nav-phone-only { display: none; } }
@media (max-width: 899px) { .nav-cta { display: none; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 209, 0, 0.3);
  border-radius: 10px;
  background: var(--steel);
  color: var(--yellow);
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0;
}

.menu-toggle svg { display: block; }

@media (min-width: 900px) {
  .nav-links, .nav-actions { display: flex; }
  .menu-toggle { display: none; }
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  padding: 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 209, 0, 0.2);
  gap: 1rem;
}

main { flex: 1; }

/* First screen is header + vehicle; footer sits below the fold until you scroll. */
body:has(.fleet-detail) {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

body:has(.fleet-detail) main {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: calc(100dvh - var(--fleet-chrome, 88px));
  min-height: calc(100dvh - var(--fleet-chrome, 88px));
  max-height: calc(100dvh - var(--fleet-chrome, 88px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 1.75rem;
}

body:has(.fleet-detail) main > .container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.brand-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0%, #fff3a0 40%, var(--yellow) 100%);
}

.fleet-notfound {
  padding: 3rem 0 5rem;
}

.fleet-notfound h1 {
  font-family: Oswald, Inter, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.fleet-notfound p { color: var(--muted); max-width: 32rem; margin-bottom: 1rem; }
.fleet-notfound a { color: var(--yellow); font-weight: 700; }
