/**
 * Header and Footer specific styles for Ice Perience Theme
 */

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled::before {
  opacity: 0.03;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  position: relative;
}

/*--------------------------------------------------------------
# Site Branding
--------------------------------------------------------------*/
.site-branding {
  display: flex;
  align-items: center;
  z-index: 10;
}

.custom-logo-container {
  display: flex;
  align-items: center;
}

.custom-logo {
  max-height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.custom-logo:hover {
  transform: scale(1.05);
}

.site-title-container {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-primary);
  line-height: 1.2;
}

.site-title a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--primary-color);
}

.site-description {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  font-weight: 400;
  font-family: var(--font-secondary);
}

/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--primary-color);
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
  width: 100%;
}

/*--------------------------------------------------------------
# Mobile Menu Toggle
--------------------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background: rgba(var(--primary-color), 0.1);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.toggle-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-primary);
  transition: color 0.3s ease;
}

.mobile-menu-toggle.active .toggle-text {
  color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Mobile Navigation Overlay
--------------------------------------------------------------*/
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.5rem;
  transform: translateY(-30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-overlay.active .mobile-nav-container {
  transform: translateY(0);
}

/*--------------------------------------------------------------
# Mobile Navigation Header
--------------------------------------------------------------*/
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.mobile-logo img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mobile-site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-primary);
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/*--------------------------------------------------------------
# Mobile Navigation Menu
--------------------------------------------------------------*/
.mobile-navigation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}

.mobile-nav-menu li {
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInMobile 0.6s ease forwards;
}

.mobile-nav-menu li:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-menu li:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-nav-menu li:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-nav-menu li:nth-child(4) {
  animation-delay: 0.4s;
}
.mobile-nav-menu li:nth-child(5) {
  animation-delay: 0.5s;
}
.mobile-nav-menu li:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInMobile {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-menu a {
  display: block;
  color: white;
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 1.5rem;
  margin: 0 auto;
  max-width: 320px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-menu a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.mobile-nav-menu a:hover::before {
  left: 100%;
}

.mobile-nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-nav-menu .current-menu-item > a,
.mobile-nav-menu .current_page_item > a {
  background: rgba(255, 255, 255, 0.15);
  color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Mobile Navigation Footer
--------------------------------------------------------------*/
.mobile-nav-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.mobile-contact-info {
  margin-bottom: 1.5rem;
}

.mobile-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mobile-contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

/*--------------------------------------------------------------
# Responsive Breakpoints
--------------------------------------------------------------*/
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-content {
    min-height: 70px;
  }

  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }

  .header-content {
    min-height: 65px;
  }

  .custom-logo {
    max-height: 50px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .mobile-nav-menu a {
    font-size: 1.5rem;
    padding: 0.875rem 1.25rem;
  }

  .mobile-nav-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 10px;
  }

  .header-content {
    min-height: 60px;
  }

  .custom-logo {
    max-height: 45px;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .mobile-nav-menu a {
    font-size: 1.3rem;
    padding: 0.75rem 1rem;
    max-width: 280px;
  }

  .mobile-contact-item {
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
  }
}

/*--------------------------------------------------------------
# Header Scroll Effects
--------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
  }

  .site-header.scrolled .header-content {
    min-height: 70px;
  }

  .site-header.scrolled .custom-logo {
    max-height: 50px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
/* Footer Container */
.site-footer {
  position: relative;
  background-color: var(--primary-dark);
  color: white;
  padding: 80px 0 20px;
  margin-top: 70px; /* Space for the wave divider */
}

/* Footer Wave Divider */
.footer-wave-divider {
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 70px;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.footer-wave-divider .shape-fill {
  fill: var(--primary-dark);
}

/* Footer Content Container */
.footer-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Footer Content Grid */
.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

/* Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  max-height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-site-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
  font-family: var(--font-primary);
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.footer-legal-notice {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
  line-height: 1.6;
  font-style: italic;
}

/* Footer Social Icons */
.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-normal);
}

.footer-social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Menu Column */
.footer-menu h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
  font-family: var(--font-primary);
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
}

.footer-menu h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-normal);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  position: relative;
}

.footer-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary-color);
  transition: var(--transition-normal);
}

.footer-menu a:hover {
  color: white;
}

.footer-menu a:hover::after {
  width: 100%;
}

/* Contact Column */
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
  font-family: var(--font-primary);
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
}

.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  transition: var(--transition-normal);
}

.footer-contact-item:hover .footer-contact-icon {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.footer-contact-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.footer-contact-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-normal);
}

.footer-contact-text a:hover {
  color: white;
}

/* Contact Button */
.footer-contact-button {
  margin-top: 20px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: fit-content;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
  background-color: white;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-button svg {
  transition: transform 0.3s ease;
}

.contact-button:hover svg {
  transform: translateX(-3px);
}

/* Footer Copyright Bar */
.footer-copyright-bar {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright-content {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 20px;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 992px) {
  /* Hide desktop navigation and show mobile toggle */
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-list a {
    font-size: 1.5rem;
    padding: 12px 15px;
  }

  .mobile-contact-item {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-menu h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact-item {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .contact-button {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .site-header {
    padding: 10px 0;
  }

  .custom-logo {
    max-height: 50px;
  }

  .mobile-menu-container {
    padding: 15px;
  }

  .mobile-menu-list a {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .mobile-contact-item {
    max-width: 250px;
  }

  .site-footer {
    padding: 60px 0 20px;
  }

  .footer-wrapper {
    padding: 0 15px;
  }
}
