/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #F8F5EE;
    --text-color: #760E0D;
    --accent-red: #760E0D;
    --divider-color: #E05A47;
    --text-red: #760E0D;

    --border-width: 1px;
    --font-primary: 'Riverside Forest', sans-serif;
    /* Main solid font */
    --font-outline: 'Riverside Forest Outline', sans-serif;
    /* Outline font */

    --stripe-color: #F0E6D2;
    /* Light tan/gold for stripes */
}

/* Local Font Definitions */
@font-face {
    font-family: 'Riverside Forest';
    src: url('fonts/RiversideForest-Stamp.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Riverside Forest Outline';
    src: url('fonts/RiversideForest-Outline.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--bg-color);
    color: var(--text-red);
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Main Box Container */
.container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    width: 100%;
    max-width: 1440px;
    aspect-ratio: 1440 / 1024;
    max-height: 95vh;
    border: var(--border-width) solid var(--divider-color);
    position: relative;
    margin: 0 auto;
}

/* Left Panel */
.left-panel {
    display: flex;
    flex-direction: column;
    border-right: var(--border-width) solid var(--divider-color);
    position: relative;
}

/* Header */
.header {
    height: 30%;
    padding: 2.5rem 3rem;
    border-bottom: var(--border-width) solid var(--divider-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Text Styling */
.header h1 {
    font-size: 82px;
    font-weight: normal;
    /* Font handles weight */
    line-height: 0.85;
    color: var(--text-red);
    margin: 0;
    text-transform: uppercase;
}

.title-outline {
    font-family: var(--font-outline);
    /* Use the actual outline font file */
    display: block;
    color: var(--text-red);
    /* Ensure text color is applied */
    -webkit-text-stroke: 0;
    /* Remove CSS stroke, use font's native outline */
}

.title-solid {
    font-family: var(--font-primary);
    /* Use the solid stamp font */
    display: block;
    margin-top: 0.2rem;
}

/* Main Body Content */
.body-content {
    height: 50%;
    /* Middle section */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem;
    border-bottom: var(--border-width) solid var(--divider-color);
}

.tagline {
    font-size: 38px;
    font-weight: normal;
    color: var(--text-red);
    margin-bottom: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

.mission-text {
    font-size: 38px;
    font-weight: normal;
    line-height: 0.95;
    margin-bottom: 1rem;
    max-width: 100%;
    text-transform: uppercase;
}

.core-features {
    font-size: 24px;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--text-red);
    margin-top: auto;
    padding-bottom: 0.5rem;
}

/* Footer Section */
.footer-section {
    height: 20%;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
}

.footer {
    font-size: 24px;
    font-weight: normal;
    color: var(--text-red);
    line-height: 1.2;
    text-transform: uppercase;
    width: 100%;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.credits {
    margin-top: 1.5rem;
    font-size: 18px;
    /* Slightly smaller than main footer for hierarchy */
    opacity: 0.9;
}

/* Right Panel */
.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Diagonal Stripes Background */
    background-image: repeating-linear-gradient(-45deg,
            var(--stripe-color),
            var(--stripe-color) 20px,
            var(--bg-color) 20px,
            var(--bg-color) 40px);
}

.logo-wrapper {
    width: 60%;
    /* Slightly smaller to show more stripes? Adjusted to look good */
    height: 75%;
    border: var(--border-width) solid var(--divider-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    /* Solid background to hide stripes behind */
    position: relative;
    z-index: 2;
}

.logo-svg {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .header h1 {
        font-size: 60px;
    }

    .tagline,
    .mission-text {
        font-size: 28px;
    }

    .header,
    .body-content,
    .footer-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 1024px) {
    body {
        padding: 0;
        overflow: auto;
        display: flex;
        align-items: flex-start;
        background-color: var(--bg-color);
    }

    .container {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        height: auto;
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
        max-height: none;
        border: none;
        margin: 0;

        /* Apply mobile borders */
        width: calc(100% - 2rem);
        margin: 1rem;
        border: var(--border-width) solid var(--divider-color);
    }

    /* 1. Logo Section */
    .right-panel {
        order: 1;
        width: 100%;
        height: auto;
        min-height: 40vh;
        padding: 2rem;
        border-bottom: var(--border-width) solid var(--divider-color);
        background-color: #F8EAC9;
    }

    .logo-wrapper {
        width: 100%;
        height: 100%;
        border: none;
        background-color: transparent;
        padding: 0;
    }

    /* 2. Left Panel Content */
    .left-panel {
        order: 2;
        width: 100%;
        border-right: none;
    }

    .header {
        height: auto;
        padding: 2rem;
        border-bottom: var(--border-width) solid var(--divider-color);
    }

    .header h1 {
        font-size: 48px;
    }

    .body-content {
        height: auto;
        padding: 2rem;
        border-bottom: var(--border-width) solid var(--divider-color);


    }

    /* --- Animations Removed --- */

    .tagline,
    .mission-text {
        font-size: 24px;
        line-height: 1.1;
    }

    .footer-section {
        height: auto;
        padding: 2rem;
        border-top: none;
    }
}