/* Palette: espresso-amber */
:root {
    --color-primary: #2C1810;
    --color-secondary: #4A2E20;
    --color-accent: #D4900A;
    --bg-tint: #FBF6F0;
    --text-light: #FBF6F0;
    --text-dark: #2C1810;
    --border-light: rgba(44, 24, 16, 0.1);
    --border-dark: rgba(251, 246, 240, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.22);
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-tint);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: clamp(16px, 1.5vw, 18px);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

p { margin: 0 0 1.5rem 0; }
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- Layout & Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: clamp(60px, 10vw, 100px) 0;
}

.section-light {
    background-color: var(--bg-tint);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--color-secondary);
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-tint);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px; /* Adjust padding to align with container */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    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(--text-dark);
    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-dark); font-weight: 500; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    background-color: var(--bg-tint);
}

.mobile-nav ul { list-style: none; padding: 20px; margin: 0; }
.mobile-nav li { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.mobile-nav a { color: var(--text-dark); display: block; width: 100%; font-size: 18px; }

/* --- Hero Section (Floating Card) --- */
.hero-section.hero-floating-card {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    opacity: 0.7;
    z-index: -1;
}

.hero-card {
    background-color: var(--bg-tint);
    color: var(--text-dark);
    padding: clamp(30px, 5vw, 60px);
    border-radius: 16px;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 24px 64px var(--shadow-color);
}
.hero-card h1 { color: var(--color-primary); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 1.5rem 0 2.5rem;
    opacity: 0.8;
}

/* --- Benefits Horizontal Scroll --- */
.h-scroll-wrapper {
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}
.h-scroll-content {
    display: flex;
    gap: 24px;
    padding: 0 24px; /* Match container padding */
    width: max-content;
}
.benefit-card-h {
    flex: 0 0 clamp(280px, 70vw, 350px);
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
}
.benefit-card-h h3 { color: var(--color-primary); }

/* --- Quote Highlight Section --- */
.quote-section {
    background-color: var(--color-primary);
}
.quote-highlight {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}
.quote-icon {
    font-size: 6rem;
    color: var(--color-accent);
    line-height: 1;
    position: absolute;
    top: -1rem;
    left: 0;
    opacity: 0.3;
}
.quote-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.quote-author {
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.8;
}

/* --- Two Column Layout --- */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.two-col-image img {
    border-radius: 16px;
    box-shadow: 0 24px 64px var(--shadow-color);
}
.checklist {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}
.checklist li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 0.8rem;
}
.checklist li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-accent);
    font-weight: bold;
}

/* --- Icon Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 3rem;
}
.feature-item {
    background-color: var(--color-primary);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.feature-item h3 { color: var(--color-accent); margin-bottom: 0.5rem; }
.feature-item p { margin-bottom: 0; opacity: 0.8; }

/* --- Accordion FAQ --- */
.faq-container { max-width: 800px; }
.accordion { display: flex; flex-direction: column; gap: 16px; }
.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}
.accordion-header {
    cursor: pointer;
    padding: 18px 24px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}
.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-item[open] .accordion-header::after {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 24px 24px;
    background-color: #fff;
}
.accordion-content p { margin-bottom: 0; }

/* --- Page Header --- */
.page-header {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}
.page-title { color: var(--text-light); }
.page-subtitle { color: var(--text-light); opacity: 0.8; max-width: 600px; margin: 1rem auto 0; }

/* --- Program Page (Grid 6 cards) --- */
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 3rem;
}
.program-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 24px 64px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.30);
}
.program-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.program-card-title { color: var(--color-primary); }
.program-card-text { margin-bottom: 0; }

/* --- CTA Section --- */
.cta-section { background-color: var(--color-primary); }
.cta-container { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.cta-image { border-radius: 16px; object-fit: cover; width: 100%; height: 100%; }
.cta-title { color: var(--color-accent); }
.cta-text { opacity: 0.9; }

/* --- Mission Page (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 10px 40px 30px 70px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-tint);
    border: 4px solid var(--color-accent);
    top: 20px;
    left: 11px;
    z-index: 1;
}
.timeline-date {
    font-weight: bold;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}
.timeline-title { margin-bottom: 0.5rem; }
.timeline-content p { margin-bottom: 0; }

.mission-statement-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.mission-image-container img { border-radius: 16px; }
.mission-text-container p { margin-bottom: 1rem; }
.mission-text-container strong { color: var(--color-accent); }

/* --- Contact Page --- */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.contact-info-item { margin-bottom: 1.5rem; }
.contact-info-item h3 { color: var(--color-primary); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background-color: #fff;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}
.form-submit-btn { width: 100%; padding: 16px; margin-top: 1rem; }

/* --- Policy & Thank You Pages --- */
.policy-page, .thank-you-section { min-height: 70vh; }
.policy-page .container, .thank-you-section .container { max-width: 800px; }
.policy-page h1, .thank-you-section h1 { margin-bottom: 2rem; }
.policy-page h2 { margin-top: 2.5rem; color: var(--color-primary); }

.thank-you-content { text-align: center; padding: 40px 0; }
.thank-you-icon { font-size: 4rem; display: block; margin-bottom: 1.5rem; }
.thank-you-next-steps {
    margin: 3rem 0;
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-align: left;
}
.thank-you-next-steps h2 { text-align: center; }

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--text-light) !important;
    padding: 60px 0 0;
}
.site-footer a { color: var(--text-light) !important; }
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo { color: var(--color-accent); margin-bottom: 1rem; }
.footer-about p { margin-bottom: 0; opacity: 0.8; }
.site-footer h3 { color: var(--text-light); margin-bottom: 1.5rem; }
.footer-links ul li, .footer-legal ul li { margin-bottom: 0.8rem; }
.footer-contact p { margin-bottom: 0.8rem; opacity: 0.8; }
.footer-bottom {
    border-top: 1px solid var(--border-dark);
    text-align: center;
    padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 0.9rem; opacity: 0.7; }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--color-primary);
    color: var(--text-light);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}
#cookie-banner.hidden { transform: translateY(120%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { 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: 8px;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept { background-color: var(--color-accent); color: var(--color-primary); }
.cookie-btn-decline { background-color: transparent; border: 1px solid var(--text-light); color: var(--text-light); }

/* --- Responsive Media Queries (Mobile First) --- */
@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); }
}

@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; }
}

@media (min-width: 768px) {
    .two-col-layout { grid-template-columns: 1fr 1fr; }
    .two-col-layout.reverse .two-col-image { order: 2; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-container { grid-template-columns: 1fr 1fr; }
    .mission-statement-container { grid-template-columns: 40% 1fr; }
    .contact-layout-grid { grid-template-columns: 1fr 1.5fr; }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .program-grid { grid-template-columns: repeat(3, 1fr); }
    .timeline::after { left: 50%; margin-left: -1px; }
    .timeline-item { width: 50%; padding: 10px 40px 30px; }
    .timeline-item:nth-child(odd) { left: 0; text-align: right; }
    .timeline-item:nth-child(even) { left: 50%; }
    .timeline-item::before { left: -10px; }
    .timeline-item:nth-child(odd)::before { right: -10px; left: auto; }
}