/* ================================================================
   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 & Hamburger) */
.header__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.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;
}

/* Hamburger Menu Button */
.header__hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__hamburger:hover .hamburger-line {
  background-color: #CC0033;
}

.header__hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.header__hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── RESPONSIVE HEADER ────────────────────────────────────────── */
@media (max-width: 900px) {
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-bottom: 4px solid #CC0033;
    padding: 1rem 0;
    z-index: 99;
  }

  .header__nav.active {
    display: block;
  }

  .menu__main {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;
  }

  .menu__item {
    border-bottom: 1px solid #333;
    padding: 0.75rem 0;
  }

  .menu__item:last-child {
    border-bottom: none;
  }

  .menu__link {
    font-size: 0.95rem;
    display: block;
    padding: 0;
  }

  .header__inner {
    gap: 1rem;
  }
}

@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;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    padding: 0.75rem 0;
  }

  .menu__main {
    gap: 0;
    padding: 0 1rem;
  }

  .menu__item {
    padding: 0.5rem 0;
  }

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

/* ================================================================
   FOOTER STYLING - THREE COLUMN LAYOUT
   Maroon border, Logo + Social, Navigation, Address + Contact Button
   ================================================================ */

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

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

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
  box-sizing: border-box;
}

/* Column Base Styles */
.footer__column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__column-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #202B30;
  margin: 0;
  letter-spacing: 0.08em;
  border-bottom: 2px solid #CC0033;
  padding-bottom: 0.5rem;
}

/* Left Column: Logo and Social Links */
.footer__column--left {
  align-items: center;
}

.footer__logo {
  width: 100%;
  max-width: 150px;
  margin-bottom: 1rem;
}

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

.footer__social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #202B30;
  transition: color 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  border-radius: 4px;
}

.footer__social a:hover {
  color: #CC0033;
}

.footer__social-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Middle Column: Navigation Menu */
.footer__column--middle {
  align-items: center;
}

.footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__menu li {
  margin: 0;
  padding: 0;
}

.footer__menu a {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #202B30;
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.03em;
}

.footer__menu a:hover {
  color: #CC0033;
}

/* Right Column: Address and Contact Button */
.footer__column--right {
  align-items: center;
}

.footer__address {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #202B30;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.footer__contact-button {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #CC0033;
  border: 2px solid #CC0033;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 1rem;
}

.footer__contact-button:hover {
  background-color: #aa0028;
  border-color: #aa0028;
}

/* Copyright Section */
.footer__bottom {
  background-color: #1a1a1a;
  padding: 1.5rem 1.5rem;
  text-align: center;
  border-top: 2px solid #CC0033;
}

.footer__copyright {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  color: #b0b0b0;
  margin: 0;
}

/* ── RESPONSIVE FOOTER ────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .footer__column--right {
    grid-column: 1 / -1;
  }
}

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }

  .footer__column-title {
    font-size: 0.85rem;
  }

  .footer__menu a {
    font-size: 0.85rem;
  }

  .footer__address {
    font-size: 0.85rem;
  }

  .footer__contact-button {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}
