/* Palette: burgundy-sand */
/* --color-primary: #6B0F1A; */
/* --color-secondary: #7D1220; */
/* --color-accent: #A06830; */
/* --bg-tint: #FDF5F5; */

:root {
    --color-primary: #6B0F1A;
    --color-secondary: #7D1220;
    --color-accent: #A06830;
    --bg-tint: #FDF5F5;
    --bg-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --border-color: #444;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(16px, 1.5vw, 18px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-secondary);
    font-weight: 600;
    border-radius: 50px; /* pill style */
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.btn-full {
    width: 100%;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-dark);
    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: 700;
    font-family: var(--font-secondary);
    z-index: 100;
    color: var(--text-light);
}

.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(--text-light);
    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 {
    color: var(--text-light);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    z-index: 99;
    background-color: var(--bg-dark);
}

.mobile-nav ul { list-style: none; padding: 20px; }
.mobile-nav li { padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.mobile-nav a { color: var(--text-light); font-size: 1.2rem; display: block; }

@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); }
}

/* --- Sections --- */
.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .section { padding: 100px 0; }
}

.section-light {
    background-color: var(--bg-tint);
    color: var(--text-dark);
}
.section-light h1, .section-light h2, .section-light h3 {
    color: var(--text-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    opacity: 0.9;
}
.section-title-left {
    text-align: left;
    margin-bottom: 16px;
}

/* --- Hero Section (Grid Overlap) --- */
.hero-section.hero-overlap {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero-overlap-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.hero-image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content-wrapper {
    z-index: 2;
}
.hero-content-card {
    padding: 32px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 28px; /* pill style */
    border: 1px solid var(--border-color);
}
.hero-title {
    margin-bottom: 16px;
}
.hero-subtitle {
    margin-bottom: 32px;
    opacity: 0.9;
}

@media (min-width: 1024px) {
    .hero-overlap-container {
        grid-template-columns: 1.2fr 1fr;
    }
    .hero-content-wrapper {
        margin-left: -120px;
    }
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    padding-left: 80px;
    position: relative;
    margin-bottom: 40px;
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
    border: 4px solid var(--bg-dark);
}
.timeline-content h3 {
    margin-bottom: 8px;
    color: var(--color-accent);
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}
.comparison-table th {
    background-color: var(--color-primary);
    color: var(--text-light);
    font-family: var(--font-secondary);
}
.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(255,255,255,0.05);
}
.section-light .comparison-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}
.section-light .comparison-table th {
    background-color: var(--color-secondary);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.feature-card {
    padding: 24px;
    border-radius: 28px; /* pill style */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.feature-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

@media (min-width: 500px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Two Column Layout --- */
.two-col-layout, .two-col-layout-reverse {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.content-image {
    border-radius: 28px; /* pill style */
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.styled-list {
    list-style: none;
    padding-left: 0;
}
.styled-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}
.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

@media (min-width: 768px) {
    .two-col-layout { grid-template-columns: 1fr 1fr; }
    .two-col-layout-reverse { grid-template-columns: 1fr 1fr; }
    .two-col-layout-reverse .two-col-image { order: 2; }
}

/* --- Numbered Steps Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.step-card {
    position: relative;
    padding: 24px;
    padding-top: 48px;
    border: 1px solid var(--border-color);
    border-radius: 28px; /* pill style */
}
.step-number {
    position: absolute;
    top: -20px;
    left: 24px;
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    opacity: 0.5;
}
.step-title {
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Program Page: Grid 6 Cards --- */
.page-header-section {
    text-align: center;
    padding: 60px 0;
    background-color: var(--color-secondary);
}
.page-title { margin-bottom: 16px; }
.page-subtitle { max-width: 800px; margin: 0 auto; opacity: 0.9; }

.program-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}
.program-card {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 28px; /* pill style */
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.30);
}
.program-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.program-card-title {
    margin-bottom: 12px;
    color: var(--color-accent);
}
@media (min-width: 768px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Mission Page: Timeline with Dates --- */
.mission-timeline {
    position: relative;
    max-width: 900px;
    margin: 48px auto 0 auto;
}
.mission-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}
.mission-timeline-item {
    width: 50%;
    padding: 20px 40px;
    position: relative;
}
.mission-timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.mission-timeline-item:nth-child(even) {
    left: 50%;
}
.mission-timeline-date {
    position: absolute;
    top: 20px;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    z-index: 1;
    border: 5px solid var(--bg-dark);
}
.mission-timeline-item:nth-child(odd) .mission-timeline-date {
    right: -44px;
}
.mission-timeline-item:nth-child(even) .mission-timeline-date {
    left: -44px;
}
.mission-timeline-content h3 {
    margin-bottom: 8px;
    color: var(--color-accent);
}
@media (max-width: 768px) {
    .mission-timeline::before { left: 20px; }
    .mission-timeline-item { width: 100%; padding-left: 60px; padding-right: 0; text-align: left; }
    .mission-timeline-item:nth-child(even) { left: 0; }
    .mission-timeline-date { width: 40px; height: 40px; font-size: 1rem; }
    .mission-timeline-item:nth-child(odd) .mission-timeline-date,
    .mission-timeline-item:nth-child(even) .mission-timeline-date {
        left: 0;
    }
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.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);
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
}
.form-group textarea {
    border-radius: 28px; /* pill style */
    resize: vertical;
}
.contact-info-card {
    background-color: rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: 28px; /* pill style */
    margin-bottom: 24px;
}
.contact-info-card h3 {
    margin-bottom: 12px;
    color: var(--color-accent);
}
@media (min-width: 900px) {
    .contact-layout { grid-template-columns: 1.5fr 1fr; }
}

/* --- Legal & Thank You Pages --- */
.section-legal { padding: 40px 0; }
.section-legal h2 { margin-top: 32px; margin-bottom: 12px; color: var(--color-accent); }
.section-legal p, .section-legal li { margin-bottom: 12px; }
.section-legal ul { padding-left: 20px; list-style-type: disc; }

.thank-you-section { text-align: center; }
.thank-you-icon {
    font-size: 5rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 24px;
}
.popular-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}
.popular-link-card {
    display: block;
    padding: 24px;
    border-radius: 28px; /* pill style */
    background-color: var(--bg-dark);
    color: var(--text-light);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.popular-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    color: var(--text-light);
}
.popular-link-card h3 { color: var(--color-accent); }

@media (min-width: 768px) {
    .popular-links-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Footer --- */
.site-footer {
    background-color: #111;
    padding: 60px 0 0 0;
    color: #ccc !important;
    border-top: 4px solid var(--color-primary);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-light) !important;
}
.footer-logo {
    font-size: 2rem;
    font-family: var(--font-secondary);
}
.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}
.footer-links a, .footer-legal a, .footer-contact a {
    color: #ccc !important;
}
.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover {
    color: var(--color-accent) !important;
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 2px solid var(--color-primary);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--color-accent); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 20px;
    border-radius: 50px; /* pill style */
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--text-light);
}
.cookie-btn-decline {
    background-color: #555;
    color: var(--text-light);
}

@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; }
}