/*
  Design System: dynamic-tech
  Border Style: sharp
  Shadow Style: dramatic
  Color Mode: light
  Color Palette: Warm Terracotta & Graphite
*/

:root {
    --primary-color: #FF6F61; /* Terracotta */
    --secondary-color: #343a40; /* Graphite */
    --accent-color: #784212; /* Dark Brown */
    --text-color: #212529; /* Darker text */
    --light-bg-color: #F8F9FA;
    --white-color: #FFFFFF;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.22);
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0; /* Sharp border style */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    font-size: clamp(16px, 1.5vw, 18px);
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

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-bottom: 1rem; }
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--accent-color); }
ul, ol { list-style-position: inside; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #6c757d;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.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;
    color: var(--secondary-color);
    z-index: 100;
}

.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(--secondary-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-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: 66px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    background: var(--secondary-color);
}
.mobile-nav ul { list-style: none; }
.mobile-nav li { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { color: var(--white-color); 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); }
}

/* --- Hero Section (Grid Overlap) --- */
.hero-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.hero-image-wrapper {
    order: 1;
}
.hero-content-box {
    order: 2;
    background-color: var(--white-color);
    padding: 30px;
    box-shadow: 0 24px 64px var(--shadow-color);
    z-index: 2;
}
.hero-title { margin-bottom: 1rem; }
.hero-subtitle { margin-bottom: 2rem; }

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
    }
    .hero-image-wrapper { order: 2; }
    .hero-content-box {
        order: 1;
        transform: translateX(40px);
    }
}

/* --- Section Divider (Dynamic Tech) --- */
.section-divider {
    height: 80px;
    background-color: var(--light-bg-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

/* --- Benefits (Asymmetric) --- */
.benefits-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.benefit-card {
    background: var(--white-color);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px var(--shadow-color);
}
.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.featured-card {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.featured-card .card-title { color: var(--primary-color); }
.featured-card .card-text { color: var(--light-bg-color); }

@media (min-width: 768px) {
    .benefits-asymmetric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-card {
        grid-column: 1 / -1;
    }
}
@media (min-width: 1024px) {
    .benefits-asymmetric-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .featured-card {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
}

/* --- CTA Banner --- */
.cta-banner-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}
.cta-title { color: var(--white-color); }
.cta-subtitle { color: var(--light-bg-color); opacity: 0.9; margin-bottom: 24px; }

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-item, .placeholder-item-2 {
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    min-height: 250px;
}
.placeholder-item-2 {
    background-color: var(--accent-color);
}

/* --- Checklist Section --- */
.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.checklist li {
    position: relative;
    padding-left: 35px;
    font-size: 1.1rem;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
@media(min-width: 768px) {
    .checklist { grid-template-columns: 1fr 1fr; }
}

/* --- Quote Section --- */
.quote-section {
    background-color: var(--light-bg-color);
}
.quote-highlight {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}
.quote-highlight::before {
    content: '“';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    z-index: 1;
}
.quote-text {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}
.quote-author {
    font-weight: bold;
    color: var(--accent-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 44px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}
.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color) !important;
    color: var(--light-bg-color) !important;
    padding: 60px 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.footer-heading {
    color: var(--white-color) !important;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-column p, .footer-column a {
    color: var(--light-bg-color) !important;
    opacity: 0.8;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #495057;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}
@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;
    background-color: var(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 -4px 20px 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 { color: var(--primary-color) !important; 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: bold;
    transition: background-color 0.3s;
}
.cookie-btn-accept { background-color: var(--primary-color); color: var(--white-color); }
.cookie-btn-accept:hover { background-color: var(--accent-color); }
.cookie-btn-decline { background-color: #6c757d; color: var(--white-color); }
.cookie-btn-decline:hover { background-color: #495057; }
@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; }
}

/* --- Inner Page Specific Styles --- */
.page-header-section {
    background-color: var(--light-bg-color);
    text-align: center;
    padding: 60px 0;
}
.page-title { margin-bottom: 1rem; }
.page-subtitle { max-width: 800px; margin: 0 auto; }

/* Program Page: Accordion */
.accordion-container { max-width: 900px; margin: 0 auto; }
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    background: var(--white-color);
}
.accordion-title {
    display: block;
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    background: var(--white-color);
    color: var(--secondary-color);
}
.accordion-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-item[open] > .accordion-title::after {
    transform: translateY(-50%) rotate(45deg);
}
.accordion-content { padding: 0 20px 20px 20px; }

/* Program Page: Image Feature */
.image-feature-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
@media(min-width: 768px) {
    .image-feature-container { grid-template-columns: 1fr 1fr; }
}

/* Mission Page: Split Layout */
.split-layout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
@media (min-width: 992px) {
    .split-layout-container { grid-template-columns: 1fr 1.2fr; }
}

/* Mission Page: Values */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border-color);
}
@media(min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Contact Page: Grid Layout */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media(min-width: 992px) {
    .contact-grid-container { grid-template-columns: 1fr 1.5fr; }
}
.contact-detail-item { margin-bottom: 1.5rem; }
.contact-detail-item h3 { color: var(--primary-color); font-size: 1.1rem; }
.contact-detail-item p { margin: 0; }

/* Contact Page: Form */
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--light-bg-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-submit-btn { width: 100%; }

/* Legal & Thank You Pages */
.legal-page .container, .thank-you-section .container {
    max-width: 800px;
}
.legal-page h2 { margin-top: 2rem; margin-bottom: 1rem; }
.thank-you-content { text-align: center; padding: 40px 16px; }
.thank-you-actions { margin-top: 2rem; display: flex; justify-content: center; gap: 16px; }
.next-steps-container { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 40px; }
.next-steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.next-step-card { border: 1px solid var(--border-color); padding: 20px; text-align: center; }
.next-step-card a { font-weight: bold; }
@media(min-width: 768px) {
    .next-steps-grid { grid-template-columns: repeat(3, 1fr); }
}