/* sustaining.quest - styles.css */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Space Grotesk (headings), Inter (body) */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--deep-base);
    color: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #1a2040 25%, #1a1a2e 50%, #1e2a45 75%, #1a1a2e 100%);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 1s ease;
}

.aurora-bg.aurora-active {
    opacity: 1;
    animation: auroraShift 20s ease infinite;
}

@keyframes auroraShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 25%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 25% 0%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 2rem;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-header.scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 2rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--warm-white);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--muted-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--warm-white);
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

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

.hero-botanical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue), #5a9fe5);
    color: var(--warm-white);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 217, 0.35);
}

/* Hero Geometric Shapes */
.hero-geometric {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.geo-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
}

.geo-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-gold);
    bottom: 10%;
    left: -80px;
}

.geo-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-blue);
    top: 40%;
    right: 15%;
}

/* Divider */
.divider-section {
    margin-top: -2px;
}

.geo-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Sections */
.journey-section,
.stories-section {
    background-color: var(--warm-white);
    color: var(--deep-base);
    padding: 5rem 2rem;
}

.pillars-section,
.actions-section {
    padding: 5rem 2rem;
    background-color: var(--deep-base);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-intro {
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 3rem;
    opacity: 0.8;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.section-intro.visible {
    opacity: 0.8;
    transform: translateY(0);
}

.journey-section .section-intro,
.stories-section .section-intro {
    color: var(--muted-gray);
}

.pillars-section .section-intro,
.actions-section .section-intro {
    color: rgba(245, 240, 232, 0.7);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    gap: 1.25rem;
}

.bento-journey {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}

.bento-journey .bento-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.bento-journey .bento-medium {
    grid-column: 2 / 4;
}

/* Bento Cards */
.bento-card {
    background: rgba(26, 26, 46, 0.05);
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
}

.bento-card.visible,
.bento-card.stagger-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bento-card.hovered {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--deep-base);
}

.bento-card p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.bento-botanical {
    position: absolute;
    top: 1rem;
    right: 1rem;
    pointer-events: none;
}

.botanical-small {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
}

.bento-accent-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    border-radius: 2px;
    margin-top: 1rem;
}

/* Pillar Cards */
.bento-pillars {
    grid-template-columns: repeat(4, 1fr);
}

.pillar-card {
    background: rgba(245, 240, 232, 0.05);
    border: 1px solid rgba(245, 240, 232, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.pillar-card.visible,
.pillar-card.stagger-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.pillar-card.hovered {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(74, 144, 217, 0.15);
    border-color: rgba(74, 144, 217, 0.3);
}

.pillar-icon {
    margin-bottom: 1.25rem;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--warm-white);
}

.pillar-card p {
    color: rgba(245, 240, 232, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Action Cards */
.bento-actions {
    grid-template-columns: repeat(3, 1fr);
}

.action-card {
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.action-card.visible,
.action-card.stagger-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.action-card.hovered {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(232, 184, 75, 0.12);
    border-color: rgba(232, 184, 75, 0.25);
}

.action-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(74, 144, 217, 0.2);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.action-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--warm-white);
}

.action-card p {
    color: rgba(245, 240, 232, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.action-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(232, 184, 75, 0.12);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Story Cards */
.bento-stories {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.story-featured {
    grid-row: 1 / 3;
}

.story-card {
    background: rgba(26, 26, 46, 0.04);
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.story-card.visible,
.story-card.stagger-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-card.hovered {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.1);
}

.story-botanical {
    position: absolute;
    top: 1rem;
    right: 1rem;
    pointer-events: none;
}

.story-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(74, 144, 217, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.story-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--deep-base);
}

.story-card p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.story-read-more {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.story-read-more:hover {
    color: var(--accent-gold);
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--deep-base), #1e2a45);
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 3rem;
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 24px;
}

.cta-botanical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--warm-white);
}

.cta-box p {
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta-input {
    padding: 0.85rem 1.5rem;
    background: rgba(245, 240, 232, 0.08);
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-radius: 50px;
    color: var(--warm-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 280px;
    outline: none;
    transition: border-color 0.3s ease;
}

.cta-input::placeholder {
    color: rgba(245, 240, 232, 0.4);
}

.cta-input:focus {
    border-color: var(--primary-blue);
}

.cta-input.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.cta-button {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold), #d4a63a);
    color: var(--deep-base);
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 184, 75, 0.3);
}

.cta-button.success {
    background: linear-gradient(135deg, #4a90d9, #5a9fe5);
    color: var(--warm-white);
}

/* Footer */
.site-footer {
    background: var(--deep-base);
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    padding: 3rem 2rem 2rem;
}

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

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--warm-white);
}

.footer-tagline {
    color: var(--muted-gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

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

.footer-links a {
    color: var(--muted-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    width: 100%;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-bottom p {
    color: rgba(108, 117, 125, 0.6);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .bento-journey {
        grid-template-columns: 1fr;
    }
    .bento-journey .bento-large {
        grid-column: 1;
        grid-row: auto;
    }
    .bento-journey .bento-medium {
        grid-column: 1;
    }
    .bento-pillars {
        grid-template-columns: 1fr;
    }
    .bento-actions {
        grid-template-columns: 1fr;
    }
    .bento-stories {
        grid-template-columns: 1fr;
    }
    .story-featured {
        grid-row: auto;
    }
    .cta-form {
        flex-direction: column;
        align-items: center;
    }
    .cta-input {
        width: 100%;
        max-width: 320px;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
