/* ════════════════════════════════════════════════════════════
   COMMON.CSS — Shared Components Across All Pages
   Navigation, section headings, buttons, reveal, footer
   ════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════
   SCROLLING UNICORN
   ════════════════════════════════════════════════════════════ */
#scroll-unicorn {
  position:       fixed;
  width:          160px;
  height:         160px;
  z-index:        500;
  pointer-events: none;
  transform-origin: center center;
  filter:         drop-shadow(0 12px 40px rgba(15, 27, 61, 0.25));
  transition:     opacity 0.5s;
}
#scroll-unicorn img { width: 100%; height: 100%; object-fit: contain; }

#unicorn-trail {
  position:       fixed;
  pointer-events: none;
  z-index:        499;
}

.trail-star {
  position:       absolute;
  border-radius:  50%;
  pointer-events: none;
  animation:      trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
  0%   { opacity: 0.9; transform: scale(1) rotate(0deg); }
  100% { opacity: 0;   transform: scale(0.1) rotate(180deg) translateY(-30px); }
}


/* ════════════════════════════════════════════════════════════
   NAVIGATION — DESKTOP
   ════════════════════════════════════════════════════════════ */
#nav {
  position:        fixed;
  top:             0;
  left:            0;
  right:           0;
  z-index:         1100;
  padding:         0 48px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          var(--nav-height);
  transition:      all 0.4s var(--ease-out);
}

#nav.scrolled {
  background:      rgba(255, 253, 240, 0.95);
  backdrop-filter: blur(20px);
  border-bottom:   2px solid var(--sun);
  box-shadow:      0 8px 48px rgba(15, 27, 61, 0.08);
  height:          var(--nav-height);
}

/* ── Logo ── */
.nav-logo {
  display:         flex;
  align-items:     center;
  gap:             14px;
  text-decoration: none;
  flex-shrink:     0;
  z-index:         1200;
  position:        relative;
}

.nav-logo-badge {
  width:           70px;
  height:          70px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  position:        relative;
  overflow:        hidden;
}
.nav-logo-badge img { width: 64px; height: 64px; object-fit: contain; }

.nav-brand {
  font-family: var(--font-heading);
  font-size:   16px;
  font-weight: 800;
  color:       var(--white);
  line-height: 1.1;
}

#nav.scrolled .nav-brand { color: var(--navy); }

.nav-tagline {
  font-size:      10px;
  font-weight:    600;
  color:          var(--sun-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Desktop Links ── */
.nav-links {
  display:     flex;
  align-items: center;
  gap:         2px;
}

.nav-links a {
  font-size:       13px;
  font-weight:     600;
  color:           var(--white);
  text-decoration: none;
  padding:         8px 16px;
  border-radius:   50px;
  transition:      all 0.25s;
  position:        relative;
}

#nav.scrolled .nav-links a { color: var(--navy); }



.nav-links a::after {
  content:       '';
  position:      absolute;
  bottom:        4px;
  left:          50%;
  right:         50%;
  height:        2px;
  background:    var(--sun);
  border-radius: 2px;
  transition:    all 0.3s var(--ease-bounce);
}
.nav-links a:hover::after,
.nav-links a.active::after { left: 16px; right: 16px; }
.nav-links a:hover        { background: rgba(255, 255, 255, 0.1); }
.nav-links a.active       { color: var(--sun); }
#nav.scrolled .nav-links a:hover  { background: var(--sun-pale); }
#nav.scrolled .nav-links a.active { color: var(--sun-deep); }

/* ── Desktop CTA ── */
.nav-cta {
  background:      var(--navy);
  color:           var(--sun);
  font-family:     var(--font-heading);
  font-size:       13px;
  font-weight:     700;
  padding:         11px 26px;
  border-radius:   50px;
  text-decoration: none;
  border:          2px solid var(--navy);
  transition:      all 0.3s var(--ease-bounce);
  display:         flex;
  align-items:     center;
  gap:             8px;
  flex-shrink:     0;
}
.nav-cta:hover {
  background: var(--sun);
  color:      var(--navy);
  transform:  translateY(-2px) scale(1.04);
}


/* ════════════════════════════════════════════════════════════
   NAVIGATION — HAMBURGER
   ════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display:         none;
  flex-direction:  column;
  justify-content: center;
  align-items:     center;
  gap:             6px;
  width:           44px;
  height:          44px;
  background:      transparent;
  border:          none;
  cursor:          pointer;
  padding:         4px;
  position:        relative;
  z-index:         1200;
  flex-shrink:     0;
}

.nav-hamburger span {
  display:          block;
  width:            26px;
  height:           2px;
  background:       var(--white);
  border-radius:    2px;
  transition:       transform 0.35s var(--ease-out), opacity 0.25s ease;
  transform-origin: center;
}

#nav.scrolled .nav-hamburger span { background: var(--navy); }

/* X animation when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--white) !important; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--white) !important; }
.nav-mobile-cta{
  display: none;
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION — MOBILE DRAWER (≤768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  #nav { padding: 0 20px; }

  /* Disable backdrop-filter on mobile so the fixed drawer
     isn't trapped inside #nav's containing block */
  #nav.scrolled {
    backdrop-filter:         none;
    -webkit-backdrop-filter: none;
  }

  .nav-hamburger { display: flex; z-index: 1400; }

  /* Hide desktop-only CTA outside the drawer */
  .nav-cta { display: none; }

  /* Drawer — must sit ABOVE #nav (z-index 1100) */
  .nav-links {
    position:        fixed;
    top:             0;
    left:            0;
    right:           0;
    bottom:          0;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             0;
    background:      var(--navy);
    transform:       translateX(100%);
    transition:      transform 0.4s var(--ease-out);
    z-index:         1300;
    overflow-y:      auto;
    padding:         80px 24px 40px;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    width:         100%;
    text-align:    center;
    font-size:     22px;
    font-weight:   700;
    color:         var(--white);
    padding:       16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    display:       block;
  }

  .nav-links a:hover {
    background: rgba(245, 200, 0, 0.12);
    color:      var(--sun);
  }

  .nav-links a.active {
    background: rgba(245, 200, 0, 0.12);
    color:      var(--sun);
  }
#nav.scrolled .nav-links a { color: var(--white) }
  .nav-links a::after { display: none; }

  /* Drawer CTA */
  .nav-links .nav-mobile-cta {
    display:         inline-flex !important;
    margin-top:      32px;
    width:           auto;
    font-size:       16px;
    font-family:     var(--font-heading);
    font-weight:     700;
    padding:         14px 40px;
    border-radius:   60px;
    border:          2px solid var(--sun);
    color:           var(--sun);
    background:      transparent;
    text-decoration: none;
    transition:      all 0.3s var(--ease-bounce);
  }

  .nav-links .nav-mobile-cta:hover {
    background: var(--sun);
    color:      var(--navy);
  }

  .nav-links .nav-mobile-cta::after,
  .nav-links .nav-mobile-cta::before { display: none; }
}

/* ════════════════════════════════════════════════════════════
   SECTION — SHARED HEADINGS
   ════════════════════════════════════════════════════════════ */
section { padding: var(--section-pad); }

.section-label {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  font-size:      11px;
  font-weight:    700;
  color:          var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom:  16px;
}
.section-label::before,
.section-label::after {
  content:    '';
  display:    block;
  width:      24px;
  height:     2px;
  background: var(--coral);
}

.section-title {
  font-family:   var(--font-display);
  font-size:     clamp(2.4rem, 4vw, 3.8rem);
  font-weight:   900;
  line-height:   1.05;
  color:         var(--navy);
  margin-bottom: 20px;
}

.section-sub {
  font-size:   17px;
  color:       var(--text-soft);
  line-height: 1.7;
  max-width:   540px;
}


/* ════════════════════════════════════════════════════════════
   SHARED BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn-primary {
  background:      var(--navy);
  color:           var(--sun);
  padding:         16px 36px;
  border-radius:   60px;
  font-family:     var(--font-heading);
  font-size:       15px;
  font-weight:     800;
  text-decoration: none;
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  border:          3px solid var(--navy);
  box-shadow:      4px 6px 0 var(--navy-mid);
  transition:      all 0.3s var(--ease-bounce);
}
.btn-primary:hover {
  transform:  translate(-3px, -3px);
  box-shadow: 7px 9px 0 var(--navy-mid);
}

.btn-ghost {
  background:      transparent;
  color:           var(--white);
  padding:         16px 36px;
  border-radius:   60px;
  font-family:     var(--font-heading);
  font-size:       15px;
  font-weight:     800;
  text-decoration: none;
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  border:          3px solid rgba(255, 255, 255, 0.6);
  transition:      all 0.3s var(--ease-bounce);
}
.btn-ghost:hover {
  background: var(--white);
  color:      var(--navy);
  transform:  translateY(-3px);
}


/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity:    0;
  transform:  translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.left    { transform: translateX(-32px); }
.reveal.right   { transform: translateX(32px); }
.reveal.visible { opacity: 1; transform: translate(0); }


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  background:  var(--navy);
  padding:     80px 64px 0;
  border-top:  3px solid var(--sun);
}

.footer-grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   48px;
  padding-bottom:        60px;
}

.footer-brand {
  display:       flex;
  align-items:   center;
  gap:           12px;
  margin-bottom: 16px;
}

.footer-brand-badge {
  width:           84px;
  height:          84px;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.footer-brand-badge img { width: 80px; height: 80px; object-fit: contain; }

.footer-brand-name {
  font-family: var(--font-heading);
  font-size:   15px;
  font-weight: 800;
  color:       var(--white);
}

.footer-brand-tag {
  font-size:      10px;
  font-weight:    600;
  color:          var(--sun);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-desc {
  font-size:     14px;
  color:         rgba(255, 255, 255, 0.5);
  line-height:   1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display:   flex;
  gap:       10px;
  flex-wrap: wrap;
}

.footer-social {
  width:           36px;
  height:          36px;
  background:      rgba(255, 255, 255, 0.08);
  border:          1px solid rgba(255, 255, 255, 0.15);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size:       15px;
  transition:      all 0.3s var(--ease-bounce);
}
.footer-social:hover {
  background:   var(--brand, var(--sun));
  color:        var(--navy);
  transform:    translateY(-4px) scale(1.1);
  border-color: var(--brand, var(--sun));
}

.footer-col h5 {
  font-family:    var(--font-heading);
  font-size:      12px;
  font-weight:    800;
  color:          var(--sun);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom:  20px;
}

.footer-col a {
  display:         block;
  font-size:       13px;
  color:           rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom:   10px;
  transition:      all 0.2s;
}
.footer-col a:hover { color: var(--white); padding-left: 6px; }

.footer-bottom {
  border-top:      1px solid rgba(255, 255, 255, 0.1);
  padding:         24px 0;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             8px;
}
.footer-bottom p          { font-size: 12px; color: rgba(255, 255, 255, 0.35); }
.footer-bottom .tagline   { font-family: var(--font-heading); font-weight: 700; color: var(--sun); }
.footer-bottom .crafted   { font-family: var(--font-heading); font-weight: 700; }
.footer-bottom .crafted a {
  font-family:     var(--font-heading);
  font-weight:     700;
  color:           var(--sun);
  text-decoration: none;
}


/* ════════════════════════════════════════════════════════════
   SCROLLING UNICORN — sitewide
   ════════════════════════════════════════════════════════════ */
#scroll-unicorn {
  position:         fixed;
  width:            160px;
  height:           160px;
  z-index:          500;
  pointer-events:   none;
  transform-origin: center center;
  filter:           drop-shadow(0 12px 40px rgba(15, 27, 61, 0.25));
  transition:       opacity 0.5s;
}
#scroll-unicorn img { width: 100%; height: 100%; object-fit: contain; }

#unicorn-trail {
  position:       fixed;
  pointer-events: none;
  z-index:        499;
}

.trail-star {
  position:       absolute;
  border-radius:  50%;
  pointer-events: none;
  animation:      trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
  0%   { opacity: 0.9; transform: scale(1) rotate(0deg); }
  100% { opacity: 0;   transform: scale(0.1) rotate(180deg) translateY(-30px); }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Common Components
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Section heading scale handled by clamp() */
}

@media (max-width: 768px) {
  section { padding: var(--section-pad-mob); }

  footer  { padding: 60px 24px 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap:                   32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items:    center;
    text-align:     center;
    gap:            10px;
    padding:        20px 0 24px;
  }
}

/* ════════════════════════════════════════════════════════════
  Floating Social Icons
   ════════════════════════════════════════════════════════════ */
  .floating-social {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .floating-social .icon-wrap {
    position: relative;
    width: 52px;
    height: 52px;
  }

  .floating-social a {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: normal;
    width: 52px;
    height: 52px;
    border-radius: 26px 0 0 26px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.25);
    transition: width 0.3s ease;
    z-index: 1;
  }

  .floating-social a:hover {
    width: 170px;
    z-index: 2;
  }

  .floating-social a .icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .floating-social a .icon img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    transition: filter 0.25s ease;
    /* default: image shows as-is (already white) */
  }

  .floating-social a:hover .icon img {
    filter: brightness(0); /* turns the white icon pure black on hover */
  }

  .floating-social a .label {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 16px;
    opacity: 0;
    transition: opacity 0.25s ease 0.05s;
  }

  .floating-social a:hover .label {
    opacity: 1;
  }

  /* Unified yellow background as per updated design spec */
  .floating-social a.phone,
  .floating-social a.whatsapp,
  .floating-social a.email {
    background: #F5C800;
  }

  /* ===== Hide on mobile ===== */
  @media (max-width: 768px) {
    .floating-social {
      display: block;
    }
    .floating-social .icon-wrap {
      margin-bottom: 5px;
    }
  }

  /* ============================================================
   COMMON INNER-PAGE HERO — VIDEO BACKGROUND + OVERLAY
   ============================================================ */

.innerpage-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;       /* adjust to match your current per-page hero height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The shared video element — fills the section, cropped to cover */
.innerpage-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

/* The shared dark overlay — sits above the video, below the content */
.innerpage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0F1B3DCC;
  /* background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.6) 100%
  ); */
  z-index: 1;
}

/* Every page's unique content block sits above both */
.innerpage-hero > *:not(.innerpage-hero-video):not(.innerpage-hero-overlay) {
  position: relative;
  z-index: 2;
}

/* Fallback if autoplay gets blocked by the browser (rare, but graceful) */
.innerpage-hero.video-autoplay-blocked {
  background: #1a1a1a url('../images/innerpage-hero-fallback.jpg') center/cover no-repeat;
}
.innerpage-hero.video-autoplay-blocked .innerpage-hero-video {
  display: none;
}