/* footer.css — Footer section */

/* ══════════════════════════════
   FOOTER WRAPPER
══════════════════════════════ */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(124,92,62, 0.2);
  padding: 5rem 2rem 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), var(--purple), transparent);
}

/* ══════════════════════════════
   MAIN GRID (3 columns)
══════════════════════════════ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* ══════════════════════════════
   LEFT — Brand column
══════════════════════════════ */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Logo — reuses navbar logo styles; add footer-specific spacing */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.footer-logo .logo-icon {
  background: transparent;
  border-radius: 6px;
}

.footer-logo .logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer-logo .logo-name span {
  color: var(--cyan);
}

.footer-logo .logo-tagline {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

/* ── Social icons ── */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-link:hover {
  background: rgba(124,92,62, 0.15);
  border-color: #7C5C3E;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ══════════════════════════════
   MIDDLE — Links (2 sub-columns)
══════════════════════════════ */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #E5483B;
  padding-left: 4px;
}

/* ══════════════════════════════
   RIGHT — Newsletter + Contact
══════════════════════════════ */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Newsletter ── */
.footer-newsletter-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-newsletter-sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,92,62, 0.18);
}

.newsletter-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font);
  flex-shrink: 0;
  will-change: transform;
}

.newsletter-btn:hover {
  background: #C73C30;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,92,62, 0.35);
}

/* ── Contact info ── */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item:hover {
  color: var(--cyan);
}

.footer-contact-item svg {
  stroke: #E5483B;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.footer-contact-item:hover svg {
  stroke: var(--cyan);
}

/* ══════════════════════════════
   BOTTOM BAR
══════════════════════════════ */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 4rem 1.2rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ══════════════════════════════
   LIGHT MODE — FOOTER HEADINGS
   Prevent white-on-light bg
══════════════════════════════ */
body.light-mode .footer-heading,
body.light-mode .footer h3,
body.light-mode .footer-col h4,
body.light-mode [class*="footer"] h2,
body.light-mode [class*="footer"] h3,
body.light-mode [class*="footer"] h4 {
  color: #1A1207 !important;
}

body.light-mode .footer-heading,
body.light-mode .footer-col-title,
body.light-mode .footer h3,
body.light-mode .footer h4,
body.light-mode .footer-title {
  color: #1A1207 !important;
}

body.light-mode .footer p,
body.light-mode .footer span,
body.light-mode .footer a {
  color: #4A3828 !important;
}
