/* ===================================================================
   🇯🇲 FOOTER THEME - UNIVERSAL (Unified Single Theme)
   =================================================================== */

/* === SVG GRADIENT COLORS - UNIFIED === */

.mountain-back-start {
  stop-color: #2d5016 !important;
  stop-opacity: 1 !important;
}

.mountain-back-end {
  stop-color: #1a3d0a !important;
  stop-opacity: 0.9 !important;
}

.mountain-front-start {
  stop-color: #1a3d0a !important;
  stop-opacity: 1 !important;
}

.mountain-front-end {
  stop-color: #0a2a05 !important;
  stop-opacity: 1 !important;
}

.palm-trunk {
  stroke: #3d2817 !important;
}

.palm-frond {
  fill: #228B22 !important;
}

.palm-coconut {
  fill: #5c4033 !important;
}

/* ===================================================================
   🏔️ FOOTER BASE - HIGH SPECIFICITY & UNIFIED VARIABLES
   =================================================================== */

footer.footer, .footer, body footer.footer, html body footer.footer {
  position: relative !important;
  background: linear-gradient(180deg, #d4f1e0 0%, #fff9d6 100%) !important;
  padding: 5rem 0 2rem !important;
  overflow: hidden !important;
  transition: background 0.5s ease !important;
  margin-top: 0 !important;
  border: none !important;
  --footer-bg: linear-gradient(180deg, #d4f1e0 0%, #fff9d6 100%) !important;
  --footer-text: #1a2e1a !important;
  --footer-text-secondary: #2d4a2d !important;
  --footer-text-muted: #5a7a5a !important;
  --footer-sky: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 30%, #FFE4B5 60%, #FFD700 80%, #90EE90 100%) !important;
  --footer-sun: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 165, 0, 0.4) 40%, transparent 70%) !important;
  --footer-ocean: linear-gradient(180deg, #00CED1 0%, #20B2AA 50%, #008B8B 100%) !important;
  --footer-card-bg: rgba(255, 255, 255, 0.95) !important;
  --footer-card-border: rgba(0, 155, 58, 0.2) !important;
  --footer-border: rgba(0, 155, 58, 0.2) !important;
}

/* ===================================================================
   🌅 LANDSCAPE ELEMENTS
   =================================================================== */

footer.footer::before, .footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 10% !important;
  right: 10% !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 155, 58, 0.5) 20%, rgba(254, 209, 0, 0.8) 50%, rgba(0, 155, 58, 0.5) 80%, transparent 100%) !important;
  box-shadow: 0 0 20px rgba(254, 209, 0, 0.4), 0 0 40px rgba(0, 155, 58, 0.2) !important;
  animation: borderGlow 4s ease-in-out infinite !important;
  z-index: 10 !important;
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.footer-sky {
  position: absolute !important;
  inset: 0 !important;
  background: var(--footer-sky) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  transition: background 0.5s ease !important;
}

.footer-sun {
  position: absolute !important;
  top: 10% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 450px !important;
  height: 450px !important;
  background: var(--footer-sun) !important;
  border-radius: 50% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  filter: blur(4px) !important;
  transition: background 0.5s ease !important;
}

.footer-mountains-back {
  position: absolute !important;
  bottom: 25% !important;
  left: 0 !important;
  width: 100% !important;
  height: 30% !important;
  z-index: 2 !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
  transition: opacity 0.5s ease !important;
}

.footer-mountains-back svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.footer-mountains-front {
  position: absolute !important;
  bottom: 15% !important;
  left: 0 !important;
  width: 100% !important;
  height: 25% !important;
  z-index: 3 !important;
  opacity: 0.8 !important;
  pointer-events: none !important;
  transition: opacity 0.5s ease !important;
}

.footer-mountains-front svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.footer-ocean {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 18% !important;
  background: var(--footer-ocean) !important;
  z-index: 4 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transition: background 0.5s ease !important;
}

.footer-waves {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 200% !important;
  height: 100% !important;
  background: repeating-linear-gradient(90deg, transparent 0%, rgba(254, 209, 0, 0.08) 25%, transparent 50%) !important;
  animation: footerWaveMove 12s linear infinite !important;
  opacity: 0.6 !important;
}

@keyframes footerWaveMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.footer-waves::before, .footer-waves::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%) !important;
  animation: footerWaveLine 6s ease-in-out infinite !important;
}

.footer-waves::before {
  top: 30% !important;
  animation-delay: 0s !important;
}

.footer-waves::after {
  top: 60% !important;
  animation-delay: 3s !important;
}

@keyframes footerWaveLine {
  0%, 100% {
    transform: translateX(-5%);
    opacity: 0.3;
  }
  50% {
    transform: translateX(5%);
    opacity: 0.7;
  }
}

.footer-palm-left, .footer-palm-right {
  position: absolute !important;
  bottom: 12% !important;
  width: 200px !important;
  height: 320px !important;
  z-index: 5 !important;
  opacity: 0.7 !important;
  pointer-events: none !important;
  transform-origin: bottom center !important;
  animation: footerPalmSway 8s ease-in-out infinite !important;
  transition: opacity 0.5s ease !important;
}

.footer-palm-left {
  left: -1% !important;
}

.footer-palm-right {
  right: -1% !important;
  transform: scaleX(-1) !important;
  animation: footerPalmSway 9s ease-in-out infinite reverse !important;
}

.footer-palm-left svg, .footer-palm-right svg {
  width: 100% !important;
  height: 100% !important;
}

@keyframes footerPalmSway {
  0%, 100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

/* ===================================================================
   📋 FOOTER CONTENT GRID
   =================================================================== */

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
  gap: 3rem !important;
  margin-bottom: 4rem !important;
  position: relative !important;
  z-index: 10 !important;
}

.footer-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

.footer-brand .brand-flag {
  width: 48px !important;
  height: 30px !important;
  background: linear-gradient(90deg, var(--ja-green, #009B3A) 33%, var(--ja-gold, #FED100) 33%, var(--ja-gold, #FED100) 66%, var(--ja-black, #1a1a1a) 66%) !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 16px rgba(254, 209, 0, 0.3), 0 0 30px rgba(0, 155, 58, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.footer-brand .brand-flag::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%) !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

.footer-brand:hover .brand-flag {
  transform: scale(1.05) rotate(-2deg) !important;
  box-shadow: 0 8px 24px rgba(254, 209, 0, 0.4), 0 0 40px rgba(0, 155, 58, 0.3) !important;
}

.footer-brand:hover .brand-flag::before {
  opacity: 1 !important;
}

.footer-brand .brand-text {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  letter-spacing: 2.5px !important;
  color: var(--ja-gold, #FED100) !important;
  text-transform: uppercase !important;
  margin-top: 0.5rem !important;
  background: linear-gradient(135deg, var(--ja-gold, #FED100) 0%, var(--footer-text, #1a2e1a) 50%, var(--ja-gold, #FED100) 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textShimmer 6s linear infinite !important;
}

@keyframes textShimmer {
  to {
    background-position: 200% center;
  }
}

.footer-description {
  color: var(--footer-text-secondary, #2d4a2d) !important;
  line-height: 1.7 !important;
  font-size: 0.95rem !important;
  max-width: 320px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: color 0.5s ease !important;
}

/* ===================================================================
   🔗 SOCIAL LINKS
   =================================================================== */

.social-links {
  display: flex !important;
  gap: 0.8rem !important;
  margin-top: 0.5rem !important;
}

.social-links a {
  width: 44px !important;
  height: 44px !important;
  background: var(--footer-card-bg, rgba(255, 255, 255, 0.95)) !important;
  border: 1px solid var(--footer-card-border, rgba(0, 155, 58, 0.2)) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--footer-text-secondary, #2d4a2d) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 155, 58, 0.08) !important;
}

.social-links a::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, var(--social-color) 0%, transparent 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

.social-links a svg {
  width: 1.2rem !important;
  height: 1.2rem !important;
  position: relative !important;
  z-index: 1 !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.1) !important;
  border-color: var(--social-color) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--social-color) !important;
  color: #ffffff !important;
}

.social-links a:hover::before {
  opacity: 0.2 !important;
}

.social-links a:hover svg {
  transform: scale(1.2) !important;
  filter: drop-shadow(0 0 8px var(--social-color)) !important;
}

.social-links a[aria-label="Facebook"] {
  --social-color: #1877F2;
}

.social-links a[aria-label="Instagram"] {
  --social-color: #E4405F;
}

.social-links a[aria-label="Twitter"] {
  --social-color: #000000;
}

.social-links a[aria-label="YouTube"] {
  --social-color: #FF0000;
}

.social-links a[aria-label="WhatsApp"] {
  --social-color: #25D366;
}

/* Added for your new SVG */

/* ===================================================================
   📎 FOOTER LINKS
   =================================================================== */

.footer-links h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--footer-text, #1a2e1a) !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  padding-bottom: 0.8rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: color 0.5s ease !important;
}

.footer-links h4::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 40px !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--ja-gold, #FED100) 0%, var(--ja-green, #009B3A) 100%) !important;
  border-radius: 2px !important;
  box-shadow: 0 0 10px rgba(254, 209, 0, 0.4) !important;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footer-links:hover h4::after {
  width: 60px !important;
}

.footer-links ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.9rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links a {
  color: var(--footer-link, var(--footer-text-secondary, #2d4a2d)) !important;
  font-size: 0.95rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  position: relative !important;
  padding-left: 0 !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.footer-links a::before {
  content: '→' !important;
  font-size: 0.8rem !important;
  color: var(--ja-gold, #FED100) !important;
  opacity: 0 !important;
  transform: translateX(-10px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-right: -10px !important;
}

.footer-links a:hover {
  color: var(--ja-gold, #FED100) !important;
  padding-left: 20px !important;
}

.footer-links a:hover::before {
  opacity: 1 !important;
  transform: translateX(0) !important;
  margin-right: 0 !important;
}

/* ===================================================================
   📄 FOOTER BOTTOM
   =================================================================== */

.footer-bottom {
  padding-top: 2.5rem !important;
  border-top: 1px solid var(--footer-border, rgba(0, 155, 58, 0.2)) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  position: relative !important;
  z-index: 10 !important;
}

.footer-bottom p {
  color: var(--footer-text-muted, #5a7a5a) !important;
  font-size: 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: color 0.5s ease !important;
}

.footer-bottom svg {
  width: 1rem !important;
  height: 1rem !important;
  color: #FF0000 !important;
  animation: heartbeat 1.5s ease-in-out infinite !important;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.4)) !important;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.2);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.footer-bottom p:last-child {
  font-weight: 500 !important;
}

.footer-bottom p:last-child::after {
  content: '' !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  background: linear-gradient(135deg, var(--ja-green, #009B3A), var(--ja-gold, #FED100), var(--ja-black, #1a1a1a)) !important;
  border-radius: 50% !important;
  margin-left: 0.5rem !important;
  animation: colorCycle 3s ease-in-out infinite !important;
}

@keyframes colorCycle {
  0%, 100% {
    background: var(--ja-green, #009B3A);
  }
  33% {
    background: var(--ja-gold, #FED100);
  }
  66% {
    background: var(--ja-black, #1a1a1a);
  }
}

/* ===================================================================
   📱 RESPONSIVE LAYOUT (OPTIMIZED)
   =================================================================== */

/* === TABLET (≤1024px): Brand top, 3 links side-by-side === */

@media (max-width: 1024px) {
  footer.footer, .footer {
    padding: 4rem 0 2rem !important;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
    margin-bottom: 3rem !important;
  }
}

@media (max-width: 1024px) {
  .footer-brand {
    grid-column: 1 / -1 !important;
    order: 1 !important;
    text-align: center !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 1024px) {
  .footer-brand .brand-text {
    font-size: 1rem !important;
  }
}

@media (max-width: 1024px) {
  .footer-description {
    max-width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 1024px) {
  .social-links {
    justify-content: center !important;
  }
}

@media (max-width: 1024px) {
  .footer-links {
    order: 2 !important;
  }
}

@media (max-width: 1024px) {
  .footer-sun {
    width: 350px !important;
    height: 350px !important;
  }
}

@media (max-width: 1024px) {
  .footer-palm-left, .footer-palm-right {
    width: 160px !important;
    height: 260px !important;
    opacity: 0.5 !important;
  }
}

/* === MOBILE (≤768px): Stack everything === */

@media (max-width: 768px) {
  footer.footer, .footer {
    padding: 3rem 0 2rem !important;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  .footer-brand, .footer-links {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 768px) {
  .footer-brand {
    order: 1 !important;
  }
}

@media (max-width: 768px) {
  .footer-links {
    order: 2 !important;
  }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.8rem !important;
    padding-top: 2rem !important;
  }
}

@media (max-width: 768px) {
  .footer-sun {
    width: 280px !important;
    height: 280px !important;
    top: 15% !important;
  }
}

@media (max-width: 768px) {
  .footer-palm-left, .footer-palm-right {
    width: 130px !important;
    height: 200px !important;
    opacity: 0.4 !important;
  }
}

@media (max-width: 768px) {
  .footer-mountains-back {
    bottom: 28% !important;
    height: 25% !important;
  }
}

@media (max-width: 768px) {
  .footer-mountains-front {
    bottom: 18% !important;
    height: 22% !important;
  }
}

@media (max-width: 768px) {
  .footer-ocean {
    height: 15% !important;
  }
}

/* === SMALL MOBILE (≤576px) === */

@media (max-width: 576px) {
  footer.footer, .footer {
    padding: 2.5rem 0 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    gap: 2rem !important;
  }
}

@media (max-width: 576px) {
  .footer-brand .brand-flag {
    width: 40px !important;
    height: 25px !important;
  }
}

@media (max-width: 576px) {
  .footer-brand .brand-text {
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
  }
}

@media (max-width: 576px) {
  .footer-description {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 576px) {
  .social-links {
    justify-content: center !important;
  }
}

@media (max-width: 576px) {
  .social-links a {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 576px) {
  .social-links a svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }
}

@media (max-width: 576px) {
  .footer-links h4 {
    font-size: 1rem !important;
    margin-bottom: 1.2rem !important;
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .footer-links h4::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 576px) {
  .footer-links ul {
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .footer-links a {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 576px) {
  .footer-bottom p {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 576px) {
  .footer-palm-left, .footer-palm-right {
    width: 100px !important;
    height: 160px !important;
    opacity: 0.35 !important;
  }
}

@media (max-width: 576px) {
  .footer-sun {
    width: 220px !important;
    height: 220px !important;
  }
}

@media (max-width: 576px) {
  .footer-mountains-back {
    bottom: 30% !important;
    height: 22% !important;
    opacity: 0.5 !important;
  }
}

@media (max-width: 576px) {
  .footer-mountains-front {
    bottom: 20% !important;
    height: 20% !important;
    opacity: 0.7 !important;
  }
}

@media (max-width: 576px) {
  .footer-ocean {
    height: 12% !important;
  }
}

/* === EXTRA SMALL (≤380px) === */

@media (max-width: 380px) {
  footer.footer, .footer {
    padding: 2rem 0 1.5rem !important;
  }
}

@media (max-width: 380px) {
  .footer-grid {
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 380px) {
  .footer-brand {
    gap: 1rem !important;
  }
}

@media (max-width: 380px) {
  .social-links {
    gap: 0.6rem !important;
  }
}

@media (max-width: 380px) {
  .social-links a {
    width: 38px !important;
    height: 38px !important;
  }
}

@media (max-width: 380px) {
  .footer-links ul {
    gap: 0.7rem !important;
  }
}

@media (max-width: 380px) {
  .footer-palm-left, .footer-palm-right {
    width: 80px !important;
    height: 130px !important;
    opacity: 0.3 !important;
  }
}

@media (max-width: 380px) {
  .footer-sun {
    width: 180px !important;
    height: 180px !important;
  }
}

@media (max-width: 380px) {
  .footer-brand .brand-text {
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
  }
}

@media (max-width: 380px) {
  .footer-description {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 380px) {
  .footer-links h4 {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 380px) {
  .footer-links a {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 380px) {
  .footer-bottom p {
    font-size: 0.8rem !important;
  }
}

/* ===================================================================
   ♿ ACCESSIBILITY
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
  footer.footer::before, .footer::before, .footer-brand .brand-text, .footer-brand .brand-flag, .social-links a, .social-links a svg, .footer-links h4::after, .footer-links a, .footer-links a::before, .footer-bottom svg, .footer-bottom p:last-child::after, .footer-waves, .footer-waves::before, .footer-waves::after, .footer-palm-left, .footer-palm-right {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer.footer:hover .brand-flag, .footer:hover .brand-flag, .social-links a:hover, .social-links a:hover svg {
    transform: none !important;
  }
}

/* Focus states */

.footer-links a:focus, .social-links a:focus {
  outline: 2px solid var(--ja-gold, #FED100) !important;
  outline-offset: 4px !important;
}

/* Hover effects */

.footer-brand, .footer-links {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footer-brand:hover, .footer-links:hover {
  transform: translateY(-2px) !important;
}

