/* =========================
   Global Styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}
header, .hero, .section, footer {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  position: static;
  width: 100%;
  z-index: 100;
}
.header-flex {
  display: none;
}

/* Divider line between logo and nav */
.header-divider {
  flex: 1;
  height: 1px;
  background: #444;
  margin: 0 2rem;
  min-width: 40px;
  max-width: 100%;
  align-self: center;
}
/* Logo styles */
.logo-link {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 2;
}
.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  display: block;
}
.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .logo-img {
    height: 36px;
    width: 36px;
  }
}
/* Title styles */
.header-title {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.site-title-link {
  text-decoration: none;
  color: inherit;
}
.header-title h1 {
  margin: 0;
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
}
.header-title p {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}
/* Hamburger Button for Mobile Nav */
.menu-toggle {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
nav {
  margin-top: 1rem;
}
nav a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
}
/* Navigation List */
.nav-root {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}
.nav-root > li {
  position: relative;
}
/* Dropdown Parent */
.folder-parent {
  position: relative;
  cursor: pointer;
  user-select: none;
}
/* Dropdown Child */
.folder-child {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  border: 1px solid #ccc;
  min-width: 140px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  list-style: none;
}
.folder-child li {
  padding: 0;
}
.folder-child li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.folder-child li a:hover {
  background: #eee;
}
/* Hide submenu by default */
.folder-child[hidden] {
  display: none;
}

/* =========================
   Mobile Navigation Styles
   ========================= */
@media (max-width: 768px) {
  .menu-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff;
    z-index: 2002;
    cursor: pointer;
    display: block;
  }
  .mobile-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.3s;
    z-index: 3000;
    pointer-events: none;
  }
  .mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav .nav-root {
    flex-direction: column;
    gap: 2.2rem;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
  }
  .mobile-nav .nav-root a {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-nav .nav-root a:hover {
    color: #aaa;
  }
}
@media (min-width: 769px) {
  .mobile-nav,
  .nav-overlay,
  .menu-toggle {
    display: none !important;
  }
  .desktop-nav {
    display: block !important;
  }
  .desktop-nav .folder-parent { position: relative; }
  .desktop-nav .folder-child {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    border: 1px solid #ccc;
    min-width: 140px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    list-style: none;
  }
  .desktop-nav .folder-parent:hover > .folder-child {
    display: block;
  }
  .desktop-nav .dropdown-arrow {
    transition: transform 0.2s;
  }
  .desktop-nav .folder-parent:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Desktop dropdown styles */
@media (min-width: 769px) {
  .desktop-nav .folder-child {
    background: #222 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
  }
  .desktop-nav .folder-child li a {
    color: #fff !important;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
  }
  .desktop-nav .folder-child li a:hover {
    background: #444 !important;
    color: #fff !important;
  }
}

/* =========================
   Hero Section
   ========================= */
.hero {
  background: url('Images/Jordan/2M2A5476-Enhanced-NR.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.hero h1 {
  font-size: 3rem;
  padding: 0 1rem;
}

/* =========================
   Section, Gallery, Contact, Footer
   ========================= */
.section {
  padding: 4rem 2rem;
  text-align: center;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.contact {
  background: #f9f9f9;
}
form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}
button {
  padding: 1rem;
  background: #111;
  color: white;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}
button:hover {
  background: #333;
}
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* =========================
   Map & Spinner
   ========================= */
#map {
  position: relative; /* needed for spinner positioning */
  height: 400px;
  max-width: 600px;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 5px solid #ccc;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1001;
}
/* Spinner animation */
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================
   Instagram Slider (Desktop)
   ========================= */
.instagram-slider {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
/* Row layout for desktop */
.ig-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 0;
}
.ig-slider {
  display: none;
}
.instagram-media {
  width: 320px !important;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  /* Crop the embed to only show the photo and username */
  height: 420px;
}

/* =========================
   Instagram Slider (Mobile/Tablet)
   ========================= */
@media (max-width: 1024px) {
  .ig-row { display: none; }
  .ig-slider {
    display: block;
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 0 32px 0;
  }
  .slider-track {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 100%;
    position: relative;
    height: 420px;
    pointer-events: none;
  }
  .slide {
    position: absolute;
    left: 50%;
    top: 0;
    width: 70%;
    max-width: 320px;
    opacity: 0;
    filter: blur(4px);
    transform: translateX(-50%) scale(0.92);
    /* Smooth slide transition */
    transition: 
      filter 0.6s cubic-bezier(.77,0,.18,1),
      opacity 0.6s cubic-bezier(.77,0,.18,1),
      transform 0.6s cubic-bezier(.77,0,.18,1),
      z-index 0.6s cubic-bezier(.77,0,.18,1);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }
  .slide.active {
    opacity: 1;
    filter: none;
    transform: translateX(-50%) scale(1);
    z-index: 3;
    pointer-events: auto;
  }
  .slide.prev {
    opacity: 1;
    filter: blur(4px);
    transform: translateX(-120%) scale(0.92);
    z-index: 2;
  }
  .slide.next {
    opacity: 1;
    filter: blur(4px);
    transform: translateX(20%) scale(0.92);
    z-index: 2;
  }
  .slide:not(.active):not(.prev):not(.next) {
    opacity: 0;
    pointer-events: none;
    display: none;
  }

  /* Navigation arrows (hollow circles) */
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;         /* Transparent center */
    border: 2px solid #ccc;          /* Circle border */
    border-radius: 50%;
    font-size: 1.3rem;               /* Arrow size */
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    box-shadow: none;                /* Remove shadow for true hollow look */
    transition: background 0.2s, border-color 0.2s;
    opacity: 1;
  }
  .nav:hover {
    border-color: #888;
    background: rgba(255,255,255,0.15); /* Subtle hover effect */
  }
  .nav .arrow {
    color: #222;
    font-size: 1.3rem;
    pointer-events: none;
    line-height: 1;
  }

  /* Slider controls (dots and play button) */
  .slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
  }
  .dots {
    display: flex;
    gap: 10px;
  }
  .dot {
    width: 9px;
    height: 9px;
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    outline: none;
  }
  .dot.active { background: #222; }

  /* Play/Pause button for slider */
  .play {
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    padding: 7px 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    opacity: 1;
    width: 36px;
    height: 36px;
    min-width: 36px; /* or whatever width fits your icons comfortably */
    text-align: center;
  }
  .play .play-icon,
  .play .pause-icon {
    font-size: 1.1rem;
    color: #222;
    display: inline-block;
    vertical-align: middle;
  }
  .play.active .play-icon { display: none; }
  .play.active .pause-icon { display: inline-block; }
}

/* =========================
   Navigation Arrow Positioning
   ========================= */
.nav {
  z-index: 10;
}
.nav.prev {
  left: 8px;
  right: auto;
}
.nav.next {
  right: 8px;
  left: auto;
}

/* =========================
   Mobile-specific scaling and centering
   ========================= */
@media (max-width: 600px) {
  .ig-slider {
    transform: scale(0.8);
    transform-origin: top center;
    /* Optional: keep it centered */
    margin: 0 auto;
  }
  .slider-controls {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    left: 0;
    right: 0;
    position: relative;
  }
  .dots {
    justify-content: center;
    align-items: center;
    width: auto;
  }
  .play {
    margin-left: 12px;
    margin-right: 0;
  }
}

/* =========================
   Desktop nav visible only on desktop
   ========================= */
.desktop-nav {
  display: block;
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .desktop-nav {
    display: block !important;
  }
  .menu-toggle {
    display: none !important;
  }
}

/* Ensure nav links have the same style */
.desktop-nav .nav-link {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
  transition: color 0.2s;
}
.desktop-nav .nav-link:hover {
  color: #aaa;
}
.desktop-nav .folder-child li a.active,
.mobile-nav .folder-child li a.active {
  text-decoration: underline;
  color: #ffd700 !important; /* Optional: gold/yellow highlight */
  font-weight: 700;
}
@media (max-width: 600px) {
  .header-flex {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    min-height: unset;
    gap: 0.5rem;
  }
  .logo-link,
  .menu-toggle {
    margin: 0;
  }
  .header-title h1 {
    font-size: 2rem;
  }
}
@media (max-width: 1024px) {
  .header-flex {
    flex-direction: column;
    min-height: unset;
    gap: 0.5rem;
  }
  .logo-link,
  .menu-toggle {
    position: static;
    transform: none;
    margin: 0;
  }
  .header-title h1 {
    font-size: 2rem;
  }
  .desktop-nav {
    display: none !important;
  }
  .menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .desktop-nav {
    display: block !important;
  }
  .menu-toggle {
    display: none !important;
  }
}
.header-divider {
  flex: 1;
  height: 1px;
  background: #444; /* or any color you want */
  margin: 0 2rem;
  min-width: 40px;
  max-width: 100%;
  align-self: center;
}

/* Always sticky, visible navbar */
.navbar {
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  z-index: 9999;
  margin: 0 !important;
  border: none !important;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
  backdrop-filter: none;
  box-shadow: none;
}
.navbar.scrolled {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Ensure nav content stays on top of page */
.navbar-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-divider {
  flex: 1;
  display: flex;
  align-items: center;
  height: 1px;
  min-width: 40px;
  margin: 0 2rem;
}

.nav-root {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .navbar-content {
    padding: 0 0.5rem;
    height: 56px;
    gap: 1rem;
  }
  .logo-img {
    height: 32px;
    width: 32px;
  }
  .site-title {
    font-size: 1.1rem;
  }
  .nav-root {
    display: none;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff;
    z-index: 2002;
    cursor: pointer;
    margin-left: auto;
  }
}

/* =========================
   Remove margin from first section after navbar
   ========================= */
.hero, .section:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

