/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/*
 * This is a manifest file compiled into application.css via Propshaft.
 */

/*
 * This is a manifest file compiled into application.css via Propshaft.
 */

/* --- Base Layout --- */
.nav-container {
  background-color: #1a1a1a;
  width: 100%;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav-logo {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
}

/* --- Desktop Dropdown Configuration --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
  min-width: 180px;
  display: none; /* Hidden by default */
  border-radius: 4px;
  z-index: 1000;
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #333333 !important;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: #000000 !important;
}

/* Reveal desktop dropdown menu card cleanly on Hover */
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.arrow {
  font-size: 0.75rem;
  margin-left: 4px;
}

/* --- Mobile Navigation Defaults --- */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop screens */
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #ffffff;
}

.mobile-menu-dropdown {
  display: none; /* Hidden by default */
}

.mobile-sub-menu {
  display: none; /* Hidden by default until dynamic activation */
  padding-left: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item, .mobile-sub-item {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1rem;
}

/* --- Global Footer Layout (Now outside the media query, pure black) --- */
.footer-container {
  background-color: #000000; /* Pure solid black background */
  color: #ffffff;            /* Pure crisp white text */
  padding: 3rem 2rem 1.5rem 2rem;
  margin-top: 4rem;          /* Pushes the footer away from your page content */
  font-family: sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo-section {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: #cccccc; /* Softer light gray text */
  font-size: 0.9rem;
  margin: 0;
}

.footer-links-section {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #00bcd4; /* Accent color matching navbar hovers */
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222222; /* Clean, dark separation border line */
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  color: #888888; /* Muted gray for copyright notice text */
  font-size: 0.85rem;
  margin: 0;
}

/* --- Responsive Media Queries (Mobile Viewport Overrides) --- */
/* --- Responsive Media Queries (Mobile Viewport Overrides) --- */
@media screen and (max-width: 768px) {
  /* 1. Ensure the parent navbar container allows the absolute menu to drop down */
  .nav-container {
    position: relative; /* Acts as the anchor boundary for the absolute dropdown */
    overflow: visible !important; /* Prevents the menu from being hidden/chopped off */
  }

  /* 2. Hide the main desktop navigation link row entirely */
  .nav-links {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* 3. Show the hamburger toggle icon button */
  .mobile-menu-toggle {
    display: block; 
  }

  /* 4. Correctly display and structure the active mobile container card */
  .mobile-menu-dropdown.active {
    display: block !important;
    position: absolute;
    top: 100%; /* Sits exactly flush below the header bar */
    left: 0;
    right: 0;
    width: 100%;
    background-color: #1a1a1a;
    z-index: 9999; /* Forces it over the top of hero banners or sidebars */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  }

  /* 5. Reveal nested sub-menu links cleanly when a user taps a group */
  .mobile-dropdown-group.open .mobile-sub-menu {
    display: block !important;
  }
}

