/* ---------- Mobile-first, clean, light theme ---------- */
:root{
  --bg:#ffffff;
  --muted:#6b7280;
  --text:#0f172a;
  --primary:#ec4846; /* gold */
  --accent:#0b84ff; /* bright accent */
  --card:#f8fafc;
  --glass: rgba(255,255,255,0.6);
  --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
}

.container{width:100%;max-width:1120px;margin:0 auto;padding:0 18px}

/* ---------- HEADER / NAVIGATION ---------- */
header {
  padding: 1rem;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(12,15,22,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  height: 25px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* ---------- HAMBURGER MENU ---------- */
.menu-toggle {
  display: none; /* Hidden by default, shown on mobile */
  flex-direction: column;
  justify-content: space-around;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: relative;
}

/* Show hamburger on mobile */
@media(max-width:639px){
  .menu-toggle {
    display: flex;
  }
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Sidebar */
.mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  flex-direction: column;
  overflow-y: auto;
}

/* Show mobile menu on mobile only */
@media(max-width:639px){
  .mobile-menu {
    display: flex;
  }
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(12,15,22,0.04);
}

.mobile-logo {
  height: 25px;
}

.menu-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.menu-close:hover {
  background: var(--card);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--card);
  color: var(--primary);
  border-left-color: var(--primary);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(12,15,22,0.04);
}

.mobile-menu-footer .mobile-nav-link {
  font-size: 0.9rem;
  color: var(--muted);
}

.mobile-menu-footer .mobile-nav-link:hover {
  color: var(--primary);
}

/* Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show overlay on mobile only */
@media(max-width:639px){
  .mobile-menu-overlay {
    display: block;
  }
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop navigation */
@media(min-width:640px){
  .nav-links {
    display: flex;
  }
  
  /* Force hide mobile menu elements on desktop */
  .menu-toggle,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ---------- FOOTER ---------- */
footer{
  padding:28px 18px;
  background:#061726;
  color:var(--glass);
  text-align:center;
}
footer p{
  color:rgba(255,255,255,0.88);
  margin:8px 0;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color:rgba(255,255,255,0.88);
  text-decoration:none;
  margin:0 8px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------- UTILITY CLASSES ---------- */
.muted{color:var(--muted);font-size:14px}

/* subtle appear animation */
.fade-up{transform:translateY(6px);opacity:0;animation:fadeUp .7s cubic-bezier(.2,.9,.3,1) forwards}
@keyframes fadeUp{to{transform:none;opacity:1}}

