/* =======================
   NAVBAR
======================= */
:root {
  --primary: #7a1515;
  --primary-dark: #5f1010;
  --primary-light: #a52626;
  --accent: #c9b800;
  --gold: #c9a84c;
  --text-main: #1a1a1a;
  --text-muted: #6b5555;
  --text-hint: #9a6060;
  --bg-light: #f7f3f0;
  --bg-white: #ffffff;
  --bg-surface: #fdf5f5;
  --bg-input: #fafafa;
  --border-light: #e8dede;
  --border-mid: #d4bcbc;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --shadow-sm: 0 1px 3px rgba(120, 30, 30, 0.06);
  --shadow-md: 0 4px 14px rgba(120, 30, 30, 0.09);
  --shadow-lg: 0 8px 24px rgba(120, 30, 30, 0.13);
}

/* =======================
   NAVBAR (GLASS + STABLE)
======================= */
.navbar {
  display: flex;
  align-items: center;
  gap: 25px;

  padding: 15px 40px;
  box-sizing: border-box;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  width: 100%;
  max-width: 100vw;

  /* glass effect */
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);

  box-shadow: 0 10px 28px rgba(0,0,0,0.10);

  flex-wrap: wrap;

  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* =======================
   LOGO
======================= */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 55px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.main-text {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
}

.sub-text {
  font-size: 12px;
  color: var(--primary);
}

/* =======================
   NAV LINKS (FIXED UNDERLINE)
======================= */
.navbar nav {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 10px 18px;
  flex: 1;
}

.navbar nav a {
  text-decoration: none;
  color: rgba(0,0,0,0.65);
  font-size: 14px;
  font-weight: 500;

  white-space: nowrap;

  display: inline-flex;
  align-items: center;

  position: relative;

  padding: 6px 0;
}

/* underline (stable, no jump) */
.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  background: var(--primary);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.25s ease;
  opacity: 0;
}

.navbar nav a:hover {
  color: var(--primary);
}

.navbar nav a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* =======================
   DROPDOWN (GLASS + STABLE)
======================= */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* hidden but smooth (NO FLICKER FIX) */
.dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;

  position: absolute;
  top: 100%;
  left: 0;

  min-width: 120px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);

  box-shadow: 0 12px 28px rgba(0,0,0,0.12);

  padding: 6px 10px;

  transition: all 0.2s ease;
  z-index: 999;
}

/* show dropdown */
.nav-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* dropdown links */
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  text-decoration: none;
  transition: 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary);
}

/* =======================
   SUBMENU (NESTED)
======================= */
.nav-dropdown .dropdown-menu .nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu .nav-dropdown > .dropdown-menu {
  top: 0;
  left: 100%;
  
}

/* =======================
   ARROW FOR SUBMENU
======================= */
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* arrow indicator */
.nav-dropdown > a::before {
  content: "▾";
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.2s ease;
}

/* rotate on hover */
.nav-dropdown:hover > a::before {
  transform: rotate(180deg);
}

/* =======================
   BUTTON
======================= */
.nav-actions button {
  background: #711616;
  color: #fff;

  border: none;
  padding: 10px 20px;
  cursor: pointer;

  border-radius: 20px 0 20px 0;
  font-weight: 600;

  box-shadow: 0 8px 18px rgba(0,0,0,0.15);

  transition: 0.25s ease;
}

.nav-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

/* =======================
   HAMBURGER
======================= */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-top: -55px;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background: var(--primary);
}

/* =========================
   MOBILE NAV FIX (STABLE WORKING VERSION)
========================= */
@media (max-width: 900px) {

  .navbar nav {
    display: block;
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  /* =========================
     DROPDOWN BASE
  ========================= */
  .dropdown-menu {
    display: none;
    position: static;
    background: #f8f8f8;
    border-radius: 8px;
    padding-left: 15px;
    margin-top: 5px;
    box-shadow: none;
    min-width: 120px;
  }

  /* OPEN FIRST LEVEL (HOVER + TOUCH FIX) */
  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown:focus-within > .dropdown-menu {
    display: block;
  }

  /* =========================
     NESTED SUBMENU
  ========================= */
  .dropdown-menu .dropdown-menu {
    display: none;
    background: #f3f3f3;
    margin-left: 10px;
    border-radius: 6px;
  }

  .dropdown-menu .nav-dropdown:hover > .dropdown-menu,
  .dropdown-menu .nav-dropdown:focus-within > .dropdown-menu {
    display: block;
  }

  /* REMOVE FLOATING POSITION */
  .dropdown-menu,
  .dropdown-menu .dropdown-menu {
    position: static !important;
  }

  /* =========================
     ARROW FIX
  ========================= */
  .has-arrow::after {
    float: right;
    transition: 0.3s ease;
  }

  /* MOBILE TEXT CLEAN */
  .navbar nav a {
    padding: 10px 0;
    font-size: 15px;
  }
}@media (max-width: 768px) {

  .navbar {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }

  .navbar nav,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .nav-toggle:checked ~ nav,
  .nav-toggle:checked ~ .nav-actions {
    display: flex;
    flex-direction: column;
  }

  .navbar nav a {
    padding: 10px 0;
    font-size: 15px;
  }

  .nav-actions button {
    width: 100%;
    border-radius: 12px;
  }
}

    /* ===== FOOTER ===== */
    footer {
      background: #0d0505;
      color: rgba(255,255,255,0.6);
      padding: 60px 40px 30px;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 50px;
      margin-bottom: 50px;
      padding-bottom: 50px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-brand .brand-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      font-weight: 700;
      color: white;
      margin-bottom: 6px;
    }

    .footer-brand .brand-full {
      font-size: 12px;
      color: var(--gold);
      letter-spacing: 1px;
      margin-bottom: 18px;
    }

    .footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 22px; }

    .footer-socials { display: flex; gap: 12px; }

    .social-btn {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-decoration: none;
      font-size: 16px;
      transition: all 0.25s;
    }
    .social-btn:hover { background: var(--maroon); border-color: var(--maroon); }

    .footer-col h4 {
      color: white;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    .footer-col ul { list-style: none; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color 0.2s; }
    .footer-col ul li a:hover { color: var(--gold); }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      flex-wrap: wrap;
      gap: 10px;
    }    /* RESPONSIVE */
    @media (max-width: 900px) {
      .features-grid { grid-template-columns: 1fr; }
      .announcements-grid { grid-template-columns: 1fr; }
      .benefits-inner { grid-template-columns: 1fr; gap: 40px; }
      .footer-top { grid-template-columns: 1fr 1fr; }
      .stats-strip { gap: 30px; }
    }

    @media (max-width: 600px) {
      .features-section, .announcements-section { padding: 60px 20px; }
      .benefits-section { padding: 60px 20px; }
      .events-section { padding: 60px 0; }
      .footer-top { grid-template-columns: 1fr; }
    }