@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* ========== Global base (safe to keep here) ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-color: #8b0000;
  --primary-dark: #660000;
  --accent-color: #ffd700;
  --text-color: #696969;
  --light-bg: #ffffff;
  --white: #ffffff;
  --border-color: #ddd;
}

html,
body {
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

/* ========== Header ========== */
.header {
  background-color: var(--white);
  border-bottom: 3px solid var(--primary-color);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.header-text h1 {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 5px;
}

.tagline {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ========== Navbar (Desktop) ========== */
.navbar {
  background-color: var(--primary-color);
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-menu li {
  position: relative;
  flex: 1;
  transition: background-color 0.3s ease;
}

.nav-menu li:hover,
.nav-menu li:has(a.active) {
  background-color: var(--primary-dark);
}

.nav-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.3s ease, color 0.3s ease;
  will-change: transform;
}

.nav-menu li:hover a {
  transform: translateY(-4px);
  color: var(--white);
}

/* Optional dropdown support (if you use it later) */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-dark);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 10;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: var(--white);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #4a0000;
}

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

/* ========== Mobile Nav Toggle Button ========== */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.close-btn {
  display: none;
}

.nav-logo {
  display: none;
}

/* ========== Footer ========== */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  margin-top: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 12px;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 6px;
}

.footer-column a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s ease;
  font-size: 12px;
  line-height: 1.4;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-column p {
  font-size: 12px;
  margin-bottom: 4px;
}

.social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.social-icons a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
}

.social-icons img {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-bottom {
  background-color: var(--primary-dark);
  text-align: center;
  padding: 4px 8px;
  font-size: 10px;
}

/* ========== Responsive (Mobile) ========== */
@media (max-width: 900px) {
  /* Navbar container */
  .navbar {
    position: relative;
    height: 0px;
  }

  /* Show hamburger on RIGHT */
  .hamburger {
    display: block;
    position: absolute;
    right: 15px;
    top: 20px;
    z-index: 1001;
    color: #660000;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 10px;
  }

  .header-text h1 {
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .tagline {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .logo {
    width: 40px;
    height: 40px;
    margin-right: -10px;
    margin-left: -10px;
    object-fit: contain;
  }

  /* Sidebar menu */
  .nav-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
    margin-bottom: -10px;
    margin-top: -40px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -280px; /* hidden */
    width: 280px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-menu li {
    flex: none;
  }

  .nav-menu a {
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Show sidebar (your JS should toggle this class) */
  .nav-menu.open {
    right: 0;
  }

  /* Close button inside sidebar */
  .close-btn {
    display: block;
    text-align: right;
    padding: 10px 20px;
  }

  .close-btn button {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
  }

  /* Optional: disable hover dropdown on mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  /* Footer slightly smaller on mobile */
  .footer-column h3 {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .footer-column a,
  .footer-column p {
    font-size: 10px;
  }
}

@media (max-width: 347px) {
  .hamburger {
    top: 25px;
  }
}