/*
Theme Name: Elementor EAA Accessible Theme Child
Theme URI: https://example.com/elementor-eaa-theme
Description: Child theme for Elementor EAA Accessible Theme - Add your customizations here
Author: QUELINKA
Author URI: https://example.com
Template: elementor-eaa-theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elementor-eaa-theme-child
*/

/* ==========================================================================
   Custom Styles - Add your customizations below
   All parent theme styles are inherited automatically
   ========================================================================== */

/* ==========================================================================
   Typography & Colors - Custom Variables
   ========================================================================== */

:root {
  /* Fonts */
  --font-primary: 'Barlow', sans-serif;
  --font-secondary: 'Barlow Condensed', sans-serif;
  
  /* Colors */
  --color-primary: #3877c7;
  --color-secondary: #28548C;
  --color-texto: #333333;
}

body {
  font-family: var(--font-primary);
  color: var(--color-texto);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
}

/* ==========================================================================
   Elementor Full Width Pages - Remove theme padding
   ========================================================================== */

/* Remove padding from main content area on Elementor pages */
body.elementor-page .site-main,
body.page-template-template-elementor-full-width .site-main {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove container padding too */
body.elementor-page .elementor-full-width,
body.page-template-template-elementor-full-width .elementor-full-width {
  padding: 0 !important;
  margin: 0 !important;
}

/* ==========================================================================
   Sticky Header
   ========================================================================== */

/* Make header sticky/fixed with proper spacing */
.site-header {
  position: fixed;
  top: 1.5rem; /* 24px from top - reduced for better appearance */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 999; /* Below modal (9999) but above content */
  background-color: transparent; /* Transparent header */
  border: none !important; /* Remove any borders */
  border-bottom: none !important;
  box-shadow: none !important; /* Shadow is on .header-box instead */
}

/* Header container */
.site-header .container {
  width: 100%;
  max-width: 82.5rem; /* 1320px in rem for accessibility */
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
}

/* Add space to main content so header doesn't overlap */
.site-main {
  margin-top: 0; /* Hero starts from top */
}

/* Ensure header stays above Elementor content */
body.elementor-page .site-header,
body.page-template-template-elementor-full-width .site-header {
  position: fixed;
  top: 1.5rem; /* Match the main header top value */
}

/* Header box - white background with rounded corners (like original) */
.header-box {
  padding: 1rem 1.875rem; /* 16px 30px - exact as original */
  border-radius: 20rem; /* 320px - pill shape */
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, 
              rgba(0, 0, 0, 0.3) 0px 30px 60px -30px; /* Exact shadow from original */
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-primary);
}

/* Logo styling */
.site-branding {
  flex-shrink: 0;
}

.site-branding img,
.custom-logo {
  max-height: 2.5rem; /* 40px - reduced height */
  width: auto;
  display: block;
}

.logo-placeholder {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary, #0052a3);
  text-decoration: none;
}

.logo-placeholder:hover,
.logo-placeholder:focus {
  color: var(--color-primary-dark, #003d7a);
  outline: 2px solid var(--color-focus, #0052a3);
  outline-offset: 2px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switcher a {
  font-family: var(--font-primary);
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: var(--color-texto, #333);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: none; /* Keep original case */
}

.lang-switcher a:hover,
.lang-switcher a:focus {
  background-color: var(--color-primary, #0052a3);
  color: #ffffff;
}

.lang-switcher a:focus {
  outline: 2px solid var(--color-focus, #0052a3);
  outline-offset: 2px;
}

.lang-switcher a.active {
  background-color: var(--color-primary, #0052a3);
  color: #ffffff;
  font-weight: 700;
}

/* Phone Number */
.header-phone {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-texto, #333); /* Black text like language switcher */
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-phone:hover,
.header-phone:focus {
  background-color: var(--color-primary, #0052a3);
  color: #ffffff;
}

.header-phone:focus {
  outline: 2px solid var(--color-focus, #0052a3);
  outline-offset: 2px;
}

/* Menu toggle button updated styling */
.menu-toggle,
#menu-toggle-btn {
  font-family: var(--font-primary);
  background: transparent !important;
  border: none !important; /* No border */
  color: var(--color-texto, #333);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: rgba(56, 119, 199, 0.1); /* Light blue background on hover */
  color: var(--color-primary, #0052a3);
}

.menu-toggle:focus {
  outline: 3px solid var(--color-focus, #0052a3);
  outline-offset: 2px;
}

.menu-toggle .menu-icon {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  display: inline-block;
  object-fit: contain;
}

/* Responsive header */
@media (max-width: 768px) {
  .header-box {
    gap: 1rem;
  }
  
  .header-right {
    gap: 0.75rem;
  }
  
  .header-phone {
    display: none; /* Hide phone on mobile */
  }
  
  .menu-toggle-text {
    display: none; /* Only icon on mobile */
  }
}

@media (max-width: 480px) {
  .lang-switcher {
    display: none; /* Hide language switcher on very small screens */
  }
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .lang-switcher a,
  .header-phone,
  .menu-toggle {
    transition: none;
  }
}

/* ==========================================================================
   Hero Video Controls
   ========================================================================== */

/* Video control button for accessibility (WCAG 2.2.2) */
#video-toggle-btn {
  position: absolute;
  bottom: 3.125rem; /* 50px - using rem for accessibility */
  right: 3.125rem; /* 50px */
  width: 3.125rem; /* 50px */
  height: 3.125rem; /* 50px */
  border-radius: 6.25rem; /* 100px - circular */
  background-color: #000000;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 0.75rem; /* 12px icon */
  border: none;
  font-size: 0; /* Hide text visually but keep for screen readers */
  text-indent: -9999px; /* Additional text hiding */
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

#video-toggle-btn:hover,
#video-toggle-btn:focus {
  transform: scale(1.1);
  background-color: rgba(0, 0, 0, 0.9);
}

#video-toggle-btn:focus {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

#video-toggle-btn:active {
  transform: scale(0.95);
}

/* Hide video controls if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  #video-toggle-btn {
    display: none;
  }
}

/* Background images for play/pause icons are injected via PHP for correct absolute URLs */

/* ==========================================================================
   Modal Menu Navigation
   ========================================================================== */

/* Modal overlay and container */
.menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.menu-modal[aria-hidden="false"] {
  display: block;
  opacity: 1;
}

/* Modal overlay */
.menu-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* Modal content */
.menu-modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: var(--color-primary, #0052a3);
  overflow-y: auto;
  padding: 2rem 0;
}

/* Close button */
.menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.menu-close:hover,
.menu-close:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.menu-close:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.menu-close svg {
  width: 20px;
  height: 20px;
}

/* Modal navigation */
#modal-navigation {
  margin-top: 6rem;
}

.modal-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.modal-nav-menu li {
  margin: 0;
  padding: 0;
}

.modal-nav-menu a {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.modal-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.modal-nav-menu a:hover::after,
.modal-nav-menu a:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.modal-nav-menu a:focus {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.modal-nav-menu .current-menu-item a {
  color: #FFD700;
}

/* Prevent body scroll when modal is open */
body.menu-modal-open {
  overflow: hidden;
}

/* Menu toggle button styling */
.menu-toggle {
  background: transparent;
  border: 2px solid var(--color-primary, #0052a3);
  color: var(--color-primary, #0052a3);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: var(--color-primary, #0052a3);
  color: #ffffff;
}

.menu-toggle:focus {
  outline: 3px solid var(--color-focus, #0052a3);
  outline-offset: 2px;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-close {
    top: 1rem;
    right: 1rem;
  }

  #modal-navigation {
    margin-top: 4rem;
  }
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu-modal,
  .menu-close,
  .modal-nav-menu a,
  .modal-nav-menu a::after,
  .menu-toggle,
  .menu-icon span {
    transition: none;
  }
}

/* ==========================================================================
   Custom Hero Section Styles
   ========================================================================== */

/* Hero inner container - width and spacing */
#hero > .e-con {
  width: 100%;
  max-width: 80rem; /* 1280px in rem for accessibility */
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 5rem;
  margin-left: auto;
}
