/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

#site-footer {
  background: var(--em-deep);
  color: rgba(255,255,255,0.75);
  position: relative;
  overflow: hidden;
}

/* Gradient top accent line */
#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--em-dark) 0%,
    #4ade80 35%,
    var(--gold) 65%,
    var(--em-dark) 100%
  );
  z-index: 3;
}

/* Subtle radial glow top-right */
#site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,222,128,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Footer Newsletter Band ─────────────── */
.footer-newsletter {
  background: linear-gradient(135deg, var(--em-dark) 0%, #0d2f1e 100%);
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 40px 48px;
}

.newsletter-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.newsletter-text h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.2;
}

.newsletter-text p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
}

.newsletter-form-wrap {
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.newsletter-form:focus-within {
  border-color: rgba(74,222,128,0.4);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.08);
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }

.newsletter-form button {
  padding: 15px 26px;
  background: var(--em);
  border: none;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t);
  flex-shrink: 0;
}

.newsletter-form button:hover { background: var(--em-mid); }

/* ─── Footer Main ───────────────────────── */
.footer-main {
  padding: 72px 0 52px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 52px;
}

/* Footer Brand Col */
.footer-brand {}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1;
  display: block;
}

.footer-logo em { color: #4ade80; font-style: italic; }

.footer-logo-sub {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-bottom: 20px;
}

.footer-about {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  transition: all var(--t);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--em);
  border-color: var(--em);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer Column */
.footer-col {}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-links { display: flex; flex-direction: column; gap: 11px; }

.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  transition: all var(--t);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '›';
  font-size: 16px;
  color: var(--em);
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
  transform: translateX(-4px);
  line-height: 1;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(6px);
}

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

/* Footer Contact */
.footer-contact { display: flex; flex-direction: column; gap: 16px; }

.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg {
  stroke: rgba(74,222,128,0.8);
  fill: none;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.footer-contact-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 3px;
  font-weight: 700;
}

.footer-contact-value {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.footer-contact-value a {
  color: rgba(255,255,255,0.7);
  transition: color var(--t);
  text-decoration: none;
}

.footer-contact-value a:hover { color: #4ade80; }

/* ─── Footer Trust Row ───────────────────── */
.footer-trust {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.footer-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-trust-item svg {
  flex-shrink: 0;
  opacity: 0.55;
}

/* ─── Footer Bottom ─────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}

.footer-copyright strong { color: rgba(255,255,255,0.5); }

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  transition: color var(--t);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* ─── Responsive ────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-about { max-width: 100%; }

  /* Keep perks row visible but smaller */
  .footer-trust-inner {
    gap: 16px 24px;
    justify-content: center;
  }
  .footer-trust-item span { display:none; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { padding-bottom: 24px; }
  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 6px 0 8px;
    margin-bottom: 0;
  }
  .footer-col:last-of-type { border-bottom:none; }
  .footer-col-title {
    cursor: pointer;
    user-select: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    margin-bottom: 0;
    border-bottom:none;
  }
  .footer-col-title::after {
    content: '+';
    font-size: 18px;
    color: rgba(255,255,255,0.35);
    transition: transform 0.2s ease;
  }
  .footer-col.open .footer-col-title::after {
    content: '−';
    color: #4ade80;
  }
  .footer-col .footer-links { flex-direction: column; gap: 10px; padding: 8px 4px 10px; }
  .footer-col .footer-contact { flex-direction: column; gap: 14px; padding: 8px 4px 10px; }
  .footer-col:not(.open) .footer-links,
  .footer-col:not(.open) .footer-contact { display: none !important; }
  .footer-col.open .footer-links,
  .footer-col.open .footer-contact { display: flex !important; }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px;
  }
  .newsletter-form-wrap { max-width: 100%; min-width: 0; width: 100%; }
  .newsletter-form { max-width: 100%; }
  .newsletter-text h3 { font-size: 1.5rem; }
  .footer-bottom-inner { 
    flex-direction: column !important; 
    align-items: center !important; 
    text-align: center !important; 
    gap: 12px !important; 
  }
  .footer-bottom-links { 
    flex-wrap: wrap !important; 
    gap: 14px !important; 
    justify-content: center !important; 
  }
  .footer-copyright { 
    text-align: center !important; 
    width: 100% !important; 
  }
  .footer-main { padding: 48px 0 32px; }
  .footer-newsletter { padding: 36px 0; }
  .footer-trust-item span { display: none; }
  .footer-trust-inner { gap: 20px; justify-content: center; }
  .footer-trust-item svg { opacity: 0.5; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 4px;
    margin-bottom: 4px;
  }
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px;
  }
  .newsletter-form-wrap { max-width: 100%; min-width: 0; width: 100%; }
  .newsletter-form { max-width: 100%; }
  .newsletter-text h3 { font-size: 1.5rem; }
  .footer-bottom-inner { 
    flex-direction: column !important; 
    align-items: center !important; 
    text-align: center !important; 
  }
  .footer-bottom-links { 
    flex-wrap: wrap !important; 
    gap: 14px !important; 
    justify-content: center !important; 
  }
  .footer-copyright { 
    text-align: center !important; 
    width: 100% !important; 
  }
  .footer-main { padding: 48px 0 32px; }
  .footer-newsletter { padding: 36px 0; }
  .footer-trust-item span { display: none; }
  .footer-trust-inner { gap: 20px; justify-content: center; }
  .footer-trust-item svg { opacity: 0.5; }
}
