/* Modeno Theme 2 - Main Styles */

/* Muted note styling for T&C */
.muted-note {
    opacity: 0.7;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Enhanced CTA Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(39, 111, 191, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(39, 111, 191, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* CTA Button Enhancements */
.cta-enhanced {
    animation: pulse-glow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.cta-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.cta-enhanced:hover::before {
    animation-duration: 0.5s;
}

/* Trust Indicator Animations */
.trust-indicator {
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Premium Badge Animation */
.premium-badge {
    animation: float 3s ease-in-out infinite;
}

/* Responsive CTA Enhancements */
@media (max-width: 768px) {
    .cta-enhanced {
        animation: none;
    }
    
    .premium-badge {
        animation: none;
    }
    
    /* Mobile-specific optimizations */
    body {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Improve touch targets */
    button, 
    .btn, 
    input[type="button"], 
    input[type="submit"], 
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile */
    .container,
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Improve readability */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    /* Better form inputs on mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        padding: 12px 16px;
    }
    
    /* Improve button spacing */
    .btn-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 0.85rem;
    }
    
    .container,
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Improve small screen navigation */
    .nav-menu {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Better card layouts */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Improve button sizes */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Brand Design System - New Color Palette */
:root {
  /* New Modeno Brand Colors from palette1.scss */
  --imperial-red: 356 86% 58%;        /* #f03a47 - Warm Red */
  --redwood: 0 34% 52%;               /* #af5b5b - Muted Red */
  --white-smoke: 20 14% 96%;          /* #f6f4f3 - Warm White */
  --celtic-blue: 212 66% 45%;         /* #276fbf - Professional Blue */
  --delft-blue: 218 58% 22%;          /* #183059 - Deep Navy */
  
  /* Extended Palette using new colors */
  --background: var(--white-smoke);
  --foreground: var(--delft-blue);
  --card: 0 0% 100%;
  --card-foreground: var(--delft-blue);
  --popover: 0 0% 100%;
  --popover-foreground: var(--delft-blue);
  --primary: var(--celtic-blue);
  --primary-foreground: 0 0% 100%;
  --secondary: var(--celtic-blue);
  --secondary-foreground: 0 0% 100%;
  --muted: 20 14% 94%;
  --muted-foreground: 212 66% 35%;
  --accent: var(--celtic-blue);
  --accent-foreground: 0 0% 100%;
  --destructive: var(--imperial-red);
  --destructive-foreground: 0 0% 100%;
  --border: 20 14% 90%;
  --input: 20 14% 90%;
  --ring: var(--celtic-blue);
  --radius: 0.75rem;

  /* Glassmorphism & Effects */
  --glass-bg: hsla(0, 0%, 100%, 0.15);
  --glass-border: hsla(0, 0%, 100%, 0.2);
  --glass-shadow: 0 8px 32px hsla(210, 20%, 25%, 0.1);
  
  /* Header Effects */
  --header-bg: hsla(0, 0%, 100%, 0.95);
  --header-border: hsla(210, 20%, 25%, 0.08);
  --header-shadow: 0 8px 25px hsla(210, 20%, 25%, 0.15);
  --header-blur: blur(12px);

  /* Gradients using new palette */
  --gradient-hero: linear-gradient(135deg, hsl(var(--celtic-blue)), hsl(var(--delft-blue)));
  --gradient-card: linear-gradient(145deg, hsl(var(--white-smoke)), hsl(0, 0%, 100%));
  --gradient-cta: linear-gradient(135deg, hsl(var(--celtic-blue)), hsl(var(--delft-blue)));

  /* Shadows using new palette */
  --shadow-soft: 0 4px 20px hsla(218, 58%, 22%, 0.08);
  --shadow-medium: 0 8px 30px hsla(218, 58%, 22%, 0.12);
  --shadow-strong: 0 12px 40px hsla(218, 58%, 22%, 0.16);
  --shadow-glow: 0 0 30px hsla(var(--celtic-blue), 0.3);

  /* Typography - Imported from typography-system.css */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Animations */
  --transition-smooth: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Header Heights */
  --header-height-default: 84px;
  --header-height-scrolled: 56px;
  --header-height-mobile-default: 64px;
  --header-height-mobile-scrolled: 52px;
}

/* Base Styles */
* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography hierarchy is now handled by typography-system.css */

/* Smooth scrolling offset for anchor links */
section {
  scroll-margin-top: 80px;
}

/* Glass effect utilities */
.glass-bg {
  background: rgba(255, 255, 255, 0.9); /* Fallback for older browsers */
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-border {
  border: 1px solid var(--glass-border);
}

/* Header utilities */
.header-glass {
  background: rgba(255, 255, 255, 0.95); /* Fallback for older browsers */
  background: var(--header-bg);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}

/* Focus management for accessibility */
.focus-visible:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  transition: var(--transition-smooth);
}

.skip-link:focus {
  top: 6px;
}

/* Animation utilities */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom animations */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out;
}

/* Button styles - converted from @apply */
.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-strong);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.btn-secondary {
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background-color: hsl(var(--background));
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-strong);
  transform: scale(1.05);
}

.btn-outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background-color: hsl(var(--muted));
  transform: scale(1.05);
}

/* Card styles - converted from @apply */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-medium);
}

.card-feature {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.card-feature:hover {
  box-shadow: var(--shadow-medium);
  border-color: hsl(var(--primary) / 0.3);
}

/* Pricing card styles - converted from @apply */
.pricing-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-medium);
}

.pricing-card.popular {
  border: 2px solid hsl(var(--primary));
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

/* Testimonial styles - converted from @apply */
.testimonial-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-medium);
}

/* Service card styles - converted from @apply */
.service-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: hsl(var(--primary) / 0.3);
}

/* Stats/numbers styles - converted from @apply */
.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-label {
  font-family: var(--font-body);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Trust indicators - converted from @apply */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Section spacing - converted from @apply */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Container - converted from @apply */
.container-custom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography utility classes - now handled by typography-system.css */

/* 3D Card utility for testimonials */
.card3d {
  perspective: 1000px;
}

.card3d .inner {
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card3d:hover .inner {
  transform: rotateY(180deg);
}

.card3d .front,
.card3d .back {
  backface-visibility: hidden;
}

.card3d .back {
  transform: rotateY(180deg);
}
