/* ============================================
   HOME TO ZANZIBAR — MOBILE-FIRST STYLESHEET
   Base = mobile (320px+)
   Scale up via min-width media queries
   ============================================ */

:root {
  /* Color Palette */
  --color-primary: #0077BE;
  --color-primary-light: #00A8E8;
  --color-secondary: #FF8C42;
  --color-secondary-light: #FFB347;
  --color-accent: #E8D4B8;
  --color-text-dark: #333333;
  --color-text-light: #F5F5F5;
  --color-white: #FFFFFF;
  --color-sky: #87CEEB;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

/* Mobile-first type scale */
h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.15rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Utilities ---- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

/* ---- Grid — stacked on mobile ---- */
.grid-2,
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
}

/* ---- Header / Navigation ---- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  position: relative;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 119, 190, 0.08);
}

/* Desktop menu — hidden on mobile */
.desktop-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.5rem 0;
  z-index: 100;
  text-align: center;
}

.desktop-menu.nav-active {
  display: flex;
}

.desktop-menu li a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: background 0.2s, color 0.2s;
}

.desktop-menu li a:hover,
.desktop-menu li a:focus {
  background: rgba(0, 119, 190, 0.05);
  color: var(--color-primary);
}

.desktop-menu li .btn {
  margin: 0.5rem 1.2rem;
}

/* ---- Hero Slider ---- */
.hero {
  height: 55vh;
  min-height: 300px;
  max-height: 500px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-color: #333;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out 0.6s;
  z-index: 10;
  max-width: 90%;
  padding: 0 var(--spacing-md);
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-content .btn {
  padding: 10px 28px;
  font-size: 0.9rem;
}

/* ---- Page Header ---- */
.page-header {
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.3rem;
}

.page-header p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ---- Cards ---- */
.card {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ---- Trust Badges ---- */
.trust-badges-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  justify-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-badge-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 1.2rem;
}

.trust-badge-text {
  font-size: 0.72rem;
}

.trust-badge-title {
  font-weight: 700;
  font-size: 0.78rem;
}

/* ---- Footer ---- */
footer .footer-col {
  text-align: center;
}

footer .footer-col h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

footer .footer-col p,
footer .footer-col a {
  font-size: 0.85rem;
}

footer .footer-col ul li {
  margin-bottom: 0.3rem;
}

footer .social-icons {
  justify-content: center;
}

footer .social-icons a {
  font-size: 1.1rem;
}

/* Footer grid — stacked on mobile */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Reviews strip in footer */
.footer-reviews {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.5rem;
  font-size: 0.75rem;
}

/* ============================================
   TABLET (≥ 600px)
   ============================================ */
@media (min-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .container {
    width: 90%;
    padding: 0 var(--spacing-md);
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    height: 60vh;
    min-height: 350px;
    max-height: 600px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .trust-badges-wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .trust-badge-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.4rem;
  }

  .trust-badge-text {
    font-size: 0.8rem;
  }

  .trust-badge-title {
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* ============================================
   DESKTOP (≥ 1024px)
   ============================================ */
@media (min-width: 1024px) {
  :root {
    --spacing-lg: 32px;
    --spacing-xl: 64px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .container {
    width: 85%;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo img {
    height: 60px;
  }

  /* Desktop nav — horizontal */
  .mobile-menu-toggle {
    display: none !important;
  }

  .desktop-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    gap: 2rem;
    align-items: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: left;
  }

  .desktop-menu li a {
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  .desktop-menu li a:hover {
    background: transparent;
  }

  .desktop-menu li .btn {
    margin: 0;
  }

  /* Hero — larger on desktop */
  .hero {
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
  }

  .hero-content {
    max-width: 800px;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-content p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
  }

  .hero-content .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
  }

  .trust-badges-wrap {
    justify-items: start;
  }

  .trust-badge-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.8rem;
  }

  .trust-badge-title {
    font-size: 1rem;
  }

  .trust-badge-text {
    font-size: 0.88rem;
  }

  footer .footer-col {
    text-align: left;
  }

  footer .social-icons {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
  }

  .section-padding {
    padding: var(--spacing-xl) 0;
  }
}