/*
 * Modern Global Styles - Site-wide Application
 * Extends the service page design principles across the entire site
 * 
 * @package Home_Services_LeadGen
 * @since 1.0.0
 */

/* ==========================================================================
   Global Modern Styles
   ========================================================================== */

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
}

.site-main {
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Section Container */
.section-container,
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Modern Section Styling */
.modern-section {
    position: relative;
    padding: clamp(60px, 5vw, 100px) 0;
    overflow: hidden;
}

/* Section Background Variations */
.section-light {
    background: var(--wp--preset--color--light);
}

.section-alt {
    background: var(--wp--preset--color--background-alt);
}

.section-dark {
    background: var(--wp--preset--color--modern-dark);
    color: var(--wp--preset--color--light);
}

.section-primary {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--light);
}

.section-secondary {
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--light);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--wp--preset--color--modern-orange) 15%, transparent);
    color: var(--wp--preset--color--modern-orange);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--wp--preset--color--modern-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle,
.section-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--wp--preset--color--modern-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Palette-specific overrides */
.palette-modern-slate .section-badge,
.palette-modern-slate .hero-badge {
    background: color-mix(in srgb, var(--wp--preset--color--modern-orange) 15%, transparent);
    color: var(--wp--preset--color--modern-orange);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

body:not(.palette-modern-slate) .section-badge,
body:not(.palette-modern-slate) .hero-badge {
    background: color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
    color: var(--wp--preset--color--primary);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
}

/* ==========================================================================
   Modern Hero Section
   ========================================================================== */

.hero-section,
.modern-hero {
    position: relative;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--wp--preset--color--modern-dark);
    overflow: hidden;
}

/* Front page specific overrides */
.home .modern-hero,
body.home .hero-section {
    background-color: var(--wp--preset--color--primary) !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-container,
.hero-section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Ensure hero content doesn't stretch to fill container height */
.hero-container .hero-content {
    align-self: center;
    height: auto;
}

.hero-content,
.hero-text {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 700px;
    gap: 16px;
}

/* Hero Typography */
.hero-headline,
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.0 !important;
    letter-spacing: -0.02em !important;
    color: var(--wp--preset--color--light) !important;
    margin: 10px 0;
}

.hero-subheadline,
.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 10px 0;
}

/* Hero Badge Styling */
.hero-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--wp--preset--color--modern-orange) 15%, transparent);
    color: var(--wp--preset--color--modern-orange);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
    padding: 8px 16px;
    margin: 60px 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 50px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
    text-decoration: none;
    color: inherit;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 20px;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

/* Hero CTA (alternative to stats) */
.hero-cta {
    margin: 50px 0;
    text-align: center;
}

.hero-cta .btn-large {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
}

/* Modern Buttons */
.hero-cta-button,
.cta-button,
.btn-primary {
    background: var(--wp--preset--gradient--modern-orange-gradient);
    color: var(--wp--preset--color--light);
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.hero-cta-button:hover,
.cta-button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--wp--preset--color--modern-orange) 40%, transparent);
}

.btn-outline {
    background: transparent;
    color: inherit;
    padding: 16px 32px;
    border: 2px solid currentColor;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: currentColor;
    color: var(--wp--preset--color--light);
}

.btn-icon {
    font-size: 18px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Hero Form */
.hero-form,
.hero-form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Modern Sections
   ========================================================================== */

/* Services Section */
.services-section,
.related-section {
    background: var(--wp--preset--color--background);
    padding: clamp(60px, 5vw, 100px) 0;
    overflow: hidden;
    box-sizing: border-box;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--wp--preset--color--light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--wp--preset--color--modern-gray-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wp--preset--gradient--dark-overlay);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.service-arrow {
    color: var(--wp--preset--color--light);
    font-size: 24px;
    font-weight: bold;
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-card:hover .service-arrow {
    transform: translateX(0);
}

.service-content,
.service-info {
    padding: 32px;
}

.service-title,
.service-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wp--preset--color--modern-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-excerpt,
.service-info p {
    color: var(--wp--preset--color--modern-gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-learn-more {
    color: var(--wp--preset--color--modern-orange);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.service-card:hover .service-learn-more {
    color: var(--wp--preset--color--modern-orange-alt);
}

/* Partners Section */
.partners-section {
    background: var(--wp--preset--color--light);
    padding: clamp(50px, 4vw, 100px) 0;
    border-top: 1px solid var(--wp--preset--color--modern-gray-200);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    opacity: 0.7;
}

.partner-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Partners Scrolling Animation */
.partners-scrolling {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners-track {
    display: flex;
    gap: 80px;
    align-items: center;
    animation: scroll-partners var(--animation-duration, 30s) linear infinite;
    width: fit-content;
}

.partners-scrolling .partner-logo {
    flex-shrink: 0;
    min-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause animation on hover */
.partners-scrolling:hover .partners-track {
    animation-play-state: paused;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--wp--preset--gradient--modern-dark-gradient);
    padding: clamp(60px, 5vw, 100px) 0;
    color: var(--wp--preset--color--light);
    overflow: visible; /* Ensure navigation is not cut off */
}

.testimonials-section .section-title {
    color: var(--wp--preset--color--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.star {
    color: var(--wp--preset--color--modern-orange);
    font-size: 18px;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-photo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    font-style: normal;
}

/* Testimonials Slider */
.testimonials-wrapper {
    margin-top: 60px;
    width: 100%;
}

.testimonials-wrapper.testimonials-grid {
    display: block;
}

.testimonials-wrapper.testimonials-slider {
    display: block !important; /* Ensure vertical stacking */
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1400px; /* Match section container width */
    margin: 0 auto; /* Center the slider */
    display: block;
    padding: 0 20px; /* Add padding to prevent cutoff */
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 40px; /* Match grid gap */
}

.testimonials-slider .testimonial-card {
    flex: 0 0 calc(33.333% - 26.67px); /* Show 3 cards, precise gap calculation */
    min-width: 350px; /* Match grid min-width */
    max-width: none;
}

.testimonials-wrapper.testimonials-slider .testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px auto 0;
    padding-top: 20px;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    clear: both;
}

.testimonials-prev,
.testimonials-next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--wp--preset--color--light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.testimonials-prev:disabled,
.testimonials-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.testimonials-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--wp--preset--color--light);
    transform: scale(1.2);
}

/* ==========================================================================
   CTA Section Styles
   ========================================================================== */

.cta-section {
    background: var(--wp--preset--gradient--modern-dark-gradient);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(247, 147, 30, 0.2) 0%, transparent 50%);
}

.cta-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--wp--preset--color--light);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-card p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--wp--preset--color--light);
    padding: 16px 32px;
    border: 2px solid color-mix(in srgb, var(--wp--preset--color--light) 30%, transparent);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: color-mix(in srgb, var(--wp--preset--color--light) 10%, transparent);
    border-color: color-mix(in srgb, var(--wp--preset--color--light) 50%, transparent);
    transform: translateY(-1px);
}

/* ==========================================================================
   Modern Header Styles
   ========================================================================== */

.modern-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-container {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

/* Ensure header inner content matches hero container width */
.header-container .alignwide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Enhanced glass morphism on hero pages */
.home .header-container,
body.home .header-container {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo img {
    border-radius: 8px;
}

.site-tagline {
    opacity: 0.9;
    margin: 0 !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .wp-block-navigation__container {
    gap: 40px;
}

.main-navigation .wp-block-navigation-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.125rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.main-navigation .wp-block-navigation-item a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.main-navigation .wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--secondary);
    transition: width 0.3s ease;
}

.main-navigation .wp-block-navigation-item a:hover::after {
    width: 100%;
}

.header-quote-btn .wp-block-button__link {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.2);
}

.header-quote-btn .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247, 147, 30, 0.3);
}

/* ==========================================================================
   Modern Footer Styles
   ========================================================================== */

.modern-footer {
    background: color-mix(in srgb, var(--wp--preset--color--primary) 90%, black);
    color: var(--wp--preset--color--light);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-main {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--wp--preset--color--primary) 85%, rgba(0,0,0,0.2)) 0%, 
        color-mix(in srgb, var(--wp--preset--color--primary) 75%, rgba(0,0,0,0.3)) 100%);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--wp--preset--color--secondary) 15%, transparent) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--wp--preset--color--secondary) 8%, transparent) 0%, transparent 50%);
    pointer-events: none;
}

.footer-brand {
    flex: 1;
    min-width: 320px;
    position: relative;
    z-index: 1;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 !important;
}

/* ==========================================================================
   Header & Footer Responsive Design
   ========================================================================== */

/* No body padding - header overlays content */
body {
    margin: 0;
}

#page.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.site-main {
    flex: 1;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 16px 40px !important;
    }
    
    .header-actions {
        gap: 16px;
    }
    
    .main-navigation .wp-block-navigation__container {
        gap: 24px;
    }
    
    .footer-main {
        padding: 60px 32px 40px 32px !important;
    }
    
    .footer-links {
        gap: 32px;
    }
    
    .footer-bottom {
        padding: 20px 32px !important;
    }
    
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc(50% - 20px); /* Show 2 cards on tablet */
        min-width: 300px;
    }
    
    .testimonials-slider {
        padding: 0 15px; /* Reduce padding on tablet */
    }
}

@media (max-width: 768px) {
    /* No body padding - header overlays content on mobile too */
    
    /* Contact section mobile */
    .contact-info-section {
        padding: 60px 20px;
    }
    
    .contact-text {
        margin-bottom: 40px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .contact-info {
        text-align: center;
        gap: 8px;
    }
    
    .header-container {
        padding: 12px 40px !important;
    }
    
    .header-brand {
        gap: 12px;
    }
    
    .header-brand .wp-block-site-title {
        font-size: 1.25rem !important;
    }
    
    .site-tagline {
        font-size: 0.625rem !important;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-quote-btn .wp-block-button__link {
        padding: 10px 16px !important;
        font-size: 0.75rem !important;
    }
    
    /* Footer mobile styles */
    .footer-main {
        padding: 40px 20px 30px 20px !important;
    }
    
    .footer-main .alignwide {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-brand {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
        gap: 32px;
    }
    
    .footer-column {
        min-width: 140px;
        text-align: center;
    }
    
    .footer-bottom {
        padding: 16px 20px !important;
    }
    
    .footer-bottom .alignwide {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    /* No body padding on small screens either */
    
    .header-container {
        padding: 10px 16px !important;
    }
    
    .header-brand .wp-block-site-title {
        font-size: 1.125rem !important;
    }
    
    .site-tagline {
        font-size: 0.5rem !important;
    }
    
    .header-quote-btn .wp-block-button__link {
        padding: 8px 12px !important;
        font-size: 0.6875rem !important;
    }
    
    /* Footer extra small screens */
    .footer-main {
        padding: 32px 16px 24px 16px !important;
    }
    
    .footer-brand {
        gap: 16px;
    }
    
    .footer-links {
        gap: 24px;
    }
    
    .footer-column {
        min-width: 100px;
    }
    
    .footer-bottom {
        padding: 12px 16px !important;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.final-cta-section .cta-button {
    background: var(--wp--preset--color--light);
    color: var(--wp--preset--color--modern-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.final-cta-section .cta-button:hover {
    background: var(--wp--preset--color--modern-gray-100);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-container,
    .hero-section .container {
        grid-template-columns: 3fr 2fr;
        gap: 60px;
    }
    
    .section-container,
    .container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .hero-container,
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 24px 60px 24px;
        text-align: center;
        justify-items: center;
    }
    
    .hero-section,
    .modern-hero {
        min-height: 80vh;
        background-attachment: scroll;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content,
    .hero-text {
        align-items: center;
        text-align: center;
        gap: 12px;
        max-width: 100%;
    }
    
    .hero-headline,
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin: 8px 0;
    }
    
    .hero-subheadline,
    .hero-description {
        font-size: 1.125rem;
        margin: 8px auto 16px;
        max-width: 90%;
    }
    
    .hero-badge {
        margin: 16px 0;
    }
    
    .hero-stats {
        display: none;
    }
    
    .hero-cta {
        display: none;
    }
    
    .section-container,
    .container {
        padding: 0 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .testimonials-slider {
        max-width: 100%; /* Full width on mobile */
        padding: 0 20px; /* Add padding for better mobile spacing */
    }
    
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc(100% - 40px); /* Single card on mobile with padding */
        min-width: 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-container,
    .hero-section .container {
        padding: 30px 16px 50px 16px;
        gap: 16px;
    }
    
    .hero-content,
    .hero-text {
        gap: 10px;
    }
    
    .hero-headline,
    .hero-title {
        margin: 6px 0;
        line-height: 1.1;
    }
    
    .hero-subheadline,
    .hero-description {
        font-size: 1rem;
        margin: 6px auto 12px;
        max-width: 95%;
    }
    
    .hero-badge {
        margin: 12px 0;
        font-size: 11px;
        padding: 6px 14px;
    }
    
    .hero-stats {
        display: none;
    }
    
    .hero-cta {
        display: none;
    }
    
    .hero-form-card {
        padding: 24px 20px;
    }
    
    .section-container,
    .container {
        padding: 0 16px;
    }
    
    .service-content {
        padding: 24px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Palette Support
   ========================================================================== */

/* Modern Slate Palette */
.palette-modern-slate .hero-section,
.palette-modern-slate .modern-hero {
    background-color: var(--wp--preset--color--modern-dark);
}

.palette-modern-slate .services-section {
    background: var(--wp--preset--color--modern-gray-50);
}

.palette-modern-slate .testimonials-section {
    background: var(--wp--preset--gradient--modern-dark-gradient);
}

.palette-modern-slate .final-cta-section,
.palette-modern-slate .cta-section {
    background: var(--wp--preset--color--modern-orange);
}

/* Non-modern-slate palettes fallback */
body:not(.palette-modern-slate) .hero-section,
body:not(.palette-modern-slate) .modern-hero {
    background-color: var(--wp--preset--color--primary);
}

body:not(.palette-modern-slate) .hero-cta-button,
body:not(.palette-modern-slate) .cta-button,
body:not(.palette-modern-slate) .btn-primary {
    background: var(--wp--preset--color--primary);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
}

body:not(.palette-modern-slate) .final-cta-section,
body:not(.palette-modern-slate) .cta-section {
    background: var(--wp--preset--color--secondary);
}