/* ====== Africa Dream Water – Header Styles ====== */
:root{
  --header-bg: #87CEEB;          /* Sky blue */
  --text-dark: #083344;          /* Deep teal-ish for contrast */
  --link: #083344;
  --link-hover-bg: rgba(255,255,255,0.25);
  --active-bg: rgba(255,255,255,0.45); /* Active menu background */
  --lang-active-bg: rgba(0,0,0,0.12);
  --shadow: 0 2px 10px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--header-bg);
  box-shadow: var(--shadow);
}

.nav-wrap{
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo img{
  display: block;
  height: 100px;
  width: auto;
}

.right-cluster{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Menu */
.menu{
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu a{
  text-decoration: none;
  color: var(--link);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.08s ease;
  white-space: nowrap;
}

.menu a:hover{
  background: var(--link-hover-bg);
}

.menu a.active{
  background: var(--active-bg); /* Active menu item background */
  backdrop-filter: saturate(120%) blur(2px);
}

/* Language selector */
.lang{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.lang a{
  text-decoration: none;
  color: var(--link);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.4);
  transition: background-color 0.2s ease;
}

.lang a:hover{
  background: var(--link-hover-bg);
}

.lang a.active{
  background: var(--lang-active-bg);
}

/* Hamburger (mobile) */
.hamburger{
  display: none;
  font-size: 24px;
  line-height: 1;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 8px;
}

.hamburger:hover{ background: var(--link-hover-bg); }

/* Spacer under fixed header (height is set via JS for accuracy) */
#header-spacer{ width: 100%; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .menu{
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--header-bg);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 10px;
    gap: 4px;
  }
  .menu.open{ display: flex; }

  .hamburger{ display: inline-block; }

  .right-cluster{
    gap: 8px;
  }

  .menu a{
    width: 100%;
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce){
  .menu a{ transition: none; }
}
/* ===== Footer ===== */
.site-footer{
  background: #083344; /* deep teal for contrast with sky blue header */
  color: #e6f6fb;
  margin-top: 32px;
}
.footer-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.f-col h4{
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #ffffff;
}
.f-col p, .f-col a{
  color: #cfeaf4;
  text-decoration: none;
}
.f-col a:hover{
  text-decoration: underline;
}

.f-brand{
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.f-brand img{ height: 40px; width: auto; display: block; }
.f-brand strong{ font-size: 1.1rem; color: #fff; }

.f-links{
  display: grid; gap: 6px;
}

.socials{
  display: flex; gap: 10px; margin-top: 6px;
}
.socials a{
  background: rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Footer responsive */
@media (max-width: 980px){
  .footer-wrap{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .footer-wrap{ grid-template-columns: 1fr; }
}
/* --- Buttons reset helpers used on home --- */
.btn { cursor: pointer; }

/* Ensure images don’t overflow */
img { max-width: 100%; height: auto; display: block; }
    /* ---- Full-screen sections (accounting for fixed header) ---- */
    :root{ --header-h: 80px; } /* updated at runtime via JS for precision */
    main > section.vh {
      min-height: calc(100vh - var(--header-h));
      display: grid;
      place-items: center;
      padding: 24px 16px;
    }
    .container { max-width: 1150px; margin: 0 auto; }

    /* ---- Section 1: HERO with slider ---- */
    .hero {
      position: relative;
      overflow: hidden;
      color: #ffffff;
    }
    .hero .overlay {
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25));
      z-index: 1;
    }
    .hero .slides {
      position: absolute; inset: 0;
    }
    .hero .slide {
      position: absolute; inset: 0;
      background-size: cover; background-position: center;
      opacity: 0; transition: opacity 800ms ease-in-out;
    }
    .hero .slide.active { opacity: 1; }
    .hero .content {
      position: relative; z-index: 2; text-align: center; padding: 0 16px;
    }
    .hero h1 { font-size: clamp(30px, 6vw, 56px); margin: 10px 0; }
    .hero p  { max-width: 900px; margin: 0 auto 24px; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.6; }
    .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .btn {
      display: inline-block; padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
      border: 1px solid rgba(255,255,255,0.5);
      background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px);
      transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
    }
    .btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.25); }

    .btn-primary {
      background: #0ea5e9; border-color: transparent;
    }
    .btn-primary:hover { background: #0284c7; }

    /* ---- Section 2: ABOUT split ---- */
    .about {
      background: #eaf6ff; /* light sky background color */
    }
    .split {
      display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center;
    }
    .split .text h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; color: #083344; }
    .split .text p  { color: #0a3a4a; font-size: 1.05rem; line-height: 1.7; }
    .split .media { text-align: center; }
    .split .media img { max-width: 100%; height: auto; border-radius: 16px; box-shadow: 0 6px 22px rgba(0,0,0,0.12); }

    @media (max-width: 980px){
      .split { grid-template-columns: 1fr; }
    }

    /* ---- Section 3: PROJECTS grid, with images + read more ---- */
    .projects h2 { text-align: center; margin-bottom: 22px; color: #083344; }
    .cards {
      display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
    }
    @media (max-width: 980px){ .cards{ grid-template-columns: 1fr 1fr; } }
    @media (max-width: 640px){ .cards{ grid-template-columns: 1fr; } }

    .card {
      display: flex; flex-direction: column;
      background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }
    .card img { width: 100%; height: 210px; object-fit: cover; }
    .card-body { padding: 14px; display: grid; gap: 8px; }
    .card h3 { margin: 0; color: #083344; font-size: 1.14rem; }
    .card p  { margin: 0; color: #0a3a4a; line-height: 1.6; }
    .card .actions { margin-top: 8px; }
    .card .btn {
      background: #0ea5e9; border-color: transparent;
    }
    .card .btn:hover { background: #0284c7; }

    .projects-footer {
      display: flex; justify-content: center; margin-top: 18px;
    }
    .btn-outline {
      background: #ffffff; color: #083344; border: 1px solid rgba(0,0,0,0.15);
    }
    .btn-outline:hover { background: #f3fbff; }

    /* ---- Section 4: CTA panel ---- */
    .cta .cta-panel {
      background: #e8f6fd; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 24px;
      max-width: 900px; margin: 0 auto; text-align: center;
    }
    .cta h2{ color:#083344; }
    .cta .muted{ color:#0a3a4a; }
    .cta .cta-actions { display:flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
    /* === Section 2: make the image shorter === */
.split .media img{
  max-height: 340px;          /* shorter visual height */
  width: 100%;
  height: auto;
  object-fit: contain;         /* keep aspect ratio without cropping */
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}
@media (max-width: 980px){
  .split .media img{ max-height: 280px; }
}

/* === Section 4 (CTA): background image + overlay === */
.cta{
  position: relative;
  color: #fff;                 /* readable on photo background */
}
.cta::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35)),
    url('resources/images/cta-bg.jpeg');  /* <- place your image here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: saturate(105%);
}
/* keep the panel readable on the photo */
.cta > .container,
.cta .cta-panel{ position: relative; z-index: 1; }

.cta .cta-panel{
  background: rgba(255,255,255,0.12);    /* glassy panel */
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  color: #fff;
}
.cta h2, .cta .muted{ color: #fff; }
.cta .btn{ border-color: rgba(255,255,255,0.7); }
.cta .btn:hover{ background: rgba(255,255,255,0.25); }
.cta .btn.btn-primary{ background: #0ea5e9; border-color: transparent; }
.cta .btn.btn-primary:hover{ background: #0284c7; }

/* 1) Reset UA default spacing */
html, body { margin: 0; padding: 0; }

/* 2) Make the hero visually sit right under the fixed header */
#header-spacer{ position: relative; z-index: 0; }   /* keeps layout */
.hero{ 
  position: relative; 
  margin-top: calc(var(--header-h) * -1);          /* overlap the spacer */
  z-index: 1;                                       /* render above spacer */
}
/* keep content readable under the header */
.hero .content{ padding-top: calc(var(--header-h) + 8px); }

/* ensure full bleed after shifting up */
.hero.vh{ min-height: 100vh; }
/* Full-bleed video slider */
.projects.videos { position: relative; }
.projects.videos .vslides { position: relative; height: 100%; }
.projects.videos .vslide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity .6s ease;
}
.projects.videos .vslide.active { opacity: 1; z-index: 1; }

.projects.videos video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.projects.videos .vshade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25));
}

.projects.videos .vcaption {
  position: relative; z-index: 2; height: 100%;
  display: grid; align-content: end; gap: .75rem; padding-bottom: 2.5rem;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.projects.videos .vcaption h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0 0 .5rem;
}
.projects.videos .play { align-self: start; }
/* Ensure full-screen height for the video section */
.vh { min-height: calc(100vh - var(--header-h, 80px)); }  /* global helper, if missing */
.projects.videos { min-height: calc(100vh - var(--header-h, 80px)); } /* give the section height */
.projects.videos .vslides { height: 100%; } /* let slides fill the section */
