/*
  Palette: Graphite & Copper
  - Primary: #AF642D (Copper)
  - Secondary / Text: #34495E (Dark Slate Grey)
  - Background: #F8F9F9 (Very Light Grey)
  - Borders: #EAECEE
*/

:root {
    --primary-color: #AF642D;
    --secondary-color: #34495E;
    --background-color: #FFFFFF;
    --light-gray-bg: #F8F9F9;
    --text-color: #34495E;
    --heading-color: #1C2833;
    --border-color: #EAECEE;
    --white-color: #FFFFFF;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--heading-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p {
    margin-bottom: 16px;
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.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;
    color: var(--heading-color);
    z-index: 100;
}

.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(--heading-color);
    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(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--white-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    color: var(--text-color);
    font-size: 18px;
    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: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #965124;
    border-color: #965124;
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* --- Hero Section (Gradient Center) --- */
.hero-gradient {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.hero-gradient::before, .hero-gradient::after {
    content: '';
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}
.hero-gradient::before {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    top: 20%;
    left: 10%;
    border-radius: 0;
}
.hero-gradient::after {
    width: 100px;
    height: 100px;
    border: 10px solid var(--primary-color);
    bottom: 15%;
    right: 15%;
    border-radius: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 32px auto;
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 19px;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    z-index: 1;
    border-radius: 0;
}
.timeline-title {
    margin-top: 0;
}
@media (max-width: 768px) {
    .timeline::after { left: 14px; }
    .timeline-item { padding-left: 50px; padding-right: 0; }
    .timeline-icon { width: 30px; height: 30px; }
}

/* --- Checklist Section --- */
.checklist-grid {
    display: grid;
    gap: 20px;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--light-gray-bg);
}
.checklist-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}
.checklist-item p {
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Expert Block --- */
.expert-block {
    display: grid;
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--light-gray-bg);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
}
.expert-photo-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    justify-self: center;
}
.expert-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.expert-quote cite {
    font-style: normal;
}
@media (min-width: 768px) {
    .expert-block {
        grid-template-columns: 100px 1fr;
        padding: 40px;
    }
    .expert-photo-placeholder {
        justify-self: start;
    }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item-placeholder {
    background-color: var(--secondary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    font-size: 1.5rem;
    min-height: 250px;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item:first-child {
        grid-column: span 2;
    }
}

/* --- CTA Banner --- */
.section-cta-banner {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}
.section-cta-banner h2 {
    color: var(--white-color);
}

/* --- Program Page --- */
.section-page-header {
    text-align: center;
    padding: 60px 0;
    background-color: var(--light-gray-bg);
}
.page-title { margin-bottom: 16px; }
.page-subtitle { max-width: 800px; margin: 0 auto; }

.program-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
.program-card {
    border: 1px solid var(--border-color);
    padding: 24px;
    background-color: var(--white-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card-icon-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    margin-bottom: 16px;
}
.card-title {
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
}

.image-feature-container {
    display: grid;
    gap: 30px;
    align-items: center;
}
@media (min-width: 768px) {
    .image-feature-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Mission Page --- */
.mission-story-container {
    display: grid;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .mission-story-container { grid-template-columns: 1fr 1fr; }
}
.values-grid {
    display: grid;
    gap: 24px;
}
.value-card {
    padding: 24px;
    border: 1px solid var(--border-color);
}
@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;
    gap: 40px;
}
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 3fr 2fr;
    }
}
.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: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}
.contact-info-wrapper .section-title {
    text-align: left;
}
.contact-details .contact-item {
    margin-bottom: 24px;
}
.contact-details h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.contact-details p {
    margin-bottom: 0;
}

/* --- Legal & Thank You Pages --- */
.section-legal { padding: 60px 0; }
.legal-content h1 { margin-bottom: 24px; }
.legal-content h2 { margin-top: 32px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }

.section-thank-you { padding: 80px 0; text-align: center; }
.thank-you-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    margin: 0 auto 24px;
    border-radius: 0;
}
.thank-you-links {
    margin: 32px 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.next-steps {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--heading-color) !important;
    color: #bdc3c7 !important;
    padding: 40px 0 0;
}
.footer-container {
    display: grid;
    gap: 30px;
    padding-bottom: 40px;
}
.site-footer h4 {
    color: var(--white-color) !important;
    margin-bottom: 16px;
}
.site-footer a {
    color: #bdc3c7 !important;
}
.site-footer a:hover {
    color: var(--white-color) !important;
}
.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}
.footer-contact p {
    margin-bottom: 8px;
}
.footer-bottom {
    border-top: 1px solid #4a6278;
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    font-size: 14px;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 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(--heading-color);
    color: var(--white-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: var(--white-color); 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;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0;
    transition: background-color 0.3s;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cookie-btn-accept:hover { background-color: #965124; }
.cookie-btn-decline {
    background-color: #566573;
    color: var(--white-color);
}
.cookie-btn-decline:hover { background-color: #4a5763; }

@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; }
}