﻿/* Mobile-specific styles */

/* Mobile Header Styles */
/* Mobile header is hidden by default and only shown on mobile */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ensure mobile header is hidden on desktop */
@media (min-width: 768px) {
  .mobile-header {
    display: none !important;
  }
  
  /* Show main header on desktop */
  .main-header {
    display: block !important;
  }
}

.mobile-header-inner {
  display: flex;
  justify-content: space-between;
  color: #000;
  align-items: center;
  padding: 0 15px;
}

.mobile-logo {
  display: flex;
  align-items: center;
}

.mobile-logo-img {
  height: 35px;
  width: auto;
  transition: transform 0.3s ease;
}

.mobile-logo-img:hover {
  transform: scale(1.05);
}

/* Modern Menu Toggle Button */
.mobile-menu-toggle {
  --toggle-size: 40px;
  --bar-height: 2px;
  --bar-spacing: 6px;
  --animation-speed: 0.3s;
  
  width: var(--toggle-size);
  height: var(--toggle-size);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform var(--animation-speed) ease;
}

/* Menu icon bars - dark by default for all pages except home */
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: var(--bar-height);
  background-color: #333; /* Dark color for all pages */
  border-radius: 2px;
  position: absolute;
  transition: all var(--animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.mobile-menu-toggle span:nth-child(1) {
  transform: translateY(calc(-1 * var(--bar-spacing)));
}

/* Middle bar */
.mobile-menu-toggle span:nth-child(2) {
  opacity: 1;
}

/* Bottom bar */
.mobile-menu-toggle span:nth-child(3) {
  transform: translateY(var(--bar-spacing));
}

/* Active state animation */
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  background-color: #fff;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
  background-color: #fff;
}

/* Hover effect */
.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle:hover span {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.7));
  -webkit-filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.7));
}

/* Home page specific styles - light menu toggle */
.home-page .mobile-menu-toggle span {
  background-color: #fff; /* White color for home page */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Hover effect for home page */
.home-page .mobile-menu-toggle:hover span {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Active state colors */
.home-page .mobile-menu-toggle[aria-expanded="true"] span {
  background-color: #fff; /* Keep white when expanded on home page */
}

/* Dark menu toggle for all other pages */
:not(.home-page) .mobile-menu-toggle[aria-expanded="true"] span {
  background-color: #333; /* Dark color when expanded on other pages */
}

/* Ensure proper active state visibility */
.mobile-menu-toggle[aria-expanded="true"] span {
  box-shadow: none; /* Remove shadow when expanded for cleaner look */
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: absolute;
  top: 65px;
  left: 10px;
  right: 10px;
  border-radius: 8px;
  opacity: 0;
  transform-origin: top;
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active {
  max-height: 90vh;
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 16px 25px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #4a6cf7;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 30px;
}

.mobile-nav-links a:hover::before {
  transform: scaleY(1);
}

.mobile-dropdown .mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 8px 8px;
  margin: 0 10px 10px;
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 1000px;
}

.mobile-dropdown-toggle {
  position: relative;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
  margin-left: 5px;
}

.mobile-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Hide desktop header on mobile */

/* ALLSAFE ARENA Button in Mobile Menu */
.mobile-arena-button {
  padding: 15px 25px;
  margin: 10px 15px;
  text-align: center;
  list-style: none;
}

.mobile-arena-button .btn,
.mobile-arena-button .btn-primary {
  display: block !important;
  width: 100%;
  background: linear-gradient(135deg, #4a6cf7 0%, #2541b2 100%) !important;
  color: white !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(37, 65, 178, 0.2) !important;
  border: none !important;
  text-align: center !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.mobile-arena-button .btn:hover,
.mobile-arena-button .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 65, 178, 0.3) !important;
  background: linear-gradient(135deg, #2541b2 0%, #4a6cf7 100%) !important;
  color: white !important;
  color: white !important;
}

@media (max-width: 767px) {
  /* Only show mobile header on mobile devices */
  .mobile-header {
    display: block;
  }
  
  /* No need for extra padding as we're using position: fixed for the header */
  body {
    padding-top: 0;
  }
}

/* Show mobile header only on mobile */

/* ALLSAFE ARENA Button in Mobile Menu */
.mobile-arena-button {
  padding: 15px 25px;
  margin: 10px 15px;
  text-align: center;
  list-style: none;
}

.mobile-arena-button .btn,
.mobile-arena-button .btn-primary {
  display: block !important;
  width: 100%;
  background: linear-gradient(135deg, #4a6cf7 0%, #2541b2 100%) !important;
  color: white !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(37, 65, 178, 0.2) !important;
  border: none !important;
  text-align: center !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.mobile-arena-button .btn:hover,
.mobile-arena-button .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 65, 178, 0.3) !important;
  background: linear-gradient(135deg, #2541b2 0%, #4a6cf7 100%) !important;
  color: white !important;
  color: white !important;
}

@media (min-width: 768px) {
  .mobile-dropdown-menu a {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    opacity: 0.9;
  }

  .mobile-dropdown-menu a:hover {
    opacity: 1;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .mobile-header {
    display: none !important;
  }
  
  .main-header {
    display: block !important;
  }
}

/* Base mobile styles */

/* ALLSAFE ARENA Button in Mobile Menu */
.mobile-arena-button {
  padding: 15px 25px;
  margin: 10px 15px;
  text-align: center;
  list-style: none;
}

.mobile-arena-button .btn,
.mobile-arena-button .btn-primary {
  display: block !important;
  width: 100%;
  background: linear-gradient(135deg, #4a6cf7 0%, #2541b2 100%) !important;
  color: white !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(37, 65, 178, 0.2) !important;
  border: none !important;
  text-align: center !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.mobile-arena-button .btn:hover,
.mobile-arena-button .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 65, 178, 0.3) !important;
  background: linear-gradient(135deg, #2541b2 0%, #4a6cf7 100%) !important;
  color: white !important;
  color: white !important;
}

@media (max-width: 767px) {
  /* Base font size reduction */
  html {
    font-size: 14px;
  }
  
  body {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-top: 0;
    margin: 0;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  p, li, a, span, div {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  /* About Page Specific Styles */
  .about-page .container {
    width: 95%;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .about-hero {
    padding: 80px 0 40px;
    min-height: auto;
  }
  
  .about-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .about-content {
    padding: 40px 0;
  }
  
  .about-text {
    padding: 20px 15px;
  }
  
  .about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .section-header {
    padding: 0 10px;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .timeline-section,
  .team-section,
  .values-section,
  .testimonials-section,
  .cta-section,
  .about-story {
    padding: 40px 0;
  }
  
  /* Our Story Section Mobile Styles - Compact */
  .about-story {
    overflow: hidden;
    padding: 20px 0 !important;
  }
  
  .about-story .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .about-story-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .story-content {
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
  }
  
  .story-content h2 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }
  
  .story-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  
  .story-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  
  .highlight {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .highlight-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    color: var(--primary);
  }
  
  .highlight h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
  }
  
  .highlight p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
  }
  
  .story-image {
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    margin-top: 0.5rem;
  }
  
  .stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: space-between;
  }
  
  .stat-item {
    flex: 1 1 90px;
    text-align: center;
    padding: 0.6rem 0.5rem;
    background: var(--bg-light);
    border-radius: 6px;
    min-width: 0;
  }
  
  .stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.1rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
  }
  
  .image-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
  }
  
  .image-container img {
    width: 100%;
    height: auto;
    display: block;
  }
  /* Hide desktop header on mobile */
  .main-header {
    display: none;
  }

  /* Mobile Header Styles */
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: background-color 0.3s ease;
  }
  
  .mobile-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    background: transparent;
  }

  .mobile-logo-img {
    height: 40px;
    width: auto;
  }

  .mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 40px;
    height: 24px;
  }
  
  /* Light toggle for home page */
  .home-page .mobile-menu-toggle span {
    background-color: #ffffff;
  }
  
  /* Dark toggle for other pages */
  .mobile-menu-toggle span {
    background-color: #333333;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8f9fa;
  }

  .mobile-nav.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
  }

  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-links li {
    border-bottom: 1px solid #e9ecef;
  }

  .mobile-nav-links a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a.active {
    background: #e9ecef;
    color: #0066cc;
  }

  .mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: #f1f3f5;
    padding-left: 20px;
    transition: max-height 0.3s ease-out;
  }

  .mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
  }

  .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
  }

  .mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
  }
  .container {
    width: 90%;
  }

  /* Header & Navigation */
  .nav-inner {
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }

  .brand-logo {
    height: 50px;
  }

  .nav {
    width: 100%;
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 1rem 0;
  }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 1rem;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
  }

  .nav-toggle.is-active span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero Section */
  .hero-slider {
    min-height: 100vh;
    height: auto;
  }

  .hero-text {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-text h1 {
    font-size: 2.25rem;
    margin: 0.75rem 0;
  }

  .hero-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Services Section */
  .services-section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .service-card.full-width {
    grid-template-columns: 1fr;
  }

  .service-content {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand,
  .footer-links {
    text-align: center;
  }

  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-links li {
    margin: 0;
  }
}

/* Small mobile devices */

/* ALLSAFE ARENA Button in Mobile Menu */
.mobile-arena-button {
  padding: 15px 25px;
  margin: 10px 15px;
  text-align: center;
  list-style: none;
}

.mobile-arena-button .btn,
.mobile-arena-button .btn-primary {
  display: block !important;
  width: 100%;
  background: linear-gradient(135deg, #4a6cf7 0%, #2541b2 100%) !important;
  color: white !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(37, 65, 178, 0.2) !important;
  border: none !important;
  text-align: center !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.mobile-arena-button .btn:hover,
.mobile-arena-button .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 65, 178, 0.3) !important;
  background: linear-gradient(135deg, #2541b2 0%, #4a6cf7 100%) !important;
  color: white !important;
  color: white !important;
}

@media (max-width: 374px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
