/*
  Design System:
  - design-style: warm-vintage
  - border-style: pill
  - shadow-style: dramatic
  - color-mode: dark
  - Palette: Earthy Terracotta
*/

:root {
    --font-primary: 'Lato', sans-serif;
    --font-headings: 'Playfair Display', serif;
    
    /* Earthy Terracotta Palette */
    --color-background: #201a15;
    --color-surface: #2c1e12;
    --color-text-primary: #f5eeda;
    --color-text-secondary: #d3c5ae;
    --color-primary-accent: #d97942;
    --color-secondary-accent: #a65a33;
    --color-border: #4a382b;
    --color-shadow: rgba(0, 0, 0, 0.4);
}

/* Global Styles */
*, *::before, *::after {
    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-primary);
    line-height: 1.7;
    font-size: clamp(16px, 2.5vw, 18px);
    background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.1) 1px, rgba(0,0,0,0.1) 2px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
    padding-left: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: rgba(32, 26, 21, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    z-index: 100;
    font-family: var(--font-headings);
    color: var(--color-text-primary);
}

.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-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 50px;
}

.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(--color-text-secondary);
    font-weight: 700;
    padding: 8px 0;
    position: relative;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease;
}
.desktop-nav a:hover::after {
    width: 100%;
}
.desktop-nav a:hover {
    color: var(--color-text-primary);
}


.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* 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: var(--color-surface);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    color: var(--color-text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 12px 32px var(--color-shadow);
}

.btn-primary {
    background-color: var(--color-primary-accent);
    color: var(--color-background);
}
.btn-primary:hover {
    background-color: var(--color-secondary-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 20px 48px var(--color-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-accent);
    border-color: var(--color-primary-accent);
}
.btn-secondary:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px var(--color-shadow);
}

/* Hero Section (Diagonal Split) */
.hero-section.diagonal-split {
    padding: 80px 0;
    background-color: var(--color-surface);
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 32px;
}
.hero-title {
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 32px;
}
.hero-image-wrapper {
    position: relative;
    height: 100%;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

/* Benefits Section (Horizontal Scroll) */
.benefits-hscroll-wrapper {
    overflow-x: auto;
    padding-bottom: 24px; /* For shadow visibility */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.benefits-hscroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.benefits-hscroll-wrapper::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 50px;
}
.benefits-hscroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-secondary-accent);
    border-radius: 50px;
}
.benefits-hscroll-content {
    display: flex;
    gap: 24px;
    width: max-content;
}
.benefit-card {
    background-color: var(--color-surface);
    padding: 32px;
    border-radius: 28px;
    width: 300px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.30);
}
.card-title {
    color: var(--color-primary-accent);
}
.card-text {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-surface);
}
.testimonials-wrapper {
    display: grid;
    gap: 24px;
}
.testimonial-item {
    background-color: var(--color-background);
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background-color: var(--color-secondary-accent);
    flex-shrink: 0;
}
.testimonial-name {
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}
.testimonial-rating {
    color: var(--color-primary-accent);
    font-size: 1.2rem;
}
.testimonial-text {
    font-style: italic;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Expert Section */
.expert-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.expert-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background-color: var(--color-border);
    margin: 0 auto;
}
.expert-quote {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    line-height: 1.4;
    border-left: 4px solid var(--color-primary-accent);
    padding-left: 24px;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}
.expert-name {
    font-weight: 700;
    margin: 0;
    color: var(--color-text-primary);
}
.expert-title {
    color: var(--color-primary-accent);
    margin: 0;
}

/* Two Column Section */
.two-col-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.two-col-image {
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.styled-list {
    list-style: none;
    padding: 0;
}
.styled-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}
.styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary-accent);
    font-weight: 700;
}

/* CTA Banner Section */
.cta-banner-section {
    background-color: var(--color-secondary-accent);
}
.cta-banner-container {
    text-align: center;
    padding: 40px 24px;
}
.cta-title {
    color: #fff;
}
.cta-text {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 32px auto;
}
.cta-banner-section .btn-secondary {
    background-color: var(--color-text-primary);
    color: var(--color-background);
    border-color: var(--color-text-primary);
}
.cta-banner-section .btn-secondary:hover {
    background-color: transparent;
    color: var(--color-text-primary);
}

/* Footer */
.site-footer {
    background-color: var(--color-surface) !important;
    color: var(--color-text-secondary) !important;
    padding: 60px 0 0 0;
    border-top: 2px solid var(--color-border);
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.footer-title {
    color: var(--color-text-primary) !important;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.footer-about p, .footer-contact p {
    margin-bottom: 8px;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}
.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}
.footer-links a, .footer-legal a, .footer-contact a {
    color: var(--color-text-secondary) !important;
}
.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover {
    color: var(--color-primary-accent) !important;
}
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 0;
}

/* Program Page: Timeline */
.timeline-section {
    background-color: var(--color-surface);
}
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50px;
    background-color: var(--color-background);
    border: 4px solid var(--color-secondary-accent);
}
.timeline-title {
    color: var(--color-primary-accent);
}

/* Mission Page */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.story-image {
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.values-section {
    background-color: var(--color-surface);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background-color: var(--color-background);
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--color-border);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

/* Contact Page */
.contact-layout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text-secondary);
}
.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(217, 121, 66, 0.3);
}
textarea.form-control {
    border-radius: 28px;
    resize: vertical;
}
.contact-info-block {
    margin-bottom: 24px;
    background-color: var(--color-surface);
    padding: 24px;
    border-radius: 28px;
}
.contact-info-title {
    color: var(--color-primary-accent);
}

/* Legal & Thank You Pages */
.page-hero {
    text-align: center;
    padding: 60px 0;
    background-color: var(--color-surface);
}
.page-title { margin-bottom: 8px; }
.page-subtitle { max-width: 700px; margin: 0 auto; }
.legal-page { padding: 40px 0; }
.legal-page h2 { margin-top: 2rem; color: var(--color-primary-accent); }
.thank-you-section { padding: 80px 0; }
.thank-you-content {
    margin-top: 48px;
    padding: 32px;
    background-color: var(--color-surface);
    border-radius: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.thank-you-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}
.back-to-home {
    display: inline-block;
    margin-top: 48px;
    font-weight: 700;
}

/* 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;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
    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; }
.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: 700;
}
.cookie-btn-accept {
    background-color: var(--color-primary-accent);
    color: var(--color-background);
}
.cookie-btn-decline {
    background-color: var(--color-border);
    color: var(--color-text-primary);
}

/* Media Queries (Mobile-First) */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger, .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: 80px 0; }
    .container { padding: 0 24px; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .testimonials-wrapper { grid-template-columns: repeat(2, 1fr); }
    .expert-container { grid-template-columns: 150px 1fr; text-align: left; }
    .expert-image-placeholder { margin: 0; }
    .two-col-container { grid-template-columns: 1fr 1fr; }
    .story-container { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-layout-container { grid-template-columns: 2fr 1fr; }
    .thank-you-links { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
    .hero-container { grid-template-columns: 1fr 1fr; }
    .hero-image-wrapper {
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
    .testimonials-wrapper { grid-template-columns: repeat(3, 1fr); }
}