/* ===== MissionLogs — Professional Organizational Website ===== */
:root {
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #5c5c5c;
    --color-primary: #0d5c4a;
    --color-primary-dark: #094736;
    --color-accent: #c9a227;
    --color-accent-soft: #e8d9a0;
    --color-border: #e5e2dc;
    --color-hero-bg: #0d5c4a;
    --color-impact-bg: #1a1a1a;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-primary-dark);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header & Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
}
.logo:hover {
    color: var(--color-primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}
.nav-links a {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius);
}
.nav-links a:hover {
    color: var(--color-primary);
    background: rgba(13, 92, 74, 0.08);
}
.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(13, 92, 74, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        padding: 4rem 1.5rem 1.5rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.08);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .nav-links.is-open {
        transform: translateX(0);
    }
    .nav-toggle {
        display: flex;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-hero-bg) 0%, #0a4538 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=1600&q=20") center/cover;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    margin: 0 0 1.5rem;
}

.hero-content .btn-primary {
    background: #fff;
    color: var(--color-primary);
}
.hero-content .btn-primary:hover {
    background: var(--color-accent-soft);
    color: var(--color-primary-dark);
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    color: #fff;
}
.hero-card-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--color-accent-soft);
}
.hero-card p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        order: -1;
    }
}

/* ===== Section common ===== */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header.light .section-tagline,
.section-header.light h2 {
    color: rgba(255,255,255,0.9);
}
.section-header.light .section-tagline {
    opacity: 0.8;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.section-tagline {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== About ===== */
.about {
    background: var(--color-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content p {
    margin: 0 0 1rem;
    color: var(--color-text);
}
.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        max-height: 280px;
    }
    .about-image img {
        object-fit: cover;
        height: 280px;
    }
}

/* ===== Purpose ===== */
.purpose {
    background: var(--color-bg);
}

.lead {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.purpose-content > p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.purpose-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
}

.value-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .purpose-values {
        grid-template-columns: 1fr;
    }
}

/* ===== What We Do ===== */
.what-we-do {
    background: var(--color-surface);
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.capability-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.capability-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.capability-image {
    height: 180px;
    overflow: hidden;
}
.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capability-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1rem 1.25rem 0.5rem;
}

.capability-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0 1.25rem 1.25rem;
}

.what-we-do-note {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
    padding: 1rem 1.25rem;
    background: rgba(13, 92, 74, 0.06);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
}

@media (max-width: 900px) {
    .what-we-do-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Features ===== */
.features {
    background: var(--color-bg);
}

.features-list {
    max-width: 720px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}
.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.35rem;
}

.feature-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== Impact / Stats ===== */
.impact {
    background: var(--color-impact-bg);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact ===== */
.contact {
    background: var(--color-surface);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content > p {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted);
}

.contact-cta {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== Inner page hero ===== */
.page-hero {
    background: linear-gradient(135deg, var(--color-hero-bg) 0%, #0a4538 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #fff;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    margin: 0 0 0.5rem;
}
.page-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.0625rem;
}

/* ===== Content blocks & fluff ===== */
.content-block {
    max-width: 720px;
    margin: 0 auto 2rem;
}
.content-block.centered {
    text-align: center;
}
.content-block p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}
.content-block p:last-child {
    margin-bottom: 0;
}
.content-block h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
}
.content-block h3:first-child {
    margin-top: 0;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}
.card-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}
.card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
    .card-grid.three-col { grid-template-columns: 1fr; }
    .card-grid.two-col { grid-template-columns: 1fr; }
}

.teaser-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow var(--transition), transform var(--transition);
    color: inherit;
}
.teaser-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}
.teaser-card h3 {
    font-size: 1.125rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}
.teaser-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}
.teaser-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.home-overview {
    background: var(--color-surface);
}

.quote-block {
    margin: 2rem 0;
    padding: 2rem 2.5rem;
    background: rgba(13, 92, 74, 0.06);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-muted);
}
.quote-block p {
    margin: 0 0 0.5rem;
}
.quote-block cite {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
}
.subsection-title:first-child {
    margin-top: 0;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.75);
    padding: 2rem 0;
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 0.35rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    margin: 0 0 1rem;
}

.footer-copy {
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.7;
}
