/* navbar.css */

/* orange top stripe */
.nav-top-bar {
  width: 100%;
  height: 4px;
  background: #ff9800;
  position: fixed;
  top: 0; left: 0;
  z-index: 1201;
}

/* Overlay backdrop */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(10,10,10,0.97);
  z-index: 1200;
  display: none;
  overflow: auto;
}

/* open state */
.nav-overlay.open {
  display: block;
  animation: fadeIn 0.3s;
}

/* fade in */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}


/* Logo */
.nav-logo {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #444;
}
.nav-logo img {
  max-height: 60px;
}

/* nav-content grid */
.nav-content {
  display: flex;
  align-items: flex-start;
  max-width: 85vw;
  margin: 0 auto;
  padding: 40px 60px 0 60px;
  gap: 40px;
}

/* each column */
.nav-column {
  flex: 1;
  /* Remove any vertical alignment issues */
}

/* column title */
.menu-title {
  font-size: 1.4rem;
  color: #ccc;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
}

/* main menu list */
.main-menu,
.submenu {
  list-style: none;
  margin: 0; padding: 0;
}

/* items */
.menu-item,
.submenu-item {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid #444;
  font-size: 1.6rem;
}

/* links */
.menu-item a,
.submenu-item a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

/* arrow on has-submenu */
.has-submenu::after {
  content: "›";
  position: absolute;
  right: 0;
  font-size: 1.6rem;
  color: #aaa;
  transition: color 0.2s;
}

/* hover state – main & submenu */
.menu-item:hover,
.menu-item.has-submenu:hover::after,
.submenu-item:hover a {
  color: #ff9800;
}

/* underline animation */
.menu-item a::after,
.submenu-item a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff9800;
  transition: width 0.3s ease;
}
.menu-item a:hover::after,
.submenu-item a:hover::after {
  width: 100%;
}

/* hide all submenu-panels by default */
.submenu-panel {
  display: none;
  margin-top: 87px;
  padding-top: 0;
}

/* show only the active submenu */
.submenu-panel.open {
  display: block;
}


/* Responsive */
@media (max-width: 900px) {
  .nav-content { flex-direction: column; gap: 20px; }
  .nav-logo img { max-height: 50px; }
}


/* header background + fixed positioning */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 17, 0); /* Start transparent */
  height: 60px;
  padding: 0 24px;
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1300;
  transition: background 0.3s ease;
}

/* Header background when scrolled */
.site-header.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* push page content down so nothing is hidden under the header */
.site-main {
  padding-top: 0; /* Remove padding since hero goes to top */
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* make sure your existing hamburger-btn still works inside the header */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0; /* reset if previously set */
  position: relative;
}
.hamburger-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 0px;
  position: absolute;
  left: 8px;
  transition: background 0.2s, transform 0.3s, opacity 0.3s;
}
.hamburger-btn span:nth-child(1) {
  top: 10px;
}
.hamburger-btn span:nth-child(2),
.hamburger-btn span:nth-child(3) {
  top: 18.5px;
}
.hamburger-btn span:nth-child(4) {
  top: 27px;
}

/* Morph to X */
.hamburger-btn.open span:nth-child(1),
.hamburger-btn.open span:nth-child(4) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(2) {
  transform: rotate(45deg);
  width: 36px;
}
.hamburger-btn.open span:nth-child(3) {
  transform: rotate(-45deg);
  width: 36px;
}

/* optional: site title styling */
.site-title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  white-space: nowrap;
}

/* Add underline animation and color for .menu-item.has-submenu (non-link) */
.menu-item.has-submenu {
  color: #fff;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
}
.menu-item.has-submenu::after {
  /* keep arrow as before */
}
/* Invisible buffer zone to expand hover area to the right */
.menu-item.has-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 40px;
  height: 100%;
  background: transparent;
  pointer-events: auto;
}
.menu-item.has-submenu .menu-text {
  position: relative;
  color: #fff;
}
.menu-item.has-submenu .menu-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #ff9800;
  transition: width 0.3s ease;
}
.menu-item.has-submenu:hover .menu-text::after {
  width: 100%;
}

.main-menu {
  width: 50vw;
  margin: 0;
}

.nav-overlay .main-menu {
  padding-top: 32px;
}

/* ── Mobile Header ── */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #111;
  border-bottom: 1px solid #333;
}
.mobile-nav-header .mobile-close {
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav-header .mobile-logo img {
  max-height: 40px;
}

/* ── Mobile Nav Background ── */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: #111;
  color: #eee;
  font-family: 'Segoe UI','Arial',sans-serif;
  z-index: 1200;
  transform: translateY(-100%);
  opacity: 0;
  visibility: visible;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}


/* ── Menu Items ── */
.mobile-nav .mobile-menu > li {
  border-bottom: 1px solid #333;
}
.mobile-nav a,
.mobile-nav .toggle-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #eee;
  text-decoration: none;
  background: none;
  border: none;
}
.mobile-nav a:hover,
.mobile-nav .toggle-btn:hover {
  background: #1a1a1a;
}

/* thin vertical bar before arrow */
.mobile-nav .toggle-btn .arrow {
  position: relative;
  padding-right: 12px;
  padding-left: 12px;
}
.mobile-nav .toggle-btn .arrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 1.2em;
  background: #444;
  margin-left: 12px;
}

/* ── Submenu ── */
.mobile-nav .mobile-submenu {
  background: #1a1a1a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav .mobile-submenu li a {
  display: block;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 400;
  color: #ddd;
  border-top: 1px solid #2a2a2a;
}
.mobile-nav .mobile-submenu li a:hover {
  background: #222;
}

/* when submenu open */
.mobile-nav .has-children.open .mobile-submenu {
  max-height: 500px; /* plenty to fit all items */
}
/* rotate arrow */
.mobile-nav .has-children.open .toggle-btn .arrow {
  transform: rotate(180deg);
}

/* ── Responsive only ── */


/* Centered logo and title in header */
.site-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-56%);
}

.site-logo {
  height: 38px;
  margin-right: 12px;
}

.site-header .hamburger-btn {
  z-index: 2;
}

.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  margin-left: 12px;
  margin-right: 30px;
  color: #fff;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.account-btn:hover {
  background: #222;
}
.account-btn svg {
  display: block;
}

/* ============================
   Base Hero / Banner Styles
============================= */
.banner-with-image {
  position: relative;

  /* Make the image fill the section and adjust to its bounds */
  background-size: cover;       /* scales to fill, cropping as needed */
  background-position: center;  /* centers the focal point */
  background-repeat: no-repeat;

  /* Never taller than the viewport */
  height: 100vh;                /* exactly viewport height */
  max-height: 100vh;            /* safeguard */
  overflow: hidden;             /* hide any overflow */
}

/* Overlay to darken/lighten for legibility */
.banner-with-image .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* tweak opacity/color as needed */
  z-index: 1;
}

/* Your hero content sits on top */
.banner-with-image .hero-content {
  position: relative;
  z-index: 2;
  /* center vertically & horizontally */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  text-align: center;
  color: #fff;
}

/* Responsive tweak: on small screens use a smaller hero */
@media (max-width: 768px) {
  .banner-with-image {
    height: 60vh;   /* 60% of viewport on mobile */
    max-height: 60vh;
  }
}



@media (max-width: 500px) {
  /* 1. Shrink header padding so logo + title fit */
  .site-header {
    padding: 0 8px;
  }

  /* 2. Center logo + title exactly */
  .site-center {
    left: 50%;
    transform: translateX(-50%) !important;
    width: auto;
    padding: 0 4px;
  }

  /* 3. Reduce logo size */
  .site-logo {
    height: 7vw;
    margin-right: 8px;
  }

  /* 4. Shrink the site-title font */
  .site-title {
    font-size: 4.5vw;
    white-space: nowrap;
  }

  /* 5. Pull in the account button */
  .account-btn {
    margin-right: 12px;
    width: 36px;
    height: 36px;
  }

  /* 6. Tweak hamburger tappable area */
  .hamburger-btn {
    width: 36px;
    height: 36px;
  }
  .hamburger-btn span {
    left: 6px;
    width: 24px;
  }
  .hamburger-btn span:nth-child(1) { top: 8px; }
  .hamburger-btn span:nth-child(2),
  .hamburger-btn span:nth-child(3) { top: 16px; }
  .hamburger-btn span:nth-child(4) { top: 24px; }

  /* 7. Ensure nav-content (mobile menu) uses full width */
  .nav-overlay .main-menu {
    width: 100%;
  }
    /* Main overlay menu items */
  .nav-overlay .main-menu .menu-item a {
    display: block;         /* ensure full‑width clickable area */
    width: 100%;
    text-align: left;      /* left‑align the text */
    padding-left: 1rem;    /* optional: a little breathing room */
  }

  /* If you also want the desktop submenu in overlay to match */
  .nav-overlay .submenu-panel .submenu-item a {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 1rem;
  }

  /* And for the mobile‑nav component too */
  .mobile-nav .mobile-menu > li a,
  .mobile-nav .toggle-btn {
    text-align: left;
    padding-left: 1rem;
  }
}


