/* Modern Multi-Column Footer with Dotted Borders & Theme Toggle (Adapted from Designali React Component) */
:root,
[data-theme="light"],
[data-theme="dark"] {
  --footer-bg: #ffffff;
  --footer-text: #475569;
  --footer-heading: #0b1728;
  --footer-accent: #0284c7;
  --footer-dotted: rgba(0, 0, 0, 0.14);
  --footer-border: rgba(15, 23, 42, 0.14);
  --footer-btn-bg: #ffffff;
  --footer-hover-text: #0284c7;
}

.is-home #site-footer {
  display: none;
}

.site-footer {
  width: 100%;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--footer-hover-text);
}

.site-footer button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* 1. Header / Intro Narrative */
.footer-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 36px 0 28px;
  flex-direction: column;
  text-align: center;
}

.site-footer .footer-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .footer-intro {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    align-items: center;
    gap: 28px;
  }

  .site-footer .footer-brand-logo {
    justify-content: flex-start;
    padding: 0 28px 0 0;
    border-right: 1px solid #e2e8f0;
  }
}

.footer-logo-img {
  display: block;
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-brand-logo:hover .footer-logo-img {
  transform: scale(1.04);
}

.dark-mode-logo {
  display: none;
}

.light-mode-logo {
  display: block;
}

.footer-intro p {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.7;
  color: #475569;
  max-width: none;
  margin: 0;
}

/* Section Dividers */
.footer-divider-dotted {
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
}

/* 2. Navigation Categories Grid */
.footer-nav-section {
  padding: 34px 0;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

@media (min-width: 640px) {
  .footer-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  .footer-nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: 28px 28px;
  }
}

.footer-nav-col h3 {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1f3a;
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  -webkit-font-smoothing: antialiased;
}

.footer-nav-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #0066cc;
}

.footer-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-nav-col li a {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #334155;
  display: inline-block;
  margin-bottom: 0;
}

.footer-nav-col li a:hover {
  color: #0066cc;
}

/* 3. Controls & Social Row */
.footer-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  padding: 24px 0;
}

.footer-social-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-footer a.footer-social-btn,
.footer-social-btn {
  --btn-color: #0284c7;
  --btn-bg: rgba(2, 132, 199, 0.1);
  --btn-border: rgba(2, 132, 199, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  color: var(--btn-color);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-footer a.footer-social-btn[href^="mailto:"] {
  --btn-color: #0284c7;
  --btn-bg: rgba(2, 132, 199, 0.1);
  --btn-border: rgba(2, 132, 199, 0.28);
}

.site-footer a.footer-social-btn[href^="tel:"] {
  --btn-color: #0d9488;
  --btn-bg: rgba(13, 148, 136, 0.1);
  --btn-border: rgba(13, 148, 136, 0.28);
}

.site-footer a.footer-social-btn[href*="wa.me"] {
  --btn-color: #16a34a;
  --btn-bg: rgba(34, 197, 94, 0.12);
  --btn-border: rgba(22, 163, 74, 0.3);
}

.site-footer a.footer-social-btn[href*="linkedin.com"] {
  --btn-color: #0a66c2;
  --btn-bg: rgba(10, 102, 194, 0.1);
  --btn-border: rgba(10, 102, 194, 0.28);
}

.site-footer a.footer-social-btn[href*="maps.google.com"] {
  --btn-color: #e11d48;
  --btn-bg: rgba(225, 29, 72, 0.1);
  --btn-border: rgba(225, 29, 72, 0.28);
}

.site-footer a.footer-social-btn[href="/contact-us/"] {
  --btn-color: #6366f1;
  --btn-bg: rgba(99, 102, 241, 0.1);
  --btn-border: rgba(99, 102, 241, 0.28);
}

.site-footer a.footer-social-btn:hover,
.footer-social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--btn-color);
  background: #ffffff;
  color: var(--btn-color);
  box-shadow: 0 6px 16px var(--btn-border);
}

.footer-social-btn svg,
.footer-social-btn img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Theme Toggle Capsule (hidden — white-only footer without scroll-top button) */
.footer-theme-toggle {
  display: none;
}

.theme-toggle-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  color: var(--footer-text);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
}

.theme-toggle-btn.btn-sun,
.theme-toggle-btn.btn-moon {
  display: none;
}

.theme-toggle-btn.btn-top {
  width: 32px;
  height: 32px;
  margin: 0;
}

.theme-toggle-btn.btn-top:hover {
  background: rgba(2, 132, 199, 0.1);
  color: var(--footer-accent);
}

/* 4. Bottom Bar */
.footer-bottom-bar {
  padding: 24px 0 36px;
  text-align: center;
  font-size: 12px;
  color: var(--footer-text);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-heart {
  color: #ef4444;
  display: inline-block;
  animation: pulse-heart 1.6s ease infinite;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.footer-bottom-content a {
  font-weight: 600;
  color: var(--footer-heading);
}

.footer-bottom-content a:hover {
  color: var(--footer-accent);
}
