/* ============================================
   ALETHEIA COUNSELING - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --forest-deep: #1F4622;
    --forest-medium: #2d5a31;
    --sage: #7C977E;
    --sage-light: #A1BD9D;
    --sage-muted: #96B699;
    --cream: #F8F6F1;
    --cream-warm: #F5F2EB;
    --charcoal: #283129;
    --text-primary: #2a2f2b;
    --text-secondary: #5a6b5c;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 1000;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--forest-deep);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--forest-deep);
    text-decoration: none;
    transition: color 0.3s ease;
}

#navbar .nav-links a {
    color: rgba(248, 246, 241, 0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#navbar .nav-links a:hover {
    color: #ffffff;
}

#navbar.scrolled .nav-links a {
    color: var(--text-primary);
    text-shadow: none;
}

#navbar.scrolled .nav-links a:hover {
    color: var(--forest-deep);
}

a:hover {
    color: var(--sage);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(248, 246, 241, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(31, 70, 34, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 55px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(248, 246, 241, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sage), var(--forest-deep));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

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

.nav-links a.active {
    color: #ffffff;
}

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

.nav-cta {
    background: var(--forest-deep) !important;
    color: var(--cream) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    transition: all 0.3s ease !important;
}

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

.nav-cta:hover {
    background: var(--forest-medium) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 70, 34, 0.25);
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: rgba(248, 246, 241, 0.9) !important;
    transition: all 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(31, 70, 34, 0.97);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-menu a {
    font-size: 1.5rem;
    color: rgba(248, 246, 241, 0.9);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(248, 246, 241, 0.9);
    cursor: pointer;
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-medium) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(161, 189, 157, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--cream);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--sage-light);
    font-size: 1.2rem;
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--sage-light);
}

.breadcrumb a:hover {
    color: var(--cream);
}

.breadcrumb span {
    color: var(--sage-muted);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 6rem 0;
}

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

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Background variants */
.bg-cream {
    background: var(--cream);
    color: var(--text-primary);
}

.bg-cream h1, .bg-cream h2, .bg-cream h3, .bg-cream h4,
.bg-cream p, .bg-cream li, .bg-cream span {
    color: var(--text-primary);
}

.bg-cream-warm {
    background: var(--cream-warm);
    color: var(--text-primary);
}

.bg-cream-warm h1, .bg-cream-warm h2, .bg-cream-warm h3, .bg-cream-warm h4,
.bg-cream-warm p, .bg-cream-warm li, .bg-cream-warm span {
    color: var(--text-primary);
}

.bg-forest {
    background: var(--forest-deep);
    color: var(--cream);
}

.bg-forest h2,
.bg-forest h3 {
    color: var(--cream);
}

.bg-sage {
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 100%);
    color: var(--forest-deep);
}

.bg-sage h1, .bg-sage h2, .bg-sage h3, .bg-sage h4,
.bg-sage p, .bg-sage li, .bg-sage span {
    color: var(--forest-deep);
}

.section-header p {
    color: var(--text-secondary);
}

.bg-cream .section-header p,
.bg-cream-warm .section-header p {
    color: var(--text-secondary);
}

.check-list li {
    color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--forest-deep);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--forest-medium);
    color: var(--cream);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(31, 70, 34, 0.25);
}

.btn-secondary {
    background: var(--cream);
    color: var(--forest-deep);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    color: var(--forest-deep);
}

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

.btn-outline:hover {
    background: var(--forest-deep);
    color: var(--cream);
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(31, 70, 34, 0.08);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 70, 34, 0.12);
}

.card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Card icon */
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sage), var(--sage-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--forest-deep);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

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

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

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

/* ============================================
   LISTS
   ============================================ */
.check-list {
    list-style: none;
}

.check-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.check-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--sage), var(--forest-deep));
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--sage-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--forest-deep);
    box-shadow: 0 0 0 4px rgba(31, 70, 34, 0.1);
}

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

/* Dark form variant */
.form-dark .form-group label {
    color: var(--sage-light);
}

.form-dark .form-group input,
.form-dark .form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--cream);
}

.form-dark .form-group input::placeholder,
.form-dark .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-dark .form-group input:focus,
.form-dark .form-group textarea:focus {
    border-color: var(--sage);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

/* ============================================
   TEAM MEMBER CARDS
   ============================================ */
.team-card {
    text-align: center;
}

.team-card-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--sage-light);
    transition: all 0.4s ease;
}

.team-card:hover .team-card-image {
    border-color: var(--forest-deep);
    transform: scale(1.05);
}

.team-card h3 {
    margin-bottom: 0.25rem;
}

.team-card .role {
    color: var(--sage);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   BADGES / TAGS
   ============================================ */
.badge {
    display: inline-block;
    background: rgba(124, 151, 126, 0.2);
    color: var(--forest-deep);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--forest-deep);
}

/* Insurance badges grid */
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.badges-grid .badge {
    transition: all 0.3s ease;
}

.badges-grid .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 70, 34, 0.15);
}

/* ============================================
   STEPS / TIMELINE
   ============================================ */
.steps-container {
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-light), var(--forest-deep));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--cream);
    border: 3px solid var(--forest-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--forest-deep);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background: var(--forest-deep);
    color: var(--cream);
    transform: scale(1.1);
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    border-bottom: 1px solid var(--sage-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--forest-deep);
}

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(124, 151, 126, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--forest-deep);
}

.bg-forest .contact-item-icon {
    background: rgba(124, 151, 126, 0.2);
}

.bg-forest .contact-item-icon svg {
    stroke: var(--sage-light);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
}

.bg-forest .contact-item h4 {
    color: var(--cream);
}

.bg-forest .contact-item p,
.bg-forest .contact-item a {
    color: var(--sage-light);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #1a1f1b;
    color: var(--sage-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
    margin-bottom: 0;
}

.footer-links h4 {
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

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

.footer-links a {
    color: var(--sage-light);
    font-size: 0.95rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--sage);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--cream);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

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

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .page-header {
        padding: 8rem 0 3rem;
    }

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

    .steps-container::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
