/* 
* Classic Pool & Spa Store - Main Stylesheet
* Website: ClassicPoolAndSpaStore.com
* Theme: Professional Pool & Spa Services
*/

/* ===== BASE STYLES ===== */
:root {
    /* Primary Colors */
    --primary-dark: #023e8a;
    --primary-medium: #0077b6;
    --primary-light: #0096c7;
    
    /* Secondary Colors */
    --accent: #48cae4;
    --accent-light: #90e0ef;
    --accent-very-light: #caf0f8;
    
    /* Neutral Colors */
    --dark: #111827;
    --medium: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    
    /* Font Families */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 5rem;
    height: 0.25rem;
    background-color: var(--accent);
    border-radius: 0.125rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.col {
    flex: 1 0 100%;
    padding: 1rem;
}

section {
    padding: 5rem 0;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-weight: 600;
    position: relative;
}

.nav-link:before {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover:before {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20 20c0 0 10-5 20 0s20 0 20 0 10-5 20 0" stroke="rgba(144, 224, 239, 0.2)" stroke-width="2" fill="none"/><path d="M0 40c0 0 10-5 20 0s20 0 20 0 10-5 20 0s20 0 20 0 10-5 20 0" stroke="rgba(144, 224, 239, 0.2)" stroke-width="2" fill="none"/><path d="M0 60c0 0 10-5 20 0s20 0 20 0 10-5 20 0s20 0 20 0 10-5 20 0" stroke="rgba(144, 224, 239, 0.2)" stroke-width="2" fill="none"/><path d="M0 80c0 0 10-5 20 0s20 0 20 0 10-5 20 0s20 0 20 0 10-5 20 0" stroke="rgba(144, 224, 239, 0.2)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(72, 202, 228, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image svg {
    max-width: 100%;
    height: auto;
    width: 400px;
    filter: drop-shadow(0 10px 15px rgba(0, 119, 182, 0.2));
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.service-icon {
    background-color: var(--accent-very-light);
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.service-icon svg {
    width: 4rem;
    height: 4rem;
    color: var(--primary-medium);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.75rem;
}

/* ===== NEWS SECTION ===== */
.news {
    background-color: var(--white);
}

.news-intro {
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.news-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.news-links a {
    display: inline-block;
    background-color: var(--accent-very-light);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.news-links a:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(72, 202, 228, 0.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info ul {
    list-style: none;
    margin-top: 2rem;
}

.contact-info li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-info svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-medium);
    flex-shrink: 0;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(72, 202, 228, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-about {
    margin-right: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo svg {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    font-size: 1.25rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--white);
}

.footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: span 2;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .about-image svg {
        width: 300px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .service-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 5rem;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 5rem);
        padding: 2rem;
        transition: all 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0 0 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: span 1;
    }
}
