/*
  Design System:
  - design-style: minimalist
  - border-style: rounded
  - shadow-style: flat
  - color-mode: light
  - Color Palette: Terracotta & Slate
*/

:root {
    --color-background: #F8F5F2; /* Light Cream */
    --color-text: #333333;
    --color-primary: #E57373; /* Soft Terracotta */
    --color-secondary: #5D4037; /* Dark Brown */
    --color-border: #E0E0E0;
    --color-white: #FFFFFF;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: clamp(16px, 1.5vw, 18px);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
}

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); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 60px 0;
}

.section-padding-bottom {
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .section-padding {
        padding: 80px 0;
    }
    .section-padding-bottom {
        padding-bottom: 80px;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.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(--color-secondary);
}

.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-secondary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.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;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 71px; /* Header height + border */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-background);
    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;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

@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);
    }

    .tabs-nav label {
        width: 100%;
        text-align: center;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #D32F2F; /* Darker Terracotta */
    border-color: #D32F2F;
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* --- Hero Section (Gradient Center) --- */
.hero-gradient {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
    background: linear-gradient(135deg, #F8F5F2 0%, #EAD9CE 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    color: #444;
}

/* --- Benefits Section (Asymmetric Grid) --- */
.benefits-grid-asymm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.benefit-card {
    background-color: var(--color-white);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.card-title {
    margin-bottom: 12px;
}

@media (min-width: 992px) {
    .benefits-grid-asymm {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
    .featured-card {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
}

/* --- CTA Banner --- */
.cta-banner {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2, .cta-banner p {
    color: var(--color-white);
}
.cta-banner p {
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--color-white);
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border: 1px solid var(--color-border);
}
.comparison-table thead {
    background-color: #f7f7f7;
}
.comparison-table th {
    font-weight: 600;
}
.comparison-table .check::before {
    content: '✔';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}
.comparison-table .cross::before {
    content: '✖';
    color: #F44336;
    font-weight: bold;
    margin-right: 8px;
}
@media (min-width: 768px) {
    .comparison-table td, .comparison-table th {
        text-align: center;
    }
    .comparison-table td:first-child, .comparison-table th:first-child {
        text-align: left;
    }
}

/* --- Quote Highlight --- */
.quote-highlight {
    background-color: #EAD9CE;
    padding: 60px 0;
    text-align: center;
}
.quote-mark {
    font-size: 4rem;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}
.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}
.quote-author {
    font-weight: 600;
    color: var(--color-secondary);
}

/* --- Numbered Steps --- */
.steps-container {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.step-title {
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Program Page: Horizontal Tabs --- */
.tabs {
    max-width: 900px;
    margin: 0 auto;
}
input[name="tabs"] { 
    display: none; 
}
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
}
.tabs-nav label {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: -1px; /* Overlap border */
}
.tabs-nav label:hover {
    background-color: #f7f7f7;
}
.tab-panel { 
    display: none; 
    padding: 24px 0;
}
#t1:checked ~ .tabs-panels #p1,
#t2:checked ~ .tabs-panels #p2,
#t3:checked ~ .tabs-panels #p3,
#t4:checked ~ .tabs-panels #p4 { 
    display: block; 
}
#t1:checked ~ .tabs-nav label[for="t1"],
#t2:checked ~ .tabs-nav label[for="t2"],
#t3:checked ~ .tabs-nav label[for="t3"],
#t4:checked ~ .tabs-nav label[for="t4"] {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

/* --- Mission Page: Vertical Storytelling --- */
.story-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}
.story-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}
@media (min-width: 992px) {
    .story-block {
        flex-direction: row;
        align-items: center;
    }
    .story-block.reverse {
        flex-direction: row-reverse;
    }
    .story-image-wrapper, .story-content {
        flex: 1;
    }
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    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(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.form-submit-btn {
    width: 100%;
}
.contact-details-list {
    margin-top: 20px;
}
.contact-details-list li {
    margin-bottom: 16px;
}
.contact-details-list strong {
    display: block;
    color: var(--color-secondary);
}
.operating-hours {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
    padding: 50px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}
.site-footer h4 {
    color: var(--color-white) !important;
    margin-bottom: 16px;
}
.site-footer p, .site-footer a {
    color: #e0e0e0 !important;
}
.site-footer a:hover {
    color: var(--color-primary) !important;
}
.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copyright p {
    font-size: 0.9rem;
    margin: 0;
}

/* --- Other Pages (Legal, Thank You) --- */
.page-header {
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 40px;
}
.legal-content h1, .legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--color-white);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.next-steps {
    margin: 30px 0;
    padding: 20px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden { 
    transform: translateY(110%); 
}
#cookie-banner p { 
    margin: 0; 
    flex: 1; 
    min-width: 200px; 
    font-size: 0.9rem;
    color: var(--color-white) !important;
}
#cookie-banner a {
    text-decoration: underline;
    font-weight: 500;
    color: var(--color-white) !important;
}
#cookie-banner a:hover {
    color: var(--color-primary) !important;
}
.cookie-btns { 
    display: flex; 
    gap: 10px; 
    flex-shrink: 0; 
    flex-wrap: wrap; 
}
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid var(--color-white);
}
.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 (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; }
}