/*
 * Design System: warm-vintage
 * Border Style: pill
 * Shadow Style: subtle
 * Color Mode: mixed
 * Color Palette: Earthy Vintage
*/

:root {
    --primary-color: #D2691E; /* Chocolate */
    --secondary-color: #F5DEB3; /* Wheat */
    --accent-color: #8B4513; /* SaddleBrown */
    --dark-bg: #2C2A2A;
    --light-bg: #FDF5E6; /* Old Lace */
    --light-text: #F5F5F5;
    --dark-text: #3D352E;
    --border-color: #D3D3D3;
    --subtle-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);

    --font-heading: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

ul {
    list-style-position: inside;
}

img, .responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    padding-top: clamp(48px, 10vw, 80px);
    padding-bottom: clamp(48px, 10vw, 80px);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--dark-text);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    color: #555;
}

.page-title {
    margin-bottom: 1rem;
}

.page-subtitle {
    max-width: 800px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #666;
}

.page-header-section {
    padding-bottom: 40px;
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px; /* pill style */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: clamp(24px, 4vw, 28px);
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 100;
    color: var(--light-text);
    text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--secondary-color); }

.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(--light-text);
    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 {
    color: var(--light-text);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 74px; /* 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(--dark-bg);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.mobile-nav a {
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
}

@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); }
}

/* --- Hero Section (gradient-center) --- */
.hero-gradient-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #4a4848 100%);
}

.hero-gradient-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 10px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-content h1 {
    color: var(--light-text);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 24px 0 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Benefits Section (benefits-3col) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.benefit-card {
    background-color: #fff;
    padding: 32px;
    border-radius: 28px; /* pill style */
    box-shadow: var(--subtle-shadow);
    text-align: center;
    border: 1px solid #eee;
}
.benefit-card h3 {
    margin-bottom: 16px;
    color: var(--accent-color);
}
@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- CTA Banner --- */
.cta-banner-section {
    background-color: var(--accent-color);
    background-image: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: var(--light-text);
    padding: 60px 20px;
    text-align: center;
}
.cta-banner-content h2 { color: var(--light-text); }
.cta-banner-content p {
    max-width: 600px;
    margin: 16px auto 32px;
}
.cta-banner-section .btn-secondary {
    border-color: var(--light-text);
    color: var(--light-text);
}
.cta-banner-section .btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-text);
}

/* --- Icon Features Section --- */
.icon-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.feature-item {
    text-align: center;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}
.feature-item h4 {
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
}
.feature-item p {
    font-size: 0.9rem;
    color: #666;
}
@media (min-width: 768px) {
    .icon-features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .icon-features-grid { grid-template-columns: repeat(6, 1fr); }
}

/* --- Checklist Block --- */
.checklist-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.checklist {
    list-style: none;
    padding: 0;
    column-count: 1;
}
.checklist li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}
.checklist-image-content img {
    border-radius: 28px;
    box-shadow: var(--subtle-shadow);
}
@media (min-width: 768px) {
    .checklist-container { grid-template-columns: 1fr 1fr; }
    .checklist { column-count: 2; }
}

/* --- Accordion FAQ --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-header {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    list-style: none; /* remove default marker */
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-item[open] .accordion-header::after {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 20px 20px 20px;
}
.accordion-content p {
    margin: 0;
}

/* --- Program Page: Numbered Sections --- */
.numbered-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}
.numbered-section::before {
    counter-increment: section-counter;
    content: "0" counter(section-counter);
    position: absolute;
    top: -40px;
    left: 0;
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    color: rgba(210, 105, 30, 0.1);
    z-index: -1;
}
.numbered-section.reverse {
    direction: rtl;
}
.numbered-section.reverse > * {
    direction: ltr;
}
.numbered-section-content h2 {
    margin-bottom: 16px;
}
.numbered-section-image img {
    border-radius: 28px;
}
@media (min-width: 768px) {
    .numbered-section { grid-template-columns: 1fr 1fr; }
}
body {
    counter-reset: section-counter;
}

/* --- Mission Page: Story Team --- */
.mission-story-section .page-subtitle {
    text-align: left;
}
.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
}
.story-image img {
    border-radius: 28px;
}
.image-caption {
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 8px;
    color: #666;
}
@media (min-width: 992px) {
    .story-content { grid-template-columns: 2fr 1fr; }
}
.values-section {
    background-color: var(--secondary-color);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background-color: var(--light-bg);
    padding: 24px;
    border-radius: 28px;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.form-title, .details-title {
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 50px; /* pill style */
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group textarea {
    border-radius: 28px; /* pill style */
    resize: vertical;
}
.form-submit-btn {
    width: 100%;
}
.contact-info-block {
    margin-bottom: 24px;
}
.contact-info-block h4 {
    margin-bottom: 8px;
}
.contact-info-block address, .contact-info-block p {
    font-style: normal;
    line-height: 1.6;
}
@media (min-width: 992px) {
    .contact-layout { grid-template-columns: 3fr 2fr; }
}

/* --- Policy & Thank You Pages --- */
.policy-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.policy-section p, .policy-section li {
    margin-bottom: 1rem;
}
.thank-you-section {
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thank-you-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
}
.next-steps {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg) !important;
    color: var(--light-text) !important;
    padding-top: 60px;
    font-size: 0.95rem;
}
.site-footer a {
    color: var(--secondary-color) !important;
}
.site-footer a:hover {
    color: var(--light-text) !important;
    text-decoration: underline;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.footer-about h4, .footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
    color: var(--light-text) !important;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-contact address, .footer-contact p {
    font-style: normal;
    margin-bottom: 8px;
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #444;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* --- 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(--dark-bg);
    color: var(--light-text);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { text-decoration: underline; color: var(--secondary-color); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--light-text);
}
.cookie-btn-decline {
    background-color: #555;
    color: var(--light-text);
}
@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; }
}