/* Lumin Mental Health - Shared Styles */

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F5F1EB;
    color: #2F4C44;
    line-height: 1.6;
    scroll-behavior: smooth;
    visibility: visible;
}

/* Color Variables */
:root {
    --forest-green: #2F4C44;
    --golden-glow: #F4A460;
    --cream: #F5F1EB;
    --sage-green: #8B9D83;
    --warm-light: #FFF8E7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--forest-green);
    font-weight: 300;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 200;
}

h2 {
    font-size: 2.5rem;
    font-weight: 300;
}

h3 {
    font-size: 1.75rem;
    font-weight: 400;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--forest-green);
    opacity: 0.9;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 1rem;
    position: relative;
}

/* Navigation Styles */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    padding: 0.75rem 0 1rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 80px;
    width: 780px;
    max-width: 90vw;
    margin: 0 auto;
    background: rgba(140, 128, 128, 0.15);
    border-radius: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border: 1px solid rgba(140, 128, 128, 0.31);
    transition: all 0.3s ease;
    padding-left: 30px;
}

.nav-container:hover {
    background: rgba(140, 128, 128, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(140, 128, 128, 0.45);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    width: 140px;
    height: 80px;
    padding: 4px;
    transition: all 0.5s ease;
    text-decoration: none;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    max-height: 90px;
    transform: scale(1.4) translateX(-10px);
    opacity: 1;
    image-rendering: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform-origin: center;
    will-change: transform;
    filter: drop-shadow(0 0 8px rgba(244, 164, 96, 0.3));
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest-green);
    opacity: 0;
    transition: opacity 0.5s ease;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.nav-logo:hover img {
    opacity: 0;
}

.nav-logo:hover .nav-logo-text {
    opacity: 1;
}

.nav-separator {
    color: rgba(47, 76, 68, 0.4);
    font-size: 1.125rem;
    font-weight: 300;
    padding: 0 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    width: 560px;
    max-width: 70vw;
    gap: 12px;
    transition: all 0.5s ease;
}

.nav-button {
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid;
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-button-active {
    background: rgba(47, 76, 68, 0.9);
    color: #F5F1EB;
    border-color: rgba(244, 164, 96, 0.6);
}

.nav-button-inactive {
    color: #2F4C44;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-button-inactive:hover {
    background: rgba(244, 164, 96, 0.2);
    border-color: rgba(244, 164, 96, 0.5);
    transform: translateY(-1px);
}

/* Cards and Components */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 241, 235, 0.75) 50%, rgba(244, 164, 96, 0.2) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 164, 96, 0.5);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 0 30px rgba(47, 76, 68, 0.3), 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(244, 164, 96, 0.7);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    gap: 0.5rem;
}

.btn-primary {
    color: #f5f1eb;
    background: linear-gradient(135deg, #2f4c44 0%, #3a5a50 100%);
    border: 2px solid rgba(244, 164, 96, 0.3);
    box-shadow: 0 4px 15px rgba(47, 76, 68, 0.2), 0 0 20px rgba(47, 76, 68, 0.1);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a5a50 0%, #2f4c44 100%);
    border-color: rgba(244, 164, 96, 0.6);
    box-shadow: 0 8px 25px rgba(47, 76, 68, 0.3), 0 0 30px rgba(244, 164, 96, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    color: #2f4c44;
    background: linear-gradient(135deg, #F4A460 0%, #E6965A 100%);
    border: 2px solid rgba(244, 164, 96, 0.3);
    box-shadow: 0 4px 15px rgba(244, 164, 96, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 164, 96, 0.4);
    background: linear-gradient(135deg, #E6965A 0%, #F4A460 100%);
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* Mobile Page Title Styles */
.mobile-page-title {
    display: none;
    color: var(--forest-green);
    font-weight: 500;
    font-size: 1rem;
    padding: 0 1rem;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 60;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--forest-green);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(245, 241, 235, 0.98);
    backdrop-filter: blur(20px);
    z-index: 55;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.mobile-menu-link {
    text-decoration: none;
    color: var(--forest-green);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.mobile-menu-link:hover {
    background: rgba(244, 164, 96, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-link.active {
    background: linear-gradient(135deg, var(--forest-green) 0%, rgba(47, 76, 68, 0.9) 100%);
    color: var(--cream);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2rem 0.5rem;
        min-height: auto;
    }
    
    .nav-container {
        width: 95vw;
        height: 70px;
        padding-left: 15px;
        padding-right: 15px;
        justify-content: space-between;
    }
    
    .nav-logo {
        width: 120px;
        height: 70px;
    }
    
    .nav-logo img {
        max-height: 70px;
        transform: scale(1.2) translateX(-10px);
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-page-title {
        display: block;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

/* Background Dots Animation */
.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-dot {
    position: absolute;
    background: radial-gradient(circle, rgba(244, 164, 96, 0.3) 0%, rgba(244, 164, 96, 0.1) 50%, transparent 100%);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(47, 76, 68, 0.05) 0%, rgba(244, 164, 96, 0.05) 100%);
    padding: 3rem 1rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: var(--forest-green);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--forest-green);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--golden-glow);
}