/* Footer CSS variables — matches resource-hub.css values so all pages are consistent */
:root {
  --footer-bg: #f8faf9;
  --primary: #447569;
  --secondary: #1C5B5D;
  --on-variant: #444846;
  --white: #fff;
  --frame-max: 1440px;
  --gutter-x: 144px;
}

@media (max-width: 1280px) {
  :root { --gutter-x: max(24px, min(10vw, 120px)); }
}

@media (max-width: 900px) {
  :root { --gutter-x: max(20px, min(6vw, 48px)); }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  width: 100%;
  background: var(--footer-bg);
  padding: 80px 0 48px;
}

.footer__inner {
  max-width: min(var(--frame-max), 1920px);
  margin: 0 auto;
  padding: 0 64px;
  box-sizing: border-box;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 192px;
  row-gap: 48px;
  width: 100%;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 0 0 auto;
  max-width: 100%;
}

.footer__logo {
  display: block;
  height: 36px;
  width: 190px;
  position: relative;
}

.footer__logo img {
  position: absolute;
  inset: -2.78% -0.53%;
  width: calc(100% + 1.06%);
  height: calc(100% + 5.56%);
  max-width: none;
}

.footer__newsline {
  font-size: 20px;
  line-height: 28px;
  color: var(--primary);
}

/* Newsletter form */
.newsletter {
  display: flex;
  align-items: center;
  max-width: 345px;
  width: 100%;
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  gap: 8px;
}

.newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-variant);
  min-width: 0;
}

.newsletter input::placeholder { color: var(--on-variant); }
.newsletter input:focus { outline: none; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  color: #fff;
  overflow: visible;
}

.icon-btn__arrow {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
}

/* Social icons */
.socials { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.socials a { width: 24px; height: 24px; position: relative; display: block; }
.socials a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Navigation columns */
.footer__cols {
  display: flex;
  flex: 1 1 0;
  min-width: min(100%, 280px);
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 76px;
  box-sizing: border-box;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
}

.footer-col h5 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--primary);
  margin: 0;
  width: 100%;
}

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

.footer-col a,
.footer-col span {
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary);
  text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; }

/* Bottom bar */
.footer__bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(3, 73, 75, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__bottom > span {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-variant);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-variant);
}

.footer__legal a {
  color: inherit;
  text-decoration: none;
}

.footer__legal a:hover { text-decoration: underline; }

/* ========================================
   FOOTER RESPONSIVE
   ======================================== */

@media (max-width: 1280px) {
  .footer__inner { padding-inline: var(--gutter-x); }
}

@media (max-width: 1100px) {
  .footer__top { column-gap: 64px; }
  .footer__cols {
    justify-content: flex-start;
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .footer { padding: 48px 0 32px; }
  .footer__cols { padding-bottom: 32px; }
  .footer__newsline { font-size: 17px; line-height: 1.45; }
}
