/* ══════════════════════════════════════════════════════════════
   Swift Auto Leasing — shared styles
   Loaded from every public page and the admin/portal shells.
   Page-specific CSS still lives inline in each HTML file.
   ══════════════════════════════════════════════════════════════ */

/* ══ RESET ════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #F7F7F7; color: #626464; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ══ CSS VARIABLES (superset across public pages) ════════════════════ */
:root {
  --blue:       #0096FF;
  --blue-mid:   #2B96FC;
  --blue-pale:  #DCF7FF;
  --blue-light: #F6F9FF;
  --blue-soft:  #EDF2FC;
  --blue-dark:  #0078CC;
  --gold:       #FCC153;
  --red:        #F05C5C;
  --green:      #2DBE8A;
  --text:       #626464;
  --text-dark:  #606060;
  --border:     #E5E5E5;
  --white:      #FFFFFF;
  --radius:     6px;
  --nav-h:      84px;
}

/* ══ SITE HEADER / NAV ════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  height: var(--nav-h);
}
.nav-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 64px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: 'Oswald', sans-serif; font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  padding: 6px 12px; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); background: var(--blue-light); }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Currency toggle */
.currency-toggle {
  display: flex; border: 1px solid #CBCBCB;
  border-radius: 20px; overflow: hidden;
}
.cur-btn {
  font-family: 'Oswald', sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; padding: 5px 13px;
  background: none; border: none; color: var(--text); cursor: pointer;
  transition: all .2s;
}
.cur-btn.active { background: var(--blue); color: var(--white); }

/* Phone number / tel: link */
.nav-phone {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Oswald', sans-serif; font-size: .85rem; font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--blue); background: var(--blue-light); }
.nav-phone svg { color: var(--blue); flex-shrink: 0; }

/* Portal-login button — circular */
.btn-portal {
  width: 46px; height: 46px; padding: 4px;
  background: var(--white);
  border: 2px solid var(--blue); color: var(--blue);
  border-radius: 50%;
  cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-portal:hover { background: var(--blue); color: var(--white); }
.btn-portal svg { width: 100%; height: 100%; transition: color .2s; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* Mobile menu drawer (currently used by index.html) */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 8px 24px 20px; z-index: 998;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; font-family: 'Oswald', sans-serif;
  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); padding: 11px 0; border-bottom: 1px solid #EDEDED;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .cur-row { display: flex; gap: 8px; padding: 14px 0; border-bottom: 1px solid #EDEDED; }

/* Responsive nav */
@media (max-width: 900px) {
  .nav-phone span { display: none; }
  .nav-phone { padding: 8px 10px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-logo img { height: 52px; }
}
@media (max-width: 440px) {
  .nav-phone { display: none; }
}

/* ══ Date input polish ═══════════════════════════════════════════════
   Softer border, rounder corners, subtle shadow + pointer cursor.
   The !important flags exist because each page has its own `.form-input`
   rule and we want the date-input treatment to win regardless of cascade. */
input[type="date"],
input.form-input[type="date"] {
  border: 1px solid #DDE4EE !important;
  border-radius: 14px !important;
  padding: 0 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 36, 0.04) !important;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .12s;
}
input[type="date"]:hover,
input.form-input[type="date"]:hover {
  border-color: #0096FF !important;
  box-shadow: 0 4px 12px rgba(0, 150, 255, 0.10) !important;
}
input[type="date"]:focus,
input.form-input[type="date"]:focus {
  outline: none;
  border-color: #0096FF !important;
  box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.12) !important;
}

/* Summary date-range pill on the reservation page uses borderless
   inputs inside a wrapper that owns the border — carve that out. */
.date-field input[type="date"],
.date-field input.form-input[type="date"] {
  border: none !important;
  border-radius: 0 !important;
  padding: 2px 0 !important;
  box-shadow: none !important;
}
.date-field input[type="date"]:hover,
.date-field input[type="date"]:focus {
  border: none !important;
  box-shadow: none !important;
}

/* Native picker indicator — tap target feedback */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}
