/* ===================================
   RESET & BASE — DESIGN LIGHT
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f7fa;
  --bg2: #e8eef4;
  --card-bg: rgba(255, 255, 255, 0.85);
  --gold: #29ABD1;
  /* logo teal */
  --gold-light: #4ec4e8;
  /* lighter teal for hover */
  --navy: #1E3A5F;
  /* logo dark navy */
  --white: #0f1e2e;
  /* near-navy for body text */
  --muted: #4a647e;
  --border: rgba(41, 171, 209, 0.22);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

@keyframes navbarSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* .navbar--scrolled styles can be added here */

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 14px 10px;
}

.navbar__logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  /* logo has its own colors, no filter needed on light bg */
}

.navbar__links {
  display: flex;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50px;
  padding: 15px 7px;
  gap: 4px;
  backdrop-filter: blur(20px);
  margin-left: -60px;
  box-shadow: 0 2px 16px rgb(0 0 0 / 35%);
}

/* Staggered link entrance animation */
.navbar__links li {
  opacity: 0;
  animation: navLinkFadeIn 0.5s ease forwards;
}

.navbar__links li:nth-child(1) {
  animation-delay: 0.3s;
}

.navbar__links li:nth-child(2) {
  animation-delay: 0.45s;
}

.navbar__links li:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes navLinkFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar__link {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}

.navbar__link:hover {
  color: var(--navy);
  background: rgba(41, 171, 209, 0.1);
}

.navbar__link--active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.navbar__link--active:hover {
  background: var(--gold);
  color: #fff;
}

.navbar__home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(41, 171, 209, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  margin-left: -45px;
}

.navbar__home-btn svg {
  fill: currentColor;
}

.navbar__home-btn:hover {
  background: var(--gold);
  color: #fff;
}

.navbar__home-btn--home-page {
  display: none;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   SPA SECTIONS
   =================================== */
.spa-section {
  display: none;
}

.spa-section--active {
  display: block;
}

.spa-section--enter {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('Windhoek.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}


/* Light version: bright blue-tinted wash overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(244 247 250 / 0%) 0%, rgb(0 0 0 / 36%) 100%);
}

.hero__bg--home::after {
  background: linear-gradient(to bottom, rgb(255 255 255) 0%, rgb(0 0 0 / 0%) 55%)
}

.team__bg {
  background-image: url('Team21.jpg');
  background-position: top;
  background-position-y: -80px;
}

.hero__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 32px;
}

.hero__card {
  text-align: center;
  max-width: 640px;
  animation: fadeUp 1s ease both;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  /* border: 1px solid var(--border); */
  padding: 6px 18px;
  border-radius: 50px;
  background: #fff;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 36px;
}

.hero__card--about .hero__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.about-intro {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 2;
  color: rgba(15, 30, 46, 0.8);
  font-weight: 300;
}

/* ===================================
   BUTTON
   =================================== */
.btn {
  display: inline-block;
  padding: 14px 44px;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.15s, box-shadow 0.25s;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.25);
}

.btn--primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(41, 171, 209, 0.32);
}

/* ===================================
   HOME FEATURE IMAGE
   =================================== */
.home-feature-img {
  padding: 0 24px 60px;
  background: var(--bg);
}

.home-feature-img__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(30, 58, 95, 0.14);
}

.home-feature-img__photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.home-feature-img__inner:hover .home-feature-img__photo {
  transform: scale(1.03);
}

.home-feature-img__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 22px;
  background: linear-gradient(to top, rgba(15, 30, 46, 0.72) 0%, transparent 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* ===================================
   SERVICES
   =================================== */
.services {
  padding: 80px 24px 100px;
  text-align: center;
  background: var(--bg);
}

.services__inner {
  max-width: 640px;
  margin: 0 auto;
}

.services__heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 56px;
  position: relative;
  display: inline-block;
}

.services__heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 0;
  opacity: 0.5;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 56px;
}

.services__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: padding-left 0.3s;
}

.services__item:hover {
  padding-left: 8px;
}

.services__num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
  width: 28px;
  letter-spacing: 0.05em;
}

.services__item h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.01em;
}

/* ===================================
   ABOUT US
   =================================== */
.about-us {
  display: flex;
  align-items: stretch;
  min-height: 520px;
  background: #fff;
}

.about-us::before {
  content: " ";
  background-image: url(Windhoek.png);
}

.about-us__img {
  flex: 1 1 50%;
  overflow: hidden;
}

.about-us__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
  margin-top: 60px;
}

.about-us__img:hover img {
  transform: scale(1.04);
}

.about-us__text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 64px 56px;
  background: #fff;
}

.about-us__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.about-us__body {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}

@media (max-width: 768px) {
  .about-us {
    flex-direction: column;
  }

  .about-us__img {
    min-height: 480px;
    flex: none;
  }

  .about-us__text {
    padding: 44px 28px;
  }
}

/* ===================================
   CORE VALUES
   =================================== */
.core-values {
  padding: 80px 24px 80px;
  background: var(--bg2);
}

.core-values__inner {
  max-width: 680px;
  margin: 0 auto;
}

.core-values__heading {
  margin-left: calc(50% - 80px);
  margin-right: auto;
}

.value-item {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.value-item__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 36px;
  padding-top: 4px;
}

.value-item__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.value-item__text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
}

.core-values__cta {
  margin-top: 52px;
  margin-bottom: 16px;
  text-align: center;
}

/* ===================================
   TEAM
   =================================== */
.team-hero {
  background: var(--bg);
  padding: 60px 24px 80px;
}

.team-cards {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 122px;
  padding: 24px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(41, 171, 209, 0.08);
}

.team-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 32px rgba(41, 171, 209, 0.18);
}

.team-card__avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  cursor: pointer;
}

.team-card__role {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.team-card__bio {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-card__read-more {
  display: inline-block;
  margin-top: 1px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  letter-spacing: 0.05em;
}

.team-card__read-more:hover {
  color: var(--gold-light);
}

.team-cta {
  padding: 20px 24px 60px;
  text-align: center;
  background: var(--bg);
}

/* ===================================
   CONTACT
   =================================== */
.contact-section {
  background: var(--bg);
  padding: 70px 24px 80px;
}

.contact-section__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 18px 24px;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
  box-shadow: 0 2px 12px rgba(41, 171, 209, 0.07);
}

.contact-card:hover {
  border-color: var(--gold);
  background: rgba(41, 171, 209, 0.06);
}

.contact-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(41, 171, 209, 0.12);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-card__text {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.contact-map {
  margin-top: 8px;
}

/* No invert needed on light theme */
.contact-map iframe {
  filter: none;
}

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-address__icon {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 28px;
  text-align: center;
}

.footer__inner {
  max-width: 500px;
  margin: 0 auto;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer__social-link {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  display: flex;
}

.footer__social-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer__company {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===================================
   MODAL
   =================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 46, 0.45);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px;
  max-width: 500px;
  width: 90%;
  max-height: 98vh;
  overflow-y: auto;
  animation: fadeUp 0.4s ease both;
  box-shadow: 0 12px 60px rgba(41, 171, 209, 0.15);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}

.modal__close:hover {
  color: var(--gold);
}

.modal__img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 20px;
  border: 2px solid var(--border);
}

.modal__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 4px;
  color: var(--navy);
}

.modal__role {
  font-size: 0.78rem;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal__desc {
  font-size: 0.91rem;
  line-height: 1.8;
  color: var(--muted);
}

.modal.closing .modal__content {
  animation: fadeDown 0.4s ease both;
}

@keyframes fadeDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1280px) {
  .team__bg {
    background-position-y: -10px;
  }
}

@media (max-width: 640px) {
  .navbar__nav {
    display: none;
    pointer-events: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    margin-left: auto;
  }

  /* Animated mobile dropdown */
  .navbar--menu-open .navbar__nav {
    display: block;
    pointer-events: auto;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    border-radius: 60px;
    margin: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: dropdownSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes dropdownSlideIn {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Re-trigger stagger when dropdown opens */
  .navbar--menu-open .navbar__links li {
    opacity: 0;
    animation: navLinkFadeIn 0.4s ease forwards;
  }

  .navbar--menu-open .navbar__links li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .navbar--menu-open .navbar__links li:nth-child(2) {
    animation-delay: 0.15s;
  }

  .navbar--menu-open .navbar__links li:nth-child(3) {
    animation-delay: 0.25s;
  }

  .navbar--menu-open .navbar__links {
    justify-content: space-between;
    border-radius: 60px;
    gap: 4px;

  }

  .navbar--menu-open .navbar__link {
    padding: 10px 14px;
    text-align: center;
    font-size: 13px;
  }

  .team-card>.team-card__avatar {
    width: 90px;
    height: 90px;
  }

  .team-card {
    gap: 18px;
    padding: 17px;
  }

  .team-card__bio {
    -webkit-line-clamp: 2;
  }

  .value-item {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    height: 60vh;
  }

  .team-hero {
    padding: 30px 10px;
  }

  .navbar__logo {
    height: 40px;
  }

  .navbar__home-btn {
    margin-left: -30px;
  }

  .team__bg {
    background-position-y: 0px;
  }

  .navbar__team {
    margin-right: -10px;
  }
}