/* ============================================
   Shared layout styles: header, footer, disclaimer
   ============================================ */

/* --- Header --- */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  position: fixed;
  width: 100%;
  height: 80px;
  top: 0;
  left: 0;
  z-index: 1001;
  padding: 20px 40px;
}

.header-nav {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.header-nav button {
  background: none;
  border: none;
  cursor: pointer;
}

.header-nav .nav-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #ac5737;
  text-decoration-thickness: 2px;
}

/* --- Disclaimer banner (index.html only) --- */

.disclaimer-banner {
  background: linear-gradient(135deg, #ac5737 0%, #d4734e 100%);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 80px;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  font-size: 0.9rem;
}

.disclaimer-banner strong {
  font-weight: 700;
}

/* --- Footer --- */

.footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  color: #252a53;
  text-align: left;
  font-size: 0.625rem;
}

.footer-column {
  padding: 0rem 0.625rem 0rem 0.625rem;
}

.footer-column img {
  height: 2.5rem;
  margin-bottom: 0.5rem;
}

footer h1 {
  font-size: 0.625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

footer h2 {
  font-size: 0.5625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

footer p {
  margin-bottom: 0.375rem;
  font-size: 0.625rem;
  color: #252a53;
}

footer a {
  color: #252a53;
  text-decoration: none;
}

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

/* --- Footer dark variant --- */

.footer--dark {
  background-color: #252a53;
  color: white;
}

.footer--dark h1,
.footer--dark h2,
.footer--dark p,
.footer--dark a {
  color: white;
}

/* --- Responsive: header --- */

@media (max-width: 1400px) and (min-width: 1024px) {
  .header {
    padding: 15px 30px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 3rem;
    padding: 0.5rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .header img {
    height: 2rem !important;
  }

  .disclaimer-banner {
    top: 3rem;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }
}

/* --- Responsive: footer --- */

@media (max-width: 1600px) {
  .footer {
    font-size: 0.5rem;
  }

  footer h1 {
    font-size: 0.5rem;
  }

  footer h2 {
    font-size: 0.45rem;
  }

  footer p {
    font-size: 0.5rem;
  }

  .disclaimer-banner {
    font-size: 0.8rem;
    padding: 0.8rem 1.5rem;
  }
}

@media (min-width: 2400px) {
  .footer {
    font-size: 0.8rem;
  }

  footer h1 {
    font-size: 0.8rem;
  }

  footer h2 {
    font-size: 0.7rem;
  }

  footer p {
    font-size: 0.8rem;
  }

  .disclaimer-banner {
    font-size: 1rem;
    padding: 1.2rem 2.5rem;
  }
}

@media (max-width: 1200px) {
  .footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    font-size: 0.6rem;
  }

  .footer-column p {
    width: auto !important;
  }
}
