/* Global theme for Landing - Modern Light Theme */
:root {
  /* Primary Colors (Coral/Red) */
  --primary: #FF6B6B;
  --primary-light: #FF8E8E;
  --primary-dark: #E55555;
  --color-primary: #FF6B6B;

  /* Secondary/Accent Colors (Teal) */
  --secondary: #0D7377;
  --secondary-light: #14919B;
  --secondary-dark: #095456;

  /* Accent Colors */
  --accent: #FFD93D;
  --accent-alt: #6BCB77;

  /* Background Colors */
  --bg: #FFFFFF;
  --surface: #FAFBFC;
  --surface-hover: #F3F4F6;
  --surface-alt: #EEF1F4;

  /* Text Colors */
  --text: #1A1B1E;
  --text-muted: #4A5568;
  --muted: #718096;

  /* Border Colors */
  --border: #E2E8F0;
  --border-hover: #CBD5E0;
  --border-light: #F1F5F9;

  /* Status Colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(255, 107, 107, 0.15);
  --shadow-glow-secondary: 0 0 20px rgba(255, 107, 107, 0.2);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body,
#root {
  height: 100%;
}

html,
body {
  overflow-x: hidden;
}

html {
  /* Enable smooth scrolling with GPU acceleration */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  /* Fixed background handled by App.tsx */
  background: #FFFFFF;
  min-height: 100vh;
  color: var(--text);
  /* Performance optimization */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
}

/* Global image CLS prevention */
img {
  max-width: 100%;
  height: auto;
}

/* Hide scrollbar for horizontal scroll containers */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Section spacing - responsive */
.section-spacing {
  margin: clamp(32px, 6vw, 80px) 0;
}

.glass {
  /* Light background with subtle border */
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

/* Content container over photography backgrounds */
.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 28px;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

/* Card with gradient background */
.card-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-gradient:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Elevated card with glow */
.card-elevated {
  background: #FFFFFF;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-elevated:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Feature card with icon */
.card-feature {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.card-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Card with colored accent border */
.card-accent {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.card-accent:hover::before {
  width: 6px;
}

.card-accent:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Consistent container for all sections */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== PERFORMANCE-OPTIMIZED CSS ANIMATIONS ===== */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Slide up animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== NEW MODERN ANIMATIONS ===== */

/* Float animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.95);
  }
}

/* Spin animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Wave animation for dividers */
@keyframes wave {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.4);
  }
}

/* ===== UTILITY CLASSES FOR ANIMATIONS ===== */

.animate-fade-in {
  animation: fadeIn 0.5s ease-out both;
}

.animate-slide-up {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-down {
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 3s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

/* Entrance animations - start hidden */
.entrance-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.entrance-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HOVER EFFECTS ===== */

/* Scale on hover */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Lift on hover */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Glow on hover */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* Shine effect on hover */
.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hover-shine:hover::before {
  left: 100%;
}

.animate-delay-300 {
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s ease;
}

.transition-fast {
  transition: all 0.15s ease;
}

/* ===== BLOG CARD ANIMATIONS (GPU-ACCELERATED) ===== */

/* Fade in up animation for blog cards - ONLY ONCE, not on every scroll! */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

/* Disable animation after first run to prevent scroll lag */
.fade-in-up-done {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blog card hover effects - GPU accelerated with pseudo-element */
.blog-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: #D1D1DB !important;
}

.blog-card:hover::after {
  opacity: 1;
}

/* Blog card image zoom effect */
.blog-card-image-wrapper {
  overflow: hidden;
}

.blog-card-image-wrapper img {
  transition: transform 0.4s ease;
  will-change: transform;
}

.blog-card:hover .blog-card-image-wrapper img {
  transform: scale(1.05);
}

/* ===== CTA BUTTONS ===== */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: 0.3px;
}

.cta-button:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* Primary CTA - Coral/Red */
.cta-button-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.cta-button-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

/* Secondary CTA - Teal */
.cta-button-secondary {
  background: var(--secondary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.25);
}

.cta-button-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 115, 119, 0.35);
}

/* Outline CTA */
.cta-button-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Ghost CTA */
.cta-button-ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Button sizes */
.cta-button-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.cta-button-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* Gallery overlay fade in on hover (used by MediaGallery) */
.gallery-overlay {
  transition: opacity 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  /* Mobile specific adjustments if needed */
}

/* Mobile Menu Toggle Button - Hidden by default */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  position: relative;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-toggle:hover {
  color: var(--primary);
}

.mobile-menu-toggle:active {
  transform: scale(0.9);
}

/* Mobile Menu Panel hover effects */
.mobile-menu-panel a:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  transform: translateX(4px);
}

.mobile-menu-panel button:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--primary) !important;
}

/* Hide mobile-only elements on desktop by default */
.mobile-only {
  display: none !important;
}

/* Mobile styles */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* Hide desktop navigation items on mobile - ONLY in header, not mobile menu panel */
  header nav>a:not(.mobile-menu-toggle) {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* Show mobile-only elements */
  .mobile-only {
    display: block !important;
  }

  /* Show mobile menu hamburger button */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Ensure mobile menu panel links are visible */
  [style*="position: fixed"] nav a {
    display: flex !important;
  }

  /* Stack grid columns */
  .grid-auto-fit {
    grid-template-columns: 1fr !important;
  }

  /* Footer grid responsive */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Smaller padding on mobile */
  .panel,
  .card {
    padding: 16px !important;
  }

  /* Better touch targets */
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }

  /* About section grid — stack on mobile/tablet, image first */
  section[style*="surface"] > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
  section[style*="surface"] > div[style*="grid"] > div:last-child {
    order: -1;
  }

  /* Adjust FAB position on mobile */
  [style*="position: fixed"][style*="bottom: 20"] {
    bottom: 16px !important;
    right: 16px !important;
  }
}

/* Tablet styles (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  html {
    font-size: 15px;
  }

  /* Adjust container padding */
  [style*="maxWidth: 1400"] {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  /* Show mobile menu hamburger button on tablet too */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Hide desktop navigation on tablet */
  .desktop-only {
    display: none !important;
  }

  /* Show mobile-only elements on tablet */
  .mobile-only {
    display: block !important;
  }

  /* ===== TABLET GRID LAYOUTS ===== */
  .features-grid,
  .stats-grid,
  .values-grid,
  .testimonials-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .contact-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mission-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ===== TABLET FOOTER ===== */
  footer {
    margin-top: 60px !important;
  }

  footer>div {
    padding: 32px 24px 20px !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1.5fr !important;
    gap: 24px !important;
    margin-bottom: 24px !important;
    align-items: start !important;
  }

  /* Brand/Logo section */
  .footer-brand {
    display: block !important;
  }

  .footer-brand>div:first-child {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  .footer-brand p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* Logo section */
  .footer-grid>div:first-child:has(img)>div:first-child {
    padding: 16px !important;
  }

  .footer-grid>div:first-child img {
    height: 50px !important;
  }

  /* Quick links */
  .footer-links {
    display: block !important;
  }

  .footer-links h4 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .footer-links .quick-links {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .footer-links .quick-links>a>div {
    font-size: 13px !important;
    padding: 0 !important;
    border-right: none !important;
  }

  /* Newsletter */
  .footer-newsletter h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .footer-newsletter p {
    font-size: 12px !important;
    margin-bottom: 12px !important;
  }

  .footer-newsletter input {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .footer-newsletter button {
    padding: 10px 14px !important;
  }

  /* Footer bottom */
  .footer-bottom {
    padding-top: 16px !important;
    font-size: 12px !important;
  }

  .footer-bottom>div a {
    font-size: 18px !important;
  }

  /* ===== TABLET CARDS ===== */
  .features-grid>div,
  .values-grid>div {
    padding: 20px 16px !important;
  }

  .features-grid i,
  .values-grid i {
    font-size: 32px !important;
    margin-bottom: 12px !important;
  }

  .features-grid h4,
  .values-grid h4 {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  .features-grid p,
  .values-grid p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .value-card {
    padding: 16px 12px !important;
  }

  .value-card i {
    font-size: 28px !important;
    margin-bottom: 8px !important;
  }

  .value-card h4 {
    font-size: 13px !important;
  }

  .value-card p {
    font-size: 11px !important;
  }
}

/* Small Tablet / Large Phone (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* ===== GRID LAYOUTS - 2 COLUMNS ===== */
  .features-grid,
  .stats-grid,
  .values-grid,
  .contact-methods-grid,
  .testimonials-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Blog grid - 2 cols */
  .blog-grid,
  .blog-list-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Blog list content overlay - tablet */
  .blog-list-content-overlay {
    padding: 18px !important;
  }

  .blog-list-content-overlay h3 {
    font-size: 1.1rem !important;
  }

  .blog-list-content-overlay p {
    font-size: 0.8rem !important;
  }

  /* Blog category filters - tablet */
  .blog-category-filters {
    gap: 10px !important;
    margin-bottom: 36px !important;
  }

  .blog-category-filters button {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  /* Featured blog cards - tablet */
  .blog-card>div:last-child {
    padding: 20px !important;
  }

  .blog-card h3 {
    font-size: 18px !important;
  }

  .blog-card p {
    font-size: 13px !important;
  }

  /* Mission/Vision - 1 col (cards are large) */
  .mission-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact grid - stack */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* ===== CARDS STYLING ===== */
  .features-grid>div,
  .values-grid>div {
    padding: 16px 12px !important;
  }

  .features-grid i,
  .values-grid i {
    font-size: 28px !important;
    margin-bottom: 8px !important;
  }

  .features-grid h4,
  .values-grid h4 {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }

  .features-grid p,
  .values-grid p {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .value-card {
    padding: 14px 10px !important;
  }

  .value-card i {
    font-size: 26px !important;
    margin-bottom: 6px !important;
  }

  .value-card h4 {
    font-size: 12px !important;
    margin-bottom: 3px !important;
  }

  .value-card p {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  /* ===== FOOTER - COMPACT 2 COLUMN ===== */
  footer {
    margin-top: 48px !important;
  }

  footer>div {
    padding: 24px 20px 16px !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px !important;
    margin-bottom: 20px !important;
  }

  /* Brand section */
  .footer-brand {
    display: block !important;
    grid-column: 1 / -1 !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #E8E8ED !important;
  }

  .footer-brand>div:first-child {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .footer-brand p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* Logo section - full width */
  .footer-grid>div:first-child:has(img) {
    grid-column: 1 / -1 !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #E8E8ED !important;
  }

  .footer-grid>div:first-child:has(img)>div:first-child {
    padding: 12px 16px !important;
  }

  .footer-grid>div:first-child img {
    height: 44px !important;
  }

  /* Quick links */
  .footer-links {
    display: block !important;
  }

  .footer-links h4 {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }

  .footer-links .quick-links {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .footer-links .quick-links>a>div {
    font-size: 12px !important;
    padding: 0 !important;
    border-right: none !important;
  }

  /* Newsletter */
  .footer-newsletter h4 {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .footer-newsletter p {
    font-size: 11px !important;
    margin-bottom: 10px !important;
  }

  .footer-newsletter input {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .footer-newsletter button {
    padding: 8px 12px !important;
  }

  /* Footer bottom */
  .footer-bottom {
    padding-top: 14px !important;
    font-size: 11px !important;
    gap: 10px !important;
  }

  .footer-bottom>div a {
    font-size: 16px !important;
  }
}

/* Small mobile - 2 columns for most grids */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  /* Keep 2 columns on mobile for compact items */
  .stats-grid,
  .testimonials-stats,
  .features-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Smaller cards on mobile - reduce padding */
  .features-grid>div,
  .values-grid>div {
    padding: 12px 10px !important;
  }

  /* Smaller icons on mobile */
  .features-grid i,
  .values-grid i {
    font-size: 24px !important;
    margin-bottom: 6px !important;
  }

  /* Smaller text on mobile cards */
  .features-grid h4,
  .values-grid h4 {
    font-size: 12px !important;
    margin-bottom: 2px !important;
  }

  .features-grid p,
  .values-grid p {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  /* Blog and contact - 1 column (larger items) */
  .blog-grid,
  .blog-list-grid,
  .contact-methods-grid,
  .mission-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ===== BLOG LIST MOBILE OPTIMIZATION ===== */
  .blog-list-grid {
    padding: 0 !important;
  }

  .blog-list-grid>div {
    border-radius: 12px !important;
  }

  /* Blog list content overlay - smaller padding on mobile */
  .blog-list-content-overlay {
    padding: 16px !important;
  }

  .blog-list-content-overlay h3 {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
  }

  .blog-list-content-overlay p {
    font-size: 0.75rem !important;
    margin-bottom: 8px !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  .blog-list-content-overlay .blog-meta {
    font-size: 0.7rem !important;
    gap: 10px !important;
  }

  /* Blog category filters - smaller on mobile */
  .blog-category-filters {
    gap: 8px !important;
    margin-bottom: 32px !important;
  }

  .blog-category-filters button {
    padding: 8px 16px !important;
    font-size: 12px !important;
  }

  /* ===== FEATURED BLOG POSTS MOBILE ===== */
  .blog-grid {
    gap: 16px !important;
  }

  .blog-card>div:last-child {
    padding: 16px !important;
  }

  .blog-card h3 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }

  .blog-card p {
    font-size: 12px !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  /* ===== FOOTER PROFESSIONAL COMPACT ON MOBILE ===== */
  footer {
    margin-top: 32px !important;
  }

  footer>div {
    padding: 16px 16px 12px !important;
  }

  /* Footer grid - single column stacked layout */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
  }

  /* Brand section - vertical layout aligned */
  .footer-brand {
    display: block !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #E8E8ED !important;
  }

  .footer-brand>div:first-child {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }

  .footer-brand p {
    font-size: 12px !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
  }

  /* Hide awards on mobile */
  .footer-brand>div:last-child:not(:first-child):not(p) {
    display: none !important;
  }

  /* Logo section on mobile */
  .footer-grid>div:first-child:has(img) {
    padding: 0 !important;
    border-bottom: 1px solid #E8E8ED !important;
    padding-bottom: 12px !important;
  }

  .footer-grid>div:first-child:has(img)>div:first-child {
    padding: 8px 12px !important;
    border-radius: 8px !important;
  }

  .footer-grid>div:first-child img {
    height: 36px !important;
  }

  /* Hide awards below logo on mobile */
  .footer-grid>div:first-child:has(img)>div:last-child {
    display: none !important;
  }

  /* Quick links - vertical layout with title on top */
  .footer-links {
    display: block !important;
  }

  .footer-links h4 {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .footer-links .quick-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    align-items: center !important;
  }

  .footer-links .quick-links>a {
    padding: 0 !important;
    min-height: auto !important;
    min-width: auto !important;
  }

  .footer-links .quick-links>a>div {
    font-size: 12px !important;
    padding: 2px 10px !important;
    border-right: 1px solid #E8E8ED !important;
  }

  .footer-links .quick-links>a:first-child>div {
    padding-left: 0 !important;
  }

  .footer-links .quick-links>a:last-child>div {
    border-right: none !important;
    padding-right: 0 !important;
  }

  /* Newsletter - compact horizontal */
  .footer-newsletter {
    padding-top: 12px !important;
    border-top: 1px solid #E8E8ED !important;
  }

  .footer-newsletter h4 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }

  .footer-newsletter p {
    font-size: 10px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }

  .footer-newsletter>div:last-child {
    display: flex !important;
    gap: 6px !important;
  }

  .footer-newsletter input {
    flex: 1 !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    min-width: 0 !important;
  }

  .footer-newsletter button {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  /* Footer bottom bar - centered compact */
  .footer-bottom {
    padding-top: 12px !important;
    font-size: 10px !important;
    gap: 8px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-bottom>span {
    width: 100% !important;
    order: 2 !important;
  }

  .footer-bottom>div {
    gap: 16px !important;
    order: 1 !important;
  }

  .footer-bottom>div a {
    font-size: 18px !important;
    min-height: auto !important;
    min-width: auto !important;
  }

  /* Reduce section padding on small screens */
  .card,
  .panel {
    padding: 10px !important;
  }

  /* ===== VALUES GRID - EXACTLY LIKE STATS ===== */
  .values-grid {
    gap: 8px !important;
  }

  .value-card {
    padding: 10px 8px !important;
    border-radius: 8px !important;
  }

  .value-card i {
    font-size: 22px !important;
    margin-bottom: 4px !important;
  }

  .value-card h4 {
    font-size: 11px !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }

  .value-card p {
    font-size: 9px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {

  /* Reduce hero height on landscape mobile */
  section[style*="100vh"] {
    min-height: 400px !important;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Spinner utility class for loaders */
.spinner {
  animation: spin 0.8s linear infinite;
}

/* Spinner variants - use these to avoid inline style conflicts */
.spinner-primary {
  border: 3px solid var(--color-border, #E8E8ED);
  border-left-color: var(--color-primary, #FF6B6B);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-primary-sm {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border, #E8E8ED);
  border-left-color: var(--color-primary, #FF6B6B);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-primary-md {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border, #E8E8ED);
  border-left-color: var(--color-primary, #FF6B6B);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-primary-lg {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-border, #E8E8ED);
  border-left-color: var(--color-primary, #FF6B6B);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Hover scale animations - replacing Framer Motion whileHover */
.hover-scale {
  transition: transform 0.2s ease;
  will-change: transform;
}

.hover-scale:hover {
  transform: scale(1.1);
}

.hover-scale:active {
  transform: scale(0.9);
}

.hover-scale-rotate {
  transition: all 0.2s ease;
  will-change: transform;
}

.hover-scale-rotate:hover {
  transform: scale(1.1) rotate(90deg);
}

.hover-scale-rotate:active {
  transform: scale(0.9) rotate(90deg);
}

/* Navigation button hover effects */
.hover-nav-left {
  transition: all 0.2s ease;
  will-change: transform;
}

.hover-nav-left:hover {
  transform: scale(1.1) translateX(-4px);
}

.hover-nav-left:active {
  transform: scale(0.9) translateX(-4px);
}

.hover-nav-right {
  transition: all 0.2s ease;
  will-change: transform;
}

.hover-nav-right:hover {
  transform: scale(1.1) translateX(4px);
}

.hover-nav-right:active {
  transform: scale(0.9) translateX(4px);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}


/* ============================================
   TURNSTILE CAPTCHA WIDGET STYLES
   ============================================ */

.turnstile-widget {
  margin: 16px 0;
}

.turnstile-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.turnstile-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
}

/* Prevent iOS Safari auto-zoom on input focus (requires font-size >= 16px) */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Responsive adjustments for Turnstile widget */
@media (max-width: 480px) {
  .turnstile-widget {
    margin: 12px 0;
  }

  .turnstile-widget>div {
    transform: scale(0.9);
    transform-origin: left center;
  }
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Card hover effect */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-2px);
}

.card-hover:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card-hover {
    transition: none;
  }

  .card-hover:hover {
    transform: none;
  }
}
