/*
 * Design System:
 * design-style: minimalist
 * border-style: rounded
 * shadow-style: dramatic
 * color-mode: light
 *
 * Color Palette: Graphite & Copper
 */

:root {
    --color-primary: #2c3e50;      /* Graphite */
    --color-accent: #e67e22;       /* Carrot Orange / Copper */
    --color-accent-dark: #d35400;  /* Pumpkin Orange / Darker Copper */
    --color-background: #fdfefe;   /* Almost White */
    --color-text: #34495e;         /* Wet Asphalt */
    --color-text-light: #7f8c8d;   /* Gray */
    --color-white: #ffffff;
    --color-border: #ecf0f1;

    --font-primary: 'Lato', sans-serif;
    --font-headings: 'Playfair Display', serif;

    --shadow-dramatic: 0 24px 64px rgba(44, 62, 80, 0.22);
    --shadow-dramatic-hover: 0 32px 80px rgba(44, 62, 80, 0.30);
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
}

/* --- Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.75em;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); line-height: 1.3; }

p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    padding-top: clamp(48px, 10vw, 80px);
    padding-bottom: clamp(48px, 10vw, 80px);
}

.section-title {
    text-align: center;
    margin-bottom: 1em;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2em auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    z-index: 100;
    text-decoration: none;
}

.logo:hover {
    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-primary);
    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;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--color-text);
    font-weight: 700;
    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-in-out;
    z-index: 99;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.mobile-nav a {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

@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);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-dramatic);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-dramatic-hover);
    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;
}


/* --- Hero Section (Grid Overlap) --- */
.hero-overlap {
    padding-top: 40px;
    padding-bottom: 40px;
    overflow: hidden;
}
.hero-overlap-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 24px;
}
.hero-image-wrapper {
    position: relative;
}
.hero-image {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.hero-content-card {
    background-color: var(--color-white);
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    position: relative;
    z-index: 2;
}
.hero-content-card h1 {
    margin-bottom: 0.5em;
}
.hero-content-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5em;
}

@media (min-width: 992px) {
    .hero-overlap-container {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .hero-image-wrapper {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .hero-content-wrapper {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        z-index: 1;
    }
    .hero-content-card {
        transform: translateX(-80px);
    }
}

/* --- Asymmetric Benefits Grid --- */
.asymmetric-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
.benefit-card-asymmetric {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 24px;
    border-radius: var(--border-radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card-asymmetric:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dramatic);
}
.benefit-card-asymmetric h3 {
    color: var(--color-accent);
}
@media (min-width: 768px) {
    .asymmetric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-large {
        grid-column: 1 / 3;
    }
}
@media (min-width: 1024px) {
    .asymmetric-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-large {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    .card-medium {
        grid-column: 2 / 4;
    }
}

/* --- Content Split Section --- */
.content-split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.content-split-image img {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}
@media (min-width: 768px) {
    .content-split-container {
        grid-template-columns: 1fr 1fr;
    }
    .content-split-text {
        order: 1;
    }
    .content-split-image {
        order: 2;
    }
}

/* --- Stats Section --- */
.section-stats {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 32px;
    text-align: center;
}
.stat-item {
    flex: 1;
    min-width: 200px;
}
.stat-number {
    font-family: var(--font-headings);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    color: var(--color-accent);
    display: block;
}
.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

/* --- Testimonials Masonry --- */
.testimonials-masonry {
    column-count: 1;
    column-gap: 24px;
}
.testimonial-card {
    background-color: var(--color-white);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-card);
    margin-bottom: 24px;
    break-inside: avoid;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1em;
}
.testimonial-card cite {
    font-weight: bold;
    color: var(--color-primary);
}
@media (min-width: 768px) {
    .testimonials-masonry {
        column-count: 2;
    }
}
@media (min-width: 1024px) {
    .testimonials-masonry {
        column-count: 3;
    }
}

/* --- CTA Section --- */
.section-cta {
    background-color: var(--color-background);
}
.cta-container {
    background-color: var(--color-white);
    padding: clamp(32px, 8vw, 64px);
    border-radius: var(--border-radius-card);
    text-align: center;
    box-shadow: var(--shadow-dramatic);
}
.cta-container h2 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-container p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

/* --- Page Header (for internal pages) --- */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}
.page-header h1 {
    color: var(--color-white);
}
.page-header .subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Program Page: Horizontal Tabs --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
    justify-content: center;
}
.tab-button {
    padding: 12px 10px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    position: relative;
    transition: color 0.3s ease;
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.tab-button.active {
    color: var(--color-primary);
}
.tab-button.active::after {
    transform: scaleX(1);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-content-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.tab-image img {
    border-radius: var(--border-radius-card);
}
@media (min-width: 768px) {
    .tab-content-split {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

/* --- Mission Page: Storytelling --- */
.storytelling-container {
    max-width: 800px;
}
.story-block {
    margin-bottom: 48px;
}
.story-image-block img {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}

/* --- Mission Page: Values --- */
.section-values {
    background-color: var(--color-background);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background-color: var(--color-white);
    padding: 24px;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--color-border);
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Contact Page: Sidebar Layout --- */
.contact-layout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.contact-sidebar {
    background-color: var(--color-white);
    padding: 24px;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--color-border);
}
.contact-info-block {
    margin-bottom: 24px;
}
.contact-info-block h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
}
.contact-info-block p {
    margin-bottom: 0;
    line-height: 1.5;
}
.sidebar-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 24px;
}
@media (min-width: 992px) {
    .contact-layout-container {
        grid-template-columns: 300px 1fr;
    }
}

/* --- Contact Form --- */
.contact-form {
    max-width: 800px;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-btn);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

/* --- Policy & Thank You Pages --- */
.policy-page .container, .thank-you-section .container {
    max-width: 800px;
}
.policy-page h2 {
    margin-top: 2em;
}
.thank-you-content {
    text-align: center;
    padding: 40px 0;
}

.thank-you-content h2 {text-align: center;}

.next-steps {
    margin-top: 48px;
    text-align: left;
}
.quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}
.quick-link-card {
    display: block;
    background-color: var(--color-white);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dramatic);
    text-decoration: none;
}
.quick-link-card h3 {
    color: var(--color-primary);
}
.quick-link-card p {
    color: var(--color-text);
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding-top: 60px;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-column h3 {
    font-family: var(--font-headings);
    color: var(--color-white) !important;
    margin-bottom: 16px;
}
.footer-column p, .footer-column a {
    color: var(--color-border) !important;
    font-size: 0.95rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.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: 0.9rem;
    color: var(--color-text-light) !important;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* --- 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;
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(0); transition: transform 0.4s ease;
}
#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-accent); 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: none;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    font-weight: 700;
    min-height: 40px;
}
.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--color-white);
}
.cookie-btn-decline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}
@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; }
}