/* ===================================
   WATERKEEPERS BRAND COLOR SYSTEM
   =================================== */

:root {
    /* Primary Water Colors - Muted and Natural */
    --water-deep: #2C5F7C;      /* Deep water blue - primary brand color */
    --water-flow: #4A7C94;       /* Flowing water - secondary blue */
    --water-shallow: #6B95AA;   /* Shallow water - lighter blue */
    --water-mist: #A8C5D6;      /* Misty blue - subtle backgrounds */
    --water-foam: #D4E5ED;      /* Foam white-blue - very light backgrounds */
    
    /* Earth Tones - Grounding Elements */
    --stone-dark: #4A4E54;      /* River stone - text and borders */
    --stone-medium: #6C7279;    /* Weathered stone - secondary text */
    --stone-light: #9FA3A9;     /* Dry stone - subtle text */
    --sand: #E8E2D5;            /* Sand - warm neutral background */
    
    /* Accent Colors - Sacred Elements */
    --spring-pure: #E6F3F7;     /* Pure spring - cleanest white-blue */
    --moss-green: #5A7D6F;      /* Moss on stones - life accent */
    --clay-warm: #B5937E;       /* Clay vessel - warm accent */
    --ritual-gold: #C9A961;     /* Ceremonial gold - special elements */
    
    /* Functional Colors */
    --pure-white: #FFFFFF;
    --shadow: rgba(44, 95, 124, 0.15);
    --overlay: rgba(44, 95, 124, 0.85);
    
    /* Typography */
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: 'Helvetica Neue', 'Arial', sans-serif;
    --font-sacred: 'Palatino', 'Book Antiqua', serif;
}

/* ===================================
   GLOBAL STYLES
   =================================== */

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

body {
    font-family: var(--font-secondary);
    color: var(--stone-dark);
    background-color: var(--spring-pure);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===================================
   RIPPLE BACKGROUND ANIMATION
   =================================== */

.ripple-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border: 2px solid var(--water-deep);
    border-radius: 50%;
    animation: ripple-effect 4s linear infinite;
}

.ripple-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.ripple-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.ripple-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* ===================================
   HEADER AND NAVIGATION
   =================================== */

.main-header {
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--water-foam) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Three Vessels Symbol */
.three-vessels {
    display: flex;
    gap: 0.5rem;
}

.vessel {
    width: 20px;
    height: 30px;
    border-radius: 0 0 50% 50%;
    position: relative;
    overflow: hidden;
}

.vessel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent, currentColor);
    animation: water-fill 3s ease-in-out infinite;
}

.vessel-testing {
    background: var(--water-foam);
    color: var(--water-shallow);
}

.vessel-transformation {
    background: var(--water-foam);
    color: var(--ritual-gold);
}

.vessel-memory {
    background: var(--water-foam);
    color: var(--water-deep);
}

@keyframes water-fill {
    0%, 100% { height: 60%; }
    50% { height: 80%; }
}

.site-title {
    font-family: var(--font-sacred);
    color: var(--water-deep);
    font-size: 1.5rem;
    font-weight: normal;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--stone-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--water-flow);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--water-deep);
}

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

.nav-cta {
    background: var(--water-deep);
    color: var(--pure-white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--water-flow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

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

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(180deg, var(--water-mist) 0%, var(--spring-pure) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flow-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z" fill="%23D4E5ED" opacity="0.5"/></svg>');
    animation: flow 20s linear infinite;
}

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

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 3rem;
}

.hero-title {
    font-family: var(--font-sacred);
    font-size: 3rem;
    color: var(--water-deep);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--stone-medium);
    margin-bottom: 2rem;
}

/* Sacred Drops Animation */
.sacred-drops {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.drop {
    position: absolute;
    bottom: 100%;
    width: 10px;
    height: 10px;
    background: var(--water-flow);
    border-radius: 50% 50% 50% 0;
    opacity: 0.7;
    animation: fall 3s linear infinite;
}

.drop:nth-child(1) { left: 10%; animation-delay: 0s; }
.drop:nth-child(2) { left: 25%; animation-delay: 0.5s; }
.drop:nth-child(3) { left: 40%; animation-delay: 1s; }
.drop:nth-child(4) { left: 55%; animation-delay: 1.5s; }
.drop:nth-child(5) { left: 70%; animation-delay: 2s; }
.drop:nth-child(6) { left: 85%; animation-delay: 2.5s; }
.drop:nth-child(7) { left: 95%; animation-delay: 3s; }

@keyframes fall {
    0% {
        bottom: 100%;
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 0;
        opacity: 0;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--water-deep);
    color: var(--pure-white);
}

.btn-primary:hover {
    background: var(--water-flow);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--water-deep);
    color: var(--pure-white);
}

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

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

.btn-outline:hover {
    background: var(--pure-white);
    color: var(--water-deep);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===================================
   THREE STREAMS SECTION
   =================================== */

.three-streams {
    padding: 5rem 0;
    background: var(--pure-white);
}

.section-title {
    text-align: center;
    font-family: var(--font-sacred);
    font-size: 2.5rem;
    color: var(--water-deep);
    margin-bottom: 3rem;
}

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

.stream-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: var(--water-foam);
    transition: all 0.3s ease;
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow);
}

.stream-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--water-shallow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-ripple {
    width: 40px;
    height: 40px;
    background: var(--pure-white);
    border-radius: 50%;
}

.stream-card h3 {
    font-family: var(--font-sacred);
    color: var(--water-deep);
    margin-bottom: 1rem;
}

.stream-link {
    color: var(--water-flow);
    text-decoration: none;
    font-weight: 500;
}

.stream-link:hover {
    color: var(--water-deep);
}

/* ===================================
   IMPACT SECTION
   =================================== */

.impact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--water-mist) 0%, var(--water-foam) 100%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.impact-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--water-deep);
    font-family: var(--font-sacred);
}

.impact-label {
    color: var(--stone-medium);
    margin-top: 0.5rem;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    position: relative;
    padding: 5rem 0;
    background: var(--water-deep);
    color: var(--pure-white);
    text-align: center;
}

.water-wave-top,
.water-wave-bottom {
    position: absolute;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 50"><path d="M0,25 Q300,0 600,25 T1200,25 L1200,50 L0,50 Z" fill="%23FFFFFF"/></svg>');
    background-size: cover;
}

.water-wave-top {
    top: 0;
    transform: rotate(180deg);
}

.water-wave-bottom {
    bottom: 0;
}

.cta-section h2 {
    font-family: var(--font-sacred);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===================================
   RESOURCES SECTION
   =================================== */

.resources-section {
    padding: 5rem 0;
    background: var(--pure-white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    padding: 2rem;
    background: var(--spring-pure);
    border-radius: 10px;
    border: 1px solid var(--water-mist);
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--water-flow);
    box-shadow: 0 10px 25px var(--shadow);
}

.resource-card h3 {
    color: var(--water-deep);
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--water-flow);
    text-decoration: none;
    font-weight: 500;
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */

.newsletter-section {
    padding: 4rem 0;
    background: var(--water-foam);
    text-align: center;
}

.newsletter-section h2 {
    font-family: var(--font-sacred);
    color: var(--water-deep);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
    gap: 1rem;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--water-mist);
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--water-flow);
}

/* ===================================
   FOOTER
   =================================== */

.main-footer {
    background: var(--water-deep);
    color: var(--pure-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--water-mist);
}

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

.footer-section a {
    color: var(--pure-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--water-flow);
    padding-top: 2rem;
    text-align: center;
}

.footer-quote {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* ===================================
   FLOATING ACTION BUTTON
   =================================== */

.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--water-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1);
    background: var(--water-flow);
}

.fab-icon {
    font-size: 1.5rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}