/*
==================================================
    Clean Landing Page CSS - High Performance
==================================================
*/

/* Variables */
:root {
    --primary-color: #2E86DE;
    --secondary-color: #FF6B9D;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header */
.site-header {
    transition: var(--transition);
}

.site-header .navbar-brand h1 {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition);
}

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

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 134, 222, 0.4);
    color: white;
}

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

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

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Fallback for browsers that don't support WebP */
    background-image: url('../images/landing.jpg');
    /* WebP for supported browsers */
    background-image: url('../images/landing.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 70vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 134, 222, 0.452), rgba(255, 107, 156, 0.479));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgb(40 21 40);
    font-weight: 500;
    margin-bottom: 1rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-actions .btn {
    margin: 0;
    min-width: 200px;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-actions .btn:hover::before {
    left: 100%;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #2E86DE 0%, #FF6B9D 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(46, 134, 222, 0.3);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 134, 222, 0.4);
    background: linear-gradient(135deg, #1a6bb8 0%, #e55a87 100%);
    color: white;
}

.hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-body {
    padding: 2rem;
}

/* Service Icons */
.card-body i {
    transition: transform var(--transition);
}

.card:hover i {
    transform: scale(1.1);
}

/* Images */
.img-fluid {
    border-radius: var(--border-radius);
}

/* Contact Info */
.contact-info a {
    color: var(--text-color);
    transition: color var(--transition);
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Period Calculator */
#calculator-form .form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: border-color var(--transition);
}

#calculator-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 222, 0.25);
}

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

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

.loading {
    opacity: 0;
}

.loaded {
    animation: fadeInUp 0.6s ease-out;
}

/* Section Spacing */
.section-padding {
    padding: 4rem 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
}

footer a {
    transition: color var(--transition);
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Social Icons */
.fab {
    font-size: 1.5rem;
    transition: transform var(--transition);
}

.fab:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        background-attachment: scroll;
        /* Fixed attachment can cause issues on mobile */
        /* Fallback for browsers that don't support WebP */
        background-image: url('../images/landing.jpg');
        /* WebP for supported browsers */
        background-image: url('../images/landing.webp');
        background-size: cover;
        background-position: center center;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }

    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
        color: rgb(106, 59, 102);
        font-weight: 500;
    }

    .section-padding {
        padding: 1.5rem 0;
    }
}

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

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

/* Loading States */
.card,
.btn,
.form-control {
    will-change: transform;
}

/* Accessibility */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 222, 0.25);
}

/* Print Styles */
@media print {

    .site-header,
    footer,
    .btn {
        display: none !important;
    }

    .hero-section {
        background: none !important;
        color: black !important;
    }
}