/*
 * Palette: mahogany-amber
 * Primary: #4A1C10
 * Secondary: #6B2A18
 * Accent: #D4900A
 * BG Tint: #FDF0EC
 *
 * Design Style: soft-organic
 * Border Style: sharp
 * Shadow Style: subtle
 * Color Mode: dark
*/

:root {
    --color-primary: #4A1C10;
    --color-secondary: #6B2A18;
    --color-accent: #D4900A;
    --bg-tint: #FDF0EC;
    --text-light: #f0f0f0;
    --text-dark: #1a1a1a;
    --bg-dark-primary: #121212;
    --bg-dark-secondary: #1e1e1e;
}

/* --- General Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(16px, 1.5vw, 18px);
}

h1, h2, h3, h4 {
    margin: 0 0 1rem 0;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

p { margin: 0 0 1rem 0; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text-light); }
img { max-width: 100%; height: auto; border-radius: 0; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
}

.section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .section { padding: 80px 0; }
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--text-dark);
}

.btn-accent:hover {
    background-color: #f0a82b;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    opacity: 0.9;
}

.styled-list {
    list-style: none;
    padding-left: 0;
}
.styled-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}
.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.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;
    z-index: 100;
    color: var(--text-light);
}
.logo:hover {
    color: var(--color-accent);
}

.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;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--text-light);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.desktop-nav a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Adjusted for 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(--bg-dark-secondary);
}

.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);
}
.mobile-nav a {
    color: var(--text-light);
    display: block;
    width: 100%;
}

@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-section.hero-gradient-center {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 30%, var(--color-secondary) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 70%, var(--color-primary) 0%, transparent 50%),
                var(--bg-dark-primary);
}
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 800px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin: 24px 0 40px 0;
}
.hero-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}
.hero-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: -150px;
    left: -150px;
}
.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    bottom: -100px;
    right: -100px;
}

/* --- Benefits Horizontal Scroll --- */
.benefits-hscroll-section {
    background-color: var(--bg-dark-secondary);
}
.hscroll-container {
    overflow-x: auto;
    padding: 24px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--bg-dark-secondary);
}
.hscroll-container::-webkit-scrollbar {
    height: 8px;
}
.hscroll-container::-webkit-scrollbar-track {
    background: var(--bg-dark-secondary);
}
.hscroll-container::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 0;
}
.hscroll-track {
    display: flex;
    gap: 24px;
    padding: 0 16px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (min-width: 768px) {
    .hscroll-track { padding: 0 24px; }
}
.benefit-card-h {
    flex: 0 0 300px;
    padding: 24px;
    background-color: var(--bg-dark-primary);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card-h:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* --- Two Column Section --- */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
@media (min-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}
.two-col-content p {
    margin-bottom: 24px;
}

/* --- CTA Banner --- */
.cta-banner-section {
    background-color: var(--color-secondary);
    padding: 60px 0;
    text-align: center;
}
.cta-banner-content h2 {
    color: var(--text-light);
}
.cta-banner-content p {
    margin: 16px auto 32px auto;
    max-width: 600px;
    opacity: 0.9;
}

/* --- Icon Features --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 500px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.feature-item {
    text-align: center;
    padding: 24px;
    background-color: var(--bg-dark-secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

/* --- Quote Highlight --- */
.quote-highlight-section {
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
    padding: 60px 0;
}
.quote-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.quote-mark {
    font-size: 6rem;
    color: var(--color-primary);
    position: absolute;
    top: -40px;
    left: 0;
    opacity: 0.5;
    line-height: 1;
}
blockquote {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    margin: 0 0 24px 0;
    border: none;
    padding: 0;
}
cite {
    font-weight: 600;
    color: var(--color-accent);
}

/* --- Program Page --- */
.page-header-section {
    text-align: center;
    padding: 60px 0;
    background-color: var(--bg-dark-secondary);
}
.page-title { margin-bottom: 16px; }
.page-subtitle { max-width: 800px; margin: 0 auto; opacity: 0.9; }

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
}
.program-card {
    background-color: var(--bg-dark-secondary);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.program-card-header {
    padding: 24px;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 16px;
}
.program-card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}
.program-card-header h3 {
    margin: 0;
    color: var(--text-light);
}
.program-card-body {
    padding: 24px;
    flex-grow: 1;
}

.section-with-bg {
    position: relative;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}
.bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(18, 18, 18, 0.85);
    z-index: 1;
}
.content-on-bg {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

/* --- Mission Page --- */
.mission-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
@media (min-width: 992px) {
    .mission-split-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 64px;
    }
}
.values-list {
    margin-top: 24px;
    list-style-type: none;
    padding-left: 0;
}
.values-list li {
    margin-bottom: 16px;
}
.values-list strong {
    color: var(--color-accent);
    display: block;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 3fr 2fr;
    }
}

.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 rgba(255,255,255,0.2);
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
    font-size: 1rem;
    border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-info-wrapper {
    background-color: var(--bg-dark-secondary);
    padding: 32px;
}
.contact-info-item {
    margin-bottom: 24px;
}
.contact-info-item h3 {
    color: var(--color-accent);
    margin-bottom: 8px;
}
.contact-info-item p {
    margin: 0;
    line-height: 1.5;
}

/* --- Policy & Thank You Pages --- */
.policy-page .container, .thank-you-section .container {
    max-width: 800px;
}
.policy-page h1, .policy-page h2 { color: var(--color-accent); }
.policy-page p, .policy-page ul { margin-bottom: 24px; }
.thank-you-content {
    text-align: center;
    padding: 40px 0;
}
.thank-you-content h1 { color: var(--color-accent); }
.next-steps {
    margin: 40px 0;
    padding: 24px;
    background-color: var(--bg-dark-secondary);
    text-align: left;
}
.next-steps h2 { text-align: center; }

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--text-light) !important;
    padding: 60px 0 0 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 500px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.site-footer h4 {
    color: var(--color-accent) !important;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}
.site-footer a {
    color: var(--text-light) !important;
}
.site-footer a:hover {
    color: var(--color-accent) !important;
    text-decoration: underline;
}
.footer-contact p {
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
    margin: 0;
}

/* --- 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(--bg-dark-secondary);
    color: var(--text-light);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    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-banner a { 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;
    cursor: pointer;
    font-weight: 600;
    border-radius: 0;
    transition: background-color 0.3s;
}
.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--text-dark);
}
.cookie-btn-accept:hover {
    background-color: #f0a82b;
}
.cookie-btn-decline {
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    border: 1px solid var(--color-accent);
}
.cookie-btn-decline:hover {
    background-color: var(--bg-dark-secondary);
}
@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; }
}