/* FOOTER */
.site-footer {
  position: relative;
  width: 100%;
  background: #282828;
  padding: var(--space-24) var(--space-8) 200px var(--space-8); /* 128px top, 32px sides, 240px bottom - taller footer with content near top */
  overflow: hidden;
}

.footer-content {
  /* Removed position: relative so background image positions relative to .site-footer */
  z-index: 2;
}

.footer-grid {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 46% 33% 10.5% 10.5% !important;
  gap: 0 !important;
  align-items: start !important;
}

/* Explicitly place each column */
.footer-logo {
  grid-column: 1 !important;
}

.footer-section:nth-child(2) {
  grid-column: 2 !important;
}

.footer-section:nth-child(3) {
  grid-column: 3 !important;
}

.footer-section:nth-child(4) {
  grid-column: 4 !important;
}

/* Logo and Name - First column (46%) */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  width: fit-content;
  padding-right: var(--space-12);
}

.footer-badge {
  position: absolute;
  width: 130px;
  height: 130px;
  opacity: 0.07;
  z-index: 1;
  top: 50%;
  left: calc(100% - 15px); /* Moved 15px to the left */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.footer-logo-svg {
  display: block;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
}

.footer-logo:hover .footer-logo-svg {
  animation: footer-bounce 0.8s cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes footer-bounce {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  15% { transform: scale(1.15, 0.85) rotate(-3deg); }
  30% { transform: scale(0.9, 1.15) rotate(3deg); }
  45% { transform: scale(0.95, 1.05) rotate(-2deg); }
  60% { transform: scale(1.1, 0.9) rotate(2deg); }
  75% { transform: scale(0.98, 1.02) rotate(-1deg); }
  90% { transform: scale(1.01, 0.99) rotate(0.5deg); }
}

.footer-logo-text {
  font-family: var(--font-family-serif);
  font-size: 2.875rem;
  font-weight: 500; /* Changed from var(--font-bold) to 500 */
  color: #fff;
  line-height: 1;
}

.footer-logo:hover .footer-logo-text {
  color: #fff;
}

/* Section columns */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Column labels - just colored text, not boxes */
.footer-section-label {
  font-family: var(--font-family-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-tan);
  display: block;
  margin-bottom: var(--space-1);
}

.footer-section-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-section-text {
  font-family: var(--font-family-sans);
  font-size: var(--text-base);
  line-height: var(--leading-comfortable);
  color: #fff;
  margin: 0;
  opacity: 0.8;
}

.footer-section-emphasis {
  font-family: var(--font-family-serif);
  font-weight: var(--font-bold); /* 700 - Changed from 600 since font doesn't support 600 */
  font-style: italic;
  opacity: 1; /* Changed back to 1 */
  color: #C7AD93; /* Tan color */
}

.footer-section-link {
  font-family: var(--font-family-sans);
  font-size: var(--text-base);
  line-height: var(--leading-comfortable);
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  width: fit-content;
  opacity: 0.8;
}

.footer-section-link:hover {
  color: #C7AD93; /* Changed from var(--color-coral) to tan color */
}

.footer-copyright {
  display: none; /* Hide copyright completely */
}

.footer-icons {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-top: 2px; /* Nudge icons down 2px */
}

.footer-icon {
  width: 20px;
  height: 20px;
  opacity: 1; /* Changed from 0.25 to 1 */
  transition: opacity 0.3s ease, filter 0.3s ease;
  filter: brightness(0) saturate(100%) invert(75%) sepia(15%) saturate(650%) hue-rotate(355deg) brightness(95%) contrast(85%); /* #C7AD93 */
}

.footer-icons a:hover .footer-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(60%) sepia(20%) saturate(700%) hue-rotate(355deg) brightness(85%) contrast(80%); /* Darker shade of #C7AD93 */
}

/* Background text - already cropped SVG, just position at bottom */
.footer-background-text {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 1000px !important;
  height: auto !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.06 !important;
  display: block !important;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .site-footer {
    padding: var(--space-16) 88px 120px 88px; /* Side padding set to 88px for very narrow content */
  }

  /* CRITICAL: Override desktop grid - create mobile-friendly layout */
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 columns */
    gap: var(--space-10) !important; /* 40px between sections */
    align-items: start !important;
    grid-template-areas:
      "logo logo"
      "about about"
      "menu info" !important;
  }

  /* Logo section - spans both columns, centered */
  .footer-logo {
    grid-area: logo !important;
    margin: 0 auto var(--space-6) auto !important; /* Center logo */
    flex-direction: row !important;
    gap: var(--space-3) !important;
    padding-right: 0 !important;
    align-items: center !important;
  }
  
  /* About section - spans both columns, full width */
  .footer-section:nth-child(2) {
    grid-area: about !important;
    grid-column: 1 / -1 !important; /* Span both columns */
    width: 100% !important;
  }
  
  /* Menu section - left column */
  .footer-section:nth-child(3) {
    grid-area: menu !important;
    grid-column: 1 !important;
  }
  
  /* Info section - right column */
  .footer-section:nth-child(4) {
    grid-area: info !important;
    grid-column: 2 !important;
  }

  .footer-badge {
    width: 126px; /* 90% of 140px */
    height: 126px; /* 90% of 140px */
    left: 100% !important; /* Far right position */
    right: auto !important; /* Reset right positioning */
    top: 50% !important; /* Center vertically */
    transform: translate(-50%, -50%) !important; /* Center on the position point */
    opacity: 0.075 !important; /* Decreased to 0.085 */
  }

  .footer-logo-svg {
    width: 64px; /* Reduced from 72px */
    height: 64px;
  }

  .footer-logo-text {
    font-size: var(--text-5xl); /* 2rem - Reduced from 2.5rem (var(--text-6xl)) */
  }
  
  /* All sections: left-aligned */
  .footer-section {
    width: 100% !important;
    align-items: flex-start !important;
  }
  
  /* Section labels - FIXED: 16px (1rem) */
  .footer-section-label {
    text-align: left;
    margin-bottom: var(--space-3); /* 12px */
    font-size: var(--text-base); /* 1rem - 16px */
  }
  
  /* Section content */
  .footer-section-content {
    gap: var(--space-3); /* 12px between items */
  }
  
  /* About section text - FIXED: 18px (1.125rem) */
  .footer-section-text {
    font-size: var(--text-lg); /* 1.125rem - 18px */
  }
  
  /* Menu links - FIXED: 18px (1.125rem) */
  .footer-section-link {
    font-size: var(--text-lg); /* 1.125rem - 18px */
  }
  
  /* Icons - left-aligned and larger */
  .footer-icons {
    margin-top: var(--space-2); /* 16px */
    gap: var(--space-4); /* 16px between icons */
    justify-content: flex-start; /* Left align icons */
  }
  
  .footer-icon {
    width: 32px; /* Larger on mobile - increased from 24px */
    height: 32px;
  }

  /* Mobile background text - use 300px version */
  .footer-background-text {
    max-width: 300px !important;
    bottom: 0 !important;
    opacity: 0.1 !important; /* Doubled from 0.025 for more visibility */
  }
}
