/* ============================================
   BAZM-E-BME - Header & Footer Styles
   ============================================ */

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.header-navy {
  background: var(--navy) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.header.scrolled {
  background: var(--navy);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  touch-action: manipulation;
  z-index: 1002;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.logo-text h1 span {
  color: var(--gold);
}

.logo-text p {
  font-size: 0.65rem;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

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

.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  width: 100%;
}

/* Nav CTA Button */
.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-gold);
  color: var(--navy);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
  pointer-events: none;
}

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

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  background: var(--navy);
  padding: 100px 24px 40px;
  transition: right 0.4s ease, visibility 0.4s ease;
  z-index: 999;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  visibility: hidden;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201, 162, 39, 0.2);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: var(--gold);
  padding-left: 20px;
  background: rgba(201, 162, 39, 0.1);
}

.mobile-menu .nav-cta {
  display: inline-block;
  margin-top: 24px;
  text-align: center;
  min-height: 48px;
  padding: 14px 24px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201, 162, 39, 0.2);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 80px;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
  max-width: 100%;
  text-align: left !important;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: flex-start !important;
}

.footer-logo img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.footer-logo-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  white-space: nowrap;
}

.footer-logo-text h2 span {
  color: var(--gold);
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start !important;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--gray-400);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* Footer Columns */
.footer-column {
  min-width: 0;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  color: var(--gray-400);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-link:hover i {
  transform: translateX(3px);
}

/* Footer Newsletter */
.footer-newsletter-text {
  color: var(--gray-400);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.newsletter-input-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.newsletter-input::placeholder {
  color: var(--gray-500);
}

.newsletter-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-input.input-error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.email-error {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
}

.newsletter-btn {
  padding: 14px 20px;
  background: var(--gradient-gold);
  color: var(--navy);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Footer Contact Info */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.contact-item i {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.footer-contact-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-link:hover {
  color: var(--gold);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.footer-copyright a {
  color: var(--gold);
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: var(--gold-light);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-link {
  color: var(--gray-500);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-link:hover {
  color: var(--gold);
}

/* ============================================
   RESPONSIVE - HEADER & FOOTER
   ============================================ */

/* Large Tablets and Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-overlay {
    display: block;
  }

  .footer {
    padding-top: 60px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

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

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .logo img {
    height: 40px;
  }

  .logo-text h1 {
    font-size: 1.2rem;
  }

  .footer {
    padding-top: 50px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-column h3 {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .footer-link {
    font-size: 0.9rem;
    padding: 2px 0;
  }

  .footer-newsletter-text {
    font-size: 0.9rem;
  }

  .newsletter-input-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-input {
    width: 100%;
    padding: 12px 16px;
  }

  .newsletter-btn {
    width: 100%;
    padding: 12px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 0;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }
}

/* Small Tablets and Large Phones (max-width: 576px) */
@media (max-width: 576px) {
  .mobile-menu {
    width: 100%;
    max-width: 100%;
  }

  .logo-text p {
    display: none;
  }

  .footer {
    padding-top: 40px;
  }

  .footer-container {
    padding: 0 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-brand {
    grid-column: span 1;
    text-align: left;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-brand p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.9rem;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .social-link {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .footer-column h3 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-link {
    font-size: 0.88rem;
  }

  .footer-newsletter-text {
    font-size: 0.88rem;
  }

  .footer-contact {
    margin-top: 16px;
    gap: 12px;
  }

  .contact-item {
    font-size: 0.85rem;
  }

  .footer-bottom {
    padding: 20px 0;
    gap: 14px;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }

  .footer-bottom-links {
    gap: 12px 20px;
  }

  .footer-bottom-link {
    font-size: 0.8rem;
  }
}

/* Extra Small Screens (max-width: 374px) */
@media (max-width: 374px) {
  .footer {
    padding-top: 32px;
  }

  .footer-container {
    padding: 0 12px;
  }

  .footer-top {
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-logo img {
    height: 45px;
  }

  .footer-logo-text h2 {
    font-size: 1.2rem;
  }

  .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .footer-social {
    gap: 8px;
  }

  .social-link {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .footer-column h3 {
    font-size: 0.95rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .footer-column h3::after {
    width: 24px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-link {
    font-size: 0.82rem;
    gap: 6px;
  }

  .footer-newsletter-text {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .newsletter-input {
    padding: 11px 14px;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .newsletter-btn {
    padding: 11px 18px;
    border-radius: 10px;
  }

  .footer-contact {
    margin-top: 14px;
    gap: 10px;
  }

  .contact-item {
    font-size: 0.8rem;
    gap: 10px;
  }

  .contact-item i {
    font-size: 0.88rem;
    width: 18px;
  }

  .footer-bottom {
    padding: 16px 0;
    gap: 12px;
  }

  .footer-copyright {
    font-size: 0.78rem;
  }

  .footer-bottom-links {
    gap: 10px 14px;
  }

  .footer-bottom-link {
    font-size: 0.75rem;
  }

  /* Header adjustments for extra small screens */
  .header-container {
    padding: 0 12px;
  }

  .logo img {
    height: 35px;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  .logo {
    gap: 8px;
  }
}