/* ─── footer_04 ──────────────────────────────────────────────── */
.footer-journal-04 {
  --footer-04-bg:      var(--color-footer-bg, var(--dark-color1, #0d1b4a));
  --footer-04-bg-dark: var(--color-primary-dark, #080f2e);
  --footer-04-accent:  var(--color-accent, #f3a43a);
  --footer-04-text:    var(--color-footer-text, #ffffff);
  --footer-04-muted:   rgba(255, 255, 255, 0.55);
  --footer-04-border:  rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, var(--footer-04-bg), var(--footer-04-bg-dark));
  color: var(--footer-04-text);
  overflow: hidden;
  position: relative;
}

.footer-journal-04 *,
.footer-journal-04 *::before,
.footer-journal-04 *::after { box-sizing: border-box; }

.footer-journal-04 a {
  color: inherit;
  text-decoration: none;
}

.footer-journal-04 img {
  display: block;
  max-width: 100%;
}

/* ── Container ───────────────────────────────────────────────── */
.footer-journal-04__container {
  margin: 0 auto;
  max-width: 1290px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Widgets row ─────────────────────────────────────────────── */
.footer-journal-04__widgets {
  padding: 100px 0 80px;
}

/* 3-column grid: newsletter | nav | info-panel */
.footer-journal-04__grid {
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

/* ── Newsletter (left) ───────────────────────────────────────── */
.footer-journal-04__title {
  color: var(--footer-04-text);
  font-family: var(--title-font);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}

.footer-journal-04__description {
  color: var(--footer-04-text);
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  max-width: 500px;
  opacity: 0.85;
}

.footer-journal-04__form {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-top: 36px;
  max-width: 560px;
}

.footer-journal-04__input-wrap {
  flex: 1 1 auto;
  position: relative;
}

.footer-journal-04__input-icon {
  color: var(--footer-04-muted);
  font-size: 14px;
  left: 22px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.footer-journal-04__input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--footer-04-border);
  border-radius: var(--radius-pill);
  color: var(--footer-04-text);
  min-height: 58px;
  padding: 0 20px 0 50px;
  width: 100%;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.footer-journal-04__input::placeholder {
  color: var(--footer-04-muted);
}

.footer-journal-04__input:focus {
  border-color: rgba(243, 164, 58, 0.5);
  outline: 2px solid transparent;
}

.footer-journal-04__submit {
  align-items: center;
  background: var(--footer-04-accent);
  border: 0;
  border-radius: var(--radius-pill);
  color: #101249;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 58px;
  min-width: 148px;
  padding: 0 22px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-journal-04__submit:hover,
.footer-journal-04__submit:focus-visible {
  filter: brightness(1.06);
  outline: none;
  transform: translateY(-1px);
}

.footer-journal-04__privacy {
  color: var(--footer-04-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 0;
}

.footer-journal-04__privacy a {
  color: var(--footer-04-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-journal-04__privacy a:hover,
.footer-journal-04__privacy a:focus-visible {
  color: var(--footer-04-accent);
  outline: none;
}

/* ── Nav columns (middle) ────────────────────────────────────── */
.footer-journal-04__nav-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.footer-journal-04__column-title {
  color: var(--footer-04-text);
  font-family: var(--title-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
}

.footer-journal-04__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-journal-04__links li + li {
  margin-top: 14px;
}

.footer-journal-04__links a {
  color: var(--footer-04-muted);
  font-size: 15px;
  line-height: 1.7;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-journal-04__links a:hover,
.footer-journal-04__links a:focus-visible {
  color: var(--footer-04-text);
  outline: none;
  transform: translateX(3px);
}

/* ── Info panel (right): office + contact stacked ────────────── */
.footer-journal-04__info-panel {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-journal-04__office-name {
  color: var(--footer-04-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 6px;
}

.footer-journal-04__office-address {
  color: var(--footer-04-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.footer-journal-04__contact-email {
  color: var(--footer-04-muted);
  display: block;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.footer-journal-04__contact-email:hover,
.footer-journal-04__contact-email:focus-visible {
  color: var(--footer-04-text);
  outline: none;
}

.footer-journal-04__contact-phone {
  margin: 0;
}

.footer-journal-04__contact-phone a {
  color: var(--footer-04-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-journal-04__contact-phone a:hover,
.footer-journal-04__contact-phone a:focus-visible {
  color: var(--footer-04-accent);
  outline: none;
}

/* ── Bottom bar ──────────────────────────────────────────────── */
.footer-journal-04__bottom {
  align-items: center;
  border-top: 1px solid var(--footer-04-border);
  display: grid;
  gap: 16px;
  grid-template-columns: auto auto 1fr;
  padding: 24px 0;
}

.footer-journal-04__brand-link {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.footer-journal-04__logo {
  max-height: 42px;
}

.footer-journal-04__brand-name {
  color: var(--footer-04-text);
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

/* Language selector — pill with chevron */
.footer-journal-04__language-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.footer-journal-04__language-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--footer-04-border);
  border-radius: var(--radius-pill);
  color: var(--footer-04-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-height: 38px;
  min-width: 148px;
  padding: 0 40px 0 18px;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-journal-04__language-select:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-journal-04__language-select:focus {
  border-color: var(--footer-04-accent);
  outline: none;
}

.footer-journal-04__language-chevron {
  align-items: center;
  background: var(--footer-04-accent);
  border-radius: var(--radius-pill);
  color: #101249;
  display: inline-flex;
  font-size: 11px;
  height: 26px;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  right: 6px;
  width: 26px;
}

.footer-journal-04__copyright {
  color: var(--footer-04-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  text-align: right;
}

.footer-journal-04__copyright a {
  color: var(--footer-04-accent);
  text-decoration: none;
}

.footer-journal-04__copyright a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Decorative shape ────────────────────────────────────────── */
.footer-journal-04__shape {
  bottom: 40px;
  left: -120px;
  opacity: 0.18;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.footer-journal-04__shape img {
  max-width: 560px;
}

/* ── Screen-reader only ──────────────────────────────────────── */
.footer-journal-04__sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ── Color variants ──────────────────────────────────────────── */
.footer-journal-04--navy_orange {
  --footer-04-bg:      #0e1b4a;
  --footer-04-bg-dark: #080f2d;
  --footer-04-accent:  #f3a43a;
}

.footer-journal-04--academic_blue_gold {
  --footer-04-bg:      #102b63;
  --footer-04-bg-dark: #081c45;
  --footer-04-accent:  #e7b94c;
}

.footer-journal-04--dark_publisher {
  --footer-04-bg:      #111827;
  --footer-04-bg-dark: #020617;
  --footer-04-accent:  #d4a72c;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .footer-journal-04__grid {
    gap: 48px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .footer-journal-04__widgets {
    padding: 72px 0;
  }

  .footer-journal-04__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Newsletter spans full width on tablet */
  .footer-journal-04__newsletter {
    grid-column: 1 / -1;
  }

  .footer-journal-04__bottom {
    grid-template-columns: 1fr 1fr;
  }

  .footer-journal-04__copyright {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .footer-journal-04__widgets {
    padding: 56px 0;
  }

  .footer-journal-04__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-journal-04__newsletter {
    grid-column: auto;
  }

  .footer-journal-04__form {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-journal-04__submit {
    width: 100%;
  }

  .footer-journal-04__bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-journal-04__copyright {
    text-align: left;
  }

  .footer-journal-04__shape {
    opacity: 0.1;
  }
}

@media (max-width: 575px) {
  .footer-journal-04__shape {
    display: none;
  }
}
