/*
  Palette: Terracotta Sunset
  Primary: #E57373 (Light Red/Terracotta)
  Secondary: #FFB74D (Warm Orange)
  Background: #FFF3E0 (Very Light Beige)
  Text: #4E342E (Dark Brown)
  White: #FFFFFF
*/

:root {
    --color-primary: #E57373;
    --color-secondary: #FFB74D;
    --color-background-light: #FFFFFF;
    --color-background-soft: #FFF8F0;
    --color-text-dark: #4E342E;
    --color-text-light: #6D4C41;
    --color-border: #D7CCC8;
    --shadow-dramatic: 0 24px 64px rgba(78, 52, 46, 0.22);
    --shadow-dramatic-hover: 0 32px 80px rgba(78, 52, 46, 0.30);
}

/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3 {
    margin: 0 0 16px 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(28px, 6vw, 48px);
}

h2 {
    font-size: clamp(24px, 5vw, 36px);
}

h3 {
    font-size: clamp(20px, 4vw, 24px);
}

p {
    margin: 0 0 16px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--color-background-soft) 0%, var(--color-background-light) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    color: var(--color-text-light);
    font-size: clamp(16px, 3vw, 18px);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0; /* Sharp border */
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-dramatic);
}

.btn-primary:hover {
    background-color: #D32F2F;
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-dramatic-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: calc(100% - 20px);
    padding: 15px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.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(--color-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(--color-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 {
    font-weight: 500;
    color: var(--color-text-light);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 99;
    background-color: var(--color-background-light);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
}

.mobile-nav a {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-text-dark) !important;
    color: #E0E0E0 !important;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.site-footer p, .site-footer a, .site-footer li {
    color: #CFD8DC !important;
}

.site-footer a:hover {
    color: var(--color-secondary) !important;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #5D4037;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* --- Homepage Specific --- */
.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 {
    padding: 48px 0;
    background-color: var(--color-background-soft);
    text-align: center;
}

.section-quote {
    background: var(--color-primary);
    color: white;
    padding: 48px 0;
}
.quote-block {
    margin: 0;
    text-align: center;
}
.quote-block p {
    font-size: clamp(18px, 4vw, 24px);
    font-style: italic;
    margin-bottom: 16px;
}
.quote-block cite {
    font-weight: 600;
}

.benefits-scroll-section {
    padding-bottom: 0;
}
.horizontal-scroll-wrapper {
    overflow-x: auto;
    padding: 24px 16px 60px 16px;
}
.scroll-container {
    display: flex;
    gap: 24px;
    width: max-content;
}
.scroll-card {
    width: 280px;
    flex-shrink: 0;
    background: var(--color-background-light);
    box-shadow: var(--shadow-dramatic);
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.scroll-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic-hover);
}

.split-section-content-image .split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.split-image-container {
    box-shadow: var(--shadow-dramatic);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.step-card {
    border: 1px solid var(--color-border);
    padding: 24px;
    background-color: var(--color-background-light);
}
.step-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-primary);
    display: block;
    margin-bottom: 16px;
}

.cta-section {
    background: var(--color-primary);
    color: white;
}
.cta-container {
    text-align: center;
}
.cta-section h2 {
    color: white;
}
.cta-section .btn-primary {
    background-color: white;
    color: var(--color-primary);
    border-color: white;
}
.cta-section .btn-primary:hover {
    background-color: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* --- Program Page --- */
.program-hero {
    text-align: center;
    padding-bottom: 0;
}
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 32px;
}
.tab-button {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
    position: relative;
    border-radius: 0;
}
.tab-button.active {
    color: var(--color-primary);
}
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}
.content-image {
    margin-top: 24px;
    width: 100%;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-section {
    background-color: var(--color-background-soft);
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--color-primary);
}
.stat-label {
    font-size: 16px;
    color: var(--color-text-light);
    margin: 0;
}
.cta-section-inner {
    background-color: var(--color-background-light);
}

/* --- Mission Page --- */
.mission-story-section {
    padding-bottom: 0;
}
.mission-story-section .container:first-child {
    text-align: center;
    margin-bottom: 48px;
}
.story-block {
    padding: 48px 0;
}
.story-block.text-block {
    background-color: var(--color-background-soft);
}
.story-block.image-block img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.values-section {
    padding: 60px 0;
}
.values-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}
.values-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.values-list li:last-child {
    border-bottom: none;
}
.values-list strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 4px;
}

/* --- Contact Page --- */
.contact-hero {
    text-align: center;
    padding-bottom: 0;
}
.contact-grid-container {
    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: 600;
}
.contact-form input,
.contact-form textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 16px;
    background-color: var(--color-background-light);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}
.contact-sidebar .sidebar-widget {
    background: var(--color-background-soft);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget h3 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.sidebar-widget p {
    margin-bottom: 8px;
}

/* --- Legal & Thank You Pages --- */
.legal-page .container {
    padding-top: 40px;
    padding-bottom: 40px;
}
.legal-page section {
    margin-bottom: 32px;
}
.legal-page h2 {
    margin-bottom: 12px;
}
.text-center {
    text-align: center;
}
.thank-you-section .subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 16px auto 48px;
}
.next-steps {
    margin-top: 48px;
    border-top: 1px solid var(--color-border);
    padding-top: 48px;
}
.next-steps-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

/* --- 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-text-dark);
    color: white;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--color-secondary); 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: 600;
    border-radius: 0;
}
.cookie-btn-accept {
    background-color: var(--color-primary);
    color: white;
}
.cookie-btn-decline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        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);
    }
    .mobile-nav {
        display: block;
    }
}

@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) {
    .section {
        padding: 80px 0;
    }
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .split-section-content-image .split-container {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-grid-container {
        grid-template-columns: 2fr 1fr;
    }
    .next-steps-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-vertical-stack {
        flex-direction: row;
        height: 80vh;
        max-height: 700px;
    }
    .hero-image-container {
        width: 55%;
        height: 100%;
    }
    .hero-content-container {
        width: 45%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
        padding: 0 48px;
    }
}