/* 
    Color Palette: pine-copper
    --color-primary: #1A3325;
    --color-secondary: #253F30;
    --color-accent: #A06830;
    --bg-tint: #F0F8F2;
*/

:root {
    --color-primary: #1b1a33;
    --color-secondary: #3e4184;
    --color-accent: #c4894f;
    --bg-tint: #F0F8F2;

    --text-light: #EAEAEA;
    --text-dark: #111111;
    --border-color-light: #DDE1E6;
    --border-color-dark: #2f3441;
    
    --font-family-base: 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: clamp(16px, 1.5vw, 18px);
    --line-height-base: 1.6;
}

/* --- Base & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background-color: var(--color-secondary);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 3vw, 1.25rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

ul, ol {
    list-style-position: inside;
    padding-left: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--bg-tint);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--color-secondary);
    color: var(--text-light);
}

.section-highlight {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .section {
        padding: 80px 0;
    }
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-secondary);
    border-bottom: 1px solid var(--border-color-dark);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--text-light);
}

.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(--text-light);
    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(--text-light);
    font-weight: 500;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 66px; /* Header height */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color-dark);
}

.mobile-nav a {
    color: var(--text-light);
    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);
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary) !important;
    color: var(--text-light) !important;
    padding: 48px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.site-footer h3, .site-footer h4 {
    color: var(--text-light) !important;
}

.footer-logo {
    font-size: 28px;
    margin-bottom: 16px;
}

.footer-about p {
    opacity: 0.8;
}

.footer-title {
    margin-bottom: 16px;
    color: var(--color-accent) !important;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}

.footer-links a, .footer-legal a, .footer-contact a {
    color: var(--text-light) !important;
    opacity: 0.8;
}

.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover {
    opacity: 1;
    color: var(--color-accent) !important;
}

.footer-contact p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid var(--border-color-dark);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

@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;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.section-light .btn-primary:hover {
    color: var(--color-accent);
}

.section-dark .btn-primary:hover {
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--bg-tint);
}

/* --- Hero Section (Vertical Stack) --- */
.hero-vertical-stack {
    display: flex;
    flex-direction: column;
}
.hero-image-container {
    width: 100%;
    height: 50vh;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content-container {
    background-color: var(--color-secondary);
    padding: 48px 0;
    text-align: center;
}
.hero-title {
    color: var(--text-light);
}
.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 24px auto;
    opacity: 0.9;
}
@media (min-width: 768px) {
    .hero-content-container {
        padding: 64px 0;
    }
}

/* --- Benefits Section (3-col) --- */
.benefits-grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.benefit-card {
    border: 1px solid var(--border-color-light);
    padding: 24px;
    border-radius: 28px;
    text-align: center;
}
.card-title {
    color: var(--color-primary);
}
@media (min-width: 768px) {
    .benefits-grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Icon Features Section --- */
.icon-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.icon-feature-item {
    text-align: center;
}
.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}
.feature-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.icon-feature-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .icon-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .icon-features-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* --- Quote Highlight Section --- */
.quote-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.quote-symbol {
    font-size: 6rem;
    color: var(--color-accent);
    line-height: 1;
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}
.quote-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 24px;
    display: block;
}
.quote-author {
    font-weight: 700;
    color: var(--text-light);
    opacity: 0.9;
}

/* --- Gallery Grid Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.gallery-item img {
    border-radius: 28px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item.placeholder {
    border: 1px dashed var(--border-color-light);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--text-dark);
    opacity: 0.7;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Numbered Steps Section --- */
.numbered-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
}
.step-title {
    margin-bottom: 8px;
}
.step-content p {
    margin: 0;
    opacity: 0.8;
}
@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);
    }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--bg-tint);
    color: var(--text-dark);
}
.cta-container {
    text-align: center;
    max-width: 800px;
}
.cta-title {
    color: var(--color-primary);
}
.cta-text {
    margin-bottom: 24px;
}

/* --- Page-specific Styles --- */
.page-header {
    text-align: center;
    padding: 60px 0;
}

/* --- Program Page (Grid 6 cards) --- */
.program-grid-6cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.program-card {
    border: 1px solid var(--border-color-light);
    border-radius: 28px;
    padding: 24px;
}
.program-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}
.program-card-title {
    color: var(--color-primary);
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .program-grid-6cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .program-grid-6cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.content-image-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.split-image img {
    border-radius: 28px;
}
@media (min-width: 768px) {
    .content-image-split {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .content-image-split .split-image {
        order: 1; /* Default: image on right */
    }
    .mission-html .content-image-split .split-image {
        order: -1; /* On mission page, image on left */
    }
}


/* --- Mission Page (Grid Values) --- */
.mission-intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    border: 1px solid var(--border-color-dark);
    border-radius: 28px;
    padding: 24px;
}
.value-title {
    color: var(--color-accent);
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Contact Page --- */
.contact-layout-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color-light);
    background-color: #fff;
    font-family: var(--font-family-base);
    font-size: 1rem;
}
.contact-form textarea {
    border-radius: 28px;
    resize: vertical;
}
.form-submit-btn {
    width: 100%;
}
.contact-info-block {
    margin-bottom: 24px;
}
.contact-info-title {
    color: var(--color-primary);
}
.contact-info-note {
    font-size: 0.9rem;
    opacity: 0.7;
}
@media (min-width: 1024px) {
    .contact-layout-split {
        grid-template-columns: 3fr 2fr;
    }
}

/* --- Legal & Thank You Pages --- */
.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.legal-content ul {
    margin-bottom: 1rem;
}
.thank-you-section {
    padding: 80px 0;
}
.thank-you-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-top: 24px;
}
.next-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
}
.next-step-card {
    border: 1px solid var(--border-color-light);
    padding: 32px;
    border-radius: 28px;
}
@media (min-width: 768px) {
    .next-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-primary);
    color: var(--text-light);
    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;
    border-top: 1px solid var(--border-color-dark);
}
#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 20px;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
}
.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--color-primary);
}
.cookie-btn-decline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}
@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;
    }
}