/* ===========================
   GLOBAL SERVICE PAGES STYLESHEET
   Silva's Remodeling - All Service Landing Pages
   Kitchen | Bathroom | Flooring | Painting | Basement | Carpentry | Mechanical | Full House
   =========================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

/* WordPress wrapper fix */
.site-wrapper {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* ===========================
   STANDARDIZED HERO SECTION
   =========================== */
.hero-section {
    background: linear-gradient(135deg, #014385 0%, #0A5CAA 100%) !important;
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.hero-logo {
    max-width: min(280px, 70vw);
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin: -1rem 0 2rem 0;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0 auto 2.5rem;
    max-width: 900px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn-primary {
    background: #D4A017;
    color: #001540;
    padding: clamp(0.9rem, 2.5vw, 1.1rem) clamp(1.75rem, 5vw, 2.5rem);
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.hero-btn-primary:hover {
    background: #E8C98F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.6);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: clamp(0.9rem, 2.5vw, 1.1rem) clamp(1.75rem, 5vw, 2.5rem);
    border: 2px solid white;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-trust-badges span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.95;
}

.hero-trust-badges i {
    font-size: 1.1rem;
    color: #D4A017;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-trust-badges {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .hero-trust-badges span {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* ===========================
   SKELETON LOADERS
   =========================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#global-header.loading,
#global-footer.loading,
#global-reviews.loading,
#global-related-services.loading {
    min-height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

#global-footer.loading {
    min-height: 300px;
}

#global-reviews.loading {
    min-height: 400px;
}

#global-related-services.loading {
    min-height: 500px;
}

/* NoScript Fallback Styles */
.noscript-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
}

.noscript-warning strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.noscript-contact {
    background: #014aab;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.noscript-contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.noscript-contact p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.noscript-contact a {
    background: #D4A017;
    color: #001540;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem;
}

/* ===========================
   MAIN CONTENT CONTAINER
   =========================== */
.main-content {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    overflow-x: hidden;
}

.main-content > section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem clamp(1rem, 5vw, 2rem);
}

.main-content > section:nth-child(even) {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.main-content > section:nth-child(odd) {
    background: #ffffff;
}

/* Systems Overview Section */
.systems-overview {
    text-align: center;
}

.systems-overview h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #014aab;
    margin-bottom: 1rem;
}

.systems-overview .section-intro {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #555;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Electrical Section */
.electrical-section,
.plumbing-section,
.hvac-section {
    scroll-margin-top: 100px;
}

.electrical-section h2,
.plumbing-section h2,
.hvac-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #014aab;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.electrical-section h2::after,
.plumbing-section h2::after,
.hvac-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%);
    border-radius: 2px;
}

.electrical-section h3,
.plumbing-section h3,
.hvac-section h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: #014385;
    margin: 2rem 0 1rem;
}

.electrical-section ul,
.plumbing-section ul,
.hvac-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.electrical-section li,
.plumbing-section li,
.hvac-section li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #333;
}

.electrical-section li::before,
.plumbing-section li::before,
.hvac-section li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #FFC107;
    font-size: 1.2rem;
}

.plumbing-section li::before {
    content: '🔧';
}

.hvac-section li::before {
    content: '❄️';
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #014aab;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #FFC107;
    font-size: 0.9em;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Categories Grid */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #FFC107;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: #014385;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.category-card li {
    padding: 0.75rem 0 0.75rem 1.75rem;
    position: relative;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.6;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.category-card li:last-child {
    border-bottom: none;
}

.category-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
}

.category-card li strong {
    color: #014aab;
    font-weight: 600;
}

.category-card .note {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border-left: 4px solid #FFC107;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.category-card .note i {
    color: #FFC107;
    margin-right: 0.5rem;
}

.category-card .note strong {
    color: #014385;
    font-weight: 600;
}

/* ===========================
   PRICING & INFO BOXES
   =========================== */
.pricing-box,
.info-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    border-left: 5px solid #014aab;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.pricing-box h4,
.info-box h4 {
    color: #014aab;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.pricing-box p,
.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.pricing-box strong {
    color: #014385;
    font-weight: 600;
}

/* Call-to-Action Boxes */
.cta-box {
    background: linear-gradient(135deg, #014aab 0%, #0066cc 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 4px 15px rgba(1, 74, 171, 0.3);
}

.cta-box h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: white;
}

.cta-box p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-box .cta-button {
    background: #D4A017;
    color: #001540;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
    text-decoration: none;
    display: inline-block;
}

.cta-box .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.6);
}




html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #f9f9f9;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Minimum Touch Targets (WCAG 2.1) */
button,
a {
    min-height: 44px;
    min-width: 44px;
}

/* GPU Acceleration for Smooth Animations */
.swiper-slide,
.service-card,
button {
    will-change: transform;
    backface-visibility: hidden;
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

section:nth-child(even) {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

section h2 {
    font-size: 2.5rem;
    color: #014aab;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%);
    border-radius: 2px;
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

section p strong {
    color: #014aab;
    font-weight: 600;
}

/* Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    padding: 3rem 2rem;
}

.reviews-section h2 {
    text-align: center;
    color: #014aab;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.reviews-section .reviews-rating {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.reviews-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

/* Mobile: Horizontal Scroll for Reviews */
@media (max-width: 767px) {
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0 1rem;
        margin: 0 -1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .reviews-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .review-card {
        flex: 0 0 85%; /* Show 85% of card + peek of next */
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Mobile: Enhanced visual for horizontal scroll */
@media (max-width: 767px) {
    .review-card {
        min-width: 280px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }
    
    .review-card:active {
        transform: scale(0.98);
    }
}

.review-card .stars {
    font-size: 1.8rem;
    color: #D4A017;
    margin-bottom: 1rem;
}

.review-card .review-text {
    font-style: italic;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-card .reviewer-name {
    font-weight: 600;
    color: #014aab;
}

.reviews-section .reviews-cta {
    text-align: center;
    margin-top: 2rem;
}

.reviews-section .btn-reviews {
    display: inline-block;
    background: #014aab;
    color: #F8F9FA;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(1,74,171,0.3);
    transition: all 0.3s ease;
}

/* Related Services Section */
.related-services-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
}

.related-services-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #014aab;
    margin-bottom: 1rem;
}

.related-services-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Mobile: Horizontal Scroll for Services */
@media (max-width: 767px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0 1rem;
        margin: 0 -1rem 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .services-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .service-card {
        flex: 0 0 85%; /* Show 85% of card + peek of next */
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Mobile: Enhanced visual for horizontal scroll */
@media (max-width: 767px) {
    .service-card {
        min-width: 280px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
}

.service-card .service-icon {
    font-size: 3rem;
    color: #D4A017;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #014aab;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card .btn-service {
    display: inline-block;
    background: #014aab;
    color: #F8F9FA;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.service-card .btn-service:hover {
    background: #013078;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #014aab 0%, #0066cc 100%);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    color: #F8F9FA;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-box .btn-cta {
    display: inline-block;
    background: #1FA774;
    color: #014aab;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.cta-box .btn-cta:hover {
    transform: scale(1.05);
}

/* Swiper Container Styles */
.swiper-container {
    width: 100%;
    padding: 3rem 0;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(1, 74, 171, 0.05) 0%, rgba(0, 178, 169, 0.05) 100%);
    border-radius: 15px;
    position: relative;
}

.swiper-wrapper {
    padding: 1rem 0;
}

.swiper-slide {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 450px;
    transition: all 0.3s ease;
    opacity: 0.4;
    transform: scale(0.85);
}

.swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 10;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    object-position: center !important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.swiper-slide-active img {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

.swiper-slide img:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #014aab !important;
    background: white;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #FFC107;
    color: white !important;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 900;
}

/* Button Styles */
button {
    background: linear-gradient(135deg, #014aab 0%, #0066cc 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    margin: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 74, 171, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 74, 171, 0.5);
    background: linear-gradient(135deg, #0066cc 0%, #014aab 100%);
}

button:active {
    transform: translateY(-1px);
}

section button {
    display: inline-block;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility & Focus States */
/* Better focus indicators for keyboard navigation */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #FFC107;
    outline-offset: 2px;
}

/* Remove outline for mouse users */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #014aab;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Scroll Indicators for Mobile Horizontal Scroll */
@media (max-width: 767px) {
    /* Add subtle gradient hints for scrollable content */
    .services-grid::after,
    .reviews-grid::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to left, rgba(248, 249, 250, 0.9), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    .related-services-section .section-container,
    .reviews-section {
        position: relative;
    }
    
    /* Scroll hint text */
    .related-services-section .section-subtitle::after,
    .reviews-section .reviews-rating::after {
        content: '← Swipe to see more →';
        display: block;
        font-size: 0.85rem;
        color: #999;
        margin-top: 0.5rem;
        font-style: italic;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Tablet Optimization */
@media (max-width: 1024px) {
    .swiper-container {
        padding: 1.5rem 0.5rem !important;
        margin: 1.5rem auto !important;
    }
    
    section {
        padding: 2rem 1.5rem !important;
    }
    
    section h2 {
        font-size: 2rem !important;
    }
    
    .services-grid,
    .reviews-grid {
        gap: 1.5rem;
    }
}

/* Mobile Phone Optimization */
@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
        overflow-x: hidden;
    }
    
    section h2 {
        font-size: 1.8rem;
        padding: 0 1rem;
        word-wrap: break-word;
    }
    
    section p {
        font-size: 1rem;
        padding: 0 1rem;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Main Content Mobile Adjustments */
    .main-content > section {
        padding: 3rem 1.5rem;
        overflow-x: hidden;
    }
    
    /* Service Categories - Stack on Mobile */
    .service-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Category Cards Mobile */
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .category-card li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Systems Grid Mobile */
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Section Headers Mobile */
    .section-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-header h2 i {
        font-size: 1.5rem;
    }
    
    /* Horizontal scroll maintained from earlier rules - don't override */
    
    .swiper-container {
        padding: 1rem 0.5rem !important;
        margin: 1rem auto !important;
    }
    
    .swiper-slide {
        opacity: 0.3;
        transform: scale(0.75);
    }
    
    .swiper-slide img {
        max-width: 300px !important;
        height: 300px !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px !important;
    }
    
    button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure all text content is readable on mobile */
    h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    ul, ol {
        padding-left: 1.5rem;
        padding-right: 1rem;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Small Mobile Optimization */
@media (max-width: 480px) {
    .swiper-slide img {
        max-width: 260px !important;
        height: 260px !important;
    }
}

/* Print Styles */
@media print {
    .swiper-button-next,
    .swiper-button-prev,
    button {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Modern Container Queries (Progressive Enhancement) */
@supports (container-type: inline-size) {
    .related-services-section,
    .reviews-section {
        container-type: inline-size;
    }
    
    @container (min-width: 768px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @container (min-width: 1024px) {
        .services-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    section:nth-child(even) {
        background: #f0f0f0;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
