/*
Theme Name: Clear Blue Aquatics
Theme URI: https://clearblueaquatics.com
Author: Clear Blue Aquatics
Description: Professional swimming pool construction company theme - Clean and modern design
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: clear-blue-aquatics
*/

/* ================================
   CSS VARIABLES
   ================================ */
:root {
    --primary: #0066cc;
    --primary-dark: #004499;
    --secondary: #00a8e8;
    --accent: #ff6b35;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ================================
   RESET & BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

a:hover {
    color: var(--primary-dark);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER
   ================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact a {
    color: #fff;
    font-size: 14px;
    margin-right: 20px;
}

.header-contact a i {
    color: var(--secondary);
    margin-right: 5px;
}

.header-social a {
    color: #fff;
    margin-left: 15px;
    font-size: 14px;
}

.header-social a:hover {
    color: var(--secondary);
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
}

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

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

.nav-menu a:hover::after {
    width: 100%;
}

.header-btns {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

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

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

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

.btn-white:hover {
    background: var(--light-gray);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: var(--transition);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 80px 0;
}

.hero-subtitle {
    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.hero-text {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ================================
   SERVICES SECTION
   ================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

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

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

.service-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-image {
    width: 40%;
    min-height: 250px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-section {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin: 25px 0;
}

.about-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: var(--dark);
    font-weight: 500;
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li i {
    color: var(--primary);
    margin-right: 10px;
}

.about-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-form h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* ================================
   GALLERY SECTION
   ================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,102,204,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 24px;
}

/* ================================
   INFO SECTION
   ================================ */
.info-section {
    background: var(--dark);
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.info-card h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.info-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-about h3 span {
    color: var(--secondary);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-contact a i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
}

.footer-column h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    border: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ================================
   FLOATING BUTTONS
   ================================ */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.whatsapp-btn {
    background: #25d366;
}

.whatsapp-btn:hover {
    background: #128c7e;
}

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

.call-btn:hover {
    background: var(--primary-dark);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-btns {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .service-card {
        flex-direction: column;
    }
    
    .service-image,
    .service-content {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn span {
        display: none;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        justify-content: center;
        padding: 0;
    }
}
