/* =========================================================
   HAKUNA MATATA — site styles (rebuilt 2026-11-25 by Berger)
   One stylesheet for all five pages. Responsive from 320px up.
   Palette comes from the logo:
     --sea    #187890  (logo blue)
     --sun    #F8D830  (logo yellow)
     --shrimp #F04830  (the shrimp)
   ========================================================= */

:root {
  --sea: #187890;
  --sea-deep: #0d3f4c;
  --sun: #f8d830;
  --shrimp: #f04830;
  --night: #121212;
  --night-2: #1c1c1c;
  --sand: #f6efe2;
  --ink: #f4f1ea;
  --muted: #c9c4b8;
  --radius: 10px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--night);
  overflow-x: clip;
}

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

a { color: var(--sun); }

h1, h2, h3 {
  margin: 0 0 0.4em;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 18, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--sea);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand { flex: none; line-height: 0; }
.brand img { height: 48px; width: auto; }

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover { background: var(--sea); color: #fff; }

.site-nav a[aria-current="page"] { background: var(--sun); color: var(--night); }

.menu-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--sun);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sun);
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  max-width: 100%;
  padding: 14px 26px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--night);
  background: var(--sun);
  border: 2px solid var(--sun);
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); background: #ffe45c; }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--night); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Home hero ---------- */
.home-hero {
  padding: 56px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(24, 120, 144, 0.45), transparent 60%),
    var(--night);
}

.home-hero .logo-big {
  width: min(380px, 80vw);
  margin: 0 auto 24px;
}

.home-hero .lede {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
}

.home-hero .actions { justify-content: center; }

.languages {
  margin: 0 auto 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--sun);
}

/* ---------- Home cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 72px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--night-2);
  border-radius: var(--radius);
  border-top: 5px solid var(--sea);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:nth-child(2) { border-top-color: var(--sun); }
.card:nth-child(3) { border-top-color: var(--shrimp); }
.card:nth-child(4) { border-top-color: var(--sea); }

.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }

.card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.card-body { padding: 22px 24px 26px; }
.card-body p { color: var(--muted); }

.card-link {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--sun);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 46vh;
  padding: 120px 0 48px;
  background-color: var(--sea-deep);
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.page-hero .wrap { position: relative; }

.page-hero p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--sun);
  border-radius: 999px;
}

/* ---------- Feature rows (image + text) ---------- */
.features { padding: 64px 0 24px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}

.feature:nth-child(even) .feature-img { order: 2; }

.feature-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--sea);
}

.feature:nth-child(even) .feature-img img { box-shadow: -10px 10px 0 var(--shrimp); }

.feature-text h2 { color: var(--sun); }
.feature-text p { color: var(--ink); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(24, 120, 144, 0.35);
  border: 1px solid var(--sea);
  border-radius: 999px;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  padding: 56px 0;
  text-align: center;
  color: var(--night);
  background: var(--sun);
}

.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; }
.cta-band .actions { justify-content: center; }
.cta-band .btn { color: var(--sun); background: var(--night); border-color: var(--night); }
.cta-band .btn:hover { background: var(--sea); border-color: var(--sea); }
.cta-band .btn-ghost { color: var(--night); background: transparent; }
.cta-band .btn-ghost:hover { color: var(--sun); background: var(--night); }

/* ---------- About ---------- */
.about-intro {
  padding: 64px 0 24px;
}

.about-intro .big {
  max-width: 760px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
}

.about-intro .big span { color: var(--sun); }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 72px;
  padding: 0;
  list-style: none;
}

.values li {
  padding: 26px;
  background: var(--night-2);
  border-radius: var(--radius);
  border-left: 5px solid var(--sea);
}

.values li:nth-child(2) { border-left-color: var(--sun); }
.values li:nth-child(3) { border-left-color: var(--shrimp); }
.values h3 { color: var(--sun); }
.values p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 32px;
  background: #0a0a0a;
  border-top: 3px solid var(--sea);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 15px; }

.social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.social a { display: block; line-height: 0; border-radius: 50%; }
.social img { width: 42px; height: 42px; }

.credit {
  width: 100%;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .feature:nth-child(even) .feature-img { order: 0; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Phone: menu button ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 3px solid var(--sun);
  }

  .site-header.is-open .site-nav { display: block; }

  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }

  .site-nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }

  .site-nav a {
    padding: 16px 24px;
    font-size: 20px;
    border-radius: 0;
  }

  .site-nav a[aria-current="page"] {
    color: var(--sun);
    background: transparent;
    box-shadow: inset 4px 0 0 var(--sun);
  }

  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .brand img { height: 42px; }
  .page-hero { min-height: 38vh; padding: 100px 0 36px; }
  .feature-img img { box-shadow: 6px 6px 0 var(--sea); }
  .feature:nth-child(even) .feature-img img { box-shadow: -6px 6px 0 var(--shrimp); }
  .actions .btn { width: 100%; }
}

/* No JavaScript: keep the phone menu visible */
html:not(.js) .site-nav { display: block; position: static; }
html:not(.js) .menu-toggle { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
