/* =========================================
   VARIABLES & RESET (Corporate Teal Theme)
   ========================================= */
:root {
  --primary-teal: #073838 ;  /* Deep Teal */
  --accent-teal: #0E5A5A;    /* Medium Teal / Turquoise */
  --bg-light: #f4fffd;       /* Ghost White / Light Teal Tint */
  --text-dark: #1A1A2E;      /* Dark Navy/Black */
  --text-grey: #666;
  
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
}

/* =========================================
   HEADER (Mobile Base)
   ========================================= */
.main-header {
  padding: 15px 20px;
  background: #0E5A5A;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.logo-link { 
    display: flex; 
    align-items: center; 
    height: 70px; /* Forces the link box to perfectly match the 70px navbar */
    /* margin-left: -100px; */
}

.logo-img {
    height: 100%; /* Stretches the image to fill the exact 70px height */
    width: auto;  /* Keeps your logo perfectly proportioned so it doesn't squish */
    object-fit: contain; 
    display: block; /* Removes the invisible gap browsers put under inline images */
}

/* --- Mobile Menu --- */
/* Mobile Menu – Animated */
.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;

  display: flex;                 /* keep flex always */
  flex-direction: column;
  text-align: center;
  padding: 20px;

  box-shadow: 0 10px 20px rgba(0,0,0,0.1);

  /* Animation setup */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Active state */
.nav-links.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-links a {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links.active a {
  opacity: 1;
  transform: translateY(0);
}

.nav-links.active a:nth-child(1) { transition-delay: 0.05s; }
.nav-links.active a:nth-child(2) { transition-delay: 0.1s; }
.nav-links.active a:nth-child(3) { transition-delay: 0.15s; }
.nav-links.active a:nth-child(4) { transition-delay: 0.2s; }

.contact-btn { 
  color: var(--primary-teal) !important; 
  font-weight: 700 !important; 
}

/* =========================================
   HAMBURGER ICON & "X" ANIMATION
   ========================================= */
.menu-toggle {
  display: flex; 
  flex-direction: column; 
  gap: 5px;
  background: none; 
  border: none; 
  cursor: pointer;
}

.menu-toggle .bar { 
  width: 25px; 
  height: 3px; 
  background: var(--text-dark); 
  transition: all 0.3s ease-in-out; 
}

/* The "X" Animation States */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg); 
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0; 
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg); 
}


/* =========================================
   HERO SECTION (Mobile Base)
   ========================================= */
.corporate-hero-wrapper {
  position: relative;
  z-index: 1;
}

.corporate-hero-wrapper {
  background: var(--bg-light);
}

.hero-text-side {
  padding: 40px 20px;
  background: var(--bg-light); /* Swapped to light teal tint */
  color: var(--primary-teal);  /* Deep teal text */
  text-align: center;
}

.hero-text-side h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.1;
  color: var(--primary-teal);
}

.hero-tagline {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-grey);
}

.hero-cta {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-teal); /* Deep teal button */
  color: #fff;                     /* White text */
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

/* Hero Slideshow Side */
/* =========================================
   REINFORCED SLIDESHOW FIX
   ========================================= */

.hero-slideshow-side {
    position: relative;
    width: 100%;
    /* Keep your existing height (300px for mobile, 100% for desktop) */
    background: #000;
    overflow: hidden; 
    /* Force the container to ignore any internal text padding */
    display: flex;
}

.slideshow-window,
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    /* This kills the space at the bottom of the container */
    line-height: 0;
    font-size: 0;
}

.slide-img {
    width: 100.2%; /* Slightly oversized to prevent rounding gaps */
    height: 100.2%; /* Slightly oversized to prevent rounding gaps */
    object-fit: cover;
    display: none; 
    /* Force the image to sit at the very bottom */
    vertical-align: bottom;
    margin: -1px 0; /* Pulls the image slightly to overlap potential gaps */
    border: none;
    outline: none;
}

.slide-img.active {
    display: block;
    /* Added to ensure the image stays stacked correctly */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Caption Fix --- */
.slideshow-caption {
    position: absolute;
    bottom: -1px; /* Overlaps the bottom edge to hide the strip */
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px;
    background: linear-gradient(to top, rgba(7, 56, 56, 0.95), transparent);
    pointer-events: none;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Controls */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}
.prev { left: 0; }
.next { right: 0; }

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Ensure no margin/padding is pushing the caption up */
    margin: 0; 
    /* The gradient is already handling the background */
    background: linear-gradient(to top, rgba(7, 56, 56, 0.9), transparent);
    color: #fff;
    padding: 20px;
    pointer-events: none;
}

.slideshow-caption h3 { font-size: 1.1rem; margin-bottom: 2px; }
.slideshow-caption p { font-size: 0.8rem; opacity: 0.8; }

/* =========================================
   DETAILS SECTION (Mobile Base)
   ========================================= */
.details-section {
  padding: 50px 20px;
  background: #fff; /* Solid white background */
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-box {
  background: var(--bg-light); /* Light teal tint for the box */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-box h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-teal); /* Deep teal heading */
}

.icon-wrap {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--accent-teal); /* Turquoise icon */
}

.deliverables-list {
  list-style: none;
  padding-left: 0;
}

.deliverables-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  color: var(--text-dark);
}
.deliverables-list li::before {
  content: "•";
  color: var(--accent-teal); /* Turquoise bullet point */
  font-weight: bold;
  margin-right: 10px;
}

/* =========================================
   PROJECTS SECTION (Mobile Base)
   ========================================= */
.projects-section {
  padding: 50px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-teal);
}
.section-header .line {
  width: 60px;
  height: 3px;
  background: var(--primary-teal); /* Deep teal underline */
  margin: 10px auto 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column mobile */
  gap: 30px;
}

.work-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background: #fff;
}

.work-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #ccc; /* Fallback */
}

.work-content {
  padding: 20px;
}

.work-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--primary-teal);
}

.location {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-teal); /* Turquoise location text */
  font-weight: 700;
  margin-bottom: 10px;
}

/* =========================================
   CTA SECTION (Mobile Base)
   ========================================= */
.cta-section {
  background: var(--primary-teal); /* Deep teal background */
  color: #fff; /* White text */
  padding: 60px 20px;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.cta-content p {
  margin-bottom: 30px;
  opacity: 0.9;
  color: #fff;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: #fff;
  color: var(--primary-teal); /* Deep teal text on white button */
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

/* =========================================
   DESKTOP ENHANCEMENTS (@media)
   ========================================= */
@media screen and (min-width: 1024px) {
  
  /* 1. Ensure the container allows items to sit side-by-side */
  .nav-container {
    display: flex;
    justify-content: space-between; /* Aligns everything to the left */
    align-items: center;
    gap: 50px; /* Space between the logo and the start of the links */
    max-width: 1200px;
    margin: 0 auto;
    height: 70px; /* Adjust based on your header height */
  }

  /* 2. Hide the hamburger button on desktop */
  .menu-toggle { 
    display: none !important; 
  }

  /* 3. Reset the mobile menu into a horizontal row */
  .nav-links {
    position: static;      /* Removes absolute/fixed positioning */
    display: flex;
    flex-direction: row;   /* Horizontal layout */
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    gap: 35px;             /* Space between individual links */
    opacity: 1;            /* Ensure visible */
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: auto;
    height: auto;
  }

  /* 4. Style the links for desktop */
  .nav-links a {
    border: none;
    padding: 0;
    font-size: 1.1rem;
    font-family: var(--font-body); /* Or var(--font-heading) based on preference */
    color: var(--primary-teal);
    text-transform: none; /* Matches the image provided */
    letter-spacing: normal;
    opacity: 1;
    transform: none;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--accent-teal);
  }

  /* 5. Logo sizing */
  .logo img { 
    height: 55px; 
    width: auto;
  }

  /* Hero Section: Split 50/50 */
  .corporate-hero-wrapper {
    display: flex;            
    flex-direction: row;
    height: 85vh; 
    align-items: stretch;     
    overflow: hidden;         
    position: relative;
  }

  .corporate-hero-wrapper {
    background: none; /* reset */
  }

  .hero-text-side {
    background: var(--bg-light);
    height: 100%;
  }

  .hero-text-side {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Left align text */
    text-align: left;
    padding: 0 60px;
  }

  .hero-text-side h1 { font-size: 4.5rem; }
  .hero-tagline { font-size: 1.2rem; }

/* =========================================
   REINFORCED SLIDESHOW FIX
   ========================================= */

.hero-slideshow-side {
    position: relative;
    width: 100%;
    /* Keep your existing height (300px for mobile, 100% for desktop) */
    background: #000;
    overflow: hidden; 
    /* Force the container to ignore any internal text padding */
    display: flex;
}

.slideshow-window,
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    /* This kills the space at the bottom of the container */
    line-height: 0;
    font-size: 0;
}

.slide-img {
    width: 100.2%; /* Slightly oversized to prevent rounding gaps */
    height: 100.2%; /* Slightly oversized to prevent rounding gaps */
    object-fit: cover;
    display: none; 
    /* Force the image to sit at the very bottom */
    vertical-align: bottom;
    margin: -1px 0; /* Pulls the image slightly to overlap potential gaps */
    border: none;
    outline: none;
}

.slide-img.active {
    display: block;
    /* Added to ensure the image stays stacked correctly */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Caption Fix --- */
.slideshow-caption {
    position: absolute;
    bottom: -1px; /* Overlaps the bottom edge to hide the strip */
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px;
    background: linear-gradient(to top, rgba(7, 56, 56, 0.95), transparent);
    pointer-events: none;
}

.slideshow-caption h3 { margin: 0; font-size: 2rem; }
.slideshow-caption p { margin: 0; font-size: 0.9rem; opacity: 0.8; }


  /* Details Grid: Side by Side */
  .details-section { padding: 100px 5%; }
  .details-grid {
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
  }
  
  .detail-box { flex: 1; padding: 50px; }

  /* Projects Grid: 3 Columns */
  .projects-section { padding: 80px 5%; }
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }

  /* CTA Hover */
  .btn-primary:hover {
    background: var(--accent-teal); /* Flips to Turquoise on hover */
    color: #fff;
    transform: scale(1.05);
  }
}
