/* ====================================
   CSS Reset & Base Styles
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --crimson: #DC143C;
    --crimson-dark: #B01030;
    --black: #000000;
    --grey-dark: #333333;
    --grey-medium: #666666;
    --grey-light: #F5F5F5;
    --white: #FFFFFF;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--grey-dark);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ====================================
   Typography
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--grey-medium);
}

/* ====================================
   Container & Layout
   ==================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background: var(--grey-light);
}

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

/* ====================================
   Buttons
   ==================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson);
}

.btn-primary:hover {
    background: var(--crimson-dark);
    border-color: var(--crimson-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--crimson);
    border-color: var(--crimson);
}

.btn-secondary:hover {
    background: var(--crimson);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--crimson);
    border-color: var(--crimson);
}

.btn-outline:hover {
    background: var(--crimson);
    color: var(--white);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-nav {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
}

/* ====================================
   Navigation
   ==================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--crimson);
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--grey-medium);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--grey-dark);
    position: relative;
}

.nav-menu a:not(.btn):hover,
.nav-menu a.active {
    color: var(--crimson);
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--crimson);
    transition: var(--transition);
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--crimson);
    margin: 3px 0;
    transition: var(--transition);
}

/* ====================================
   Hero Section
   ==================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* ====================================
   Section Titles
   ==================================== */

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--crimson);
    border-radius: 2px;
}

/* ====================================
   Features Grid
   ==================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--grey-medium);
    line-height: 1.7;
}

/* ====================================
   Services Grid
   ==================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--crimson);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(220, 20, 60, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--grey-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--crimson);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--crimson);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* ====================================
   Testimonials
   ==================================== */

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--crimson);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--grey-dark);
    font-style: italic;
}

.testimonial-author {
    border-top: 2px solid var(--grey-light);
    padding-top: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--grey-medium);
}

/* ====================================
   CTA Section
   ==================================== */

.cta-section {
    background: var(--crimson);
    color: var(--white);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
}

.cta-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--grey-light);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--crimson);
}

.form-group textarea {
    resize: vertical;
}

.cta-alt {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--white);
}

.cta-alt a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
}

/* ====================================
   Footer
   ==================================== */

.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--crimson);
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--crimson);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.125rem;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .cta-form {
        padding: 1.5rem;
    }
}

/* ====================================
   Page-Specific Styles
   ==================================== */

.page-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
}

.breadcrumb a:hover {
    color: var(--white);
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--crimson);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--grey-medium);
}

@media (max-width: 768px) {
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--crimson);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--grey-medium);
}

/* FAQ Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--crimson);
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 2px solid var(--grey-light);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--grey-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #EBEBEB;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.125rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--crimson);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 1.5rem;
    color: var(--grey-medium);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ========================================
   ADDITIONAL OPTIMIZATIONS
   ======================================== */

/* Mobile Click-to-Call Button */
.mobile-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
}

.mobile-cta a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--crimson);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.mobile-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.5);
}

.mobile-cta a i {
    font-size: 1.25rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 20, 60, 0.6);
    }
}

@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }
}

/* Lazy Loading Images */
img[loading="lazy"] {
    /* Removed opacity rule - was causing images to disappear */
}

/* Improved Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Trust Badges Section */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.trust-badge:hover {
    opacity: 1;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--crimson);
}

.trust-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grey-dark);
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--crimson);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-cta,
    .cta-section,
    footer {
        display: none;
    }
}

/* ========================================
   SUBTLE BACKGROUND ANIMATIONS
   ======================================== */

/* Animated gradient background for hero sections */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(220, 20, 60, 0.05) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(220, 20, 60, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating animation for feature cards */
.feature-card,
.stat-card,
.testimonial-card {
    animation: floatGentle 6s ease-in-out infinite;
}

.feature-card:nth-child(2),
.stat-card:nth-child(2),
.testimonial-card:nth-child(2) {
    animation-delay: 2s;
}

.feature-card:nth-child(3),
.stat-card:nth-child(3),
.testimonial-card:nth-child(3) {
    animation-delay: 4s;
}

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

/* Subtle scale animation on hover for interactive elements */
.btn,
.card,
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* Subtle pulse animation for CTA buttons */
.btn-primary {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
    }
    50% {
        box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
    }
}

/* Shimmer effect for stat numbers */
.stat-number,
.hero-stat {
    position: relative;
    overflow: hidden;
}

.stat-number::after,
.hero-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Gentle fade-in for sections on load */
section {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Animated background pattern for sections with crimson bg */
section[style*="crimson"] {
    position: relative;
    overflow: hidden;
}

section[style*="crimson"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: patternMove 20s ease infinite;
    z-index: 0;
    pointer-events: none;
}

section[style*="crimson"] > * {
    position: relative;
    z-index: 1;
}

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

/* Icon rotation animation on hover */
.feature-card i,
.stat-card i,
.service-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover i,
.stat-card:hover i,
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Smooth image loading animation */
img {
    /* Removed animation - was causing images to flash/disappear */
}

/* Testimonial card special animation */
.testimonial {
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.15);
}

/* Calculator input focus animation */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Navigation hover effects */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--crimson);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Video embed hover effect */
.video-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========================================
   HEADER & NAVIGATION FIXES
   ======================================== */

/* Fix navigation width and spacing */
.navbar {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0;
    z-index: 1000;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fix logo spacing */
.logo {
    flex-shrink: 0;
    min-width: 200px;
}

/* Fix navigation menu spacing */
.nav-menu {
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Ensure hero sections have proper top padding */
.hero {
    padding-top: 120px !important;
    min-height: 70vh;
    margin-top: 0;
}

/* Fix first section after navbar */
section:first-of-type {
    margin-top: 0;
}

/* Ensure proper spacing between navbar and content */
body {
    padding-top: 0;
}

/* Make sure navbar doesn't overlap content */
.navbar {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Fix schedule button in nav */
.btn-nav {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive nav adjustments */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .btn-nav {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .logo {
        min-width: 180px;
    }
    
    .nav-menu {
        gap: 0.75rem;
        font-size: 0.875rem;
    }
}


/* ========================================
   IMPROVED HEADER LOGO SPACING
   ======================================== */

/* Better logo structure */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo a > div {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--crimson);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--grey-medium);
    line-height: 1.2;
}

/* Ensure proper spacing in nav-wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Better responsive handling */
@media (max-width: 1400px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-subtext {
        font-size: 0.7rem;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        font-size: 0.875rem;
    }
}

