/* ═══════════════════════════════════════════
   header-footer.css
   Car Rental Solutions – Header & Footer Only
   Use on all pages alongside page-specific CSS.
   ═══════════════════════════════════════════ */

/* ─── BASE RESET (minimal, won't conflict with page styles) ─── */
:root {
  --color-primary: #114a7a;
  --color-primary-dark: #0b3658;
  --color-accent: #f39c12;
  --color-muted: #777777;
  --color-text: #333333;
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── HEADER & NAV ─── */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e4e8ee;
}

header.header-scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
}
.nav-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  color: #ffffff;
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 16px rgba(17, 74, 122, 0.25);
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-menu .nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 36px;
  padding: 0 10px;
  margin-left: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

/* ─── MOBILE NAV TOGGLE ─── */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d0d6df;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #ffffff;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-primary-dark);
  display: block;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-primary-dark);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ─── FOOTER ─── */
footer {
  background: #f5f5f5;
  padding: 18px 0;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer a { color: var(--color-muted); }
footer a:hover { color: var(--color-primary); text-decoration: underline; }

/* ─── RESPONSIVE — MOBILE NAV ─── */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 12px 16px 16px;
    border-bottom: 1px solid #e4e8ee;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
}