/* ============================================
   WIZA DO TANZANII – COMPLETE STYLESHEET
   Blue & Gold · Inter · Fully Responsive
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --navy:       #183658;
  --navy-dark:  #0f2440;
  --blue:       #1e5288;
  --blue-light: #2a6cb8;
  --gold:       #d4a843;
  --gold-light: #f0d078;
  --gold-pale:  #fdf6e3;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --gray-100:   #f0f2f5;
  --gray-200:   #e2e6eb;
  --gray-300:   #cdd3db;
  --gray-500:   #7a8594;
  --gray-700:   #3d4654;
  --text:       #2c3e50;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(24,54,88,.08);
  --shadow-md:  0 4px 14px rgba(24,54,88,.10);
  --shadow-lg:  0 8px 30px rgba(24,54,88,.12);
  --transition: .25s ease;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; }

h2, h3, h4 { line-height: 1.3; }

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mt-2 { margin-top: 2.5rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--gold-light); }

.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.logo-text small {
  font-size: .7rem;
  color: var(--gray-300);
  font-weight: 400;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- NAVIGATION ---------- */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--navy-dark);
  padding: 80px 0 2rem;
  overflow-y: auto;
  transition: right var(--transition);
  z-index: 1050;
  box-shadow: -4px 0 20px rgba(0,0,0,.25);
}
.main-nav.open { right: 0; }

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list > li { border-bottom: 1px solid rgba(255,255,255,.07); }

.nav-list a {
  display: block;
  padding: .85rem 1.5rem;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255,255,255,.06);
  color: var(--gold-light);
}

/* Submenu */
.has-submenu { position: relative; }

.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .85rem 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.88);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.submenu-toggle:hover {
  background: rgba(255,255,255,.06);
  color: var(--gold-light);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: rgba(0,0,0,.12);
}
.submenu.open { max-height: 500px; }

.submenu a {
  padding-left: 2.5rem;
  font-size: .88rem;
  font-weight: 400;
  color: rgba(255,255,255,.72);
}
.submenu a:hover { color: var(--gold-light); }

/* ---------- OVERLAY ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1,
.hero h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
  position: relative;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
}

/* CTA Buttons */
.hero-cta,
.hero-cta-outline {
  display: inline-block;
  padding: .85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}

.hero-cta {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(212,168,67,.35);
}
.hero-cta:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212,168,67,.45);
}

.hero-cta-outline {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
  background: transparent;
}
.hero-cta-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212,168,67,.08);
  transform: translateY(-2px);
}

/* ---------- WIDGET SECTION ---------- */
.widget-section {
  padding: 2.5rem 0;
  background: var(--off-white);
}
.widget-section .container {
  display: flex;
  justify-content: center;
}

[data-visa-widget] {
  width: 100%;
  max-width: 960px;
  min-height: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: .75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- CARDS GRID ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}

.card p {
  color: var(--gray-700);
  font-size: .95rem;
  flex: 1;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--blue);
  transition: color var(--transition);
  margin-top: auto;
}
.card-link:hover { color: var(--gold); }

/* ---------- FAQ / DETAILS / ACCORDION ---------- */
details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
details:hover { box-shadow: var(--shadow-sm); }
details[open] { box-shadow: var(--shadow-md); border-color: var(--gold); }

summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: background var(--transition);
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
details[open] summary::before {
  content: '−';
  background: var(--gold);
  color: var(--white);
}
summary:hover { background: var(--gray-100); }

.faq-answer {
  padding: 0 1.4rem 1.2rem 3.6rem;
  color: var(--gray-700);
  font-size: .95rem;
  line-height: 1.75;
  animation: faqFadeIn .3s ease;
}
.faq-answer a { color: var(--blue); font-weight: 500; }
.faq-answer a:hover { color: var(--gold); }

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

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  background: var(--gray-100);
  padding: .7rem 0;
  font-size: .85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li::after {
  content: '/';
  margin-left: .4rem;
  color: var(--gray-500);
}
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .8rem;
  position: relative;
  padding-bottom: .5rem;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.footer-col p,
.footer-col li {
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li { margin-bottom: .4em; }

.footer-col a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: .6rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
  padding: 1.2rem 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ---------- RESPONSIVE: TABLET+ ---------- */
@media (min-width: 768px) {
  .hamburger { display: none; }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .nav-list > li { border-bottom: none; }

  .nav-list a {
    padding: .55rem .9rem;
    font-size: .88rem;
    color: rgba(255,255,255,.82);
    white-space: nowrap;
  }
  .nav-list a:hover { color: var(--gold-light); background: transparent; }

  .has-submenu { position: relative; }

  .submenu-toggle {
    padding: .55rem .9rem;
    font-size: .88rem;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--navy-dark);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .has-submenu:hover .submenu,
  .submenu.open {
    max-height: 500px;
  }

  .submenu a {
    padding: .65rem 1.2rem;
    font-size: .85rem;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- RESPONSIVE: DESKTOP ---------- */
@media (min-width: 1024px) {
  .header-inner { height: 70px; }

  .nav-list a {
    padding: .6rem 1rem;
    font-size: .9rem;
  }

  .hero { padding: 5rem 0 4rem; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Smooth reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- PRINT (minimal) ---------- */
@media print {
  .site-header, .main-nav, .hamburger, .widget-section, .site-footer, .nav-overlay { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
