/* =====================================================
   GLOBAL RESET & THEME VARIABLES
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

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

body[data-theme="light"] {
  --bg: #ffffff;
  --text: #0f172a;
  --primary: #0B5F16;
  --secondary: #22c55e;
  --dark: #020617;
  --footer-bg: #020617;
  --footer-text: #cbd5f5;
}

body[data-theme="dark"] {
  --bg: #020617;
  --text: #e5e7eb;
  --primary: #15803d;
  --secondary: #22c55e;
  --dark: #020617;
  --footer-bg: #01040a;
  --footer-text: #cbd5f5;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
  background: #000;
  color: #e5e7eb;
  display: flex;
  justify-content: space-between;
  padding: 8px 32px;
  font-size: 13px;
}

.top-bar a { color: #38bdf8; }

.top-bar span {
  margin: 0 10px;
  color: #475569;
}

.theme-toggle {
  margin-left: 16px;
  background: none;
  border: none;
  color: #facc15;
  font-size: 16px;
  cursor: pointer;
}

/* =====================================================
   HEADER
===================================================== */

.main-header {
  background: linear-gradient(135deg, #0B5F16, #064e3b);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo img { height: 52px; }

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

.nav a {
  color: #ffffff;
  font-weight: 500;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  background: #ffffff;
  color: #0f172a;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  overflow: hidden;
  z-index: 9999;
}

.dropdown-menu a {
  padding: 12px 16px;
  display: block;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-contact {
  background: var(--secondary);
  color: #022c22;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
}

.call {
  color: #ffffff;
  font-size: 14px;
}

/* =====================================================
   MOBILE HEADER
===================================================== */

.mobile-menu-btn {
  display: none;
  font-size: 22px;
  color: #ffffff;
  cursor: pointer;
}

/* =====================================================
   FOOTER (FIXED & THEME AWARE)
===================================================== */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 50px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 0 40px 40px;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 14px;
  font-size: 16px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--footer-text);
}

.footer-col a:hover {
  color: var(--secondary);
}

.social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--secondary);
  color: #022c22;
  margin-right: 8px;
}

.newsletter {
  display: flex;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  padding: 10px;
  border-radius: 30px 0 0 30px;
  border: none;
}

.newsletter button {
  padding: 10px 18px;
  background: var(--secondary);
  border: none;
  border-radius: 0 30px 30px 0;
  font-weight: 600;
}

.contact-box {
  margin-top: 14px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

  .nav {
    display: none;
    flex-direction: column;
    background: var(--dark);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
  }

  .nav.show { display: flex; }

  .dropdown-menu {
    position: static;
    background: var(--dark);
    box-shadow: none;
  }

  .dropdown-menu a { color: #e5e7eb; }

  .header-actions { display: none; }

  .mobile-menu-btn { display: block; }

  .top-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
/* ================= FOOTER LOGO FIX ================= */
.footer-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 14px;
}

/* ================= DROPDOWN FIX ================= */

.dropdown {
  position: relative;
}

/* Dropdown menu box */
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 220px;

  background: var(--card-bg, #ffffff);
  color: var(--text-color, #111);

  border-radius: 12px;
  padding: 10px 0;

  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  z-index: 9999;

  display: none;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(0,128,0,0.08);
  color: #0B5F16;
}

/* ================= DARK MODE ================= */
body.dark .dropdown-menu {
  background: #020617;
  color: #e5e7eb;
}

body.dark .dropdown-menu a:hover {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}

/* ================= HEADER OVERFLOW FIX ================= */
.main-header,
.header,
nav {
  overflow: visible !important;
}
/* MAP */
.footer iframe{
  width:100%;
  height:180px;
  border-radius:12px;
  border:none;
}

/* FIX DROPDOWN VISIBILITY */
.dropdown-menu{
  background: var(--card);
  z-index: 9999;
}

/* DARK/LIGHT SUPPORT */
body[data-theme="dark"]{
  background:#0b1220;
  color:#e5e7eb;
}
body[data-theme="light"]{
  background:#f8fafc;
  color:#111827;
}
/* ================= TRACK MODAL ================= */

.track-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.track-modal-overlay.show{
  opacity: 1;
  pointer-events: auto;
}

.track-modal{
  background: linear-gradient(145deg,#0b1220,#020617);
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.6);
  position: relative;
  color: #e5e7eb;
  animation: modalPop .3s ease;
}

@keyframes modalPop{
  from{transform: scale(.92); opacity:0}
  to{transform: scale(1); opacity:1}
}

.track-modal h3{
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-close{
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
}

.track-close:hover{
  color: #fff;
}

/* OPTIONS */
.track-options{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.track-card{
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: #e5e7eb;
  text-decoration: none;
  transition: all .25s ease;
  border: 1px solid rgba(255,255,255,.08);
}

.track-card i{
  font-size: 34px;
  margin-bottom: 10px;
}

.track-card span{
  display: block;
  font-weight: 600;
  margin-top: 6px;
}

.track-card.applicant{
  color: #38bdf8;
}
.track-card.agent{
  color: #34d399;
}

.track-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
}

/* MOBILE */
@media(max-width:520px){
  .track-options{
    grid-template-columns:1fr;
  }
}
