@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

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

:root {
    --bg: #F2F4F3;
    --dark: #1F2220;
    --green: #2E4A40;
    --sand: #D4C8B5;
    --white: #ffffff;
    --line: 1px solid #D4C8B5;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--dark);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    line-height: 1.65;
}

p:last-child { margin-bottom: 0; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.line-h { border: none; border-top: var(--line); margin: 0; }

.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border: 1px solid var(--dark);
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.btn:hover {
    background: var(--dark);
    color: var(--bg);
}

.btn-green {
    border-color: var(--green);
    color: var(--green);
}

.btn-green:hover {
    background: var(--green);
    color: var(--bg);
}

/* ===================== HEADER ===================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark);
}

.header-logo:hover { color: var(--green); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-nav a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-left: var(--line);
    color: var(--dark);
    transition: background 0.1s, color 0.1s;
}

.header-nav a:first-child { border-left: none; }
.header-nav a:hover { background: var(--dark); color: var(--bg); }
.header-nav a.active { background: var(--green); color: var(--bg); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--dark);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: var(--line);
    background: var(--bg);
}

.mobile-nav a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 24px;
    border-bottom: var(--line);
    color: var(--dark);
}

.mobile-nav a:hover { background: var(--dark); color: var(--bg); }
.mobile-nav.open { display: flex; }

/* ===================== FOOTER ===================== */
.site-footer {
    border-top: 2px solid var(--dark);
    background: var(--dark);
    color: var(--bg);
    margin-top: 80px;
}

.footer-top {
    border-bottom: 1px solid rgba(212,200,181,0.25);
    padding: 48px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .footer-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bg);
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--sand);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 16px;
    font-weight: 400;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: rgba(242,244,243,0.7);
    transition: color 0.1s;
}

.footer-col ul li a:hover { color: var(--bg); }

.footer-contact-item {
    font-size: 0.85rem;
    color: rgba(242,244,243,0.7);
    margin-bottom: 6px;
    line-height: 1.5;
}

.footer-hours {
    font-size: 0.85rem;
    color: rgba(242,244,243,0.7);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-left {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sand);
    letter-spacing: 0.06em;
}

.footer-disclaimer {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sand);
    letter-spacing: 0.06em;
    text-align: center;
}

/* ===================== MAIN CONTENT OFFSET ===================== */
.page-body {
    padding-top: 64px;
}

/* ===================== SECTION STYLES ===================== */
.section {
    padding: 72px 0;
    border-bottom: var(--line);
}

.section:last-child { border-bottom: none; }

.section-index {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--sand);
    margin-bottom: 12px;
    display: block;
}

/* ===================== HERO BLOCK ===================== */
.hero-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: var(--line);
    min-height: 520px;
}

.hero-text {
    padding: 72px 48px 72px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: var(--line);
}

.hero-img {
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================== PANEL LAYOUT ===================== */
.panel-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
}

.panel-left {
    border-right: var(--line);
    padding: 40px 32px 40px 0;
}

.panel-right {
    padding: 40px 0 40px 48px;
}

.panel-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 0;
}

/* ===================== THREE-COL GRID ===================== */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: var(--line);
}

.three-col-item {
    padding: 32px;
    border-right: var(--line);
}

.three-col-item:last-child { border-right: none; }

.col-index {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sand);
    margin-bottom: 12px;
    display: block;
}

/* ===================== TABLE ===================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.info-table th {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--dark);
    color: var(--bg);
    padding: 14px 20px;
    text-align: left;
    border: 1px solid var(--dark);
}

.info-table td {
    padding: 14px 20px;
    border: 1px solid var(--sand);
    vertical-align: top;
    line-height: 1.5;
}

.info-table tr:nth-child(even) td {
    background: rgba(212,200,181,0.12);
}

/* ===================== STAT STRIP ===================== */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: var(--line);
}

.stat-item {
    padding: 32px 24px;
    border-right: var(--line);
    text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    color: var(--green);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--dark);
    line-height: 1.4;
}

/* ===================== GLOSSARY RAIL ===================== */
.glossary-rail {
    border: var(--line);
}

.glossary-entry {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: var(--line);
}

.glossary-entry:last-child { border-bottom: none; }

.glossary-term {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--green);
    padding: 16px 24px;
    border-right: var(--line);
    display: flex;
    align-items: flex-start;
}

.glossary-def {
    padding: 16px 24px;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ===================== FAQ ===================== */
.faq-table {
    border: var(--line);
}

.faq-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    border-bottom: var(--line);
}

.faq-row:last-child { border-bottom: none; }

.faq-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sand);
    padding: 20px 0 20px 20px;
    border-right: var(--line);
    display: flex;
    align-items: flex-start;
}

.faq-q {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.875rem;
    border-right: var(--line);
    line-height: 1.5;
}

.faq-a {
    padding: 20px 24px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #3a4040;
}

/* ===================== TIMELINE ===================== */
.timeline {
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    border-bottom: var(--line);
    padding: 28px 0;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green);
    padding-right: 32px;
}

.timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===================== MATRIX ===================== */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: var(--line);
}

.matrix-cell {
    padding: 28px 32px;
    border-right: var(--line);
    border-bottom: var(--line);
}

.matrix-cell:nth-child(2n) { border-right: none; }
.matrix-cell:nth-last-child(-n+2) { border-bottom: none; }

.matrix-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 10px;
    display: block;
}

/* ===================== BLOG CARD ===================== */
.blog-list {
    border: var(--line);
}

.blog-entry {
    display: grid;
    grid-template-columns: 60px 200px 1fr auto;
    align-items: center;
    border-bottom: var(--line);
    transition: background 0.1s;
}

.blog-entry:last-child { border-bottom: none; }
.blog-entry:hover { background: rgba(46,74,64,0.05); }

.blog-entry-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sand);
    padding: 24px 0 24px 24px;
    border-right: var(--line);
    align-self: stretch;
    display: flex;
    align-items: center;
}

.blog-entry-img {
    padding: 16px 20px;
    border-right: var(--line);
    align-self: stretch;
    display: flex;
    align-items: center;
}

.blog-entry-img img {
    width: 140px;
    height: 90px;
    object-fit: cover;
}

.blog-entry-content {
    padding: 24px 32px;
}

.blog-entry-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.blog-entry-content p {
    font-size: 0.85rem;
    color: #4a5050;
    margin-bottom: 0;
}

.blog-entry-meta {
    padding: 24px;
    border-left: var(--line);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sand);
    white-space: nowrap;
    align-self: stretch;
    display: flex;
    align-items: center;
}

/* ===================== ARTICLE PAGE ===================== */
.article-header {
    padding: 48px 0 0;
    border-bottom: var(--line);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-meta span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--sand);
}

.article-img-wide {
    margin-top: 40px;
}

.article-img-wide img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
}

.article-sidebar {
    border-right: var(--line);
    padding: 48px 32px 48px 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.article-sidebar-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 20px;
    display: block;
}

.article-sidebar ul li {
    margin-bottom: 10px;
}

.article-sidebar ul li a {
    font-size: 0.8rem;
    color: var(--dark);
    border-bottom: 1px solid transparent;
    transition: border-color 0.1s;
}

.article-sidebar ul li a:hover {
    border-bottom-color: var(--green);
    color: var(--green);
}

.article-body {
    padding: 48px 0 48px 48px;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.4rem;
    padding-bottom: 12px;
    border-bottom: var(--line);
}

.article-body h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.article-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #2a3030;
    margin-bottom: 1.2rem;
}

/* ===================== CONTACT PAGE ===================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.contact-form-col {
    padding: 48px 48px 48px 0;
    border-right: var(--line);
}

.contact-info-col {
    padding: 48px 0 48px 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--sand);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
    border-radius: 0;
    transition: border-color 0.1s;
    -webkit-appearance: none;
}

.form-control:focus { border-color: var(--green); }

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.contact-detail {
    margin-bottom: 24px;
}

.contact-detail-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 6px;
    display: block;
}

.contact-detail-value {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark);
}

/* ===================== LEGAL PAGES ===================== */
.legal-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 0 80px;
}

.legal-layout h1 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.legal-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--sand);
    margin-bottom: 40px;
    display: block;
}

.legal-layout h2 {
    font-size: 1.1rem;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-top: 40px;
    border-top: var(--line);
}

.legal-layout h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.legal-layout p, .legal-layout li {
    font-size: 0.925rem;
    line-height: 1.75;
    color: #2a3030;
}

.legal-layout ul {
    list-style: none;
    margin: 12px 0;
}

.legal-layout ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.legal-layout ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--sand);
    font-family: var(--font-mono);
}

/* ===================== THANK YOU ===================== */
.thankyou-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.thankyou-index {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sand);
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

.thankyou-wrap h1 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.thankyou-wrap p {
    font-size: 0.9rem;
    color: #4a5050;
    max-width: 460px;
    margin: 0 auto 32px;
    font-family: var(--font-mono);
}

/* ===================== 404 PAGE ===================== */
.notfound-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background: var(--bg);
    font-family: var(--font-sans);
}

.notfound-code {
    font-family: var(--font-mono);
    font-size: 6rem;
    font-weight: 500;
    color: var(--sand);
    line-height: 1;
    margin-bottom: 24px;
}

.notfound-wrap h1 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.notfound-wrap p {
    font-size: 0.9rem;
    color: #4a5050;
    margin-bottom: 32px;
}

/* ===================== ABOUT PAGE ===================== */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: var(--line);
}

.about-intro-text {
    padding: 56px 48px 56px 0;
    border-right: var(--line);
}

.about-intro-img img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* ===================== COOKIE BANNER ===================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--dark);
    color: var(--bg);
    border-top: 1px solid var(--green);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

#cookie-banner p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

#cookie-banner a {
    color: var(--sand);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid var(--sand);
    background: transparent;
    color: var(--bg);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.cookie-btn:hover { background: var(--sand); color: var(--dark); }

.cookie-btn-accept {
    border-color: var(--green);
    background: var(--green);
    color: var(--bg);
}

.cookie-btn-accept:hover { background: #3d6355; border-color: #3d6355; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-top: var(--line); }
    .blog-entry { grid-template-columns: 48px 1fr; }
    .blog-entry-img { display: none; }
    .blog-entry-meta { display: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }

    .header-nav { display: none; }
    .hamburger { display: flex; }

    .hero-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-text {
        padding: 48px 0 40px;
        border-right: none;
        border-bottom: var(--line);
    }

    .hero-img { height: 280px; }

    .panel-layout {
        grid-template-columns: 1fr;
    }

    .panel-left {
        border-right: none;
        border-bottom: var(--line);
        padding: 24px 0;
    }

    .panel-right { padding: 24px 0; }

    .panel-label { writing-mode: horizontal-tb; transform: none; }

    .three-col {
        grid-template-columns: 1fr;
    }

    .three-col-item { border-right: none; border-bottom: var(--line); }
    .three-col-item:last-child { border-bottom: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

    .stat-strip { grid-template-columns: 1fr 1fr; }

    .contact-layout { grid-template-columns: 1fr; }
    .contact-form-col { padding: 40px 0; border-right: none; border-bottom: var(--line); }
    .contact-info-col { padding: 40px 0; }

    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; border-right: none; border-bottom: var(--line); padding: 32px 0; }
    .article-body { padding: 32px 0; }

    .matrix-grid { grid-template-columns: 1fr; }
    .matrix-cell { border-right: none; }
    .matrix-cell:nth-last-child(-n+2) { border-bottom: var(--line); }
    .matrix-cell:last-child { border-bottom: none; }

    .glossary-entry { grid-template-columns: 1fr; }
    .glossary-term { border-right: none; border-bottom: var(--line); writing-mode: horizontal-tb; }

    .about-intro-grid { grid-template-columns: 1fr; }
    .about-intro-text { padding: 40px 0; border-right: none; border-bottom: var(--line); }

    .faq-row { grid-template-columns: 32px 1fr; }
    .faq-a { display: none; }

    .blog-entry { grid-template-columns: 40px 1fr; }

    .info-table { font-size: 0.8rem; }
    .info-table th, .info-table td { padding: 10px 12px; }

    .legal-layout { padding: 40px 0; }

    .section { padding: 48px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 10px 20px; }
    .stat-strip { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: var(--line); }
    .stat-item:last-child { border-bottom: none; }
}
