/* 
 * Swamp Milkweed Website CSS
 * Earthy, low-intensity palette with simple, natural typography.
 */

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;
}

:root {
    /* Primary Colors - warm greens and earth tones */
    --primary-color: #1f3b38;        /* deep spruce green */
    --secondary-color: #3c5c56;      /* muted blue-green */
    --accent-color: #c29163;         /* warm driftwood / seedpod tan *


    /* Text Colors */
    --text-color: #1f2524;           /* soft charcoal */
    --text-light: #5a6b68;           /* cool gray-green */
    
    /* Background Colors */
    --background-color: #f7f2e8;     /* warm parchment */
    --section-bg: #f0e7d7;           /* slightly deeper beige */
    --page-bottom-color: #2c2520;    /* dark soil brown */

    /* UI Colors */
    --border-color: #d8c7aa;

    /* Shadows */
    --shadow: 0 8px 20px rgba(26, 20, 13, 0.08);
    --shadow-lg: 0 14px 40px rgba(26, 20, 13, 0.16);

    /* Gradients */
    --gradient: linear-gradient(135deg, #2e3b2f 0%, #4b5c3f 100%);
    --accent-gradient: linear-gradient(135deg, #b27b4f 0%, #d0a36f 100%);

    /* Border Radius */
    --radius: 18px;
    --radius-large: 24px;
    --radius-small: 10px;

    /* Layout */
    --max-width: 1040px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--max-width);
    width: calc(100% - 40px);
    background: rgba(247, 242, 232, 0.96);
    backdrop-filter: blur(14px);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid rgba(216, 199, 170, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.header.scrolled {
    background: rgba(240, 231, 215, 0.98);
    box-shadow: var(--shadow-lg);
    top: 10px;
}

.header.scrolled .nav-container {
    height: 56px;
}

.header.scrolled .logo {
    font-size: 1rem;
}

.header.scrolled .logo-icon {
    width: 26px;
    height: 26px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    transition: height 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s ease, transform 0.3s ease;
    max-width: 220px;
    line-height: 1.2;
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
    border-color: rgba(178, 123, 79, 0.7);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: var(--radius-small);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top left, rgba(178, 123, 79, 0.1), transparent 55%),
                radial-gradient(circle at bottom right, rgba(75, 92, 63, 0.16), transparent 60%),
                var(--section-bg);
    color: var(--text-color);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin: 60px auto;
    line-height: 1.2;
    color: var(--primary-color);
    background: rgba(247, 242, 232, 0.98);
    border: 1px solid rgba(216, 199, 170, 0.9);
    border-radius: var(--radius-large);
    padding: 26px 26px 22px;
    box-shadow: var(--shadow);
    max-width: 900px;
}

.hero-meta {
    margin: 0 auto 26px;
    max-width: 900px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.hero-meta p {
    margin: 0 0 4px;
}

.hero-meta a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted rgba(178, 123, 79, 0.6);
}

.hero-meta a:hover {
    color: #8e5f3a;
}

/* Author Layout */
.author-info {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    max-width: 900px;
}

.author-media {
    width: 100%;
}

.author-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: var(--shadow);
    object-fit: cover;
    display: block;
    border: 1px solid rgba(216, 199, 170, 0.9);
    background-color: #fdfaf3;
    max-width: 400px;
    margin:auto
}

.author-details {
    text-align: left;
    border-left: 1px solid rgba(216, 199, 170, 0.9);
    padding-left:40px;
}

.author-details h3 {
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.author-details h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.author-bio {
    margin-bottom: 4px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Author extra content below columns */
.author-extra {
    max-width: 900px;
    margin: 26px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(216, 199, 170, 0.7);
    font-size: 0.97rem;
    color: var(--text-light);
}

.author-extra p {
    margin: 0 0 16px;
}

.author-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(178, 123, 79, 0.7);
    background-color: #fdfaf3;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-button:hover {
    background: var(--accent-gradient);
    color: #fdfaf3;
    border-color: rgba(178, 123, 79, 0.9);
    box-shadow: var(--shadow);
}

@media (max-width: 480px) {
    .author-social-links {
        gap: 6px;
    }

    .social-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

.author-connect-title {
    font-size: 1.05rem;
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--primary-color);
}

.author-connect-text {
    margin: 0;
    white-space: pre-wrap;
}

/* Sections */
.section {
    padding: 90px 0;
    scroll-margin-top: 100px;
}

#introduction.section {
    padding-top: 110px;
}

.section:nth-of-type(even) {
    background-color: var(--section-bg);
}

.section:nth-of-type(odd) {
    background-color: var(--background-color);
}

.section h2 {
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 26px;
    text-align: left;
}

/* Content Grid */
.content-grid {
    /*display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    gap: 34px;
    align-items: start;*/
}

.text-content p {
    margin-bottom: 18px;
    color: var(--text-light);
}

.text-content ul {
    padding-left: 1.1rem;
    margin: 20px 0;
}

.text-content li {
    margin-bottom: 10px;
}

/* Highlight / note */
.note-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(216, 199, 170, 0.9);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    margin: 0;
    box-shadow: var(--shadow);
}

.note-box p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.96rem;
}

/* Unified Image Styles */
.unified-image {
    width: 100%;
    height: auto;

    margin-bottom: 18px;
    display: block;

    /*border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(216, 199, 170, 0.9);
    background-color: #fdfaf3;*/
}

/* Card base */
.card-base {
    background: #fdfaf3;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(216, 199, 170, 0.9);
}

/* Design Content (used for main guide + table) */
.design-content {
    display: grid;
    grid-template-columns: 0.95fr 1.3fr;
    gap: 34px;
    align-items: start;
}

.specs-table {
    background: #fdfaf3;
    padding: 22px 22px 18px;
    border-radius: var(--radius);
}

.specs-table h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.specs-table td {
    padding: 7px 0;
    border-bottom: 1px solid rgba(216, 199, 170, 0.55);
    vertical-align: top;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 25%;
    padding-right: 10px;
}

/* Right-hand narrative column (re-using existing class name) */
.roosevelt-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.roosevelt-info p {
    margin-bottom: 15px;
    line-height: 1.75;
    color: var(--text-light);
}

.roosevelt-info ul {
    padding-left: 2rem;
    margin: 0;
}

.roosevelt-info li {
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-list {
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: #fdfaf3;
    margin-bottom: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(216, 199, 170, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    background: #f0e7d7;
    padding: 16px 20px;
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
    border-bottom: 1px solid rgba(216, 199, 170, 0.9);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #e8ddc9;
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    user-select: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    padding: 14px 20px 4px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer p:last-child {
    padding-bottom: 16px;
}

/* Footer Section */
.footer-section {
    background: var(--page-bottom-color);
    padding: 40px 0;
}

.footer {
    background: rgba(23, 19, 15, 0.96);
    color: #e7e1d7;
    padding: 26px 22px;
    border: 1px solid #4c4033;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: calc(var(--max-width) + 40px);
    width: calc(100% - 40px);
    margin: 0 auto;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #f2ece4;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1.2;
}

.footer-logo:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.footer-nav {
    display: flex;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    text-decoration: none;
    color: #cbbfae;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition: color 0.25s ease;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.2rem;
        padding: 22px 20px 18px;
    }

    .design-content {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta,
    .author-info,
    .author-extra {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        width: calc(100% - 20px);
        top: 10px;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        height: 64px;
        padding: 0 14px;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        top: 64px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        border-top: none;
        max-height: 0;
        overflow-y: hidden;
        opacity: 0;
        padding: 0;
    }

    .nav-menu.active {
        max-height: 80vh;
        opacity: 1;
        padding: 14px 0 20px;
    }

    .nav-menu li {
        margin: 6px 0;
    }

    .nav-menu a {
        font-size: 0.95rem;
        padding: 8px 0;
        display: block;
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    .header.scrolled .nav-container {
        height: 56px;
    }

    .header.scrolled .nav-menu {
        top: 56px;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: 60px;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 70px 0;
    }

    .author-info {
        grid-template-columns: 1fr;
    }

    .author-details {
        border:none;
    }

    .author-media {
        order: -1;
    }

    .author-extra {
        border-top: none;
        padding-top: 8px;
    }

    .footer-section {
        padding: 26px 0;
    }

    .footer {
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 1.7rem;
        margin: 70px auto 20px;
        padding: 18px 16px 14px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 1.7rem;
    }

    .note-box {
        margin-top: 12px;
    }

    .specs-table {
        padding: 18px 16px 14px;
    }
}