/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #FBF8F3;
    --bg-secondary: #F0EDE8;
    --text-primary: #2D2620;
    --text-secondary: #6B6359;
    --accent-oak: #8B7355;
    --accent-sage: #5F7C5F;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Serif Pro', Georgia, serif;
    --font-accent: 'Commissioner', 'Helvetica Neue', sans-serif;

    --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
    --spacing-page: clamp(3rem, 5vw, 5.5rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* ===== DOT GRID OVERLAY ===== */
.dot-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(139, 115, 85, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== PAGE CONTAINER ===== */
.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-page);
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    padding: clamp(4rem, 8vw, 8rem) 0;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--ease-gentle);
}

.fade-in.visible {
    opacity: 1;
}

/* ===== BENTO BLOCKS ===== */
.bento-row {
    display: grid;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: start;
}

.bento-block {
    border: 1px solid rgba(139, 115, 85, 0.15);
    background: var(--bg-secondary);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: box-shadow 0.4s var(--ease-gentle);
}

.bento-block:hover {
    box-shadow: 0 8px 24px rgba(45, 38, 32, 0.08);
}

/* ===== TYPOGRAPHY ===== */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
}

/* ===== LINKS ===== */
a {
    color: var(--accent-oak);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background: var(--accent-sage);
    transition: width 0.4s var(--ease-gentle);
}

a:hover::after {
    width: 100%;
}

/* ================================================================
   SECTION 1: HERO
   ================================================================ */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-botanical {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(250px, 40vw, 500px);
    height: auto;
    opacity: 0.6;
    z-index: 0;
}

.hero-svg {
    width: 100%;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 700px;
    width: 100%;
}

.hero-title {
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================================================
   SECTION 2: PHILOSOPHY
   ================================================================ */
.philosophy-row {
    grid-template-columns: 10fr 6fr;
}

.philosophy-text h2 {
    font-weight: 400;
}

.philosophy-text p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.philosophy-text p:last-of-type {
    margin-bottom: 0;
}

.philosophy-annotation {
    font-family: var(--font-accent);
    font-size: clamp(0.875rem, 1vw, 0.95rem);
    color: var(--text-secondary);
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-sage);
    margin-top: 1rem;
}

.philosophy-botanical {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(95, 124, 95, 0.15);
}

.botanical-pressed {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* ================================================================
   SECTION 3: GALLERY
   ================================================================ */
.section-gallery {
    padding-top: clamp(2rem, 4vw, 4rem);
}

.gallery-row-1 {
    grid-template-columns: 1fr 1fr;
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.gallery-tall {
    grid-row: span 1;
}

.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 6vw, 4rem);
}

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

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

.gallery-image {
    width: 100%;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.gallery-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-gentle);
}

.bento-block:hover .gallery-svg {
    transform: scale(1.02);
}

.gallery-caption {
    font-family: var(--font-accent);
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1rem;
    font-weight: 500;
}

.gallery-medium .gallery-image,
.gallery-short .gallery-image {
    margin-bottom: 0;
}

/* ================================================================
   SECTION 4: QUOTE
   ================================================================ */
.section-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 12vw, 10rem) 0;
}

.quote-block {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: 0 clamp(1rem, 2vw, 2rem);
}

.leaf-mark {
    width: 40px;
    min-width: 30px;
    height: auto;
    flex-shrink: 0;
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    text-align: center;
}

/* ================================================================
   SECTION 5: CLOSING
   ================================================================ */
.section-closing {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.closing-botanical {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(250px, 40vw, 500px);
    height: auto;
    opacity: 0.55;
    z-index: 0;
}

.closing-svg {
    width: 100%;
    height: auto;
}

.closing-content {
    position: relative;
    z-index: 2;
    text-align: right;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
}

.closing-title {
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.closing-text {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.closing-link {
    font-family: var(--font-accent);
    font-size: clamp(0.875rem, 1vw, 0.95rem);
    color: var(--accent-oak);
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ================================================================
   BOTANICAL ILLUSTRATION REVEAL
   ================================================================ */
.botanical-illustration {
    transform: scale(0.98);
    transition: transform 0.8s var(--ease-gentle), opacity 0.8s var(--ease-gentle);
}

.botanical-illustration.revealed {
    transform: scale(1);
}

/* ================================================================
   DECORATIVE BOTANICAL BORDER
   ================================================================ */
.section-philosophy::before,
.section-gallery::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-oak) 20%,
        var(--accent-sage) 50%,
        var(--accent-oak) 80%,
        transparent 100%
    );
    opacity: 0.2;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-sage) 30%,
        var(--accent-oak) 70%,
        transparent 100%
    );
    opacity: 0.2;
}

/* ================================================================
   ACCENT GRADIENT UNDERLINE (hover decoration)
   ================================================================ */
.closing-link::after {
    background: linear-gradient(45deg, var(--accent-oak), var(--accent-sage));
}

/* ================================================================
   LINEN TEXTURE OVERLAY ON CERTAIN BLOCKS
   ================================================================ */
.philosophy-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10h20M10 0v20' stroke='%238B7355' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.philosophy-text {
    position: relative;
}

.philosophy-text > * {
    position: relative;
    z-index: 1;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .philosophy-row {
        grid-template-columns: 1fr;
    }

    .gallery-row-1 {
        grid-template-columns: 1fr;
    }

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

    .hero-botanical {
        right: -5%;
        width: 45vw;
        opacity: 0.4;
    }

    .closing-botanical {
        left: -5%;
        width: 45vw;
        opacity: 0.35;
    }

    .closing-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 0 clamp(1.5rem, 4vw, 2.5rem);
    }

    .section {
        padding: clamp(3rem, 6vw, 5rem) 0;
    }

    .gallery-trio {
        grid-template-columns: 1fr;
    }

    .hero-botanical {
        position: absolute;
        right: -10%;
        opacity: 0.25;
        width: 60vw;
    }

    .closing-botanical {
        left: -10%;
        opacity: 0.2;
        width: 60vw;
    }

    .quote-block {
        flex-direction: column;
        gap: 1.5rem;
    }

    .leaf-mark {
        width: 30px;
    }

    .leaf-left {
        transform: rotate(90deg);
    }

    .leaf-right {
        transform: rotate(90deg);
    }

    .hero-content {
        text-align: center;
    }

    .bento-block {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .quote-text {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    .closing-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .gallery-caption {
        font-size: 0.7rem;
    }

    .bento-block {
        padding: 1rem;
    }
}
