/* =============================================
   ASANTE TOURS — responsive.css (UPDATED)
   All breakpoints / mobile styles
   Mobile-first approach: base = mobile, scale up
   ============================================= */

/* ============================================
   BASE / GLOBAL OVERFLOW GUARD
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

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

/* ============================================
   HERO — RESPONSIVE BACKGROUND IMAGES
   Use CSS custom properties + media queries so
   you can swap hero image per breakpoint just
   by updating the URL in style.css or inline.
   ============================================ */

/*
  To use per-device hero images, add these
  classes to your <section class="hero"> element
  and set the URLs in style.css or inline style:

  Desktop  (1200px+) : uses 'background-image' set inline or via .hero-desktop
  Laptop   (992-1199): .hero { background-image: url('img/hero/hero-laptop.jpg'); }
  Tablet   (768-991) : .hero { background-image: url('img/hero/hero-tablet.jpg'); }
  Mobile   (<768px)  : .hero { background-image: url('img/hero/hero-mobile.jpg'); }

  The classes below target the hero's background-image for each breakpoint.
  If you want to use them, add class="hero hero-bg-responsive" to the section
  and define the URLs via CSS variables below.
*/

:root {
  --hero-img-desktop: url('img/hero/asantehero1.jpg');
  --hero-img-tablet:  url('img/hero/asantehero1.jpg'); /* swap to tablet-optimised crop */
  --hero-img-mobile:  url('img/hero/asantehero1.jpg'); /* swap to mobile-optimised crop */
}

/* Hero base */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: flex-end; /* content anchored near bottom by default */
}

/* ============================================
   HERO CONTENT POSITIONING
   Desktop / Laptop: centered X, ~75% down Y
   Mobile: bottom-center with padding
   ============================================ */

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 24px 10vh;           /* push up from bottom edge */
}

/* Desktop & Laptop: center text, sit ~70-75% down */
@media (min-width: 769px) {
  .hero {
    align-items: center; /* flex centering, then offset with margin-top */
    background-image: var(--hero-img-desktop);
  }

  .hero-content {
    /* Vertical: push content toward bottom-third without covering faces */
    margin-top: 20vh;
    padding: 0 40px 8vh;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* Laptop: use laptop-specific image if defined */
  .hero {
    background-image: var(--hero-img-desktop); /* override to --hero-img-laptop if you have one */
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 991px) {
  .hero {
    background-image: var(--hero-img-tablet);
    background-position: center top;
  }

  .hero-content {
    margin-top: 22vh;
    padding: 0 32px 10vh;
  }
}

/* Mobile: text at bottom-center, clear of face area */
@media (max-width: 768px) {
  .hero {
    background-image: var(--hero-img-mobile);
    background-position: center top;   /* keep subject visible at top */
    align-items: flex-end;
    min-height: 100svh;                /* safe-area-aware on iOS */
  }

  .hero-content {
    margin-top: 0;
    padding: 0 20px 48px;              /* 48px above bottom chrome */
    text-align: center;
  }

  .hero-overlay {
    /* Stronger gradient at bottom for text legibility */
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.05) 0%,
      rgba(0,0,0,0.15) 50%,
      rgba(0,0,0,0.72) 100%
    ) !important;
  }
}

/* ---- TABLET: 1024px ---- */
@media (max-width: 1024px) {
  .nav-menu { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 11px; }
  .nav-phone { display: none; }
  .mega-inner { grid-template-columns: 1fr 1fr 1fr; }
  .mega-featured { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .why-us__inner { gap: 48px; }
  .dest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tours-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---- SMALL TABLET: 768px ---- */
@media (max-width: 768px) {
  :root { --container: 100%; }
  html { font-size: 19px; } /* bigger base for mobile */

  /* Nav */
  .nav-menu { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-container { padding: 16px 20px; }

  /* Hero adjustments */
  .hero-slide-nav { display: none; }
  .hero-scroll-hint { display: none; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }

  /* Hero title scale */
  .hero-main {
    font-size: clamp(3rem, 13vw, 5rem);
    line-height: 0.95;
  }

  .hero-mini {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    letter-spacing: 0.3em;
  }

  .hero-tagline {
    font-size: clamp(1rem, 4vw, 1.1rem);
  }

  /* Section text bigger on mobile */
  .section-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .section-sub   { font-size: 17px; }
  .tour-card__excerpt,
  .dest-card__desc { font-size: 16px; }
  .tour-card__title,
  .dest-card__name  { font-size: 22px; }
  .why-us__lead     { font-size: 18px; }
  .why-point p      { font-size: 16px; }
  .testimonial blockquote { font-size: clamp(1.25rem, 4vw, 1.5rem); }
  .footer-links a   { font-size: 17px; }
  .footer-contact-item { font-size: 16px; }

  /* Trust */
  .trust-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .trust-divider { display: none; }
  .trust-item { padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .trust-num  { font-size: 30px; }
  .trust-label { font-size: 13px; }

  /* Destinations */
  .destinations { padding: 64px 0; }
  .dest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }

  /* Why Us */
  .why-us { padding: 64px 0; }
  .why-us__inner { grid-template-columns: 1fr; gap: 40px; }
  .why-us__image { order: 2; }
  .why-us__image img { height: 360px; }
  .why-us__img-badge { right: 16px; }
  .why-us__content { order: 1; }

  /* Tours */
  .featured-tours { padding: 64px 0; }
  .tours-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Styles */
  .travel-styles { padding: 64px 0; }
  .styles-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-template-rows: repeat(3, 200px);
  }

  /* Testimonials */
  .testimonials { padding: 64px 0; }

  /* CTA */
  .cta-banner { padding: 80px 0; background-attachment: scroll; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .cta-banner__content p { font-size: 17px; }

  /* Footer */
  .footer-top { padding: 56px 0 40px; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .footer-col { width: 100%; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
  #site-footer { overflow-x: hidden; }

  /* COMPLETELY hide info bar on tablet/mobile */
  #asante-infobar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* WhatsApp */
  .wa-float { bottom: 20px; right: 16px; }
  .wa-float__icon { width: 56px; height: 56px; }
}

/* ---- MOBILE: 480px ---- */
@media (max-width: 480px) {
  .dest-grid { grid-template-columns: 1fr; }
  .styles-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 180px);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .hero-main { font-size: clamp(2rem, 12vw, 3rem); }
  .section-title { font-size: 1.9rem; }
  .mega-menu { padding: 24px 0; }
  .mega-inner { grid-template-columns: 1fr; padding: 0 20px; }

  /* Prevent horizontal overflow */
  .container { padding-left: 16px; padding-right: 16px; }
  .section-header { padding: 0 8px; }

  /* Tours single column always on small mobile */
  .tours-grid { grid-template-columns: 1fr !important; }

  /* Trust bar 2 columns on very small screens */
  .trust-items { grid-template-columns: repeat(2, 1fr); }

  /* Footer full single column */
  .footer-col--brand,
  .footer-col--contact { grid-column: 1 / -1; }
}

/* ---- LANDSCAPE MOBILE: short + wide ---- */
@media (max-width: 812px) and (orientation: landscape) and (max-height: 450px) {
  .hero {
    min-height: 100svh;
    background-position: center center;
  }

  .hero-content {
    padding: 0 24px 32px;
  }

  .hero-main { font-size: clamp(1.8rem, 6vw, 2.6rem); }
}

/* ---- LARGE DESKTOP: 1400px+ ---- */
@media (min-width: 1400px) {
  .mega-inner { padding: 0 60px; }
  .nav-container { padding: 22px 60px; }
  #site-header.scrolled .nav-container { padding: 10px 60px; }
}
