/*
  design-style: warm-vintage
  border-style: rounded
  shadow-style: subtle
  color-mode: light
  Color Palette: Warm Vintage (Terracotta, Brown, Cream)
*/

:root {
    --primary-color: #A93226; /* Terracotta Red */
    --secondary-color: #784212; /* Dark Brown */
    --background-color: #FDF5E6; /* Old Lace / Cream */
    --card-background: #FFFFFF;
    --text-color: #3D2B1F; /* Umber */
    --text-light: #644536;
    --border-color: #EAE0D5;
    --footer-bg-color: #3D2B1F;
    --footer-text-color: #FDF5E6;
    --heading-font: 'Georgia', 'Times New Roman', serif;
    --body-font: 'Helvetica Neue', Arial, sans-serif;
    --subtle-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --card-border-radius: 12px;
    --btn-border-radius: 8px;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.015), rgba(0,0,0,0.015) 1px, transparent 1px, transparent 12px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .container {
        padding: 0 24px;
    }
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

.page-title {
    font-size: clamp(36px, 6vw, 56px);
    text-align: center;
}

.page-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

.page-header-section {
    padding-bottom: 40px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--background-color);
    box-shadow: var(--subtle-shadow);
    padding: 15px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.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;
    font-family: var(--heading-font);
    color: var(--secondary-color);
    z-index: 100;
}
.logo:hover {
    text-decoration: none;
}

.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(--secondary-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-checkbox { display: none; }

.desktop-nav { display: block; }
.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}
.desktop-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}
.desktop-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px; /* header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    z-index: 99;
    background-color: var(--background-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.mobile-nav ul { list-style: none; padding: 20px; margin: 0; }
.mobile-nav li { padding: 12px 0; text-align: center; }
.mobile-nav li a { font-size: 18px; color: var(--text-color); }
.mobile-nav li:not(:last-child) { border-bottom: 1px solid var(--border-color); }

@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 28px;
    border-radius: var(--btn-border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #87281e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Hero Section (Circle Image) --- */
.hero-circle-image {
    padding: 60px 0;
}
.hero-container-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.hero-title {
    font-size: clamp(32px, 6vw, 52px);
}
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 18px);
    margin: 20px 0 30px;
    color: var(--text-light);
}
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-circle-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--card-background);
    box-shadow: var(--subtle-shadow);
}
@media (min-width: 768px) {
    .hero-container-split {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
    }
}

/* --- Benefits Horizontal Scroll --- */
.benefits-hscroll-section {
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.hscroll-container {
    overflow-x: auto;
    padding: 20px 0 30px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--border-color);
}
.hscroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 16px; /* For container padding on mobile */
    width: max-content;
}
.hscroll-card {
    flex: 0 0 280px;
    background: var(--background-color);
    padding: 24px;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--subtle-shadow);
}
.hscroll-card .card-title {
    font-size: 20px;
    color: var(--primary-color);
}
@media (min-width: 768px) {
    .hscroll-wrapper {
        padding: 0 24px;
    }
}

/* --- Icon Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}
.feature-item {
    text-align: center;
    background: var(--card-background);
    padding: 24px;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--subtle-shadow);
}
.feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.feature-title {
    font-size: 18px;
    margin-bottom: 8px;
}
.feature-item p {
    color: var(--text-light);
    font-size: 14px;
}
@media (min-width: 500px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--card-background);
}
.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.testimonial-card {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    background-color: var(--background-color);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
}
.testimonial-name {
    font-weight: bold;
    font-family: var(--heading-font);
}
.testimonial-rating {
    color: var(--primary-color);
}
.testimonial-text {
    font-style: italic;
    color: var(--text-light);
}
@media (min-width: 768px) {
    .testimonials-wrapper { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .testimonials-wrapper { grid-template-columns: 1fr; }
}

/* --- Expert Block --- */
.expert-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.expert-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--card-border-radius);
    margin: 0 auto;
    box-shadow: var(--subtle-shadow);
}
.expert-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    font-size: 18px;
    font-style: italic;
    margin: 0;
}
.expert-content footer {
    margin-top: 16px;
    font-weight: bold;
    font-style: normal;
    color: var(--secondary-color);
}
@media (min-width: 768px) {
    .expert-container {
        grid-template-columns: 300px 1fr;
        gap: 50px;
    }
}

/* --- CTA Banner --- */
.cta-banner-section {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0;
}
.cta-container {
    text-align: center;
}
.cta-title {
    color: #fff;
    font-size: clamp(24px, 5vw, 36px);
}
.cta-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}
.cta-banner-section .btn-secondary {
    background-color: #fff;
    color: var(--secondary-color);
    border-color: #fff;
}
.cta-banner-section .btn-secondary:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
    border-color: var(--background-color);
}


/* --- Program Page (Tabs) --- */
.tabs-wrapper {
    width: 100%;
}
.tabs-wrapper input[type="radio"] {
    display: none;
}
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.tab-label {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 5px;
    margin-bottom: -1px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s;
}
@media (max-width: 768px) {
.tab-label {
    width: 100%;
}
}
#tab1:checked ~ .tabs-nav label[for="tab1"],
#tab2:checked ~ .tabs-nav label[for="tab2"],
#tab3:checked ~ .tabs-nav label[for="tab3"],
#tab4:checked ~ .tabs-nav label[for="tab4"] {
    background: var(--card-background);
    border-bottom: 1px solid var(--card-background);
    color: var(--primary-color);
    font-weight: bold;
}
.tabs-body {
    border: 1px solid var(--border-color);
    background: var(--card-background);
    border-radius: 0 var(--card-border-radius) var(--card-border-radius) var(--card-border-radius);
}
.tab-content {
    display: none;
    padding: 30px;
}
#tab1:checked ~ .tabs-body #content1,
#tab2:checked ~ .tabs-body #content2,
#tab3:checked ~ .tabs-body #content3,
#tab4:checked ~ .tabs-body #content4 {
    display: block;
}
.content-with-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.content-image {
    border-radius: var(--card-border-radius);
    margin-top: 16px;
}
@media (min-width: 768px) {
    .content-with-image {
        grid-template-columns: 2fr 1fr;
    }
    .content-image {
        margin-top: 0;
    }
}

/* --- Mission Page --- */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.story-image {
    border-radius: var(--card-border-radius);
    box-shadow: var(--subtle-shadow);
}
@media (min-width: 992px) {
    .story-container { grid-template-columns: 1fr 1fr; }
}
.values-section {
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    background-color: var(--background-color);
}
@media (min-width: 500px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Contact Page --- */
.contact-layout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .contact-layout-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
    }
}
.contact-form-wrapper .section-title,
.contact-info-wrapper .section-title {
    text-align: left;
}
.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: var(--btn-border-radius);
    font-family: var(--body-font);
    font-size: 16px;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(169, 50, 38, 0.2);
}
.contact-info-card {
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
}
.contact-info-card h3 {
    font-size: 18px;
    color: var(--primary-color);
}
.contact-info-card p {
    margin: 0;
    color: var(--text-light);
}

/* --- Legal & Thank You Pages --- */
.legal-page .container, .thank-you-section .container {
    max-width: 800px;
}
.legal-page h2 {
    margin-top: 30px;
    font-size: 24px;
}
.text-center { text-align: center; }
.thank-you-section .next-steps {
    margin: 40px 0;
    padding: 30px;
    background: var(--card-background);
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.home-link {
    display: inline-block;
    margin-top: 20px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg-color) !important;
    color: var(--footer-text-color) !important;
    padding: 60px 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.site-footer h3 {
    color: #fff !important;
    font-size: 20px;
}
.site-footer p {
    color: rgba(255,255,255,0.7) !important;
}
.footer-links ul {
    list-style: none;
}
.footer-links a {
    color: rgba(255,255,255,0.7) !important;
}
.footer-links a:hover {
    color: #fff !important;
    text-decoration: underline;
}
.footer-contact a {
    color: rgba(255,255,255,0.7) !important;
}
.footer-contact a:hover {
    color: #fff !important;
}
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copyright p {
    font-size: 14px;
    margin: 0;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: #fff; 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: var(--btn-border-radius);
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: #fff;
}
.cookie-btn-decline {
    background-color: #555;
    color: #fff;
}
@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; }
}