/* ==========================================================================
   Salam Africa — layout.css
   Container, grid, and spacing utilities
   ========================================================================== */ /* ─── CONTAINER ───────────────────────────────────────────────────────────── */ /* .wrap is the canonical container — defined below in this file. */ /* Additional width variants */ /* ─── SECTION SPACING ────────────────────────────────────────────────────── */
.section {
  padding: var(--sp-3xl) 0;
}
.section-sm {
  padding: var(--sp-xl) 0;
} /* ─── GRID SYSTEMS ────────────────────────────────────────────────────────── */ /* Auto-fill grids */ /* Split grids */ /* ─── FLEX UTILITIES ─────────────────────────────────────────────────────── */
.flex {
  display: flex;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
} /* ─── RESPONSIVE BREAKDOWNS ──────────────────────────────────────────────── */ /* ─── HELPERS ─────────────────────────────────────────────────────────────── */
.no-print {
  display: block;
} /* ==========================================================================
   SITE CHROME: HEADER, FULLSCREEN NAVIGATION, BREADCRUMBS, AND FOOTER
   --------------------------------------------------------------------------
   Navigation belongs in layout.css, not components.css. It controls fixed site
   structure, z-index layering, the full-screen overlay, scroll/header states,
   and responsive page chrome. components.css should stay for reusable widgets
   that can appear inside content, while nav/header/footer define the page shell.

   These rules were moved out of style.css so style.css can stay base/global.
   The older duplicate header/nav/footer rules were placed in deleted.css.
   ========================================================================== */ /* Canonical container. layout.css now owns this instead of style.css. */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
} /* ─── SITE HEADER ─────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: 120px;
  transition:
    transform 0.4s var(--ease-out),
    background 0.35s,
    box-shadow 0.35s;
}
.site-header.scrolled {
  background: var(--forest);
}
.site-header.nav-open {
  background: var(--forest);
  z-index: 9001;
}
.site-header.hide {
  transform: translateY(-100%);
}
.site-header.nav-open.hide {
  transform: none;
} /* never hide when nav is open */
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px var(--pad);
}
.site-header__socials {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.site-header__soc {
  display: flex;
  color: var(--white);
  transition: color 0.2s;
}
.site-header__soc:hover {
  transform: scale(1.15);
}
.site-header__soc .social-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.site-logo {
  justify-self: center;
}
.site-logo img {
  height: 85px;
  width: auto;
}
.site-header__right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: flex-end;
}
.site-header__right .sa-btn {
  display: none;
}
@media (min-width: 768px) {
  .site-header__right .sa-btn {
    display: inline-flex;
  }
}
@media (max-width: 640px) {
  .site-header__socials {
    display: none;
  }
  /* reduce the height */
  .site-header {
    height: 75px;
  }

  .site-logo img {
    height: 60px;
  }
}
@media (max-width: 640px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--pad);
  }
  .site-logo {
    justify-self: auto;
  }
} /* ─── MENU BUTTON ─────────────────────────────────────────────────────────── */
.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.menu-btn:hover {
  opacity: 0.75;
}
.burger-line {
  display: block;
  width: 32px;
  /* SVG images — let their natural height show */
  transition:
    filter 0.35s,
    transform 0.38s var(--ease),
    opacity 0.3s;
  transform-origin: center;
} /* X animation — imgs are direct children so nth-child works */
.menu-btn.open .burger-line:nth-child(1) {
  transform: translate3d(0px, 8px, 0px) scale3d(1, 1, 1) rotateX(0deg)
    rotateY(0deg) rotateZ(-45deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
}
.menu-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}
.menu-btn.open .burger-line:nth-child(3) {
  transform: translate3d(0px, -8px, 0px) scale3d(1, 1, 1) rotateX(0deg)
    rotateY(0deg) rotateZ(45deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
} /* ─── FULLSCREEN NAV ──────────────────────────────────────────────────────── */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.45s var(--ease-out),
    visibility 0.45s var(--ease-out);
  overflow: hidden;
}
.fullscreen-nav.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
} /* No separate close button — menu-btn (z-index: 9001 via .nav-open header) acts as close */
.nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
  max-width: var(--max-w);
  margin: auto;
  padding: 5rem var(--pad) 3rem;
  flex: 1;
  margin-top: 2rem;
  width: 100%;
}
@media (max-width: 640px) {
  .nav-inner {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }
}
.nav-links {
  list-style: none;
}
.nav-links li {
  overflow: hidden;
}
.nav-links li a {
  font-family: var(--sans);
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 0;
  transition: color 0.25s var(--ease-out);
  transform: translateY(100%);
  opacity: 0;
}
.fullscreen-nav.open .nav-links li a {
  transform: translateY(0);
  opacity: 1;
  transition:
    color 0.25s var(--ease-out),
    transform 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out);
}
.nav-links li:nth-child(1) a {
  transition-delay: 0.05s;
}
.nav-links li:nth-child(2) a {
  transition-delay: 0.1s;
}
.nav-links li:nth-child(3) a {
  transition-delay: 0.15s;
}
.nav-links li:nth-child(4) a {
  transition-delay: 0.2s;
}
.nav-links li:nth-child(5) a {
  transition-delay: 0.25s;
}
.nav-links li:nth-child(6) a {
  transition-delay: 0.3s;
}
.nav-links li a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a {
  color: var(--gold);
}
.nav-links-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-panel {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.45s var(--ease-out) 0.2s,
    transform 0.45s var(--ease-out) 0.2s;
}
.fullscreen-nav.open .nav-panel {
  opacity: 1;
  transform: none;
}
.nav-panel-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-panel address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-panel address a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-panel address a:hover {
  color: var(--gold);
}
.nav-zebra-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
  opacity: 0.4;
}
.nav-zebra-stripe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
} /* page-content-wrap + .wrap alias */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
} /* on mobile */
@media (max-width: 640px) {
  .nav-inner {
    column-gap: 0;
    row-gap: var(--sp-sm);
  }
} /* ─── BREADCRUMB ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--sp-sm);
}
.breadcrumb a {
  color: var(--white);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb span {
  color: var(--white);
  font-size: 0.82rem;
}
.breadcrumb-sep {
  color: var(--white);
  opacity: 0.6;
}
.page-legal .breadcrumb-sep,
.page-legal .breadcrumb,
.page-legal .breadcrumb a,
.page-legal .breadcrumb span {
  color: var(--brown);
  opacity: 1;
} /* ─── FOOTER WAVE ─────────────────────────────────────────────────────────── */
.footer-wave {
  display: block;
  line-height: 0;
  background: var(--brown);
  margin-top: -1px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleY(1.05);
}
.footer-wave-path {
  fill: var(--forest);
} /* ─── NEW GLOBAL FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  /* Using brown as fallback, though wave provides the visual background */
  background: var(--brown);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: var(--sp-2xl); /* Space above content */
}

.footer-inner {
  position: relative;
  z-index: 5;
  padding-bottom: var(--sp-3xl); /* Space below content */
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
}

.footer-content-side {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-lg);
}

.footer-nav-title {
  font-family: var(--script);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold);
  margin: 0 0 var(--sp-md) -5px; /* slight negative margin to align script font visually */
  font-weight: 400;
  line-height: 1;
}

.footer-links {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Social & Contact */
.footer-col-contact {
  padding-top: clamp(
    2rem,
    3vw,
    3.2rem
  ); /* Align with links below the script title */
}

.footer-socials-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.footer-soc-icon {
  color: var(--white);
  transition: color 0.2s;
  display: flex;
}

.footer-soc-icon:hover {
  color: var(--gold);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.footer-contact-item {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sage-light);
  text-transform: uppercase;
}

.footer-contact-item a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  margin-left: 0.3rem;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--gold);
}

.footer-payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-payment-icons span {
  opacity: 0.85;
  transition: opacity 0.2s;
  display: inline-flex;
}
.footer-payment-icons span:hover {
  opacity: 1;
}

.footer-left-half {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xl);
}

.footer-right-half {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-logo-main {
  width: 80px;
  height: auto;
  filter: brightness(0) invert(1); /* Ensure it's white to contrast against dark footer */
}

/* Bottom Bar */
.footer-bottom {
  background: rgba(0, 0, 0, 0.15); /* Distinct bar */
  padding: 1.5rem 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--sage-light);
  font-weight: 500;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-legal-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-legal-links a:hover {
  color: var(--gold);
}

.footer-copyright {
  text-align: center;
}

.footer-credits {
  text-align: right;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 1024px) {
  .footer-content-side {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }
  .footer-col-contact {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }
  .footer-logo-side {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .footer-credits {
    text-align: center;
  }
}
