/* Custom CSS for Pure Blue Pools */

:root {
    --primary-color: #0066cc;
    --secondary-color: #00b4d8;
    --accent-color: #90e0ef;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 140px;
    /* Keep original navbar height */
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 140px;
    /* Fixed navbar height */
    overflow: visible;
    /* Allow logo to extend beyond navbar */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Logo Styles */
.navbar-brand img {
    max-height: 200px;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1000;
    /* Ensure logo appears above other content */
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Logo hover effect */
.navbar-brand:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 160px;
    }

    .navbar {
        padding: 0.75rem 0 !important;
        height: 100px;
        /* Smaller navbar on tablet */
    }

    body {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        max-height: 120px;
    }

    .navbar {
        padding: 0.5rem 0 !important;
        height: 80px;
        /* Even smaller navbar on mobile */
    }

    body {
        padding-top: 80px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 70vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Feature Icons */
.feature-icon,
.service-icon,
.contact-icon,
.service-area-icon,
.process-step {
    width: 80px;
    height: 80px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commitment-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.commitment-icon i {
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step {
    width: 60px;
    height: 60px;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.card-footer {
    border-radius: 0 0 15px 15px;
    border: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052a3, #0094c6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

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

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

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Price Badge */
.price-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 1rem 0;
}

/* Contact Items */
.contact-item {
    padding: 1rem 0;
}

/* Service Process */
.process-step {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-weight: bold;
}

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

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

.card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Section spacing */
section {
    position: relative;
    overflow: hidden;
}

/* Background patterns */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    font-family: serif;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
}

footer a {
    transition: color 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .feature-icon,
    .service-icon {
        width: 60px;
        height: 60px;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* Service filtering */
.service-card {
    transition: all 0.3s ease;
}

.service-card[style*="display: none"] {
    display: none !important;
}

/* Alert improvements */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Loading states */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form validation styles */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.38 1.38 2.95-2.95.94.94-3.89 3.89z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 7.4 5.8 6'/%3e%3c/svg%3e");
}

/* Carousel fixes for consistent image display */
.carousel {
    overflow: hidden;
}

.carousel-inner {
    height: 500px;
}

.carousel-item {
    height: 500px;
    transition: transform 0.6s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Ensure smooth transitions */
.carousel-item.active {
    display: block !important;
}

/* Mobile responsive carousel */
@media (max-width: 768px) {

    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        height: 300px;
    }
}
