/**
 * Component Styles - Header and Footer
 * Loaded in <head> to prevent CLS (Cumulative Layout Shift)
 */

/* ============================================
   SITE HEADER STYLES
   ============================================ */

.site-header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  height: 60px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.color-bar-pink {
  width: 60%;
  background: var(--color-primary);
  height: 50px;
  align-self: flex-start;
}

.color-bar-teal {
  width: 40%;
  background: var(--color-secondary);
  height: 60px;
  align-self: flex-end;
}

.navbar-vector {
  position: absolute;
  left: 64%;
  top: 32%;
  transform: translate(-50%, -50%);
  height: 150px;
  width: auto;
  z-index: 10;
  pointer-events: none;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.logo {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  margin-top: -50px;
}

.logo a {
  text-decoration: none;
  display: block;
}

.logo-image {
  height: 180px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex: 1;
}

.language-switcher {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  opacity: 1;
}

.lang-btn:not(.active) {
  opacity: 0.6;
}

.flag-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #666666;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-primary);
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: center;
}

.main-nav .nav-list li {
  position: relative;
  padding: 0 1rem;
}

.main-nav .nav-list li:not(.mobile-only)::after {
  content: '|';
  position: absolute;
  right: 0;
  color: var(--color-primary);
  font-weight: 300;
}

.main-nav .nav-list li:not(.mobile-only):nth-child(7)::after {
  display: none;
}

.main-nav a {
  text-decoration: none;
  color: #666666;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.social-links a {
  color: var(--color-primary);
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  opacity: 0.7;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: 1;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #666666;
  transition: all 0.3s ease;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

.mobile-menu-extras {
  border-top: 1px solid #E5E9EA;
  padding-top: 1rem !important;
  margin-top: 0.5rem;
}

.mobile-language-switcher {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.mobile-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.mobile-social-links a {
  color: var(--color-primary);
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.mobile-social-links a:hover {
  opacity: 0.7;
}

/* Header Responsive Breakpoints */

@media (max-width: 1280px) {
  .header-container {
    padding: 1rem 2rem;
    gap: 2rem;
  }

  .logo-image {
    height: 140px;
  }

  .logo {
    margin-top: -45px;
  }

  .main-nav .nav-list li {
    padding: 0 0.8rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }
}

@media (max-width: 1100px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .top-bar {
    height: 50px;
  }

  .color-bar-pink {
    height: 43px;
  }

  .color-bar-teal {
    height: 50px;
  }

  .navbar-vector {
    height: 120px;
    top: 28%;
  }

  .header-container {
    padding: 0.75rem 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .logo {
    order: 0;
    margin-top: -35px;
  }

  .logo-image {
    height: 100px;
  }

  .mobile-menu-toggle {
    order: 1;
    margin-left: auto;
  }

  .nav-wrapper {
    order: 2;
    flex: 0 0 100%;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .language-switcher {
    order: 1;
    gap: 0.75rem;
  }

  .main-nav {
    order: 2;
    width: 100%;
    border-bottom: none;
    padding-bottom: 0;
  }

  .social-links {
    order: 3;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .main-nav .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
    gap: 0;
    z-index: 100;
  }

  .main-nav .nav-list li {
    width: 100%;
    border-bottom: 1px solid #E5E9EA;
    padding: 0;
  }

  .main-nav .nav-list li:last-child {
    border-bottom: none;
  }

  .main-nav .nav-list li::after {
    display: none;
  }

  .main-nav .nav-list a {
    display: block;
    padding: 1rem 0;
    font-size: 0.9rem;
  }

  .main-nav .nav-list.active {
    display: flex;
  }

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

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

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

@media (max-width: 640px) {
  .top-bar {
    height: 40px;
  }

  .color-bar-pink {
    height: 35px;
  }

  .color-bar-teal {
    height: 40px;
  }

  .navbar-vector {
    height: 100px;
    top: 25%;
  }

  .logo-image {
    height: 80px;
  }

  .logo {
    margin-top: -28px;
  }

  .header-container {
    padding: 0.5rem 1rem;
    gap: 1rem;
  }

  .social-links {
    gap: 0.6rem;
  }

  .social-links svg {
    width: 18px;
    height: 18px;
  }

  .flag-icon {
    width: 26px;
    height: 26px;
  }

  .lang-btn {
    gap: 0.2rem;
  }

  .lang-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .top-bar {
    height: 35px;
  }

  .color-bar-pink {
    height: 30px;
  }

  .color-bar-teal {
    height: 35px;
  }

  .navbar-vector {
    height: 80px;
    left: 68%;
  }

  .logo-image {
    height: 70px;
  }

  .logo {
    margin-top: -24px;
  }

  .header-container {
    padding: 0.5rem 0.75rem;
  }

  .language-switcher {
    gap: 0.5rem;
  }

  .flag-icon {
    width: 24px;
    height: 24px;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-links svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   SITE FOOTER STYLES
   ============================================ */

.site-footer {
  position: relative;
  color: #ffffff;
}

.site-footer .top-bar {
  height: 60px;
  display: flex;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.site-footer .color-bar-pink {
  width: 60%;
  background: var(--color-primary);
  height: 50px;
  align-self: flex-start;
}

.site-footer .color-bar-teal {
  width: 40%;
  background: var(--color-secondary);
  height: 60px;
  align-self: flex-end;
}

.site-footer .navbar-vector {
  position: absolute;
  left: 64%;
  top: 32%;
  transform: translate(-50%, -50%);
  height: 150px;
  width: auto;
  z-index: 10;
  pointer-events: none;
}

.footer-main {
  background: var(--color-primary);
  padding: 3rem 2rem;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-logo {
  text-align: left;
  margin-bottom: 0;
  position: relative;
}

.footer-logo-img {
  height: 120px;
  width: auto;
}

.footer-navigation {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-secondary-light);
}

.nav-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.contact-item {
  position: relative;
}

.contact-item::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.contact-item h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--color-secondary-light);
}

.contact-item a svg {
  flex-shrink: 0;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-light);
  color: var(--color-primary) !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  cursor: pointer;
}

.btn-map svg {
  flex-shrink: 0;
  stroke: var(--color-primary) !important;
}

.btn-map:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  color: var(--color-white) !important;
}

.btn-map:hover svg {
  stroke: var(--color-white) !important;
}

/* Map Modal Styles */

.map-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.map-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.map-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.map-modal-close {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  background-color: transparent;
  color: var(--color-white);
  border: none;
  font-size: var(--text-6xl);
  cursor: pointer;
  padding: var(--space-2);
  transition: all var(--transition-base);
  z-index: 10001;
  line-height: 1;
  font-weight: var(--font-normal);
}

.map-modal-close:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

.map-container {
  width: 100%;
  height: 600px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  font-weight: 600;
}

.footer-social a:hover {
  color: var(--color-secondary-light);
}

.footer-social svg {
  flex-shrink: 0;
}

.social-instagram svg {
  width: 18px !important;
  height: 18px !important;
}

.social-linkedin svg {
  width: 18px !important;
  height: 18px !important;
}

.footer-disclaimer {
  background: var(--color-primary-light);
  padding: 2rem;
  position: relative;
}

.footer-disclaimer .footer-container {
  position: relative;
}

.footer-disclaimer h4 {
  color: #1d1d1b;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.footer-disclaimer p {
  color: #1d1d1b;
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Footer Responsive Breakpoints */

@media (max-width: 1024px) {
  .footer-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 2rem 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-separator {
    display: none;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-item::before {
    left: 0;
    top: -1rem;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 1px;
  }

  .footer-disclaimer {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 640px) {
  .footer-logo-img {
    height: 80px;
  }

  .footer-main {
    padding: 1.5rem 1rem;
  }

  .site-footer .top-bar {
    height: 40px;
  }

  .site-footer .color-bar-pink {
    height: 35px;
  }

  .site-footer .color-bar-teal {
    height: 40px;
  }

  .site-footer .navbar-vector {
    height: 100px;
  }

  .map-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .map-container {
    height: 400px;
  }

  .map-modal-close {
    top: var(--space-2);
    right: var(--space-2);
    font-size: var(--text-5xl);
  }
}

/* ============================================
   LARGE SCREEN OPTIMIZATIONS (min-width)
   ============================================ */

/* Full HD - 1920px and above */
@media (min-width: 1920px) {
  .footer-container {
    max-width: 1600px;
  }

  .map-modal-content {
    max-width: 1200px;
  }

  .map-container {
    height: 700px;
  }
}

/* 2K - 2560px and above */
@media (min-width: 2560px) {
  .footer-container {
    max-width: 2000px;
  }

  .map-modal-content {
    max-width: 1400px;
  }

  .map-container {
    height: 800px;
  }
}

/* 4K - 3840px and above */
@media (min-width: 3840px) {
  .footer-container {
    max-width: 2800px;
  }

  .map-modal-content {
    max-width: 1800px;
  }

  .map-container {
    height: 1000px;
  }
}
