/* ================= FOOTER ================= */
/* The logo fallback (.logo-fallback, .logo-mark, .logo-fallback-text) is styled in header.css. */
.footer{
  background:var(--navy);
  color:var(--white);
}

/* .visually-hidden now lives in base.css (shared by the hero's <h1> too) */

.footer-main{
  display:grid;
  grid-template-columns:auto 1fr 1fr 1.7fr;
  gap:56px;
  align-items:start;
  padding-top:80px;
  padding-bottom:72px;
}

.footer-heading{
  font-family:var(--font-head);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-45);
  margin-bottom:22px;
}
.footer-links{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.footer-links a{
  font-size:15px;
  font-weight:500;
  color:var(--ink-70);
  transition:color .15s ease;
}
.footer-links a:hover{color:var(--white);}

/* ---- newsletter ---- */
.footer-lead{
  font-family:var(--font-head);
  font-size:22px;
  font-weight:700;
  line-height:1.3;
  letter-spacing:-0.01em;
  max-width:24ch;
}
.footer-form{
  display:flex;
  margin-top:24px;
  max-width:440px;
}
.footer-input{
  flex:1;
  min-width:0;
  height:50px;
  padding:0 16px;
  font-family:inherit;
  font-size:14px;
  color:var(--white);
  background:transparent;
  border:1px solid rgba(255,255,255,.4);
  border-right:none;
  border-radius:0;
  transition:border-color .15s ease;
}
.footer-input::placeholder{color:var(--ink-45);}
.footer-input:hover,
.footer-input:focus{border-color:var(--white);outline:none;}
.footer-input:focus-visible{outline:2px solid var(--white);outline-offset:2px;}
.footer-submit{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:50px;
  padding:0 22px;
  font-size:14px;
  font-weight:700;
  color:var(--navy);
  background:var(--white);
  border:1px solid var(--white);
  border-radius:0;
  white-space:nowrap;
  transition:opacity .15s ease;
}
.footer-submit svg{width:16px;height:16px;transition:transform .15s ease;}
.footer-submit:hover{opacity:.9;}
.footer-submit:hover svg{transform:translateX(3px);}
.footer-submit:focus-visible{outline:2px solid var(--white);outline-offset:2px;}

/* ---- social ---- */
.footer-social{margin-top:48px;}
.footer-social .footer-heading{margin-bottom:16px;}
.social-list{
  list-style:none;
  display:flex;
  gap:10px;
}
.social-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  color:var(--white);
  border:1px solid rgba(255,255,255,.3);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.social-btn svg{width:18px;height:18px;}
.social-btn:hover{
  background:var(--white);
  color:var(--navy);
  border-color:var(--white);
}
.social-btn:focus-visible{outline:2px solid var(--white);outline-offset:3px;}

/* ---- logo (left) ---- */
.footer-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--white);
  padding:28px 36px;
  justify-self:start;
}
.footer-logo img{height:60px;width:auto;}

/* ---- bottom bar ---- */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
}
.footer-bottom .wrap{
  padding-top:22px;
  padding-bottom:22px;
}
.footer-bottom p{
  font-size:13px;
  color:var(--ink-45);
}

/* ================= FOOTER RESPONSIVE ================= */
@media (max-width:980px){
  .footer-main{
    grid-template-columns:1fr 1fr;
    gap:44px 32px;
    padding-top:56px;
    padding-bottom:52px;
  }
  .footer-logo{order:-1;grid-column:1 / -1;justify-self:start;}
  .footer-connect{grid-column:1 / -1;}
}

@media (max-width:520px){
  .footer-main{grid-template-columns:1fr;}
  .footer-form{flex-direction:column;gap:10px;}
  .footer-input{border-right:1px solid rgba(255,255,255,.4);}
  .footer-submit{justify-content:center;}
}

@media (prefers-reduced-motion: reduce){
  .footer-submit svg{transition:none;}
}
