/* Gades Imports Header CSS - 3-Column Grid Layout */

/* CSS Variables for easy customization */
:root {
  --primary-gold: #d4af37;
  --dark-gold: #b8941f;
  --light-gold: #f4c430;
  --bg-dark: #000;
  --bg-card: #1a1a1a;
  --bg-card-dark: #0a0a0a;
  --text-light: #fff;
  --text-muted: #ccc;
  --text-dark: #888;
  --border-color: #333;
  --shadow-gold: rgba(212, 175, 55, 0.3);
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

/* Global reset for header elements */
.gades-header * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body modifications for fixed header */
body.has-gades-header {
  font-family: 'Outfit', sans-serif;
  padding-top: 120px; /* Space for fixed header */
  scroll-behavior: smooth;
}

/* Main Header Styles - 3-Column Grid */
.gades-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* Left | Center | Right */
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.gades-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

/* Logo Styles - Left Column */
.gades-header .logo {
  height: 78px;
  transition: transform 0.3s ease;
  justify-self: start; /* Align to left of column */
}

.gades-header .logo:hover {
  transform: scale(1.05);
}

/* Navigation Styles - Center Column */
.gades-header nav {
  display: flex;
  gap: 2rem;
  justify-content: center; /* Center within middle column */
  justify-self: center; /* Center the nav element itself */
}

.gades-header nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.gades-header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.gades-header nav a:hover::after,
.gades-header nav a.active::after {
  width: 100%;
}

.gades-header nav a:hover,
.gades-header nav a.active {
  color: var(--primary-gold);
}

/* Homepage Branding - Center Column (Desktop Only) */
.gades-header .homepage-branding {
  display: none; /* Hidden by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  text-align: center;
  gap: 0.2rem;
}

.gades-header .homepage-branding .company-name {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-gold);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Outfit', sans-serif;
}

.gades-header .homepage-branding .company-slogan {
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
  font-weight: 400;
  opacity: 0.9;
  font-family: 'Outfit', sans-serif;
}

/* Homepage Desktop: Show branding, hide navigation */
@media (min-width: 769px) {
  body.homepage .gades-header nav {
    display: none; /* Hide navigation on homepage desktop */
  }
  
  body.homepage .gades-header .homepage-branding {
    display: flex; /* Show branding on homepage desktop */
  }
}

/* Header Right Section - Right Column */
.gades-header .header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end; /* Align to right of column */
}

/* Language Toggle */
.gades-header .language-toggle {
  margin-right: 0.5rem;
}

.gades-header .language-toggle select {
  background: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

.gades-header .language-toggle select:hover {
  border-color: var(--primary-gold);
}

.gades-header .language-toggle select:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Social Icons */
.gades-header .social-icons {
  display: flex;
  gap: 1rem;
}

.gades-header .social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  cursor: pointer;
  filter: brightness(0.8);
}

.gades-header .social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Mobile Menu Toggle */
.gades-header .menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.1rem;
}

.gades-header .menu-toggle div {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 4px 0;
  transition: all 0.3s ease;
}

.gades-header .menu-toggle.active div:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.gades-header .menu-toggle.active div:nth-child(2) {
  opacity: 0;
}

.gades-header .menu-toggle.active div:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Animation */
@keyframes slideDown {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  /* Reduce header padding on mobile */
  .gades-header {
    padding: 0.5rem 1rem;
    grid-template-columns: auto 1fr auto; /* Logo | Space | Controls */
  }

  /* Smaller logo on mobile */
  .gades-header .logo {
    height: 60px;
  }

  /* Hide desktop navigation */
  .gades-header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    justify-self: stretch; /* Full width overlay */
    grid-column: 1 / -1; /* Span all columns */
  }
  
  /* Remove underline on mobile */
  .gades-header nav a::after {
    display: none;
  }

  /* Show navigation when active */
  .gades-header nav.show {
    display: flex;
  }

  /* Show mobile menu toggle */
  .gades-header .menu-toggle {
    display: flex;
    flex-direction: column; 
    justify-self: center; /* Center the hamburger */
    grid-column: 2; /* Place in middle column */
    order: 0; /* Ensure it appears in the center */
  }

  /* Mobile header right section */
  .gades-header .header-right {
    gap: 0.5rem;
    align-items: center;
    grid-column: 3; /* Keep language toggle on the right */
  }

  /* Mobile language toggle */
  .gades-header .language-toggle {
    margin-right: 0.5rem;
  }

  /* Hide social icons on mobile */
  .gades-header .social-icons {
    display: none;
  }

  /* Adjust body padding for smaller header */
  body.has-gades-header {
    padding-top: 80px;
  }
}

/* Larger mobile screens - maintain 3-column structure */
@media (max-width: 992px) and (min-width: 769px) {
  .gades-header nav {
    gap: 1.5rem;
  }
}

/* Desktop - ensure menu toggle is hidden */
@media (min-width: 769px) {
  .gades-header .menu-toggle {
    display: none !important;
  }
}

/* Accessibility improvements */
.gades-header nav a:focus,
.gades-header .social-icons img:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gades-header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--primary-gold);
  }
}
/* ===============================================
   WECHAT MODAL SIZE FIX - Replace the modal sizing in header23.css
   =============================================== */

/* Modal Base Styles - COMPACT VERSION */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  z-index: 9999;
  backdrop-filter: blur(10px);
  padding: 2rem; /* More padding to prevent edge issues */
  box-sizing: border-box;
}

/* WeChat Modal - MUCH SMALLER */
.wechat-modal {
  background: linear-gradient(135deg, #1aad19, #0d8f0f);
  border-radius: 12px;
  padding: 1rem; /* Much smaller padding */
  max-width: 280px; /* MUCH smaller - was 350px */
  width: 280px; /* Fixed width for consistency */
  max-height: 70vh; /* Reduced max height */
  overflow-y: auto;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border: none;
  margin: auto; /* Ensure centering */
}

/* Modal Header - COMPACT */
.wechat-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem; /* Reduced spacing */
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wechat-modal .modal-header h3 {
  color: white;
  font-size: 1rem; /* Much smaller title */
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.wechat-modal .modal-close {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem; /* Smaller close button */
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
}

.wechat-modal .modal-close:hover {
  color: white;
}

/* WeChat QR Section - MUCH SMALLER */
.wechat-qr-section {
  text-align: center;
  margin-bottom: 0.75rem; /* Reduced spacing */
}

.wechat-qr {
  width: 100px; /* MUCH smaller - was 150px */
  height: 100px;
  background: white;
  border-radius: 8px;
  padding: 6px; /* Smaller padding */
  margin: 0 auto 0.5rem auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wechat-qr-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem; /* Smaller text */
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

/* WeChat Divider - MINIMAL */
.wechat-divider {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin: 0.75rem 0; /* Reduced spacing */
  position: relative;
  font-family: 'Outfit', sans-serif;
}

.wechat-divider::before,
.wechat-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.wechat-divider::before {
  left: 0;
}

.wechat-divider::after {
  right: 0;
}

/* WeChat ID Section - COMPACT */
.wechat-id-section {
  text-align: center;
}

.wechat-id-section p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.3rem 0;
  font-size: 0.8rem; /* Smaller text */
  font-family: 'Outfit', sans-serif;
}

.wechat-id-container {
  display: flex;
  flex-direction: column; /* Stack vertically for smaller size */
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px; /* Smaller padding */
  border-radius: 6px;
  margin: 0.5rem 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wechat-id {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem; /* Smaller font */
  font-weight: 600;
  color: white;
  letter-spacing: 0.3px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 6px; /* Smaller padding */
  border-radius: 4px;
  word-break: break-all; /* Handle long IDs */
}

.copy-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 10px; /* Smaller padding */
  border-radius: 4px;
  font-size: 0.75rem; /* Smaller font */
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.copy-button.copied {
  background: rgba(255, 255, 255, 0.9);
  color: #1aad19;
  border-color: rgba(255, 255, 255, 0.9);
}

.wechat-help {
  font-size: 0.7rem; /* Much smaller help text */
  color: rgba(255, 255, 255, 0.7);
  margin: 0.3rem 0 0 0;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

/* Mobile Adjustments - EVEN SMALLER */
@media (max-width: 480px) {
  .wechat-modal {
    max-width: 260px; /* Even smaller on mobile */
    width: 260px;
    padding: 0.875rem;
  }
  
  .wechat-qr {
    width: 80px; /* Tiny but still scannable */
    height: 80px;
    padding: 4px;
  }
  
  .wechat-modal .modal-header h3 {
    font-size: 0.9rem;
  }
  
  .modal-close {
    font-size: 1.3rem;
  }
}