/* ========================================================
   Design System & Tokens (Splash Piscinas)
   ======================================================== */
:root {
    /* Colors - Brand */
    --primary-blue: #0A3D73;
    /* Splash Deep Blue */
    --accent-blue: #00ADEF;
    /* Splash Light Blue (water vibe) */
    --accent-light: #E6F7FF;
    /* Very soft blue for backgrounds */
    --brand-pink: #F4008B;
    /* Splash Pink Marker */

    /* Colors - UI */
    --white: #FFFFFF;
    --dark-text: #1E293B;
    --light-text: #64748B;
    --gray-bg: #F8FAFC;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128C7E;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --section-pad: 5rem 0;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================================================
   Reset & Basics
   ======================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================================
   Typography
   ======================================================== */
h1,
h2,
h3,
h4 {
    color: var(--primary-blue);
    line-height: 1.2;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

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

p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.text-highlight {
    color: var(--brand-pink);
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--brand-pink);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* ========================================================
   Buttons
   ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--brand-pink);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(244, 0, 139, 0.3);
}

.btn-primary:hover {
    background-color: #D6007A;
    /* Darker Pink */
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(244, 0, 139, 0.4);
}

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

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

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--brand-pink);
}

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

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
}

/* ========================================================
   Floating WhatsApp Button
   ======================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-hover);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================================
   Navbar
   ======================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
}

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

.nav-logo {
    height: 80px;
    /* Adjust for logo being white text on dark bg vs dark text on white bg */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.navbar .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* ========================================================
   Hero Section
   ======================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* parallax effect */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 61, 115, 0.8) 0%, rgba(0, 173, 239, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
}

.hero-content .text-highlight {
    color: #a8e5ff;
    /* Lighter blue for contrast on dark bg */
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--brand-pink);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Wave Dividers */
.wave-bottom,
.wave-top {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom {
    bottom: -1px;
}

.wave-top {
    top: -1px;
}

.wave-bottom svg,
.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-bottom .shape-fill {
    fill: var(--white);
}

/* ========================================================
   Authority Section
   ======================================================== */
.authority {
    padding: 4rem 0 5rem;
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(-50px);
}

.authority-item {
    text-align: center;
    padding: 1rem;
}

.authority-item .icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--accent-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.authority-item:hover .icon-circle {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.authority-item svg {
    width: 40px;
    height: 40px;
}

.authority-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.authority-item p {
    font-size: 1rem;
    margin: 0;
}

/* ========================================================
   About Section
   ======================================================== */
.about {
    padding: var(--section-pad);
    background-color: var(--white);
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-list {
    margin-top: 2rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.benefit-list svg {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-card strong {
    color: var(--brand-pink);
    font-size: 1.2rem;
    display: block;
}

.floating-card p {
    margin: 0;
    font-size: 0.9rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ========================================================
   Gallery Section
   ======================================================== */
.gallery {
    padding: 8rem 0;
    background-color: var(--gray-bg);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 61, 115, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .overlay {
    opacity: 1;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    margin-bottom: 1rem;
}

.product-info p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ========================================================
   Social Proof Section
   ======================================================== */
.social-proof {
    padding: var(--section-pad);
    background-color: var(--white);
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2rem;
    text-align: left;
    border-radius: 20px;
    background: var(--accent-light);
    border: 1px solid rgba(0, 173, 239, 0.1);
}

.stars {
    color: #FBBF24;
    /* Gold */
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--dark-text);
}

.client-info strong {
    display: block;
    color: var(--primary-blue);
}

.client-info span {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* ========================================================
   Footer CTA Section
   ======================================================== */
.footer-cta {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6rem 0 0 0;
    position: relative;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 4rem;
}

.cta-content h2,
.cta-content p {
    color: var(--white);
}

.cta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.detail-item svg {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    color: var(--accent-blue);
}

.glass-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-form h3 {
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.3);
}

.form-footer-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================================
   Animations (Scroll Reveal)
   ======================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================================
   Responsive Design
   ======================================================== */
@media (max-width: 992px) {

    .about-container,
    .cta-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
        /* image on top for mobile */
    }

    .floating-card {
        bottom: 10px;
        left: 10px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .authority-grid {
        transform: translateY(0);
        margin-top: 2rem;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
        /* Prevent overlap with absolute navbar */
        min-height: 100vh;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .navbar .btn-outline {
        display: none;
        /* Hide button on mobile nav if too cluttered */
    }

    .wave-bottom svg,
    .wave-top svg {
        height: 10px;
        /* Smaller waves on mobile */
    }

    .gallery {
        padding: 5rem 0;
    }
}