/* Palette: charcoal-teal */
:root {
    --color-primary: #1C2A35;
    --color-secondary: #37474F;
    --color-accent: #00695C;
    --bg-tint: #F5F8F8;
    --text-color: #333;
    --text-light: #FFFFFF;
    --border-color: #e0e0e0;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-tint);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

p { margin: 0 0 1.5rem 0; }
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--color-primary); }

ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; border-radius: 0; }
input, textarea, button { font-family: inherit; border-radius: 0; }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}
.section-tinted {
    background-color: #ffffff;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-secondary);
    max-width: 700px;
    margin: 0 auto;
}
.text-center { text-align: center; }

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}
.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(--color-primary);
    text-decoration: none;
    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(--color-primary);
    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(--color-secondary);
    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: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 99;
}
.mobile-nav ul { list-style: none; padding: 20px; margin: 0; }
.mobile-nav li { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.mobile-nav a { color: var(--color-primary); font-weight: 600; display: block; }

/* --- Hero Section: Floating Card --- */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}
.hero-floating-card .container {
    position: relative;
    z-index: 2;
}
.hero-content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.hero-content-card h1, .hero-content-card .subtitle {
    color: var(--text-light);
}
.hero-content-card h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(28, 42, 53, 0.3);
}
.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 105, 92, 0.4);
}

/* --- Benefits Grid (2x2) --- */
.benefits-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.benefit-card-tech {
    background-color: #fff;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card-tech:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.benefit-card-tech h3 {
    color: var(--color-accent);
    margin-bottom: 16px;
}

/* --- Numbered Steps --- */
.numbered-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.step-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.15;
}
.step-content h4 { color: var(--color-primary); }

/* --- Stats Bar --- */
.stats-bar {
    background-color: var(--color-secondary);
    padding: 40px 0;
    color: var(--text-light);
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}
.stats-bar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text-light);
}
.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.placeholder-item {
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    min-height: 250px;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background-color: #fff;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
    background-color: var(--color-primary);
    color: var(--text-light);
    font-size: 1.1rem;
}
.comparison-table td:first-child {
    font-weight: bold;
    color: var(--color-secondary);
}
.comparison-table tbody tr:nth-child(even) {
    background-color: var(--bg-tint);
}
.comparison-table tbody tr:hover {
    background-color: #e8f5e9;
}

/* --- Program Page: Timeline --- */
.page-header-section {
    background-color: var(--color-secondary);
    text-align: center;
    padding: 80px 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.page-title, .page-subtitle { color: var(--text-light); }
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-module {
    padding: 15px 40px 15px 60px;
    position: relative;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--color-accent);
    top: 20px;
    left: 11.5px;
    z-index: 1;
}
.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    position: relative;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.timeline-content h3 { color: var(--color-primary); }

/* --- Split Layout --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.split-image-container img {
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.thank-you-section .page-title,
.thank-you-section .page-subtitle {
    color: var(--color-primary);
}
/* --- Mission Page: Vertical Storytelling --- */
.storytelling-block { margin-bottom: 48px; }
.storytelling-block.image-block img {
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    width: 50%;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.contact-form-container, .contact-info-container {
    background: #fff;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.contact-form-container h2, .contact-info-container h2 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-secondary);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tint);
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}
.contact-info-block { margin-bottom: 24px; }
.contact-info-block h4 { color: var(--color-accent); }
.contact-info-block p { margin: 0; }

/* --- Legal & Thank You Pages --- */
.legal-content h1, .legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-content p { margin-bottom: 1rem; }
.thank-you-section { padding: 80px 0; }
.thank-you-content { margin: 40px 0; }
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}
.quick-link-card {
    background: #fff;
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    border-color: var(--color-accent);
}
.quick-link-card h3 { color: var(--color-primary); }
.quick-link-card p { color: var(--text-color); margin: 0; }

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--text-light) !important;
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}
.site-footer h3, .site-footer h4 { color: var(--text-light) !important; }
.site-footer p, .site-footer a { color: rgba(255, 255, 255, 0.8) !important; }
.site-footer a:hover { color: #fff !important; }
.footer-about p { margin-bottom: 0; opacity: 0.8; }
.footer-links ul li, .footer-legal ul li { margin-bottom: 10px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 0.9rem; opacity: 0.7; }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background: var(--color-primary);
    color: var(--text-light);
    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 -5px 20px 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 { color: #fff; 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: 1px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cookie-btn-accept:hover { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.1); }

/* --- 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); }
    .storytelling-block.image-block img {width: 100%;}
}
@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 20px; }
    .benefits-grid-2x2 { grid-template-columns: repeat(2, 1fr); }
    .numbered-steps-container { grid-template-columns: repeat(2, 1fr); }
    .stats-bar-content { flex-direction: row; justify-content: space-around; }
    .split-layout { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 2fr 1fr; }
    .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .numbered-steps-container { grid-template-columns: repeat(4, 1fr); }
}