/*
 * Design System: bold-editorial
 * Border Style: sharp
 * Shadow Style: flat
 * Color Mode: mixed
 * Palette: charcoal-teal
 */

:root {
    /* Color Palette: charcoal-teal */
    --color-primary: #1C2A35;
    --color-secondary: #37474F;
    --color-accent: #00695C;
    --bg-tint: #F5F8F8;
    --color-white: #FFFFFF;
    --color-text-light: #EAEAEA;
    --color-text-dark: #333333;
    --color-border: #DDE2E5;

    /* Typography */
    --font-family-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-serif: 'Georgia', 'Times New Roman', serif;
}

/* --- Global Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(40px, 9vw, 60px);
    margin-bottom: 20px;
}

h2.section-title-large {
    font-size: clamp(40px, 7vw, 72px);
    margin-bottom: 24px;
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    max-width: 70ch;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* sharp */
}

ul {
    list-style-position: inside;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding-top: clamp(60px, 10vw, 120px);
    padding-bottom: clamp(60px, 10vw, 120px);
}

.section-dark {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--color-white);
}

.section-tint {
    background-color: var(--bg-tint);
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 14px;
}

.logo {
    font-family: var(--font-family-serif);
    font-size: 28px;
    font-weight: bold;
    z-index: 100;
    color: var(--color-white);
    text-decoration: none;
}

.hamburger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    display: none;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-checkbox {
    display: none;
}

.desktop-nav {
    display: block;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.desktop-nav a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 71px; /* header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--color-secondary);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
    color: var(--color-white);
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .mobile-nav {
        display: block;
    }
    #menu-toggle:checked ~ .mobile-nav {
        max-height: 400px;
    }
    #menu-toggle:checked ~ .hamburger .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #menu-toggle:checked ~ .hamburger .line:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .hamburger .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* --- Hero Section (Split-Color) --- */
.hero-split {
    display: flex;
    min-height: 80vh;
    width: 100%;
    background-color: var(--color-secondary);
}
.hero-split-content {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--color-text-light);
}
.hero-split-content h1 {
    color: var(--color-white);
}
.hero-split-image {
    width: 50%;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}
@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
    }
    .hero-split-content, .hero-split-image {
        width: 100%;
    }
    .hero-split-content {
        min-height: 50vh;
        text-align: center;
    }
    .hero-split-image {
        min-height: 50vh;
    }
}

/* --- Page Headers --- */
.page-header {
    text-align: center;
    padding: clamp(60px, 10vw, 100px) 24px;
}
.page-title {
    font-size: clamp(30px, 8vw, 60px);
}
.page-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    max-width: 60ch;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0; /* sharp */
    transition: all 0.3s ease;
    min-height: 44px;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
}
.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

/* --- Section Headers --- */
.section-header-centered {
    text-align: center;
    margin: 0 auto 60px auto;
    max-width: 800px;
}
.section-intro {
    font-size: clamp(18px, 2vw, 20px);
    color: #555;
}
.section-dark .section-intro {
    color: var(--color-text-light);
    opacity: 0.8;
}

/* --- Benefits Asymmetrical Grid --- */
.benefits-asymm-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
.benefit-card-asymm {
    border: 1px solid var(--color-border);
    padding: 32px;
}
.benefit-card-asymm.featured {
    background-color: var(--bg-tint);
}
.benefit-title {
    font-size: clamp(20px, 2.5vw, 24px);
}
@media (min-width: 768px) {
    .benefits-asymm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefit-card-asymm.featured {
        grid-column: 1 / -1;
    }
}
@media (min-width: 1024px) {
    .benefits-asymm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .benefit-card-asymm.featured {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* --- Numbered Steps --- */
.numbered-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.step-number {
    font-family: var(--font-family-serif);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
}
.step-content h4 {
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .numbered-steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .numbered-steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Stats Bar --- */
.stats-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0;
}
.stats-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
}
.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Icon Features --- */
.icon-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.icon-feature-item {
    text-align: center;
}
.icon-feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.icon-feature-title {
    font-size: 20px;
    margin-bottom: 8px;
}
@media (min-width: 500px) {
    .icon-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .icon-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Quote Highlight --- */
.quote-highlight {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}
.quote-highlight::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 0;
    font-family: var(--font-family-serif);
    font-size: 100px;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}
.quote-text {
    font-family: var(--font-family-serif);
    font-size: clamp(24px, 4vw, 36px);
    font-style: italic;
    margin-bottom: 24px;
    color: var(--color-primary);
}
.quote-author {
    font-weight: 700;
    color: var(--color-secondary);
}

/* --- Split Layout (Image + Content) --- */
.split-layout, .split-layout-reversed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.split-layout-image, .split-layout-content {
    width: 100%;
}
@media (min-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
    .split-layout-reversed {
        grid-template-columns: 1fr 1fr;
    }
    .split-layout-reversed .split-layout-image {
        order: 2;
    }
}

/* --- Timeline (Program Page) --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 19px;
}
.timeline-item {
    padding: 20px 0 20px 60px;
    position: relative;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-accent);
    top: 25px;
    left: 10px;
    background-color: var(--color-white);
    z-index: 1;
}
.timeline-module {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.timeline-list {
    list-style-type: '✓  ';
    padding-left: 20px;
    margin-top: 16px;
}
@media (max-width: 768px) {
    .timeline-container::after {
        left: 10px;
    }
    .timeline-item {
        padding-left: 40px;
    }
    .timeline-dot {
        left: 0;
        width: 16px;
        height: 16px;
    }
}

/* --- Image Content Block (Program Page) --- */
.image-content-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.image-content-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media(min-width: 768px) {
    .image-content-block {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.cta-container {
    text-align: center;
}
.cta-container h2 {
    color: var(--color-white);
}
.cta-container p {
    max-width: 60ch;
    margin: 0 auto 24px auto;
    opacity: 0.9;
}
.cta-container .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}
.cta-container .btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* --- Values Grid (Mission Page) --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    border: 1px solid var(--color-border);
    padding: 32px;
}
.value-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

.contact-form .form-group {
    margin-bottom: 24px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 0; /* sharp */
    font-size: 16px;
    font-family: var(--font-family-sans);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}
.contact-form button {
    width: 100%;
}
.contact-info-sidebar .contact-info-block {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}
.contact-info-sidebar .contact-info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.contact-info-sidebar h3 {
    margin-bottom: 16px;
}

/* --- Legal & Thank You Pages --- */
.legal-page h1, .legal-page h2 {
    margin-top: 32px;
    margin-bottom: 16px;
}
.legal-page ul {
    margin-bottom: 16px;
    padding-left: 20px;
}
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thank-you-icon {
    width: 80px;
    height: 80px;
    border-radius: 0; /* sharp */
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 48px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}
.thank-you-actions {
    margin-top: 48px;
}
.thank-you-actions h2 {
    margin-bottom: 24px;
}
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--color-text-light) !important;
    padding: 60px 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-column h4 {
    font-family: var(--font-family-serif);
    color: var(--color-white) !important;
    font-size: 20px;
    margin-bottom: 16px;
}
.footer-column p {
    margin-bottom: 0;
    opacity: 0.8;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--color-text-light) !important;
    opacity: 0.8;
}
.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
    max-width: 100%;
}
@media (min-width: 500px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-top: 2px solid var(--color-accent);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: var(--color-white); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border: 1px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    border-radius: 0; /* sharp */
    transition: all 0.2s ease;
}
.cookie-btn-accept:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
.cookie-btn-decline:hover {
    background-color: rgba(255,255,255,0.1);
}
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}