/* ═══════════════════════════════════════════════════════════════════════════
   AMOUR CRUISE — CINEMATIC LUXURY FOOTER
   Hài hòa với design language toàn site (hero ken-burns, gold ornaments,
   Playfair + Cormorant italic + Inter, glassmorphic cards, shimmer hover)
   
   Palette:
     --ft-gold        : #c1a36b   (primary warm gold)
     --ft-gold-light  : #E5D4A1
     --ft-gold-dark   : #9d8348
     --ft-logo-gold   : #C9A55C
     --ft-navy        : #0B1929
     --ft-navy-soft   : #1A2C45
     --ft-cream       : #f5f4f0
     --ft-cream-warm  : #faf6ec
═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  --ft-gold: #c1a36b;
  --ft-gold-light: #E5D4A1;
  --ft-gold-dark: #9d8348;
  --ft-logo-gold: #C9A55C;
  --ft-navy: #0B1929;
  --ft-navy-soft: #1A2C45;
  --ft-cream: #f5f4f0;
  --ft-cream-warm: #faf6ec;
  --ft-text: rgba(245, 244, 240, 0.78);
  --ft-text-soft: rgba(245, 244, 240, 0.55);
  --ft-divider: rgba(193, 163, 107, 0.18);

  position: relative;
  background:#2e2e2e;
  color: var(--ft-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 3rem 0 0;
  overflow: hidden;
  isolation: isolate;
}

/* ─── Cinematic top border — gold gradient line ─── */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 90%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ft-gold) 20%,
    var(--ft-gold-light) 50%,
    var(--ft-gold) 80%,
    transparent 100%
  );
  opacity: 0.6;
}

/* ─── Subtle texture overlay — luxury feel ─── */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(193, 163, 107, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(193, 163, 107, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.site-footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   GRID — 4 columns, asymmetric for editorial rhythm
═══════════════════════════════════════════════════════════ */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1.3fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
  /*padding-bottom: 4rem; */
}

.footer-col {
  position: relative;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   COLUMN TITLES — Cormorant italic eyebrow + Playfair heading
═══════════════════════════════════════════════════════════ */
.footer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ft-gold-light);
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--ft-gold) 0%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════════
   COL 1 — BRAND
═══════════════════════════════════════════════════════════ */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-link {
  display: inline-block;
  width: fit-content;
  transition: opacity 0.4s ease;
}

.footer-logo-link:hover {
  opacity: 0.85;
}

.footer-logo {
  max-height: 130px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ft-text);
  margin: 0;
  letter-spacing: 0.01em;
  max-width: 320px;
}

/* ─── Social — gold pill icons with shimmer ─── */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(193, 163, 107, 0.4);
  background: rgba(193, 163, 107, 0.05);
  color: var(--ft-gold-light);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ft-gold) 0%, var(--ft-gold-dark) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.footer-social a i {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.footer-social a:hover {
  border-color: var(--ft-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -8px rgba(193, 163, 107, 0.5);
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a:hover i {
  color: var(--ft-navy);
}

/* ═══════════════════════════════════════════════════════════
   COL 2 — EXPLORE LINKS
═══════════════════════════════════════════════════════════ */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links li {
  position: relative;
}

.footer-links a,
.footer-links a.color-ft1 {
  color: var(--ft-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--ft-gold);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover,
.footer-links a.color-ft1:hover {
  color: var(--ft-gold-light);
  padding-left: 0;
}

.footer-links a:hover::before {
  width: 18px;
}

/* Legacy color helpers kept for backward compat — no longer needed visually */
.color-ft1, .color-ft2 { color: inherit; }
.ft-size { font-size: inherit; }

/* ═══════════════════════════════════════════════════════════
   COL 3 — BRANCHES (Hạ Long + Hà Nội)
═══════════════════════════════════════════════════════════ */
.footer-col-contact {
  position: relative;
}

.footer-branch {
  position: relative;
  padding: 0 0 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 1px solid var(--ft-divider);
  transition: border-color 0.4s ease;
}

.footer-branch:hover {
  border-left-color: var(--ft-gold);
}

/* Gold dot marker at top of branch */
.footer-branch::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ft-gold);
  box-shadow: 0 0 0 3px rgba(193, 163, 107, 0.18);
  transition: box-shadow 0.4s ease;
}

.footer-branch:hover::before {
  box-shadow: 0 0 0 5px rgba(193, 163, 107, 0.25);
}

.footer-branch:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-branch-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--ft-gold-light);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-branch-name i {
  display: none; /* dot marker replaces icon */
}

.footer-branch-address {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ft-text);
  margin: 0 0 0.85rem;
  padding-left: 0;
  letter-spacing: 0.005em;
}

.footer-branch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ft-text);
  text-decoration: none;
  padding: 0.3rem 0;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.footer-branch-link i {
  font-size: 0.85rem;
  color: var(--ft-gold);
  width: auto;
  transition: transform 0.3s ease;
}

.footer-branch-link:hover {
  color: var(--ft-gold-light);
}

.footer-branch-link:hover i {
  transform: scale(1.15);
}

/* Stack phone + email vertically */
.footer-branch-link {
  display: flex;
}

/* ═══════════════════════════════════════════════════════════
   COL 4 — GOOGLE MAP
═══════════════════════════════════════════════════════════ */
.footer-col-map .footer-map {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(193, 163, 107, 0.25);
  background: var(--ft-navy-soft);
  box-shadow:
    0 12px 32px -8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(193, 163, 107, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col-map .footer-map:hover {
  border-color: rgba(193, 163, 107, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(193, 163, 107, 0.15);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  filter: brightness(0.88) contrast(1.05) saturate(0.95);
  transition: filter 0.5s ease;
}

.footer-col-map .footer-map:hover iframe {
  filter: brightness(1) contrast(1) saturate(1);
}

.footer-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ft-gold-light);
  background: linear-gradient(
    135deg,
    rgba(193, 163, 107, 0.08) 0%,
    rgba(193, 163, 107, 0.02) 100%
  );
  border-top: 1px solid rgba(193, 163, 107, 0.18);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.footer-map-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ft-gold) 0%, var(--ft-gold-dark) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.footer-map-link > * {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.footer-map-link:hover {
  color: var(--ft-navy);
}

.footer-map-link:hover::before {
  opacity: 1;
}

.footer-map-link i {
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER BOTTOM — Legal + BCT + Copyright
═══════════════════════════════════════════════════════════ */
.footer-bottom {
  position: relative;
  margin-top: 0;
  padding: 2.5rem 0 2.25rem;
  border-top: 1px solid var(--ft-divider);
  display: block;
  text-align: left;
}

/* Subtle ornament above bottom section */
.footer-bottom::before {
  content: '◆';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ft-gold);
  font-size: 0.6rem;
  background: var(--ft-navy);
  padding: 0 0.75rem;
  letter-spacing: 0.5em;
}

/* ─── Legal info + BCT logo row ─── */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--ft-divider);
}

.footer-legal-info {
  flex: 1 1 auto;
  min-width: 280px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ft-text-soft);
}

.footer-legal-company {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ft-gold-light);
  margin-bottom: 0.65rem;
}

.footer-legal-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.footer-legal-label {
  font-weight: 500;
  flex-shrink: 0;
  min-width: 90px;
  color: var(--ft-text-soft);
  letter-spacing: 0.02em;
}

.footer-legal-value {
  flex: 1;
  color: var(--ft-text);
}

/* ─── BCT logo — elegant frame ─── */
.footer-bct-logo {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: rgba(245, 244, 240, 0.95);
  border-radius: 3px;
  border: 1px solid rgba(193, 163, 107, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.92;
  min-width: 160px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bct-logo:hover {
  transform: translateY(-2px);
  opacity: 1;
  border-color: rgba(193, 163, 107, 0.5);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
}

.footer-bct-logo img {
  display: block;
  width: 150px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

/* ─── Copyright ─── */
.footer-copyright {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ft-text-soft);
  letter-spacing: 0.04em;
  padding-top: 0.5rem;
  float: none;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   REVEAL ON SCROLL (Intersection Observer compatible)
   Match site-wide pattern — subtle fade-up
═══════════════════════════════════════════════════════════ */
.site-footer .footer-col {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer.is-revealed .footer-col,
.site-footer .footer-col.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.site-footer .footer-col:nth-child(1) { transition-delay: 0s; }
.site-footer .footer-col:nth-child(2) { transition-delay: 0.1s; }
.site-footer .footer-col:nth-child(3) { transition-delay: 0.2s; }
.site-footer .footer-col:nth-child(4) { transition-delay: 0.3s; }

/* Fallback: if JS doesn't run, still show */
@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-col {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .site-footer {
    padding-top: 5rem;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
  }
  .footer-brand,
  .footer-col-map {
    grid-column: span 2;
  }
  .footer-col-map .footer-map {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 4rem;
  }
  .site-footer .container {
    padding: 0 1.5rem;
  }
  .site-footer .footer-grid {
    gap: 2.5rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-legal-info {
    text-align: center;
  }
  .footer-legal-row {
    justify-content: center;
  }
  .footer-legal-label {
    min-width: auto;
    opacity: 0.7;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 3.5rem;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .footer-brand,
  .footer-col-map {
    grid-column: span 1;
  }
  .footer-logo {
    max-height: 110px;
  }
  .footer-tagline {
    font-size: 1rem;
  }
  .footer-map iframe {
    height: 180px;
  }
  .footer-bct-logo img {
    width: 135px;
  }
  .footer-copyright {
    font-size: 0.85rem;
  }
}