/* ================================================================
   ROY WATER LAB - HEADER AND FOOTER STYLING
   Dark header (#1a1a1a) with maroon border
   Dark footer (#0d0d0d) with three-column layout
   ================================================================ */

/* ── SUPPORT BANNER ────────────────────────────────────────────── */
.support-banner {
  background: linear-gradient(135deg, #FDF0F2 0%, #fff5f7 100%);
  border-bottom: 2px solid #CC0033;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 101;
}

.support-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.support-banner__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.support-banner__icon {
  font-size: 1.5rem;
  flex: 0 0 auto;
}

.support-banner__text {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: #202B30;
  font-weight: 500;
}

.support-banner__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #CC0033;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.3s ease, gap 0.3s ease;
}

.support-banner__link:hover {
  color: #aa0028;
  gap: 0.75rem;
}

.support-banner__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.support-banner__link:hover .support-banner__arrow {
  transform: translateX(2px);
}

.support-banner__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #5D7E8C;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  flex: 0 0 auto;
}

.support-banner__close:hover {
  color: #CC0033;
}

.support-banner__close svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .support-banner__inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .support-banner__content {
    width: 100%;
    order: 1;
  }

  .support-banner__link {
    order: 2;
  }

  .support-banner__close {
    order: 3;
  }

  .support-banner__text {
    font-size: 0.85rem;
  }

  .support-banner__link {
    font-size: 0.8rem;
  }
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.header {
  background: #1a1a1a;
  border-bottom: 4px solid #CC0033;
  color: #ffffff;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo Styling */
.header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.logo__link:hover {
  color: #CC0033;
}

.logo__image {
  height: 50px;
  width: auto;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #CC0033;
  border-radius: 4px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.logo__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

/* Navigation Menu */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu__main {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.menu__item {
  margin: 0;
  padding: 0;
}

.menu__link {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.menu__link:hover {
  color: #CC0033;
  border-bottom-color: #CC0033;
}

/* Header Right (Theme Toggle) */
.header__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.theme-toggle {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: #CC0033;
}

/* ── RESPONSIVE HEADER ────────────────────────────────────────── */
@media (max-width: 900px) {
  .header__inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header__nav {
    order: 3;
    width: 100%;
  }

  .menu__main {
    gap: 1rem;
  }

  .menu__link {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 1rem 0;
  }

  .header__inner {
    padding: 0 1rem;
  }

  .logo__image {
    height: 40px;
  }

  .logo__mark {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .logo__text {
    font-size: 1.1rem;
  }

  .menu__main {
    gap: 0.75rem;
  }

  .menu__link {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }
}

/* ================================================================
   FOOTER STYLING
   Minimal design with maroon border, gray line, and Rutgers logo
   ================================================================ */

.footer {
  background: #ffffff;
  color: #202B30;
  margin-top: 4rem;
  padding: 0;
}

/* Border lines at top */
.footer__borders {
  height: 4px;
  background: #CC0033;
  border-bottom: 1px solid #d0d0d0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  box-sizing: border-box;
}

/* Left Side: Address and Copyright */
.footer__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__address {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #202B30;
  margin: 0;
  line-height: 1.4;
}

.footer__copyright {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Right Side: Logo */
.footer__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  padding-right: 0;
}

.footer__logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── RESPONSIVE FOOTER ────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__inner {
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .footer__left {
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .footer__address,
  .footer__copyright {
    white-space: normal;
  }

  .footer__right {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .footer__logo {
    max-height: 50px;
  }
}

@media (max-width: 600px) {
  .footer {
    margin-top: 2rem;
  }

  .footer__inner {
    padding: 1.5rem 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .footer__left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer__address,
  .footer__copyright {
    white-space: normal;
    font-size: 0.85rem;
  }

  .footer__right {
    width: 100%;
    justify-content: center;
  }

  .footer__logo {
    max-height: 45px;
  }
}
