/* ============================================================
   EasyCab V2.1 — navigation.css
   Layout primitives · Buttons · Sticky nav · Brand · Mobile menu
   ============================================================ */

/* ===== Layout primitive ===== */
.container { max-width: var(--container, 1240px); margin: 0 auto; padding: 0 32px; }

/* ===== Buttons (shared shell primitives) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
  transition: transform .25s var(--ease-out), background .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease);
  will-change: transform; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--green); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-green { background: var(--green); color: var(--paper); box-shadow: 0 10px 22px -14px rgba(26,74,53,.6); }
.btn-green:hover { background: var(--green-deep); box-shadow: 0 16px 30px -14px rgba(26,74,53,.7); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #cf4b14; }
.btn .arr {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); transition: transform .35s var(--ease-out);
}
.btn:hover .arr { transform: translate(2px,-1px) rotate(-45deg); }

/* ===== Link reset (match homepage — no default underlines) ===== */
.nav a, .mobile-nav a { text-decoration: none; color: inherit; }

/* ===== Nav shell ===== */
.nav-shell {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(245,242,236,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav-shell.scrolled {
  border-color: var(--line);
  background: rgba(245,242,236,.88);
}
.nav {
  height: 72px; display: flex;
  align-items: center; justify-content: space-between;
}

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-word {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; letter-spacing: -.02em; line-height: 1;
}
.brand-word .cab { font-style: italic; color: var(--green); }

/* ===== Desktop nav links ===== */
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 16px; color: var(--ink-2);
  position: relative; padding: 8px 0; letter-spacing: -.005em;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--green); }
.nav-links a[aria-current="page"]::after { background: var(--green); }

/* Dropdown marker */
.nav-links .has-drop { position: relative; }
.nav-links .has-drop > a { display: flex; align-items: center; gap: 5px; }
.nav-links .has-drop > a svg { width: 10px; height: 10px; transition: transform .25s; }
.nav-links .has-drop:hover > a svg { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px;
  min-width: 200px;
  box-shadow: 0 20px 44px -22px rgba(20,20,16,.28), 0 4px 12px -6px rgba(20,20,16,.1);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.nav-links .has-drop:hover .nav-drop {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Invisible hover bridge spanning the gap between the trigger and the panel,
   so the menu stays open while the cursor crosses down to a submenu item. */
.nav-drop::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: -16px; height: 18px;
}
.nav-drop a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-size: 14.5px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-drop a::after { display: none; }
.nav-drop a:hover { background: var(--paper-2); color: var(--ink); }

/* ===== Nav CTA ===== */
.nav-cta { display: inline-flex; align-items: center; gap: 10px; }

/* ===== Mobile menu button ===== */
.menu-btn {
  display: none; width: 44px; height: 44px;
  border-radius: 12px; background: var(--paper-2);
  border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Slide-out mobile drawer ===== */
.mobile-nav {
  position: fixed; inset: 0; z-index: 49;
  pointer-events: none;
}
.mobile-nav-overlay {
  position: absolute; inset: 0;
  background: rgba(20,20,16,.5);
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-nav-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 85vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open {
  pointer-events: auto;
}
.mobile-nav.open .mobile-nav-overlay { opacity: 1; }
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-nav-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
  transition: background .2s;
}
.mobile-nav-close:hover { background: var(--ink); color: var(--paper); }

.mobile-nav-links {
  padding: 16px 16px 8px; flex: 1;
}
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-radius: 12px;
  font-size: 18px; color: var(--ink); font-weight: 500;
  transition: background .2s, color .2s;
}
.mobile-nav-links a:hover,
.mobile-nav-links a[aria-current="page"] { background: var(--paper-2); color: var(--green); }
.mobile-nav-links a svg { width: 14px; height: 14px; opacity: .4; }

.mobile-nav-section-label {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 16px 12px 8px; display: block;
}

.mobile-nav-ctas {
  padding: 16px 16px 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.mobile-nav-ctas .btn { justify-content: center; height: 50px; font-size: 15px; }
.mobile-nav-ctas .btn-green { box-shadow: 0 14px 28px -14px rgba(26,74,53,.55); }

/* ===== Sticky bottom bar (mobile only) ===== */
.bottom-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 48;
  background: rgba(245,242,236,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.bottom-bar-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; max-width: 480px; margin: 0 auto;
}
.bb-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line);
  transition: background .2s, color .2s, transform .15s;
  min-height: 56px; justify-content: center;
}
.bb-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.bb-btn:active { transform: scale(.96); }
.bb-btn.bb-primary {
  background: var(--green); color: #fff; border-color: var(--green);
  box-shadow: 0 8px 20px -10px rgba(26,74,53,.6);
}
.bb-btn.bb-whatsapp {
  background: #25d366; color: #fff; border-color: #25d366;
}

/* ===== Dropdown — mega variant (Airports) ===== */
.nav-drop--airports {
  min-width: 580px;
  left: -16px;
  transform: translateX(0) translateY(-6px);
}
.nav-links .has-drop:hover .nav-drop--airports {
  transform: translateX(0) translateY(0);
  opacity: 1; pointer-events: auto;
}

/* Services dropdown — standard width, centered */
.nav-drop--services { min-width: 240px; }

/* Areas dropdown — right-aligned (last item in nav) */
.nav-drop--areas {
  left: auto; right: -8px;
  transform: translateX(0) translateY(-6px);
}
.nav-links .has-drop:hover .nav-drop--areas {
  transform: translateX(0) translateY(0);
  opacity: 1; pointer-events: auto;
}

/* Two-column layout for mega dropdown */
.drop-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px 0;
}
.drop-col { display: flex; flex-direction: column; }

/* Section label inside dropdown */
.drop-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 10px 14px 5px; display: block;
  pointer-events: none;
}

/* Separator line */
.drop-divider { height: 1px; background: var(--line); margin: 6px 8px; }

/* Item with icon + text block */
.nav-drop a.has-icon {
  display: flex; align-items: center; gap: 10px;
}
.drop-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--paper-2); display: grid; place-items: center;
  flex-shrink: 0; font-size: 16px; line-height: 1;
  transition: background .15s;
}
.nav-drop a.has-icon:hover .drop-icon { background: rgba(26,74,53,.12); }
.drop-item-text strong { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.drop-item-text small  { font-size: 11px; color: var(--muted); margin-top: 1px; display: block; }

/* Featured item — nationwide pages (green tinted) */
.nav-drop a.drop-featured {
  background: linear-gradient(135deg, rgba(26,74,53,.07), rgba(26,74,53,.03));
  border: 1px solid rgba(26,74,53,.15);
  color: var(--green); font-weight: 600;
  margin-bottom: 3px;
}
.nav-drop a.drop-featured:hover {
  background: var(--green); color: var(--paper); border-color: var(--green);
}
.nav-drop a.drop-featured:hover .drop-icon { background: rgba(245,242,236,.2); }
.nav-drop a.drop-featured .drop-item-text small { color: rgba(26,74,53,.65); }
.nav-drop a.drop-featured:hover .drop-item-text small { color: rgba(245,242,236,.7); }

/* ===== Mobile nav — accordion groups via <details>/<summary> ===== */
.mobile-nav-links details { border-radius: 12px; overflow: hidden; }
.mobile-nav-links details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-radius: 12px;
  font-size: 18px; color: var(--ink); font-weight: 500;
  list-style: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.mobile-nav-links details summary::-webkit-details-marker { display: none; }
.mobile-nav-links details summary:hover { background: var(--paper-2); }
.mobile-nav-links details[open] summary { background: var(--paper-2); color: var(--green); border-radius: 12px 12px 0 0; }
.mobile-summary-chevron {
  width: 16px; height: 16px; opacity: .4; flex-shrink: 0;
  transition: transform .25s var(--ease-out, ease);
}
.mobile-nav-links details[open] .mobile-summary-chevron { transform: rotate(180deg); opacity: .7; }
.mobile-nav-sub {
  padding: 4px 0 8px 12px;
  background: var(--paper-2); border-radius: 0 0 12px 12px;
}
.mobile-nav-sub a {
  font-size: 14.5px !important; font-weight: 400 !important;
  padding: 9px 12px !important; color: var(--ink-2) !important;
}
.mobile-nav-sub a:hover { color: var(--green) !important; }
.mobile-sub-label {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px 4px; display: block;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 480px) {
  .nav-cta .btn-ink { display: none; }
}

/* ============================================================
   Header CTA label fix — force the "Book a ride" text/arrow to
   stay readable (cream) regardless of any theme/global link colour.
   Button background still goes --ink → --green on hover.
   ============================================================ */
.nav-cta .btn-ink,
.nav-cta .btn-ink:link,
.nav-cta .btn-ink:visited,
.nav-cta .btn-ink:hover,
.nav-cta .btn-ink:focus { color: var(--paper) !important; }
.nav-cta .btn-ink .arr { color: var(--paper); }
.mobile-nav-ctas .btn-ink,
.mobile-nav-ctas .btn-ink:link,
.mobile-nav-ctas .btn-ink:visited { color: var(--paper) !important; }

/* ============================================================
   Custom cursor — shared across every page & booking form.
   (cursor.js creates .ec-cursor / .ec-cursor-ring; these styles
   were previously inline in index.html only.) Fine-pointer only.
   ============================================================ */
@media (hover:hover) and (pointer:fine){
  html,body{cursor:none;}
  a,button,.btn,.tab,.qa-summary,.faq-call,.faq-call-alt,.brand,.swap,.traffic-toggle,
  .nav-links a,.r-card,summary,[role="button"],[onclick]{cursor:none;}
  input,textarea,select,[contenteditable]{cursor:text;}
  input[type="checkbox"],input[type="radio"],input[type="submit"],input[type="button"]{cursor:none;}
  .ec-cursor,.ec-cursor-ring{
    position:fixed;top:0;left:0;z-index:9999;pointer-events:none;
    will-change:transform;mix-blend-mode:normal;
  }
  .ec-cursor{
    width:8px;height:8px;border-radius:50%;background:var(--orange);
    transform:translate(-50%,-50%);
    transition:width .25s var(--ease-out),height .25s var(--ease-out),
               background .25s var(--ease-out),opacity .2s;
  }
  .ec-cursor-ring{
    width:38px;height:38px;border-radius:50%;
    border:1.5px solid rgba(20,20,16,.4);
    transform:translate(-50%,-50%);
    transition:width .3s var(--ease-out),height .3s var(--ease-out),
               border-color .3s var(--ease-out),background .3s var(--ease-out),
               opacity .2s;
  }
  .ec-cursor.is-hover{ width:6px;height:6px;background:var(--orange);opacity:1; }
  .ec-cursor-ring.is-hover{
    width:60px;height:60px;background:transparent;
    border:2.5px solid var(--green);
    box-shadow:0 0 0 4px transparent,0 0 0 5.5px var(--ink),0 22px 44px -20px rgba(20,20,16,.35);
  }
  .ec-cursor-ring.is-hover.on-dark{
    border-color:var(--green);
    box-shadow:0 0 0 4px transparent,0 0 0 5.5px var(--paper),0 22px 44px -20px rgba(0,0,0,.5);
  }
  .cursor-zoomed{
    transform:translateY(-2px) scale(1.08) !important;
    transition:transform .35s var(--ease-out), box-shadow .35s var(--ease-out) !important;
    z-index:2;
  }
  .btn.cursor-zoomed{transform:translateY(-2px) scale(1.12) !important;}
  .btn-orange.cursor-zoomed{box-shadow:0 28px 56px -22px rgba(232,90,31,.6),0 10px 22px -10px rgba(232,90,31,.4) !important;}
  .btn-green.cursor-zoomed{box-shadow:0 28px 56px -22px rgba(26,74,53,.55),0 10px 22px -10px rgba(26,74,53,.35) !important;}
  .btn-ink.cursor-zoomed,.faq-call.cursor-zoomed{box-shadow:0 28px 56px -24px rgba(20,20,16,.5),0 10px 22px -10px rgba(20,20,16,.3) !important;}
  .r-card.cursor-zoomed,.field.cursor-zoomed,.brand.cursor-zoomed{transform:none !important;}
  .ec-cursor.is-text,.ec-cursor-ring.is-text{opacity:0;}
  .ec-cursor-ring.on-dark{border-color:rgba(245,242,236,.55);}
  .ec-cursor.on-dark{background:var(--orange);}
}
