/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
   :root {
    /* Color Palette - Bright Sunshine Theme */
    --clr-bg-base: #ffffff;
    --clr-bg-elevated: #f8f9fa;
    --clr-bg-elevated-glass: rgba(255, 255, 255, 0.85);
    --clr-bg-darker: #f1f3f5;
    
    --clr-accent-primary: #e69c24; /* Warm Sunshine Gold */
    --clr-accent-hover: #ffb732;
    --clr-accent-dim: rgba(230, 156, 36, 0.15);
    
    --clr-text-main: #2c3e50;
    --clr-text-muted: #5a6c7d;
    --clr-text-dark: #000000;
    
    --clr-border: rgba(0, 0, 0, 0.08);
    --clr-border-highlight: rgba(230, 156, 36, 0.3);

    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(230, 156, 36, 0.2);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg-base);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
    font-size: 1.15rem;
}

em, .italicized {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--clr-text-main);
    font-weight: normal;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.bg-darker {
    background-color: var(--clr-bg-darker);
}

.text-center { text-align: center; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-xl { margin-bottom: 4rem; }

.accent {
    color: var(--clr-accent-primary);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subheading {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-accent-primary);
    margin-bottom: 0.5rem;
}

.heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--clr-accent-primary);
    margin: 0 auto;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .heading {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent-primary);
    color: var(--clr-text-dark);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-main);
    border-color: var(--clr-border-highlight);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--clr-accent-primary);
    background-color: var(--clr-accent-dim);
    color: var(--clr-accent-primary);
    transform: translateY(-2px);
}

.text-link {
    color: var(--clr-accent-primary);
    position: relative;
    padding-bottom: 2px;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-accent-primary);
    transition: width var(--transition-medium);
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-medium);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: var(--clr-bg-elevated-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom-color: var(--clr-border);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    gap: 0.5rem;
}

.nav-seal {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--clr-text-main);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-main);
    opacity: 0.8;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--clr-accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: var(--clr-accent-primary);
    border-radius: 4px;
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--clr-text-main);
    transition: all var(--transition-fast);
}

@media (max-width: 2000px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--clr-bg-base);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-medium);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../assets/sunshine.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--clr-accent-dim);
    color: var(--clr-accent-primary);
    border: 1px solid var(--clr-border-highlight);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

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

@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.25rem; }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Mission Grid
   ========================================================================== */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .mission-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mission-card {
    background-color: var(--clr-bg-elevated);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(230, 156, 36, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 1;
    pointer-events: none;
}

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

.mission-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-border-highlight);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    font-size: 2rem;
    color: var(--clr-accent-primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.mission-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--clr-accent-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mission-card p {
    font-size: 1.15rem;
    margin-bottom: 0;
}

.featured-card {
    background: linear-gradient(135deg, var(--clr-bg-elevated) 0%, rgba(230, 156, 36, 0.05) 100%);
    border-color: var(--clr-border-highlight);
}

@media (min-width: 768px) {
    .col-span-2 {
        grid-column: 1 / -1;
    }
}

.card-hr {
    border: 0;
    height: 1px;
    background-color: var(--clr-border);
    margin: 1.5rem 0;
}

.legal-note {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.7;
}

/* ==========================================================================
   Tenets List
   ========================================================================== */
.tenets-list {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 8rem;
    position: relative;
    z-index: 2;
}

.tenet-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--clr-border);
    transition: all var(--transition-fast);
}

.tenet-item:last-child {
    border-bottom: none;
}

.tenet-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.tenet-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--clr-accent-dim);
    font-weight: 700;
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.tenet-item:hover .tenet-number {
    color: var(--clr-accent-primary);
    transform: scale(1.1);
}

.tenet-content h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tenet-content p {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .tenet-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
}

.decorative-waves {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   PERSPECTIVES SECTION
   ========================================================================== */
.perspectives-section {
    padding: 6rem 0;
    background-color: var(--bg-alt);
    position: relative;
    z-index: 2;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--clr-text-main);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.75);
}

.blog-image {
    width: 100%;
    height: 200px;
    background-color: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.5;
}

/* Icon placeholders for the blog cards */
.blog-card:nth-child(1) .blog-image-placeholder::after {
    content: "🏛️"; /* Temple icon */
}

.blog-card:nth-child(2) .blog-image-placeholder::after {
    content: "📖"; /* Chronicles/Journal icon */
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.blog-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--clr-text-dark);
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
    color: var(--clr-accent-primary);
}

.blog-excerpt {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    color: var(--clr-text-main);
}

.blog-citation {
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.blog-citation::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: var(--primary);
    margin-right: 10px;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-bg-darker);
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-links a:hover {
    color: var(--clr-accent-primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-bg-base);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-medium);
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--clr-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Blog Thread Feeds */
.thread-feed { max-width: 800px; margin: 4rem auto; display: flex; flex-direction: column; gap: 3rem; }
.thread-post { background: var(--clr-bg-elevated); border-radius: 12px; padding: 2.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border); transition: transform var(--transition-fast), box-shadow var(--transition-fast); text-align: left; }
.thread-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.thread-post-date { font-size: 0.85rem; color: var(--clr-accent-primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; font-weight: 600; }
.thread-post-title { font-family: var(--font-serif); font-size: 2rem; color: var(--clr-text-heading); margin-bottom: 1rem; line-height: 1.3; }
.thread-post-excerpt { font-size: 1.1rem; line-height: 1.6; color: var(--clr-text-main); margin-bottom: 1.5rem; }
.thread-read-more { display: inline-block; color: var(--clr-text-main); font-weight: 600; text-decoration: none; font-size: 1rem; border-bottom: 2px solid var(--clr-accent-primary); padding-bottom: 2px; transition: color 0.2s ease; }
.thread-read-more:hover { color: var(--clr-accent-primary); }

/* Glassmorphic Cards (for the Mission section) */
.glass-card-hop {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform var(--transition-medium), background var(--transition-fast);
}

.glass-card-hop:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Parallax Background (Following Sunshine)
   ========================================================================== */
#about, #perspectives, #sanctuary, #contact {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../assets/sunshine.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: transparent !important;
}

#tenets {
    position: relative;
    z-index: 2;
    background-color: var(--clr-bg-darker);
}
