/*
  Design System:
  - design-style: bold-editorial
  - border-style: pill
  - shadow-style: flat
  - color-mode: light
*/

/* Color Palette: Bordeaux-Cream */
:root {
    --bg-color: #FDF6E3; /* Cream */
    --text-color: #3C1414; /* Dark Bordeaux Text */
    --primary-color: #8B0000; /* Bordeaux */
    --accent-color: #E0D8C6; /* Light Beige/Accent */
    --white-color: #FFFFFF;
    --black-color: #1a1a1a;
    --border-color: #DCD0B4;
    --footer-bg-color: #3C1414 !important;
    --footer-text-color: #FDF6E3 !important;

    --font-family-headings: 'Georgia', 'Times New Roman', serif;
    --font-family-body: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* --- Typography (Bold Editorial) --- */
h1, h2, h3 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black-color);
}

h1.hero-title {
    font-size: clamp(40px, 9vw, 60px);
    margin-bottom: 24px;
}

h1.page-title {
    font-size: clamp(40px, 7vw, 72px);
    text-align: center;
}

h2.section-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 16px;
    text-align: center;
}

h2.section-title-huge {
    font-size: clamp(40px, 8vw, 90px);
    margin-bottom: 16px;
}

h3.card-title {
    font-size: clamp(20px, 3vw, 24px);
    margin-bottom: 12px;
}

.section-intro, .page-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 800px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.page-subtitle {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}

/* --- Buttons (Pill) --- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 999px; /* Pill style */
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--black-color);
    border-color: var(--black-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-color);
    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: 28px;
    font-weight: bold;
    z-index: 100;
    color: var(--black-color);
    font-family: var(--font-family-headings);
}

.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(--black-color);
    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;
}

.desktop-nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    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-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    font-size: 20px;
    font-weight: bold;
    color: var(--black-color);
}

/* --- Sections --- */
.section {
    padding: 60px 0;
}
.section-accent {
    background-color: var(--accent-color);
}
@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

.page-header-section {
    padding: 40px 0;
    text-align: center;
}
@media (min-width: 768px) {
    .page-header-section {
        padding: 80px 0;
    }
}

/* --- Hero Section (Grid Overlap) --- */
.hero-section-overlap {
    padding: 60px 0;
    overflow: hidden;
}
.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.hero-image-container {
    order: 1;
}
.hero-content-container {
    order: 2;
    z-index: 2;
}
.hero-image {
    width: 100%;
    height: auto;
    border-radius: 36px;
}
@media (min-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 0;
    }
    .hero-image-container {
        order: 2;
    }
    .hero-content-container {
        order: 1;
        padding-right: 40px;
    }
}

/* --- Benefits Horizontal Scroll --- */
.benefits-hscroll-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.horizontal-scroll-wrapper {
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.scroll-container {
    display: flex;
    gap: 24px;
    padding: 0 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.benefit-card-h {
    flex: 0 0 300px;
    background: var(--white-color);
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 36px; /* Pill */
}
@media (min-width: 768px) {
    .scroll-container {
        padding: 0 24px;
    }
    .benefit-card-h {
        flex-basis: 350px;
    }
}

/* --- Accordion FAQ --- */
.accordion-container {
    max-width: 800px;
    margin: 40px auto 0;
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-title {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: bold;
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* remove default marker */
}
.accordion-title::-webkit-details-marker { display: none; } /* Chrome */
.accordion-title::after {
    content: '+';
    font-size: 28px;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.accordion-item[open] > .accordion-title::after {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 0 24px;
}
.accordion-content p, .accordion-content ul {
    margin-bottom: 16px;
}
.accordion-content ul {
    padding-left: 20px;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    min-width: 600px;
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
    font-family: var(--font-family-headings);
    font-size: 20px;
    background-color: rgba(0,0,0,0.05);
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.positive-cell {
    color: #006400;
    font-weight: bold;
}
.negative-cell {
    color: var(--primary-color);
}
.positive-cell::before { content: '✓ '; }
.negative-cell::before { content: '✗ '; }

/* --- Quote Block --- */
.quote-highlight-block {
    position: relative;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.quote-symbol {
    font-family: var(--font-family-headings);
    font-size: 150px;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    left: 0;
    z-index: -1;
    line-height: 1;
}
.quote-text {
    font-size: clamp(24px, 4vw, 36px);
    font-style: italic;
    font-family: var(--font-family-headings);
    margin-bottom: 24px;
}
.quote-author {
    font-style: normal;
    font-weight: bold;
}

/* --- Expert Block --- */
.expert-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    max-width: 900px;
    margin: 40px auto 0;
}
.expert-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 999px; /* Pill */
    overflow: hidden;
    margin: 0 auto;
}
.expert-image-actual {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.expert-content {
    text-align: center;
}
.expert-name {
    font-size: 24px;
}
.expert-title {
    font-style: italic;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .expert-block {
        grid-template-columns: 150px 1fr;
        gap: 40px;
    }
    .expert-content {
        text-align: left;
    }
}

/* --- Program Page --- */
.accordion-container-program {
    margin-top: 40px;
}
.accordion-container-program .accordion-content ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 16px;
}
.decorative-image-program {
    max-width: 400px;
    margin: 0 auto 40px;
    border-radius: 36px;
}

/* --- Mission Page --- */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.story-image {
    border-radius: 36px;
}
@media (min-width: 768px) {
    .story-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}
.value-card {
    background-color: var(--white-color);
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 36px;
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 28px; /* Pill */
    font-size: 16px;
    background-color: var(--white-color);
}
.form-group textarea {
    resize: vertical;
}
.form-submit-btn {
    width: 100%;
}
.contact-info-block {
    margin-bottom: 32px;
}
.contact-info-block h3 {
    margin-bottom: 8px;
}
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* --- Thank You Page --- */
.thank-you-section {
    padding: 80px 0;
}
.thank-you-divider {
    height: 2px;
    width: 100px;
    background-color: var(--primary-color);
    margin: 32px auto;
}
.thank-you-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.thank-you-card {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 36px;
    text-align: left;
    color: var(--text-color);
    transition: transform 0.3s ease;
}
.thank-you-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
@media (min-width: 768px) {
    .thank-you-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Legal Pages --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}
.legal-content p, .legal-content ul {
    margin-bottom: 16px;
}
.legal-content ul {
    padding-left: 20px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.footer-heading {
    font-family: var(--font-family-headings);
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--white-color) !important;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a, .footer-column a {
    color: var(--footer-text-color) !important;
    opacity: 0.8;
}
.footer-links a:hover, .footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* --- 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(--black-color);
    color: var(--white-color);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: var(--accent-color); 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: 999px;
    border: 1px solid var(--white-color);
    font-size: 14px;
    cursor: pointer;
}
.cookie-btn-accept {
    background-color: var(--white-color);
    color: var(--black-color);
}
.cookie-btn-decline {
    background-color: transparent;
    color: var(--white-color);
}
@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; }
}

/* --- Mobile Menu Logic --- */
@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);
    }
}
