/* css reset and base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --primary: #1c2842;
    --accent: #c8a45c;
    --bg: #faf8f3;
    --surface: #ffffff;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --border: #e0d9cc;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: #b08e3a;
}

/* header */
.site-header {
    background: var(--primary);
    color: #f5efe0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f5efe0;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}
.logo:hover {
    color: var(--accent);
}
.logo img {
    width: 40px;
    height: 40px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #d4cbb8;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: #f5efe0;
    background: rgba(200,164,92,0.2);
}
.main-nav a.active {
    color: var(--accent);
    font-weight: 600;
}

/* mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #f5efe0;
    border-radius: 2px;
    transition: all var(--transition);
}

/* main content */
main {
    flex: 1;
}

/* footer */
.site-footer {
    background: var(--primary);
    color: #c4b99a;
    padding: 2rem;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #f5efe0;
}
.footer-brand img {
    width: 32px;
    height: 32px;
}
.footer-inner > p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.footer-nav a {
    color: #c4b99a;
    font-size: 0.9rem;
}
.footer-nav a:hover {
    color: var(--accent);
}
.footer-copy {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* shared page styles */
.page-hero {
    background: var(--primary);
    color: #f5efe0;
    padding: 3rem 2rem;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}
.page-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.content-section h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}
.content-section p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 1rem;
    max-width: 65ch;
}
.content-section .image-right {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 350px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.content-section .image-left {
    float: left;
    margin: 0 2rem 1.5rem 0;
    max-width: 350px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.content-section .image-full {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.card img {
    margin: 0 auto 1rem;
}
.card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.card p {
    color: #666;
    font-size: 0.95rem;
}

/* responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .main-nav.open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav a {
        padding: 0.75rem 1rem;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .content-section .image-right,
    .content-section .image-left {
        float: none;
        margin: 0 auto 1.5rem;
        max-width: 100%;
    }
    .header-inner {
        padding: 0.75rem 1rem;
    }
    .intro-cards {
        padding: 2rem 1rem;
    }
    .timeline-items {
        gap: 1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}