/* ==========================================================================
   FULL LIFE CARD - COMPONENTS CSS
   Reusable component styles
   ========================================================================== */

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
/* Screen reader only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price box styles */
.old-price {
    font-size: var(--font-size-xl);
    color: #ff6b6b;
    text-decoration: line-through;
    font-weight: var(--font-weight-medium);
}

.new-price {
    font-size: var(--font-size-4xl);
    color: var(--color-secondary);
    font-weight: var(--font-weight-extrabold);
}

@media (min-width: 768px) {
    .old-price {
        font-size: var(--font-size-2xl);
    }
    
    .new-price {
        font-size: var(--font-size-5xl);
    }
}

.text-center {
    text-align: center;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-4);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-base);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}

/* Form validation states */
.form-input.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

.form-input.success {
    border-color: var(--color-success);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.field-error {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.field-error::before {
    content: '⚠️';
    font-size: var(--font-size-xs);
}

/* Alert styles */
.alert {
    border-radius: var(--radius-base);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Focus management */
.focused {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input.error {
        border-color: #ff0000;
        border-width: 2px;
    }
    
    .form-input.success {
        border-color: #00ff00;
        border-width: 2px;
    }
    
    .focused {
        outline-color: #ffff00;
        outline-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   NAVIGATION BAR - NOW WITH TRANSPARENT INITIAL STATE
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 61, 122, 0.1); /* Molto trasparente inizialmente */
    backdrop-filter: blur(10px); /* Blur moderno */
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(0, 61, 122, 0.98); /* Opaco quando scrolled */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 61, 122, 0.3);
    background: rgb(0 43 92 / 37%);
    backdrop-filter: blur(220px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* Desktop: sempre visibile - Override navbar-hidden su desktop */
@media (min-width: 1024px) {
    .navbar.navbar-hidden {
        transform: translateY(0) !important;
    }
}

/* Scroll Progress Indicator (optional elegant touch) */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    width: var(--scroll-progress, 0%);
    transition: width 0.1s ease;
    opacity: 0.8;
}

.navbar.scrolled::after {
    opacity: 1;
}

.navbar-container {
    max-width: var(--max-width-7xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Mobile: Logo centrato */
@media (max-width: 767px) {
    .navbar-container {
        justify-content: center;
    }
    
    .navbar-right {
        display: none;
    }
}

@media (min-width: 640px) {
    .navbar-container {
        padding: 0 var(--space-6);
    }
}

/* Tablet e desktop: Layout normale */
@media (min-width: 768px) {
    .navbar-container {
        justify-content: space-between;
    }
    
    .navbar-right {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .navbar-container {
        padding: 0 var(--space-8);
        height: 80px;
    }
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
    color: var(--color-secondary);
}

.navbar-logo img {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

.navbar-logo:hover img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* Right Side Container */
.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

/* Navigation Links (hidden on mobile, can be added later) */
.navbar-nav {
    display: none;
    align-items: center;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .navbar-nav {
        display: flex;
    }
}

.navbar-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
    position: relative;
}

.navbar-nav a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a.active {
    color: var(--color-secondary);
    font-weight: var(--font-weight-bold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* CTA Button */
.navbar-cta {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: var(--color-primary);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    text-decoration: none;
    display: none; /* Nascosto su mobile */
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

/* Mostra CTA solo da tablet in su */
@media (min-width: 768px) {
    .navbar-cta {
        display: inline-flex;
        padding: var(--space-3) var(--space-8);
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 1024px) {
    .navbar-cta {
        padding: var(--space-4) var(--space-10);
    }
}

.navbar-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    color: var(--color-primary);
    text-decoration: none;
}

.navbar-cta:active {
    transform: translateY(0) scale(1.02);
}

.navbar-cta-text {
    display: none;
}

@media (min-width: 480px) {
    .navbar-cta-text {
        display: inline;
    }
}

/* Mobile menu button (for future implementation) */
.navbar-toggle {
    display: none; /* Nascosto su mobile */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

@media (min-width: 1024px) {
    .navbar-toggle {
        display: none;
    }
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.navbar-toggle:hover span {
    background: var(--color-secondary);
}

/* Body padding for fixed navbar */
body {
    padding-top: 70px;
}

@media (min-width: 1024px) {
    body {
        padding-top: 80px;
    }
}

/* ==========================================================================
   SECTION LAYOUTS
   ========================================================================== */

/* Section base */
.section {
    padding: var(--space-20) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-16) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

@media (min-width: 1024px) {
    .section {
        padding: var(--space-32) 0;
    }
    
    .section-sm {
        padding: var(--space-24) 0;
    }
    
    .section-lg {
        padding: var(--space-40) 0;
    }
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: var(--max-width-4xl);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

@media (min-width: 640px) {
    .section-title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: var(--font-size-5xl);
    }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
    max-width: var(--max-width-2xl);
    margin: 0 auto;
}

@media (min-width: 640px) {
    .section-subtitle {
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================================
   CARD SHOWCASE BENEFITS SECTION
   ========================================================================== */
.card-showcase-benefits {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 100px var(--space-5);
    position: relative;
}

@media (min-width: 1024px) {
    .card-showcase-benefits {
        padding: 100px var(--space-5);
    }
}

/* Note: Detailed styles for the 3D card and features are in the Blade component for modularity */

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-works {
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0066ccbf 0%, #004499 100%);
    /* background: linear-gradient(135deg, #0066ccad 0%, #00449900 100%); */
    position: relative;
    /* backdrop-filter: blur(61px); */
}

.how-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.how-works .section-title {
    color: var(--color-secondary-dark);
}

.how-works .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    max-width: var(--max-width-5xl);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* Step connector line */
@media (min-width: 768px) {
    .steps::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, 
            var(--color-secondary) 0%, 
            rgba(255, 215, 0, 0.5) 50%, 
            var(--color-secondary) 100%);
        z-index: -1;
    }
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        var(--color-secondary) 0%, 
        var(--color-secondary-light) 100%);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    margin: 0 auto var(--space-6);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    border: 3px solid var(--color-white);
}

.step h3 {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

@media (min-width: 640px) {
    .step h3 {
        font-size: var(--font-size-2xl);
    }
}

.step p {
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

@media (min-width: 640px) {
    .step p {
        font-size: var(--font-size-sm);
    }
}

/* ==========================================================================
   ORDER FORM SECTION
   ========================================================================== */
.order-form {
    background: var(--color-white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    align-items: start;
    max-width: var(--max-width-6xl);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-20);
    }
}

/* Form styles */
.form {
    max-width: var(--max-width-2xl);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .form {
        margin: 0;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
    .form-row.two-cols {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-base);
}

.form-label .required {
    color: var(--color-error);
    margin-left: var(--space-1);
}

.form-input {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-x);
    border: var(--input-border-width) solid var(--color-gray-300);
    border-radius: var(--input-border-radius);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--color-white);
    appearance: none;
    min-height: var(--input-height);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--input-focus-ring);
}

.form-input:invalid {
    border-color: var(--color-error);
}

.form-input::placeholder {
    color: var(--color-gray-500);
}

.form-hint {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--font-size-sm);
    color: var(--color-error);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-gray-400);
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: var(--space-0-5);
}

.checkbox:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox:checked::after {
    content: 'âœ“';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.checkbox-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    cursor: pointer;
    line-height: var(--line-height-normal);
}

/* ==========================================================================
   ORDER SUMMARY
   ========================================================================== */
.order-summary {
    /* background: var(--color-gray-50); */
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    /* border: 1px solid var(--color-gray-200); */
    position: sticky;
    top: var(--space-8);
}

.order-summary h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    font-weight: var(--font-weight-bold);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-200);
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    padding-top: var(--space-4);
    border-top: 2px solid var(--color-primary);
    margin-top: var(--space-4);
}

.order-total .price {
    font-size: var(--font-size-2xl);
    color: var(--color-secondary);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
}

.benefits-list li::before {
    content: 'âœ“';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--color-success);
    color: var(--color-white);
    border-radius: 50%;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    /* background: var(--color-primary); */
    color: var(--color-white);
    padding: var(--space-20) 0 var(--space-8) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.5), 
        transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: var(--space-16);
    }
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    color: var(--color-secondary);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */
.loading-shimmer {
    background: linear-gradient(90deg,
        var(--color-gray-200) 25%,
        var(--color-gray-100) 50%,
        var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   ERROR STATES
   ========================================================================== */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    color: #991b1b;
}

.error-message .error-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.error-message .error-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.error-message h3 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    color: #991b1b;
}

.error-message ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-message li {
    margin-bottom: var(--space-1);
}

.error-message li::before {
    content: 'â€¢ ';
    font-weight: var(--font-weight-bold);
}

/* ==========================================================================
   SUCCESS STATES
   ========================================================================== */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    color: #166534;
}

.success-message .success-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.success-message .success-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    color: #16a34a;
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    
    .hide-desktop {
        display: none;
    }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-medium { font-weight: var(--font-weight-medium); }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-gray-600 { color: var(--color-gray-600); }

/* ==========================================================================
   ENHANCED RIPPLE EFFECTS & PERFORMANCE
   ========================================================================== */
/* Enhanced Ripple Effects */
.ripple-enhanced {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: scale(0);
    animation: ripple-enhanced-animation 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

@keyframes ripple-enhanced-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Performance optimizations */
.card-svg-wrapper,
.feature-bubble,
.cta-button {
    will-change: transform;
}

.hero-v2::before {
    will-change: transform;
    contain: layout style paint;
}

/* Utility classes for inline styles cleanup */
.relative-z-1 {
    position: relative;
    z-index: 1;
}

.text-uppercase {
    text-transform: uppercase;
}

/* ==========================================================================
   MOBILE FIXED CTA BUTTON
   ========================================================================== */
.mobile-fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    display: none;
}

/* Show only on mobile/tablet */
@media (max-width: 1024px) {
    .mobile-fixed-cta {
        display: block;
    }
}

.mobile-fixed-cta.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #ffed4e 100%);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.mobile-cta-button:hover::before,
.mobile-cta-button:focus::before {
    left: 100%;
}

.mobile-cta-button:active {
    transform: scale(0.98);
}

.mobile-cta-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.mobile-cta-icon {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    animation: sparkle-mobile 1.5s infinite;
}

@keyframes sparkle-mobile {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1) rotate(10deg);
        opacity: 0.8;
    }
}

/* Ripple effect for mobile CTA */
.mobile-cta-button .ripple-mobile {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-mobile-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-mobile-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hide on very small screens to avoid overlap */
@media (max-width: 350px) {
    .mobile-fixed-cta {
        left: 10px;
        right: 10px;
        bottom: 15px;
    }
    
    .mobile-cta-button {
        padding: 14px 20px;
        font-size: 1rem;
    }
}
