@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
    --color-bg: #F4F0EB;
    --color-text: #1E2320;
    --color-accent-green: #5A6B5D;
    --color-accent-warm: #E09F7D;
    --color-border: rgba(90, 107, 93, 0.25);
    --color-border-light: rgba(90, 107, 93, 0.12);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --max-width: 960px;
    --max-width-wide: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.72;
    text-decoration: underline;
}

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

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--color-text);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { margin-bottom: 1.2rem; line-height: 1.75; }
p:last-child { margin-bottom: 0; }

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

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

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(244, 240, 235, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

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

.header-logo a {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.header-logo a:hover {
    opacity: 0.75;
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.header-nav a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.header-nav a:hover {
    border-bottom-color: var(--color-accent-green);
    opacity: 1;
    text-decoration: none;
}

.header-nav a.active {
    border-bottom-color: var(--color-accent-warm);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
    padding-top: 64px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-text);
    color: rgba(244, 240, 235, 0.85);
    padding: 64px 24px 32px;
    margin-top: 96px;
    border-top: 3px solid var(--color-accent-green);
}

.footer-grid {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(244, 240, 235, 0.15);
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg);
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(244, 240, 235, 0.65);
    margin-bottom: 20px;
}

.footer-editorial-note {
    font-size: 0.8rem;
    color: var(--color-accent-warm);
    font-style: italic;
    border-left: 2px solid var(--color-accent-warm);
    padding-left: 12px;
}

.footer-col-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-warm);
    margin-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-list li {
    margin-bottom: 8px;
}

.footer-nav-list a {
    font-size: 0.875rem;
    color: rgba(244, 240, 235, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-list a:hover {
    color: var(--color-bg);
    text-decoration: none;
    opacity: 1;
}

.footer-contact-item {
    font-size: 0.875rem;
    color: rgba(244, 240, 235, 0.75);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact-item a {
    color: rgba(244, 240, 235, 0.75);
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: var(--color-bg);
    text-decoration: none;
    opacity: 1;
}

.footer-hours {
    font-size: 0.8rem;
    color: rgba(244, 240, 235, 0.5);
    margin-top: 10px;
    line-height: 1.5;
}

.footer-bottom {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(244, 240, 235, 0.45);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(244, 240, 235, 0.55);
    font-style: italic;
}

/* ===== HERO SECTION ===== */
.hero-atlas {
    position: relative;
    overflow: hidden;
    background-color: var(--color-text);
    min-height: 88vh;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.hero-index {
    position: relative;
    z-index: 2;
    padding: 80px 48px 80px 40px;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--color-border);
}

.hero-section-marker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-green);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-section-marker::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-accent-green);
}

.hero-index h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-index .hero-lead {
    font-size: 1.05rem;
    color: rgba(30, 35, 32, 0.72);
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.meta-tag {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-accent-green);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    border-radius: 2px;
}

.hero-image-area {
    position: relative;
    overflow: hidden;
}

.hero-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroFadeIn 1.4s ease forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== SECTION LAYOUTS ===== */
.section-standard {
    padding: 96px 24px;
}

.section-alt {
    padding: 96px 24px;
    background-color: rgba(90, 107, 93, 0.05);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.section-dark {
    padding: 96px 24px;
    background-color: var(--color-accent-green);
    color: var(--color-bg);
    border-top: 3px solid rgba(224, 159, 125, 0.4);
}

.section-dark h2, .section-dark h3 {
    color: var(--color-bg);
}

.section-dark p {
    color: rgba(244, 240, 235, 0.85);
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background-color: var(--color-accent-warm);
}

.section-dark .section-label {
    color: rgba(244, 240, 235, 0.65);
}

.section-dark .section-label::before {
    background-color: rgba(244, 240, 235, 0.45);
}

.section-title {
    margin-bottom: 48px;
}

.section-title h2 {
    margin-bottom: 16px;
}

.section-title .subtitle {
    font-size: 1rem;
    color: rgba(30, 35, 32, 0.65);
    max-width: 560px;
    line-height: 1.7;
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.two-col-60-40 {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 64px;
    align-items: start;
}

.two-col-40-60 {
    display: grid;
    grid-template-columns: 38% 60%;
    gap: 64px;
    align-items: start;
}

/* ===== MATRIX GRID ===== */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--color-border);
}

.matrix-cell {
    padding: 32px 28px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.matrix-cell:nth-child(3n) {
    border-right: none;
}

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

.matrix-cell:hover {
    background-color: rgba(90, 107, 93, 0.04);
}

.matrix-cell-number {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent-warm);
    margin-bottom: 12px;
}

.matrix-cell h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.matrix-cell p {
    font-size: 0.875rem;
    color: rgba(30, 35, 32, 0.7);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
}

.comparison-table th {
    background-color: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 20px;
    text-align: left;
    border-right: 1px solid rgba(244, 240, 235, 0.15);
}

.comparison-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    vertical-align: top;
    line-height: 1.65;
}

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

.comparison-table td:last-child,
.comparison-table th:last-child {
    border-right: none;
}

.comparison-table tr:hover td {
    background-color: rgba(90, 107, 93, 0.03);
}

.td-myth {
    color: rgba(30, 35, 32, 0.6);
    font-style: italic;
}

.td-context {
    color: var(--color-text);
}

/* ===== GLOSSARY RAIL ===== */
.glossary-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
}

.glossary-rail {
    border-right: 1px solid var(--color-border);
    background-color: rgba(30, 35, 32, 0.03);
}

.glossary-rail-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.glossary-rail-item:hover {
    background-color: rgba(90, 107, 93, 0.08);
}

.glossary-rail-item.active {
    background-color: rgba(90, 107, 93, 0.12);
    border-left: 3px solid var(--color-accent-green);
}

.glossary-rail-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.glossary-rail-item small {
    font-size: 0.72rem;
    color: rgba(30, 35, 32, 0.45);
    letter-spacing: 0.05em;
}

.glossary-content {
    padding: 32px 36px;
}

.glossary-entry {
    display: none;
}

.glossary-entry.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.glossary-entry h3 {
    margin-bottom: 16px;
    color: var(--color-text);
}

.glossary-entry p {
    font-size: 0.925rem;
    line-height: 1.75;
    color: rgba(30, 35, 32, 0.82);
}

/* ===== FAQ ===== */
.faq-list {
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.faq-question {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--color-accent-green);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-accent-green);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
    margin-top: 2px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-top: 16px;
    font-size: 0.925rem;
    color: rgba(30, 35, 32, 0.75);
    line-height: 1.75;
}

.faq-item.open .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--color-border);
}

.blog-card {
    border-right: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.blog-card:nth-child(3n) {
    border-right: none;
}

.blog-card:hover {
    background-color: rgba(90, 107, 93, 0.04);
}

.blog-card-image {
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    aspect-ratio: 16/10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}

.blog-card-meta {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card p {
    font-size: 0.85rem;
    color: rgba(30, 35, 32, 0.65);
    line-height: 1.65;
    margin-bottom: 0;
}

.blog-card-footer {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-read {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-card-read:hover {
    border-bottom-color: var(--color-accent-green);
    opacity: 1;
    text-decoration: none;
}

.blog-card-date {
    font-size: 0.78rem;
    color: rgba(30, 35, 32, 0.45);
}

/* ===== BLOG SINGLE ===== */
.article-hero {
    margin-bottom: 64px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.article-hero img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    animation: heroFadeIn 1.4s ease forwards;
    opacity: 0;
}

.article-header {
    padding: 64px 24px 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.article-breadcrumb {
    font-size: 0.78rem;
    color: rgba(30, 35, 32, 0.5);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-breadcrumb a {
    color: rgba(30, 35, 32, 0.5);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: var(--color-accent-green);
    text-decoration: none;
    opacity: 1;
}

.article-byline {
    font-size: 0.8rem;
    color: rgba(30, 35, 32, 0.55);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-byline span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-body {
    max-width: var(--max-width);
    margin: 48px auto 0;
    padding: 0 24px;
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 48px 0 20px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border-light);
}

.article-body h3 {
    font-size: 1.15rem;
    margin: 32px 0 14px;
}

.article-body p {
    font-size: 0.975rem;
    line-height: 1.8;
    color: rgba(30, 35, 32, 0.85);
}

.article-body ul,
.article-body ol {
    margin: 16px 0 20px 24px;
}

.article-body li {
    font-size: 0.975rem;
    line-height: 1.75;
    color: rgba(30, 35, 32, 0.85);
    margin-bottom: 8px;
}

/* ===== GLOSSARY RAIL (ARTICLE) ===== */
.glossary-article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    align-items: start;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.glossary-side-rail {
    position: sticky;
    top: 88px;
    border: 1px solid var(--color-border);
    padding: 24px;
}

.glossary-side-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.glossary-side-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.glossary-side-item dt {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
}

.glossary-side-item dd {
    font-size: 0.8rem;
    color: rgba(30, 35, 32, 0.65);
    line-height: 1.6;
}

/* ===== STAT STRIP ===== */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--color-border);
    margin: 48px 0;
}

.stat-item {
    padding: 28px 24px;
    border-right: 1px solid var(--color-border);
    text-align: center;
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent-green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(30, 35, 32, 0.6);
    line-height: 1.5;
}

/* ===== TWO-COL WITH DIVIDER ===== */
.divider-col-layout {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 48px;
    align-items: start;
}

.col-divider {
    background-color: var(--color-border);
    height: 100%;
    min-height: 200px;
    align-self: stretch;
}

/* ===== MATRIX COMPARISON ===== */
.matrix-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
    margin: 32px 0;
}

.matrix-compare-col {
    padding: 28px 32px;
}

.matrix-compare-col:first-child {
    border-right: 1px solid var(--color-border);
}

.matrix-compare-header {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.matrix-compare-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(30, 35, 32, 0.8);
    margin-bottom: 12px;
}

/* ===== FLOATED IMAGE ARTICLE ===== */
.article-float-right {
    float: right;
    width: 42%;
    margin: 0 0 24px 36px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.article-float-right img {
    width: 100%;
    height: auto;
    display: block;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== PULL QUOTE ===== */
.pull-quote {
    border-left: 3px solid var(--color-accent-green);
    padding: 24px 32px;
    margin: 40px 0;
    background-color: rgba(90, 107, 93, 0.05);
}

.pull-quote p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
}

.contact-info-col {
    padding: 48px;
    border-right: 1px solid var(--color-border);
    background-color: rgba(30, 35, 32, 0.02);
}

.contact-form-col {
    padding: 48px;
}

.contact-info-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    margin-bottom: 8px;
}

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

.contact-info-value a {
    color: var(--color-text);
}

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

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color 0.2s ease;
    outline: none;
    border-radius: 0;
}

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

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

.btn-submit {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: background-color 0.2s ease, border-bottom-color 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--color-accent-green);
    border-bottom-color: var(--color-accent-warm);
}

/* ===== ABOUT PAGE ===== */
.about-intro {
    padding: 80px 24px 64px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-image-full {
    margin: 0 0 64px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.about-image-full img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    animation: heroFadeIn 1.4s ease forwards;
    opacity: 0;
}

.about-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.about-body h2 {
    margin: 48px 0 20px;
}

/* ===== LEGAL PAGES ===== */
.legal-header {
    padding: 80px 24px 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 56px;
}

.legal-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 96px;
}

.legal-body h2 {
    font-size: 1.3rem;
    margin: 44px 0 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
}

.legal-body h2:first-child {
    border-top: none;
    margin-top: 0;
}

.legal-body p {
    font-size: 0.925rem;
    line-height: 1.8;
    color: rgba(30, 35, 32, 0.8);
}

.legal-body ul {
    margin: 12px 0 20px 24px;
}

.legal-body li {
    font-size: 0.925rem;
    line-height: 1.75;
    color: rgba(30, 35, 32, 0.8);
    margin-bottom: 6px;
}

/* ===== THANK YOU ===== */
.thankyou-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
}

.thankyou-box {
    text-align: center;
    max-width: 480px;
}

.thankyou-box h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.thankyou-box p {
    color: rgba(30, 35, 32, 0.7);
    margin-bottom: 32px;
}

.btn-home {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-home:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    opacity: 1;
}

/* ===== 404 PAGE ===== */
.notfound-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
}

.notfound-box h1 {
    font-size: 6rem;
    line-height: 1;
    color: var(--color-accent-green);
    opacity: 0.35;
    margin-bottom: 16px;
}

.notfound-box h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.notfound-box p {
    color: rgba(30, 35, 32, 0.65);
    margin-bottom: 32px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--color-text);
    color: rgba(244, 240, 235, 0.9);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 2px solid var(--color-accent-green);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.6;
    color: rgba(244, 240, 235, 0.85);
}

.cookie-banner a {
    color: var(--color-accent-warm);
}

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

.cookie-btn {
    padding: 9px 20px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid rgba(244, 240, 235, 0.3);
    background: transparent;
    color: rgba(244, 240, 235, 0.85);
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

.cookie-btn:hover {
    background-color: rgba(244, 240, 235, 0.1);
}

.cookie-btn.primary:hover {
    background-color: #4a5a4d;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.read-time {
    font-size: 0.78rem;
    color: rgba(30, 35, 32, 0.5);
    letter-spacing: 0.04em;
}

.divider-line {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 48px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE MARGIN LEGEND ===== */
.page-margin-legend {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.page-margin-legend-item {
    writing-mode: vertical-rl;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(90, 107, 93, 0.45);
    cursor: default;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matrix-cell:nth-child(3n) {
        border-right: 1px solid var(--color-border);
    }

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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card:nth-child(3n) {
        border-right: 1px solid var(--color-border);
    }

    .blog-card:nth-child(2n) {
        border-right: none;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-top: 1px solid var(--color-border);
    }

    .stat-item:nth-child(4) {
        border-top: 1px solid var(--color-border);
    }

    .page-margin-legend {
        display: none;
    }

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

    .glossary-side-rail {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    }

    .header-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-image-area {
        height: 340px;
    }

    .hero-index {
        padding: 48px 24px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .two-col,
    .two-col-60-40,
    .two-col-40-60 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .glossary-rail {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        display: flex;
        flex-wrap: wrap;
    }

    .glossary-rail-item {
        flex: 1 1 auto;
        min-width: 140px;
    }

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

    .contact-info-col {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 32px 24px;
    }

    .contact-form-col {
        padding: 32px 24px;
    }

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

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

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

    .blog-card:nth-child(n) {
        border-right: none;
    }

    .blog-card {
        border-bottom: 1px solid var(--color-border);
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }

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

    .col-divider {
        display: none;
    }

    .matrix-compare {
        grid-template-columns: 1fr;
    }

    .matrix-compare-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .article-float-right {
        float: none;
        width: 100%;
        margin: 0 0 28px 0;
    }

    .article-hero img {
        height: 280px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-standard,
    .section-alt {
        padding: 64px 24px;
    }

    .about-image-full img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    .hero-index h1 { font-size: 1.8rem; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
}
