/* ═══════════════════════════════════════════
   BELIZE BRAND — brand.css
   Custom fonts, animations, and overrides
   that complement Tailwind utility classes.
═══════════════════════════════════════════ */

/* ─── LOCAL FONTS ───────────────────────── */
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/fonts/MADE TOMMY Black_PERSONAL USE.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/fonts/MADE TOMMY Bold_PERSONAL USE.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/fonts/MADE TOMMY Medium_PERSONAL USE.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/fonts/MADE TOMMY Regular_PERSONAL USE.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/fonts/MADE TOMMY Light_PERSONAL USE.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ─── BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── DISPLAY / HEADING TYPOGRAPHY ──────── */
.text-display {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
}
.text-h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
}
.text-h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

/* ─── SCROLL REVEAL ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ─── NAV — TRANSPARENT (default over hero) */
.nav-default .logo-invert   { display: block; }
.nav-default .logo-isotype  { display: none; }
.nav-default .nav-mobile-bars span { background: white; }

/* ─── NAV — SCROLLED (white background) ─── */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.nav-scrolled .logo-invert   { display: none !important; }
.nav-scrolled .logo-isotype  { display: flex !important; }
.nav-scrolled .nav-link-default { color: #231F20 !important; }
.nav-scrolled .nav-link-default:hover { color: #1DBFAD !important; }
.nav-scrolled .nav-mobile-bars span { background: #231F20 !important; }

/* ─── NAV — INNER PAGES (always solid white) */
.nav-inner {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.nav-inner .logo-invert   { display: none !important; }
.nav-inner .logo-isotype  { display: flex !important; }
.nav-inner .nav-link-default { color: #231F20 !important; }
.nav-inner .nav-link-default:hover { color: #1DBFAD !important; }
.nav-inner .nav-mobile-bars span { background: #231F20 !important; }

/* ─── MEGA MENU ─────────────────────────── */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 94vw);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
  overflow: hidden;               /* clips the color bar to border-radius */
  animation: mega-in 0.2s ease forwards;
  z-index: 200;
}

/* Narrower variant for Country Brand (3 items) */
.mega-menu-sm {
  width: min(680px, 94vw);
}


/* Hover display is controlled by JS (mouseenter/mouseleave with delay)
   to prevent the gap-disappear bug when moving from trigger to panel. */
.mega-menu.is-open { display: block; }

@keyframes mega-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── HERO ───────────────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24,24,24,0.93) 0%, rgba(24,24,24,0.55) 60%, rgba(29,191,173,0.20) 100%);
}

/* ─── PARALLAX HERO (inner pages) ─────── */
.parallax-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-hero {
    background-attachment: scroll;
  }
}

/* ─── MOSAIC FULL-BACKGROUND SECTION ────── */
.mosaic-section {
  position: relative;
  overflow: hidden;
}
.mosaic-section > .mosaic-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mosaic watermark helper */
.mosaic-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ─── PILLAR CARDS ──────────────────────── */
.pillar-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pillar-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.18); }
.pillar-card img { transition: transform 0.5s ease; }
.pillar-card:hover img { transform: scale(1.07); }

/* ─── NEWS CARDS ────────────────────────── */
.news-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.10); }

/* ─── FORM ───────────────────────────────── */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E8E8E8;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #231F20;
  background: #F8F8F8;
  outline: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: #1DBFAD;
  box-shadow: 0 0 0 3px rgba(29, 191, 173, 0.12);
  background: #fff;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9E9E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ─── FOOTER ACCENT BAR ─────────────────── */
.footer-accent { display: flex; height: 5px; }
.footer-accent span { flex: 1; }

/* ─── PARTNER LOGOS ─────────────────────── */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.45;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-logo:hover { filter: none; opacity: 1; }

/* ─── PULSE BADGE DOT ───────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.pulse-dot { animation: pulse-dot 2s infinite; }

/* ─── SECTION LABEL LINE ─────────────────── */
.section-line {
  display: inline-block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
}

/* ─── STAT CARD GLASS ────────────────────── */
.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ─── VIDEO PLACEHOLDER ───────────────────── */
.video-placeholder {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}
.video-placeholder .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder .play-btn span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-placeholder:hover .play-btn span {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ─── INNER PAGE HERO ────────────────────── */
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(24,24,24,0.88) 0%, rgba(24,24,24,0.60) 60%, rgba(29,191,173,0.18) 100%);
}

/* ─── STEP CARD ──────────────────────────── */
.step-card {
  position: relative;
  padding-left: 60px;
}
.step-card .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: white;
}

/* ─── COLOR SWATCH ───────────────────────── */
.color-swatch {
  height: 100px;
  border-radius: 16px 16px 0 0;
}
.color-swatch-label {
  padding: 12px 16px;
  border: 1px solid #EFEFEF;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

/* ─── VALUE CARD ─────────────────────────── */
.value-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* ─── ACCORDION (FAQ) ────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.2s ease;
}
.faq-answer.open {
  max-height: 400px;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .about-img-grid { display: none; }
}
