/* =========================================
   LAYOUT & GRIDS (css/layout.css)
   ========================================= */

/* --- Global Containers & Spacing --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
section {
  padding: 6rem 0;
}
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* --- Two-Tier Sticky Header --- */
.site-header {
  position: relative;
  width: 100%;
  z-index: 100;
}
.top-bar {
  background-color: var(--color-primary); /* Changed to Navy Blue */
  color: var(--color-bg-white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
}
/* The Sticky Menu Section */
.main-nav {
  background-color: var(--color-bg-white);
  padding: 0; /* Removed padding so the logo can span the full height */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  height: 80px; /* Sets a solid, premium height for the entire white bar */
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%; /* Forces the inner container to match the 80px height */
}
.logo {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 10px 0; /* Gives it just a tiny bit of breathing room so it doesn't touch the exact pixel edge */
}
.logo img {
  height: 100%; /* Expands to fill the available height */
  width: auto; /* Keeps the proportions perfect so it doesn't stretch long */
  max-height: none; /* Overrides the previous 50px restriction */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--color-primary); /* Navy Links */
  font-weight: 600;
  transition: var(--transition-fast);
}
.nav-links a:hover {
  color: var(--color-accent); /* Orange on hover */
}

/* --- Dropdown Menu (Desktop) --- */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.8rem;
  margin-left: 4px;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* Positions it directly below the "Services" link */
  left: 0;
  background-color: var(--color-bg-white);
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft premium shadow */
  border-radius: 4px;
  padding: 1rem 0;
  
  /* Hidden by default with a smooth animation setup */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  
  /* Resetting list styles */
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0; 
}

/* The Reveal on Hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: var(--color-bg-pearl);
  color: var(--color-accent);
  padding-left: 2rem; /* Creates a slick right-slide effect on hover */
}

/* --- Section Layouts --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.blog-asymmetric-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* --- Footer Layout Updates --- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 6rem 0 0 0; /* Increased from 4rem to 6rem to make it much taller */
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem; /* Increased gap to spread the columns out more */
  margin-bottom: 4rem; /* Adds more space before the bottom strip */
}
.footer-logo {
  height: 70px; 
  width: auto;
  margin-bottom: 1.5rem;
}
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem; 
  color: var(--color-accent); /* Pops the headers in Orange */
}
.footer-col p {
  margin-bottom: 0.8rem;
  line-height: 1.8; /* Increases vertical spacing in paragraphs */
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.8rem; /* Spreads out the links */
}
.footer-col a {
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--color-accent);
}

/* --- Footer Bottom Strip & Developer Tag --- */
.footer-bottom {
  background-color: #0f1a28;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.developer-tag a {
  color: #a0aec0; /* A nice subtle grey-blue for the 'Developed by' text */
  text-decoration: none;
  transition: all var(--transition-fast);
}
.md-highlight {
  color: var(--color-accent); /* Orange for the <M/D> */
  font-weight: 700;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}
/* When hovering anywhere on the whole link, everything turns white */
.developer-tag a:hover {
  color: var(--color-bg-white); 
}
.developer-tag a:hover .md-highlight {
  color: var(--color-bg-white);
}

/* =========================================
   MOBILE RESPONSIVE NAVIGATION
   ========================================= */

/* --- Hamburger Icon (Hidden on Desktop) --- */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001; /* Keeps it above the sliding menu */
}

.hamburger .line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary); /* Navy Blue lines */
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.hamburger .line:nth-child(1) { top: 0; }
.hamburger .line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger .line:nth-child(3) { bottom: 0; }

/* --- Mobile Breakpoint (Max-width 768px for tablets and phones) --- */
@media (max-width: 768px) {
  
  /* Stack the top bar info neatly on phones */
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Show the Hamburger button */
  .hamburger {
    display: block;
  }

  /* Hide the normal links and turn them into a slide-out menu */
  .nav-links {
    position: absolute;
    top: 80px; /* Starts exactly below your 80px sticky header */
    left: -100%; /* Hides it completely off the left side of the screen */
    width: 100%;
    height: calc(100vh - 80px); /* Takes up the rest of the screen height */
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: left 0.4s ease-in-out; /* Smooth slide effect */
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }

  /* The class JS will trigger to slide the menu into view */
  .nav-links.active {
    left: 0;
  }

  /* Make the links larger for phone tapping */
  .nav-links a {
    font-size: 1.2rem;
  }

  /* --- Animate the Hamburger into an "X" --- */
  .hamburger.active .line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .hamburger.active .line:nth-child(2) {
    opacity: 0; /* Hides the middle line */
  }
  .hamburger.active .line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  /* --- Mobile Dropdown Overrides --- */
  .dropdown-menu {
    position: static; /* Removes absolute positioning */
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 1rem;
    display: none; /* Hidden until the parent is tapped */
    border-left: 2px solid var(--color-accent); /* Visual indicator for sub-menu */
    margin-left: 1rem;
  }

  /* When "Services" is tapped on mobile, it expands */
  .dropdown:hover .dropdown-menu,
  .dropdown:active .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .dropdown-menu a:hover {
    padding-left: 1rem; /* Disables the slide effect on mobile */
  }
}

/* =========================================
   ALTERNATING SERVICES ROWS (Services Page)
   ========================================= */
.services-detailed {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

/* Remove bottom margin from the last row */
.service-row:last-child {
  margin-bottom: 0;
}

/* Reverses the order for every alternating row */
.service-row.reversed {
  direction: rtl; /* Flips the grid layout left-to-right */
}
.service-row.reversed > * {
  direction: ltr; /* Flips the text back so it reads normally */
}

.service-row-text h2 {
  margin-bottom: 1.5rem;
}

.service-row-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #444;
}

/* The hero background specifically for the Services page */
.services-bg {
  background-image: url('../assets/images/services-hero.jpeg');
}

/* Responsive adjustment for phones */
@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  /* On mobile, stack them all the same way (Image on top, text below) */
  .service-row.reversed {
    direction: ltr;
  }
}