/* =============================================
   FOOTER - LUXURY MARITIME DARK THEME
   PT. MODERN AULIA MANDIRI
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

/* === CSS Variables === */
:root {
  --navy-deep:    #081828;
  --navy:         #0d2233;
  --navy-mid:     #163347;
  --teal:         #3a9e8f;
  --teal-light:   #5fc4b4;
  --teal-pale:    #a8ddd6;
  --gold:         #c9a84c;
  --gold-light:   #e2c97e;
  --text-main:    #f0ede8;
  --text-muted:   #c2d4e0;
}

/* === FOOTER WRAPPER === */
.mam-footer {
  background-color: var(--navy-deep);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* Top gradient divider */
.mam-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal), transparent);
  margin-bottom: 0;
}

/* Subtle grid texture overlay */
.mam-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,158,143,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,158,143,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.mam-footer .footer-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 0;
}

/* === FOOTER GRID === */
.mam-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  gap: 40px 32px;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === BRAND COLUMN === */
.footer-brand .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0 0 12px;
}

.footer-brand .brand-tagline {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 0 0 20px;
}

.footer-brand .brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 24px;
  opacity: 0.85;
}

.footer-brand .social-links {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-brand .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(58,158,143,0.35);
  border-radius: 6px;
  color: var(--teal-light);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.footer-brand .social-links a:hover {
  border-color: var(--teal);
  background: rgba(58,158,143,0.12);
  color: var(--teal-pale);
}

/* === COLUMN HEADINGS === */
.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 0 0 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--teal);
}

/* === CONTACT COLUMN === */
.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.footer-contact .contact-item i {
  color: var(--teal);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact .contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact .contact-item a:hover {
  color: var(--teal-pale);
}

/* === LINKS COLUMNS === */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, gap 0.2s;
  opacity: 0.88;
}

.footer-links ul li a::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--teal);
  opacity: 0.6;
  transition: width 0.25s, opacity 0.25s;
  flex-shrink: 0;
}

.footer-links ul li a:hover {
  color: var(--teal-pale);
  opacity: 1;
}

.footer-links ul li a:hover::before {
  width: 20px;
  opacity: 1;
}

/* === FOOTER BOTTOM BAR === */
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(58,158,143,0.15);
  padding: 20px 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  font-size: 12.5px;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.6;
}

.footer-bottom-left strong {
  color: var(--text-main);
  font-weight: 500;
}

.footer-bottom-right {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-bottom-right .inokrea-link {
  color: var(--teal-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-bottom-right .inokrea-link:hover {
  color: var(--teal-pale);
}

/* === MARITIME ACCENT DECORATION === */
.footer-maritime-accent {
  position: absolute;
  right: -60px;
  bottom: 30px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(58,158,143,0.06);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.footer-maritime-accent::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(58,158,143,0.04);
  border-radius: 50%;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 25px;

  width: 56px;
  height: 56px;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25d366;

  border-radius: 50%;

  box-shadow:
    0 4px 18px rgba(37,211,102,0.35);

  transition:
    transform 0.22s,
    box-shadow 0.22s;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.06);

  box-shadow:
    0 8px 24px rgba(37,211,102,0.45);
}

.whatsapp-float i {
  font-size: 1.9rem;
  color: white;
  line-height: 1;
}

/* ─── PARTNER FLOATING ─────────────────────── */
.partner-trigger {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.25s ease;
}

.partner-trigger img {
  height: 60px;
  width: auto;
  display: block;
}

.partner-trigger:hover {
  transform: scale(1.08);
}

/* Info card popup */
.partner-info-card {
  position: fixed;
  bottom: 155px;
  right: 20px;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  padding: 1.4rem 1.4rem 1.2rem;
  z-index: 999;

  /* hidden state */
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.partner-info-card.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Tombol close */
.partner-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.partner-close:hover { color: #374151; }

/* Label kecil di atas */
.partner-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Teks deskripsi */
.partner-info-card .partner-text {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.partner-info-card .partner-text strong {
  color: #1a1a2e;
  font-weight: 600;
}

/* Tombol link */
.partner-link {
  display: inline-block;
  background: var(--gold, #c9a84c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.partner-link:hover {
  background: #a07830;
  transform: translateY(-1px);
}


/* === SCROLL TOP === */
.scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 40px;
  height: 40px;
  background: rgba(13,34,51,0.85);
  border: 1px solid rgba(58,158,143,0.35);
  border-radius: 8px;
  color: var(--teal-light);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9996;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(58,158,143,0.18);
  border-color: var(--teal);
  color: var(--teal-pale);
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  .mam-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
    padding: 0 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 18px 24px;
    margin-top: 36px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
  .mam-footer .footer-inner {
    padding: 40px 0 0;
  }

  .mam-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand .brand-name {
    font-size: 17px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 20px;
    margin-top: 28px;
  }

  .partner-info-card {
    right: auto;
    left: 16px;
    bottom: 80px;
    width: calc(100vw - 32px);
    max-width: 320px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .partner-trigger {
    bottom: 80px;
    right: 20px;
  }

  .scroll-top {
    bottom: 20px;
    left: 20px;
  }
}