/* =====================================================
   Saltwater Suds Auto Spa - Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --deep-ocean: #0a1628;
    --navy: #1a2d4a;
    --wave-blue: #2d5a87;
    --coastal-blue: #4a90b8;
    --seafoam: #7ec8e3;
    --foam-white: #e8f4f8;
    --pearl: #f8fcfd;
    --sand: #d4c5a9;
    --palm-dark: #1a3d2e;
    --accent-gold: #c9a962;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--deep-ocean);
    color: var(--pearl);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =====================================================
   Animated Ocean Background
   ===================================================== */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, 
        var(--deep-ocean) 0%, 
        var(--navy) 40%, 
        var(--wave-blue) 100%);
}

.wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,90 350,30 600,60 C850,90 1050,30 1200,60 L1200,120 L0,120 Z' fill='%234a90b8' fill-opacity='0.3'/%3E%3C/svg%3E");
    background-size: 1200px 100%;
    animation: wave 15s linear infinite;
    opacity: 0.6;
}

.wave-layer:nth-child(2) {
    bottom: 10px;
    animation: wave 12s linear infinite reverse;
    opacity: 0.4;
}

.wave-layer:nth-child(3) {
    bottom: 20px;
    animation: wave 20s linear infinite;
    opacity: 0.2;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =====================================================
   Navigation
   ===================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, transparent 100%);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.98);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo a {
    display: block;
}

.nav-logo img {
    height: 60px;
    transition: height 0.3s ease;
}

nav.scrolled .nav-logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--pearl);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--seafoam);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--seafoam);
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--coastal-blue), var(--wave-blue));
    color: var(--pearl) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(74, 144, 184, 0.4);
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 144, 184, 0.6);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--pearl);
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    width: min(400px, 80vw);
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--pearl) 0%, var(--seafoam) 50%, var(--pearl) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--foam-white);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.7s both;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--coastal-blue), var(--wave-blue));
    color: var(--pearl);
    box-shadow: 0 8px 30px rgba(74, 144, 184, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(74, 144, 184, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--pearl);
    border: 2px solid var(--seafoam);
}

.btn-secondary:hover {
    background: var(--seafoam);
    color: var(--deep-ocean);
}

.btn-full {
    width: 100%;
}

/* =====================================================
   Sections - General
   ===================================================== */
section {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--pearl);
}

.section-header .accent-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--coastal-blue), var(--seafoam));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-header p {
    color: var(--foam-white);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =====================================================
   Services Section
   ===================================================== */
#services {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 45, 74, 0.5) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.services-category {
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--seafoam);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(126, 200, 227, 0.2);
}

.service-card {
    background: linear-gradient(145deg, rgba(26, 45, 74, 0.8), rgba(10, 22, 40, 0.9));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(126, 200, 227, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(126, 200, 227, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(126, 200, 227, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--coastal-blue), var(--wave-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--pearl);
}

.service-card p {
    color: var(--foam-white);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--seafoam);
}

.service-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--foam-white);
}

.service-card-addon {
    border-style: dashed;
    border-color: rgba(201, 169, 98, 0.3);
}

.service-card-addon:hover {
    border-color: rgba(201, 169, 98, 0.6);
}

.service-card-addon .service-price {
    color: var(--accent-gold);
}

/* =====================================================
   Why Choose Us Section
   ===================================================== */
#why-us {
    background: linear-gradient(180deg, rgba(26, 45, 74, 0.5) 0%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(74, 144, 184, 0.2), rgba(126, 200, 227, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid rgba(126, 200, 227, 0.2);
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    border-color: var(--seafoam);
    box-shadow: 0 0 40px rgba(126, 200, 227, 0.3);
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--pearl);
}

.feature p {
    color: var(--foam-white);
    line-height: 1.7;
}

/* =====================================================
   Booking Section
   ===================================================== */
#book {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 45, 74, 0.7) 50%, rgba(10, 22, 40, 0.9) 100%);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(26, 45, 74, 0.9), rgba(10, 22, 40, 0.95));
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(126, 200, 227, 0.15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.booking-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.booking-intro p {
    color: var(--foam-white);
    line-height: 1.7;
}

.square-widget {
    background: var(--pearl);
    border-radius: 15px;
    padding: 1rem;
    min-height: 500px;
}

.square-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: var(--navy);
    padding: 2rem;
}

.square-placeholder h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.square-placeholder p {
    color: var(--wave-blue);
    margin-bottom: 2rem;
    max-width: 400px;
}

.square-btn {
    background: linear-gradient(135deg, var(--coastal-blue), var(--wave-blue));
    color: var(--pearl);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.square-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 184, 0.4);
}

/* =====================================================
   Service Area Section
   ===================================================== */
#area {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, transparent 100%);
}

.area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.area-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--pearl);
}

.area-text p {
    color: var(--foam-white);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.area-note {
    margin-top: 1.5rem;
}

.area-list {
    list-style: none;
}

.area-list li {
    padding: 0.75rem 0;
    color: var(--foam-white);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(126, 200, 227, 0.1);
}

.area-list li::before {
    content: '✓';
    color: var(--seafoam);
    font-weight: bold;
}

.area-map {
    background: linear-gradient(145deg, rgba(26, 45, 74, 0.8), rgba(10, 22, 40, 0.9));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(126, 200, 227, 0.15);
    text-align: center;
}

.area-map-placeholder {
    background: rgba(74, 144, 184, 0.1);
    border-radius: 15px;
    padding: 3rem;
    color: var(--foam-white);
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pearl);
}

.map-subtext {
    margin-top: 0.5rem;
    color: var(--foam-white);
}

/* =====================================================
   Contact Section
   ===================================================== */
#contact {
    background: linear-gradient(180deg, transparent 0%, var(--deep-ocean) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--coastal-blue), var(--wave-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    color: var(--pearl);
}

.contact-item p,
.contact-item a {
    color: var(--foam-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--seafoam);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(74, 144, 184, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pearl);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 200, 227, 0.2);
}

.social-link:hover {
    background: var(--coastal-blue);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   Contact Form
   ===================================================== */
.contact-form {
    background: linear-gradient(145deg, rgba(26, 45, 74, 0.8), rgba(10, 22, 40, 0.9));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(126, 200, 227, 0.15);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--pearl);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: 10px;
    color: var(--pearl);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--seafoam);
    box-shadow: 0 0 20px rgba(126, 200, 227, 0.2);
}

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

.form-group select option {
    background: var(--deep-ocean);
    color: var(--pearl);
}

/* =====================================================
   Footer
   ===================================================== */
footer {
    background: var(--deep-ocean);
    padding: 3rem 5%;
    border-top: 1px solid rgba(126, 200, 227, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 50px;
}

.footer-tagline {
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-copyright {
    color: var(--foam-white);
    font-size: 0.9rem;
}

/* =====================================================
   Scroll Reveal Animations
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   Mobile Responsive
   ===================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .area-content {
        grid-template-columns: 1fr;
    }

    .booking-container {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem 4%;
    }

    .nav-logo img {
        height: 45px;
    }

    .hero {
        padding: 100px 4% 60px;
    }

    .hero-logo {
        width: 280px;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
