/* --------------------------------------------------
  Fonts & Theme Tokens (Global)
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Lightened theme tokens (same accent preserved) */
  --bg: #FBF8F6; /* page background */
  --ink: #1F1F1F; /* primary text */
  --ink-dim: #6F6B64; /* secondary text */
  --accent: #EB5E28; /* keep original accent */
  --charcoal: #403D39; /* neutral dark */
  --charcoal-50: rgba(64,61,57,0.12);
  --glass: rgba(16, 24, 32, 0.04); /* subtle translucent surface */
  --stroke: rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

/* --------------------------------------------------
  Base / Layout
-------------------------------------------------- */
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
    background: var(--bg); /* Make the page background the same dark theme color so translucent elements
       (like .ef-nav) blend correctly instead of showing white underneath. */
  }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* --------------------------------------------------
  Utilities
-------------------------------------------------- */
.glass {
  border: 2px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.link {
  color: var(--ink);
  text-decoration: none;
}
.link:hover { color: var(--accent); }

hr {
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 10px 0;
}

/* Pills / Chips */
.pill {
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--ink);
  background: rgba(255, 255, 255, .05);
}
.pill.ok { border-color: rgba(0, 0, 0, .2); }
.pill.filter { cursor: default; }

.chip {
  align-self: flex-start;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(235, 94, 40, 0.25);
  border: 1px solid rgba(235, 94, 40, 0.5);
}

.ok { color: #79ffb5; }
.muted { color: var(--ink-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: .25s ease;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--stroke);
}
.btn.ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn.accent {
  background: var(--accent);
  color: #fff;
}
.btn.accent:hover { 
  background: #fff;
  color:#EB5E28;
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* --------------------------------------------------
  Nav Bar
-------------------------------------------------- */
.ef-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(8px) brightness(90%);
  background: rgba(255,255,255,0.6);
  box-shadow: var(--shadow);
  margin: 20px 20px 0 20px; /* keep top/side spacing but remove bottom gap */
  position: sticky;
  top: 20px;
  z-index: 1000;
}

.nav-logo {
  height: 48px;
  width: auto;
  margin-right: 8px;
  padding: 8px;
  border-radius: 15px;
  background: var(--bg);
}

.ef-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--ink);
  text-decoration: none;
}

.ef-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}
.ef-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 500;
}
.ef-links a:hover, .ef-links a.active { color: var(--ink); }

.ef-cta { display: flex; gap: 10px; }

.mobile-cta {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  margin-left: auto;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--ink);
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------
  Footer & Logos
-------------------------------------------------- */
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 15px;
  background: var(--bg);
}

h1, h2, h3 { color: var(--accent); }

.ef-footer {
  text-align: center;
  color: var(--ink-dim);
  margin: 28px 0 8px 0;
  padding: 20px;
}
.ef-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.ef-footer a:hover { text-decoration: underline; }

/* --------------------------------------------------
  Responsive (shared)
-------------------------------------------------- */
@media (max-width: 900px) {
  .container { padding: 18px; }
}

@media (max-width: 768px) {
  .ef-nav {
    padding: 8px 16px;
    position: sticky;
    top: 0;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    z-index: 1001;
  }
  
  .ef-cta {
    display: none;
  }
  
  .hamburger {
    display: block;
  }

  .ef-links {
    position: fixed;
    left: -100vw;
    top: 80px;
    gap: 0;
    flex-direction: column;
    background-color: var(--bg);
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    border-top: 1px solid var(--stroke);
    margin-left: 0;
    z-index: 999;
    display: flex;
    visibility: hidden;
    opacity: 0;
  }

  .ef-links a {
    display: block;
    margin: 1rem 0;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    color: var(--ink);
  }

  .ef-links a:hover {
    color: var(--accent);
  }

  .ef-links.active {
    left: 0;
    visibility: visible;
    opacity: 1;
  }

  .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
    padding: 0 2rem;
  }

  .mobile-cta .btn {
    text-align: center;
    padding: 12px 20px;
  }
}

@media (max-width: 640px) {
  .ef-nav {
    padding: 8px 12px;
    position: sticky;
    top: 0;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    z-index: 1001;
  }
  
  .nav-logo {
    height: 40px;
  }
  
  .ef-logo {
    font-size: 1.1rem;
  }
  
  .ef-footer {
    margin: 20px 0 8px 0;
    padding: 16px;
    font-size: 14px;
  }
  
  .footer-logo {
    height: 32px;
  }
}
