/* ============================================
   CSS Custom Properties & Reset
   ============================================ */

:root {
    /* Brand Colors */
    --orange: #f67644;
    --green: #749b4f;
    --red: #f8565a;
    --black: #0a0a0a;
    --white: #fafafa;
    --gray: #888;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--green) 0%, var(--orange) 100%);
    --gradient-accent: linear-gradient(90deg, var(--orange), var(--red), var(--green));

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 12vh, 8rem);
    --container-padding: clamp(1.5rem, 5vw, 3rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    font-size: 18px;
    position: relative;
}

/* ============================================
   Grain Texture Overlay
   ============================================ */

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-dots {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.5);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Layout Structure
   ============================================ */

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, rgba(246, 118, 68, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    position: relative;
}

.logo-mark {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease forwards;
}

.logo-mark .logo-img {
    width: clamp(5rem, 15vw, 12rem);
    height: auto;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.title-word {
    display: inline-block;
}

.title-word.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--gray);
    font-weight: 300;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: -8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1s ease 0.8s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollLineGrow 2s ease infinite;
}

/* ============================================
   Opening Section
   ============================================ */

.opening {
    background: radial-gradient(ellipse at top left, rgba(116, 155, 79, 0.1) 0%, transparent 60%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 4rem;
}

.opening-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
}

.large-text {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--white);
}

.opening-text p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.emphasis {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--white);
    margin-top: 1rem;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.gradient-text-large {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2em;
}

/* ============================================
   Beliefs Section
   ============================================ */

.beliefs {
    background: radial-gradient(ellipse at center, rgba(248, 86, 90, 0.08) 0%, transparent 70%);
}

.belief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.belief-card {
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(246, 118, 68, 0.05) 0%, rgba(116, 155, 79, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.belief-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.belief-card[data-index="1"] {
    transition-delay: 0.2s;
}

.belief-card[data-index="2"] {
    transition-delay: 0.4s;
}

.belief-card:hover {
    border-color: rgba(246, 118, 68, 0.5);
    background: linear-gradient(135deg, rgba(246, 118, 68, 0.1) 0%, rgba(116, 155, 79, 0.1) 100%);
    transform: translateY(-5px);
}

.belief-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.belief-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.belief-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.belief-emphasis {
    font-weight: 600;
    color: var(--white);
    font-style: italic;
}

/* ============================================
   For Whom Section
   ============================================ */

.for-whom {
    background: radial-gradient(ellipse at bottom right, rgba(246, 118, 68, 0.1) 0%, transparent 60%);
}

.for-whom-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.for-whom-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--orange);
}

.for-whom-list p {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.wilderness-quote {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.3;
    margin-top: 2rem;
}

/* ============================================
   Closing Section
   ============================================ */

.closing {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, rgba(116, 155, 79, 0.15) 0%, transparent 70%);
}

.closing-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.we-are {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 2rem;
}

.closing-principles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.closing-principles p {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.logo-mark-bottom {
    margin-top: 3rem;
}

.logo-mark-bottom .logo-img {
    width: clamp(4rem, 10vw, 8rem);
    height: auto;
    display: inline-block;
    opacity: 0.3;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollLineGrow {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 0.5;
    }
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .nav {
        padding: 1.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-dots {
        gap: 0.5rem;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .belief-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .belief-card {
        padding: 2rem;
    }

    .for-whom-list {
        padding-left: 1rem;
    }

    .scroll-indicator {
        bottom: -6rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero {
        min-height: 100vh;
    }

    .belief-card {
        padding: 1.5rem;
    }

    .belief-number {
        font-size: 2rem;
    }
}

/* ============================================
   Accessibility & Print
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.dot:focus {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

/* Selection color */
::selection {
    background-color: var(--orange);
    color: var(--black);
}

/* ============================================
   Nav Blog Link
   ============================================ */

.nav-blog-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-blog-link:hover,
.nav-blog-link:focus {
    color: var(--orange);
    opacity: 1;
}

/* ============================================================
   Blog Section
   Simple top-to-bottom layouts for the blog index and post
   pages. These intentionally do NOT use the homepage's
   full-viewport scroll-snap `.section` treatment.
   ============================================================ */

/* --- Shared blog nav/header --- */

.blog-nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.blog-nav .nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.blog-nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-nav-link:hover,
.blog-nav-link:focus {
    color: var(--orange);
}

/* --- Blog background wash (reuses hero-style radial gradient) --- */

.blog-main {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, rgba(246, 118, 68, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(116, 155, 79, 0.08) 0%, transparent 60%);
}

/* --- Tag / category pills --- */

.tag-pill {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    margin: 0 0.4rem 0.4rem 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(246, 118, 68, 0.1) 0%, rgba(116, 155, 79, 0.1) 100%);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* --- Blog index / listing page --- */

.blog-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem var(--container-padding) 3rem;
    text-align: center;
}

.blog-header-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.blog-header-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    font-weight: 300;
}

.post-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding) 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.post-card {
    display: block;
    padding: 2.25rem;
    background: linear-gradient(135deg, rgba(246, 118, 68, 0.05) 0%, rgba(116, 155, 79, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
}

.post-card:hover,
.post-card:focus {
    border-color: rgba(246, 118, 68, 0.5);
    background: linear-gradient(135deg, rgba(246, 118, 68, 0.1) 0%, rgba(116, 155, 79, 0.1) 100%);
    transform: translateY(-3px);
}

.post-card-date {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.post-card:hover .post-card-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-card-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --- Single article page --- */

.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem var(--container-padding) 6rem;
}

.article-back-link {
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-back-link:hover,
.article-back-link:focus {
    color: var(--orange);
}

.article-header {
    margin-bottom: 3rem;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-date {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin: 2.5rem 0 1.25rem;
    line-height: 1.3;
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--white);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-body li {
    color: rgba(255, 255, 255, 0.8);
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.75rem;
    border-left: 3px solid var(--orange);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--white);
    font-size: 1.15rem;
}

.article-body a {
    color: var(--orange);
    text-decoration: underline;
    text-decoration-color: rgba(246, 118, 68, 0.4);
}

.article-body a:hover {
    text-decoration-color: var(--orange);
}

.article-body strong {
    color: var(--white);
    font-weight: 700;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-author {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.article-author strong {
    color: var(--white);
}

/* --- Blog responsive --- */

@media (max-width: 768px) {
    .blog-nav {
        padding: 1.5rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .article-wrap {
        padding-top: 1rem;
    }
}