/*
  Palette: Terracotta Sun
  Primary: #D35400 (Vibrant Orange)
  Secondary: #E59866 (Soft Terracotta)
  Accent: #F5CBA7 (Light Peach)
  Text: #4E342E (Dark Brown)
  Background: #FEF9E7 (Pale Ivory)
  Borders: #D7CCC8 (Light Grayish Brown)
*/

:root {
    --color-primary: #D35400;
    --color-secondary: #E59866;
    --color-accent: #F5CBA7;
    --color-text: #4E342E;
    --color-background: #FEF9E7;
    --color-background-alt: #FDFEFE;
    --color-white: #FFFFFF;
    --color-borders: #D7CCC8;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --border-radius-main: 12px;
    --border-radius-btn: 8px;
}

/* --- General & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

.section-alt {
    background-color: var(--color-background-alt);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 16px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 48px auto;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-borders);
}

.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);
    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);
    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 .nav-list a {
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.desktop-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.desktop-nav .nav-list a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Adjust based on 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(--color-background);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
}

.mobile-nav a {
    color: var(--color-text);
    font-size: 18px;
    font-weight: bold;
}

/* --- Hero Section (split-color) --- */
.hero-split-color {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
}

.hero-content-area {
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.hero-text-wrapper {
    max-width: 550px;
}

.hero-title {
    color: var(--color-text);
}

.hero-subtitle {
    margin: 24px 0;
}

.hero-image-area {
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #A94402; /* Darker primary */
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- Horizontal Scroll Section --- */
.horizontal-scroll-container {
    overflow-x: auto;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) transparent;
}
.scroll-wrapper {
    display: flex;
    gap: 24px;
    width: max-content;
}
.benefit-card-h {
    width: 280px;
    background: var(--color-background-alt);
    padding: 24px;
    border-radius: var(--border-radius-main);
    border: 1px solid var(--color-borders);
    flex-shrink: 0;
}
.benefit-card-h h3 {
    color: var(--color-primary);
}

/* --- Comparison Table Section --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-borders);
}
.comparison-table thead {
    background-color: var(--color-accent);
}
.comparison-table th {
    font-weight: bold;
}
.check {
    color: #27AE60; /* Green allowed for UI feedback */
    font-weight: bold;
}
.cross {
    color: #C0392B; /* Red allowed for UI feedback */
}

/* --- Icon Features Section --- */
.icon-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.feature-item {
    text-align: center;
}
.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* --- Gallery Grid Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-main);
}
.gallery-item.placeholder {
    background-color: var(--color-accent);
    border-radius: var(--border-radius-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    min-height: 200px;
    color: var(--color-text);
}

/* --- Quote Highlight Section --- */
.quote-highlight-section {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 64px 0;
}
.quote-wrapper {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.quote-mark {
    font-size: 100px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}
.quote-text {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    margin-bottom: 24px;
}
.quote-author {
    font-weight: bold;
}

/* --- Program Page: Horizontal Tabs --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tabs-container input[type="radio"] {
    display: none;
}
.tab-radios {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-borders);
}
.tab-radios input[type="radio"] {
    display: none;
}
.tab-radios label {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    width: 50%;
    text-align: center;
}
#tab1:checked ~ .tab-radios label[for="tab1"],
#tab2:checked ~ .tab-radios label[for="tab2"],
#tab3:checked ~ .tab-radios label[for="tab3"],
#tab4:checked ~ .tab-radios label[for="tab4"] {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}
.tab-content-wrapper .tab-content {
    display: none;
    padding: 32px 0;
}
#tab1:checked ~ .tab-content-wrapper #content1,
#tab2:checked ~ .tab-content-wrapper #content2,
#tab3:checked ~ .tab-content-wrapper #content3,
#tab4:checked ~ .tab-content-wrapper #content4 {
    display: block;
}
.content-image {
    width: 100%;
    border-radius: var(--border-radius-main);
    margin-bottom: 24px;
}

/* --- Mission Page: Story-Team --- */
.story-team-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.team-image {
    border-radius: var(--border-radius-main);
}
.image-caption {
    font-size: 0.9em;
    text-align: center;
    color: #777;
    margin-top: 12px;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background-color: var(--color-background);
    padding: 24px;
    border: 1px solid var(--color-borders);
    border-radius: var(--border-radius-main);
}
.value-title {
    color: var(--color-primary);
}


/* --- 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: 1px solid var(--color-borders);
    border-radius: var(--border-radius-btn);
    font-family: inherit;
    font-size: 16px;
}
.btn-full-width {
    width: 100%;
}
.contact-info-wrapper {
    background-color: var(--color-accent);
    padding: 32px;
    border-radius: var(--border-radius-main);
}
.info-block {
    margin-bottom: 24px;
}
.info-block h4 {
    margin-bottom: 8px;
}
.info-block p {
    margin: 0;
}

/* --- Legal & Thank You Pages --- */
.page-header-section {
    background-color: var(--color-background-alt);
    text-align: center;
    padding: 64px 0;
}
.page-title { margin-bottom: 16px; }
.page-subtitle { max-width: 700px; margin: 0 auto; }
.legal-content { max-width: 800px; }
.legal-content h1, .legal-content h2 { margin-top: 2.5rem; }
.thank-you-section { padding: 80px 0; }
.thank-you-title { font-size: 3rem; color: var(--color-primary); }
.thank-you-text { font-size: 1.2rem; max-width: 600px; margin: 1rem auto 2rem; }
.next-steps { margin-top: 40px; }
.next-steps-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }


/* --- Footer --- */
.site-footer {
    background-color: #4E342E !important; /* Dark Brown */
    color: #FEF9E7 !important; /* Pale Ivory */
    padding: 48px 0 0 0;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-heading {
    color: var(--color-white) !important;
    margin-bottom: 16px;
}
.footer-column p {
    margin: 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #D7CCC8 !important; /* Light Grayish Brown */
}
.footer-links a:hover {
    color: var(--color-white) !important;
}
.footer-bottom {
    border-top: 1px solid #795548; /* Mid Brown */
    padding: 24px 0;
    text-align: center;
    font-size: 0.9em;
}

/* --- 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(--color-text);
    color: var(--color-white);
}
#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-radius: var(--border-radius-btn);
    border: 1px solid var(--color-white);
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.cookie-btn-decline {
    background-color: transparent;
    color: var(--color-white);
}

/* --- 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) {
    .section { padding: 64px 0; }
    .container { padding: 0 24px; }
    .icon-features-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout-split { grid-template-columns: 3fr 2fr; }
}

@media (min-width: 992px) {
    .hero-split-color { grid-template-columns: 1fr 1fr; }
    .story-team-layout { grid-template-columns: 2fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}