@tailwind base;
@tailwind components;
@tailwind utilities;
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
}

.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 20px 0 24px;
  margin-top: auto;
}

.image {
  padding-top: 10px;
}

/* Remove padding from home page footer - the one that's a direct child of main */
main > .footer,
/* Remove padding from privacy page footer */
#privacy-page .footer {
  padding: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
  }
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.brand-description {
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  color: #6b7280;
  font-size: 20px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.social-links a:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.social-links a:hover .fa-instagram {
  color: #e4405f;
}

.social-links a:hover .fa-facebook {
  color: #1877f2;
}

.social-links a:hover .fa-linkedin {
  color: #0a66c2;
}

.social-links a:hover .fa-x-twitter {
  color: #000000;
}

.social-links a:hover .fa-whatsapp {
  color: #25d366;
}

.social-links a:hover .fa-youtube {
  color: #ff0000;
}

/* Contact Section */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #2563eb;
}

/* Location Section */
.location-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-container {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.contact-item i {
  color: #6b7280;
  width: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #2563eb;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
  }

  .footer {
    background: #1e293b;
    border-top-color: #334155;
  }

  .brand-name,
  .section-title {
    color: #f8fafc;
  }

  .brand-description,
  .footer-links a,
  .contact-item,
  .contact-item a,
  .copyright {
    color: #94a3b8;
  }

  .social-links a {
    color: #94a3b8;
  }

  .social-links a:hover {
    background: #334155;
  }

  .footer-links a:hover,
  .contact-item a:hover {
    color: #60a5fa;
  }

  .map-container {
    border-color: #334155;
  }

  .footer-bottom {
    border-top-color: #334155;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .footer {
    padding: 32px 0 20px;
  }

  .footer-container {
    padding: 0 16px;
  }

  .footer-grid {
    gap: 32px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-description {
    font-size: 14px;
  }

  .map-container {
    height: 200px;
  }
}
