/* rational.quest - Art Deco + Earth Tones */

/* ===== CSS Custom Properties ===== */
:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-offwhite: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Times New Roman', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ===== Noise Overlay ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    filter: url(#noiseFilter);
    background: white;
}

/* ===== Hero Section ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
}

.deco-frame {
    position: relative;
    padding: 4rem 3rem;
    max-width: 700px;
    width: 100%;
    text-align: center;
}

/* Deco Corner Ornaments */
.deco-corner {
    position: absolute;
    width: 60px;
    height: 60px;
}

.deco-corner::before,
.deco-corner::after {
    content: '';
    position: absolute;
    background: var(--accent-gold);
}

.deco-corner-tl {
    top: 0;
    left: 0;
}
.deco-corner-tl::before {
    top: 0; left: 0;
    width: 60px; height: 2px;
}
.deco-corner-tl::after {
    top: 0; left: 0;
    width: 2px; height: 60px;
}

.deco-corner-tr {
    top: 0;
    right: 0;
}
.deco-corner-tr::before {
    top: 0; right: 0;
    width: 60px; height: 2px;
}
.deco-corner-tr::after {
    top: 0; right: 0;
    width: 2px; height: 60px;
}

.deco-corner-bl {
    bottom: 0;
    left: 0;
}
.deco-corner-bl::before {
    bottom: 0; left: 0;
    width: 60px; height: 2px;
}
.deco-corner-bl::after {
    bottom: 0; left: 0;
    width: 2px; height: 60px;
}

.deco-corner-br {
    bottom: 0;
    right: 0;
}
.deco-corner-br::before {
    bottom: 0; right: 0;
    width: 60px; height: 2px;
}
.deco-corner-br::after {
    bottom: 0; right: 0;
    width: 2px; height: 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Sunburst decoration behind title */
.deco-sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.06;
    background: repeating-conic-gradient(
        var(--accent-gold) 0deg 2deg,
        transparent 2deg 15deg
    );
    border-radius: 50%;
    z-index: -1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--warm-offwhite);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.gold-dot {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--muted-gray);
    font-style: italic;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.deco-chevron-divider {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.3s forwards;
}

.chevron-svg {
    width: 120px;
    height: 20px;
}

/* ===== Keyframes ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* ===== Deco Dividers ===== */
.deco-divider {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
}

.deco-divider-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* ===== Content Sections ===== */
.content-section {
    padding: 4rem 2rem;
}

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

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--warm-offwhite);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    margin: 0.8rem auto 0;
}

.section-text {
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.85);
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
}

/* ===== Cards Section ===== */
.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

.tilt-card {
    position: relative;
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(232, 184, 75, 0.2);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}

.tilt-card:hover {
    box-shadow: 0 15px 40px rgba(232, 184, 75, 0.1);
}

.card-deco-border {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(232, 184, 75, 0.15);
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon-svg {
    width: 70px;
    height: 70px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.card-text {
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.7;
}

/* ===== Method Steps ===== */
.method-steps {
    margin-top: 2rem;
}

.method-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-left: 2px solid rgba(232, 184, 75, 0.3);
    opacity: 0;
    transform: translateX(-30px);
}

.method-step.visible {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    opacity: 0.6;
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--warm-offwhite);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.step-text {
    font-size: 1rem;
    color: rgba(245, 240, 232, 0.8);
    line-height: 1.7;
}

/* ===== Quote Section ===== */
.featured-quote {
    text-align: center;
    padding: 2rem 0;
}

.quote-deco-top,
.quote-deco-bottom {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.quote-ornament {
    width: 40px;
    height: 20px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    color: var(--warm-offwhite);
    line-height: 1.6;
    margin: 1rem 0;
}

.quote-author {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-gold);
    font-style: normal;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
#footer {
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.footer-inner {
    max-width: 500px;
    margin: 0 auto;
}

.footer-deco {
    margin-bottom: 1.5rem;
}

.footer-line-svg {
    width: 250px;
    height: 20px;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted-gray);
    font-style: italic;
    letter-spacing: 0.1em;
}

/* ===== Scroll Reveal ===== */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .deco-frame {
        padding: 2.5rem 1.5rem;
    }

    .deco-corner {
        width: 35px;
        height: 35px;
    }

    .deco-corner-tl::before,
    .deco-corner-tr::before,
    .deco-corner-bl::before,
    .deco-corner-br::before {
        width: 35px;
    }

    .deco-corner-tl::after,
    .deco-corner-tr::after,
    .deco-corner-bl::after,
    .deco-corner-br::after {
        height: 35px;
    }

    .method-step {
        gap: 1rem;
        padding: 1rem;
    }

    .step-number {
        font-size: 2rem;
        width: 35px;
    }

    .section-text {
        text-align: left;
        text-indent: 0;
    }
}
