:root {
  --primary-blue: #013d7c;
  --primary-dark: #003d7a;
  --primary-light: #0066cc;
  --white: #ffffff;
  --cream: #f5f1eb;
  --light-gray: #f0ebe3;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft PhagsPa", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-gray) 100%);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

.font-display {
  font-family: "Microsoft PhagsPa", "Segoe UI", Georgia, serif;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-dark) 50%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
}

.progress-bar {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue) 0%,
    var(--primary-light) 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: width 0.3s ease;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: all 0.3s duration-300;
}

.logo-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
}

nav a {
  color: var(--gray-700);
  transition: color 0.3s;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

nav a:hover {
  color: var(--primary-blue);
}

nav a .underline-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s;
}

nav a:hover .underline-animation {
  width: 100%;
}

.btn-primary {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(
    to right,
    var(--primary-blue),
    var(--primary-dark)
  );
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 80, 158, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(
    to right,
    var(--primary-dark),
    var(--primary-blue)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 80, 158, 0.4);
}

.btn-secondary {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 40;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hero-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%2300509E" fill-opacity="0.05"%3E%3Ccircle cx="30" cy="30" r="4"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.4;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 80, 158, 0.1);
  color: var(--primary-blue);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 80, 158, 0.1);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(0, 80, 158, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
  outline: none;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
  border-color: var(--success);
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}

.error-message.show {
  display: block;
}

.success-message {
  display: none;
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}

.success-message.show {
  display: block;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 80, 158, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--gray-300);
  background: white;
  color: var(--gray-600);
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  border-color: var(--primary-blue);
  color: white;
}

/* ============================================
   GALLERY FILTER - HORIZONTAL SCROLL FIX
   ============================================ */

.filter-section {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scroll-behavior: smooth;
}

.filter-section::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Ensure filter buttons don't shrink on mobile */
.filter-btn {
  min-width: max-content;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .gallery-item.wide {
    grid-column: span 1;
  }
}

/* Optional: Add scroll indicator on mobile */
@media (max-width: 768px) {
  .filter-section::after {
    content: "→";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.5rem;
    pointer-events: none;
    opacity: 0.5;
    animation: slideHint 2s ease-in-out infinite;
  }
}

@keyframes slideHint {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(5px);
  }
}

/* ============================================
   GALLERY FILTER - CENTER ON LARGE SCREENS
   ============================================ */

/* Center filter buttons on desktop */
@media (min-width: 769px) {
  .filter-section .flex {
    justify-content: center !important;
  }
}

/* Keep left-aligned on mobile for horizontal scroll */
@media (max-width: 768px) {
  .filter-section .flex {
    justify-content: flex-start;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 80, 158, 0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}

.product-image {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.job-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.benefit-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 80, 158, 0.1);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary-blue);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 80, 158, 0.2);
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--primary-blue),
    var(--primary-light)
  );
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
}

.testimonial-card {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 80, 158, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-blue);
  font-family: "Microsoft PhagsPa", "Segoe UI", Georgia, serif;
  line-height: 1;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: none;
}

.sticky-cta.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .sticky-cta {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s;
  background: none;
  border: none;
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.active {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-icon.active {
  transform: rotate(180deg);
}

.step-card {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 2px solid rgba(0, 80, 158, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 80, 158, 0.4);
}

.skill-card {
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--primary-blue),
    var(--primary-light)
  );
}

.timeline-item:last-child::before {
  display: none;
}

.accordion-button {
  cursor: pointer;
  transition: all 0.3s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 500px;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.play-button:hover {
  transform: scale(1.1);
  background: white;
}

/* ============================================
   FOOTER STYLES - FIXED
   ============================================ */
footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0;
}

footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #60a5fa;
}

/* Social icons - COMPLETELY FIXED */
footer .social-icon {
  width: 44px;
  height: 44px;
  background: rgba(55, 65, 81, 0.6);
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: inherit; /* Remove any color inheritance */
}

/* Force SVG to use currentColor initially */
footer .social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor; /* This will use the parent's color */
  transition: all 0.3s ease;
}

/* On hover, change both background AND color */
footer .social-icon:hover {
  background: var(--primary-blue) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 61, 124, 0.5);
}

footer .social-icon:hover svg {
  fill: white !important;
  transform: scale(1.1);
}

.store-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.store-card.active {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.2);
}

.search-input {
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
}

.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* ============================================
   STORE LOCATOR STYLES - FIXED
   ============================================ */

/* Store Card Hover (non-critical) */
.store-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}

/* Map Popup */
.leaflet-popup-content-wrapper {
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 12px 16px;
  font-family: inherit;
}

/* Map Error State */
.map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #fef2f2;
  border-radius: 1rem;
  padding: 2rem;
}
