/* ============================================
   Coast Light General Enterprises - Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #046bd2;
    --primary-dark: #0356a8;
    --secondary: #1e293b;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --background: #f0f5fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #22c55e;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

/* Fluid Typography */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
p { font-size: clamp(0.95rem, 1.5vw, 1rem); }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Navigation */
.nav {
    display: none;
}

.nav.active {
    display: flex;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--secondary);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header CTA */
.header-cta {
    display: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: calc(70px + var(--spacing-md)) var(--spacing-sm) var(--spacing-2xl);
    background: linear-gradient(135deg, var(--background) 0%, var(--white) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(4, 107, 210, 0.12) 0%, rgba(4, 107, 210, 0.06) 100%);
    color: var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(4, 107, 210, 0.2);
    letter-spacing: 0.3px;
}


.hero-title {
    margin-bottom: var(--spacing-sm);
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Hide WhatsApp button in hero on mobile (floating button is enough) */
.hero-buttons .btn-whatsapp {
    display: none;
}

@media (min-width: 577px) {
    .hero-buttons .btn-whatsapp {
        display: inline-flex;
    }
}

/* ============================================
   Hero Carousel
   ============================================ */
.hero-carousel {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #e2e8f0 0%, #f0f5fa 100%);
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-slide:first-child {
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e2e8f0;
    position: relative;
}

.carousel-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.carousel-image.loaded::before {
    display: none;
}

.carousel-caption {
    background-color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-70%) scale(1.1);
}

.carousel-arrow-prev {
    left: 10px;
}

.carousel-arrow-next {
    right: 10px;
}

/* Hide arrows on very small screens, show indicators only */
@media (max-width: 400px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-indicator:hover {
    background-color: var(--primary);
    opacity: 0.7;
}

.carousel-indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (min-width: 577px) {
    .carousel-image {
        height: 320px;
    }
}

@media (min-width: 993px) {
    .hero-carousel {
        flex: 1;
        max-width: none;
    }

    .carousel-image {
        height: 350px;
    }
}

/* ============================================
   Sections Common Styles
   ============================================ */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-light {
    background-color: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-description {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.features-grid {
    display: grid;
    gap: var(--spacing-md);
}

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--white);
    font-size: 1.5rem;
}

.feature-title {
    margin-bottom: var(--spacing-xs);
}

.feature-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    background-color: var(--background);
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1));
}

.service-content {
    padding: var(--spacing-md);
}

.service-title {
    margin-bottom: var(--spacing-xs);
}

.service-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.service-link:hover {
    color: var(--primary-dark);
    gap: var(--spacing-sm);
}

/* ============================================
   Clients Section
   ============================================ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.client-item {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
}

.client-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.cta .btn-whatsapp {
    background-color: var(--white);
    color: #25D366;
}

.cta .btn-whatsapp:hover {
    background-color: #25D366;
    color: var(--white);
}

/* M-Pesa Info */
.mpesa-info {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: inline-block;
}

.mpesa-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.mpesa-number {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
    padding: calc(70px + var(--spacing-md)) var(--spacing-sm) var(--spacing-xl);
    background: linear-gradient(135deg, var(--background) 0%, var(--white) 100%);
    text-align: center;
}

.about-content {
    display: grid;
    gap: var(--spacing-lg);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.about-text p:first-of-type {
    font-size: 1.1rem;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--background);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mission & Values */
.mission-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.mission-card h3 {
    margin-bottom: var(--spacing-sm);
}

.mission-card p {
    color: var(--text-light);
}

.values-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.value-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.value-content h4 {
    margin-bottom: var(--spacing-xs);
}

.value-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Services Page
   ============================================ */
.service-detail {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-content {
    display: grid;
    gap: var(--spacing-lg);
}

.service-detail-image {
    height: 250px;
    background-color: var(--background);
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
}

.service-detail-text h2 {
    margin-bottom: var(--spacing-sm);
}

.service-detail-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.service-features {
    display: grid;
    gap: var(--spacing-sm);
}

.service-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.service-feature-icon {
    width: 24px;
    height: 24px;
    background-color: var(--success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ============================================
   Filter Products Grid
   ============================================ */
.filter-products-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.filter-products-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.filter-products-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.filter-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.filter-product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.filter-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.filter-product-image {
    height: 180px;
    background-color: var(--background);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.filter-product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.filter-product-image.loaded::before {
    display: none;
}

.filter-product-content {
    padding: var(--spacing-md);
    text-align: center;
}

.filter-product-content h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.filter-product-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tablet - 2 columns */
@media (min-width: 577px) {
    .filter-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 3 columns */
@media (min-width: 993px) {
    .filter-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-product-image {
        height: 200px;
    }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-hero {
    padding: calc(70px + var(--spacing-md)) var(--spacing-sm) var(--spacing-xl);
    background: linear-gradient(135deg, var(--background) 0%, var(--white) 100%);
    text-align: center;
}

.contact-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.contact-info {
    display: grid;
    gap: var(--spacing-md);
}

.contact-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-card-icon.whatsapp {
    background-color: #25D366;
}

.contact-card-icon.mpesa {
    background-color: var(--success);
}

.contact-card-content h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.contact-card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card-content a {
    color: var(--primary);
    font-weight: 500;
}

.contact-card-content a:hover {
    color: var(--primary-dark);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.form-success svg {
    margin-bottom: var(--spacing-md);
}

.form-success h3 {
    color: #22c55e;
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Form Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Map */
.map-container {
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .logo-img {
    height: 60px;
    width: auto;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.25rem;
}

.footer-brand .logo-text span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ============================================
   Responsive Styles - Tablet (577px+)
   ============================================ */
@media (min-width: 577px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive Styles - Desktop (993px+)
   ============================================ */
@media (min-width: 993px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    /* Navigation */
    .menu-toggle {
        display: none;
    }

    .nav {
        display: flex;
    }

    .nav-list {
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: var(--spacing-md);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary);
        transition: var(--transition);
    }

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

    .header-cta {
        display: block;
    }

    /* Hero */
    .hero .container {
        flex-direction: row;
        align-items: center;
    }

    .hero-content {
        text-align: left;
        flex: 1;
    }

    .hero-description {
        margin-left: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image {
        flex: 1;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Clients */
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* About */
    .about-content {
        grid-template-columns: 1.5fr 1fr;
        align-items: start;
    }

    /* Service Detail */
    .service-detail-content {
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
    }

    .service-detail:nth-child(even) .service-detail-content {
        direction: rtl;
    }

    .service-detail:nth-child(even) .service-detail-content > * {
        direction: ltr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Image Loading & Placeholders
   ============================================ */

/* Image wrapper for lazy loading */
.img-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f0f5fa 100%);
}

/* Skeleton loading animation */
.img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.img-wrapper.loaded::before {
    display: none;
}

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

/* Lazy loaded images */
.lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lazy-img.loaded {
    opacity: 1;
}

/* Service card image placeholder */
.service-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f0f5fa 100%);
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.service-image.loaded::before {
    display: none;
}

/* Service detail image placeholder */
.service-detail-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f0f5fa 100%);
}

.service-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.service-detail-image.loaded::before {
    display: none;
}

/* Hero image placeholder */
.hero-image {
    position: relative;
}

.hero-image .img-wrapper {
    border-radius: var(--radius-lg);
    min-height: 300px;
}

/* Placeholder icon */
.img-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cbd5e1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Hide placeholder icon when image is loaded */
.img-wrapper.loaded .img-placeholder-icon,
.service-image.loaded .img-placeholder-icon,
.service-detail-image.loaded .img-placeholder-icon,
.carousel-image.loaded .img-placeholder-icon {
    opacity: 0;
    visibility: hidden;
}

/* Background image transition */
.service-image,
.service-detail-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease;
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .cta {
        display: none;
    }

    .hero {
        padding-top: var(--spacing-lg);
    }
}
