/*
  Palette: Terracotta & Slate
  Design Style: soft-organic (colors, gradients)
  Border Style: sharp (border-radius: 0)
  Shadow Style: subtle
  Color Mode: mixed
*/

:root {
    --primary-color: #D35400; /* Terracotta Orange */
    --secondary-color: #F39C12; /* Amber Gold */
    --dark-bg: #2C3E50; /* Slate Blue-Gray */
    --light-bg: #FDFEFE;
    --text-dark: #34495E; /* Dark Slate */
    --text-light: #ECF0F1;
    --border-light: #EAECEE;
    --border-dark: #4A637E;
    --font-family-base: 'Helvetica Neue', Arial, sans-serif;
    --shadow-subtle: 0 2px 12px rgba(0,0,0,0.07);
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }

/* --- Layout & Sections --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    padding-top: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(48px, 8vw, 80px);
}

.light-section { background-color: var(--light-bg); color: var(--text-dark); }
.dark-section { background-color: var(--dark-bg); color: var(--text-light); }
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--text-light); }
.dark-section a { color: var(--secondary-color); }
.dark-section a:hover { color: var(--text-light); }

.section-title { margin-bottom: 24px; }
.section-intro { max-width: 700px; margin: 0 auto 48px auto; opacity: 0.9; }
.page-header { padding: 60px 0; }

.page-header .page-subtitle {
    text-align: center;
}
.page-title { margin-bottom: 16px; }
.page-subtitle { max-width: 800px; margin: 0 auto; font-size: 1.1rem; opacity: 0.9; }
.text-align-center { text-align: center; }

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-light);
}

.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-dark);
}

.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-dark);
    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; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 67px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 99;
    background-color: var(--dark-bg);
}

.mobile-nav ul { list-style: none; padding: 20px; }
.mobile-nav li { padding: 12px 0; border-bottom: 1px solid var(--border-dark); }
.mobile-nav a { color: var(--text-light); font-weight: 600; 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); }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-light) !important;
}

.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text-light) !important; opacity: 0.8; }
.footer-nav a:hover { opacity: 1; }
.footer-column p { margin-bottom: 8px; opacity: 0.8; }

.footer-bottom {
    text-align: center;
    padding: 24px 16px;
    margin-top: 40px;
    border-top: 1px solid var(--border-dark);
}

@media (min-width: 600px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-container { grid-template-columns: repeat(4, 1fr); }
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.dark-section .btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.dark-section .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}


.subtle-shadow {
    box-shadow: var(--shadow-subtle);
}

.card-title {
    margin-bottom: 12px;
}

/* --- INDEX.HTML Specific --- */

/* Hero: fullscreen-center */
.hero-fullscreen-center {
    position: relative;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-fullscreen-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    color: #fff;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Benefits: hscroll */
.hscroll-container {
    overflow-x: auto;
    padding: 24px 0 24px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.hscroll-track {
    display: flex;
    gap: 24px;
}

.hscroll-card {
    flex: 0 0 300px;
    padding: 24px;
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0 !important;
}

@media (min-width: 1200px) {
    .hscroll-container {
        overflow-x: visible;
        padding-left: 0;
    }
    .hscroll-track {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Testimonials */
.testimonials-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

.testimonial-item {
    border-left: 4px solid var(--secondary-color);
    padding-left: 24px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--border-dark);
    border-radius: 0 !important;
}

.testimonial-name { font-weight: bold; }
.testimonial-rating { color: var(--secondary-color); }
.testimonial-quote { font-style: italic; opacity: 0.9; }

/* Numbered Steps */
.numbered-steps-grid {
    display: grid;
    gap: 40px;
}

.numbered-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    opacity: 0.5;
}

.step-title { margin-bottom: 8px; }

@media (min-width: 768px) {
    .numbered-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA Banner */
.cta-banner {
    padding: 60px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}
.cta-title { color: #fff; margin-bottom: 16px; }
.cta-text { max-width: 600px; margin: 0 auto 32px auto; }
.cta-banner .btn-secondary {
    color: #fff;
    border-color: #fff;
}
.cta-banner .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Expert Block */
.expert-block {
    display: grid;
    gap: 32px;
    align-items: center;
}

.expert-image-container {
    overflow: hidden;
}

.expert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-quote {
    font-size: 1.2rem;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    margin: 24px 0;
}
.expert-signature {
    text-align: right;
    font-weight: 600;
}

@media (min-width: 992px) {
    .expert-block {
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
    }
}

/* --- PROGRAM.HTML Specific --- */

/* Horizontal Tabs */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tabs-nav {
    display: flex;
    flex-direction: column;
}
.tab-radio { display: none; }
.tab-label {
    padding: 16px 20px;
    cursor: pointer;
    border: 1px solid var(--border-light);
    border-bottom: none;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}
.tab-label:last-of-type { border-bottom: 1px solid var(--border-light); }
.tab-panel {
    display: none;
    padding: 32px;
    border: 1px solid var(--border-light);
    border-top: none;
}
#tab1:checked ~ .tabs-nav label[for="tab1"],
#tab2:checked ~ .tabs-nav label[for="tab2"],
#tab3:checked ~ .tabs-nav label[for="tab3"],
#tab4:checked ~ .tabs-nav label[for="tab4"] {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
#tab1:checked ~ .tabs-content #content1,
#tab2:checked ~ .tabs-content #content2,
#tab3:checked ~ .tabs-content #content3,
#tab4:checked ~ .tabs-content #content4 {
    display: block;
}

.tab-title { margin-bottom: 16px; }

@media (min-width: 768px) {
    .tabs-nav {
        flex-direction: row;
    }
    .tab-label {
        flex: 1;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
    }
    #tab1:checked ~ .tabs-nav label[for="tab1"],
    #tab2:checked ~ .tabs-nav label[for="tab2"],
    #tab3:checked ~ .tabs-nav label[for="tab3"],
    #tab4:checked ~ .tabs-nav label[for="tab4"] {
        border-bottom-color: var(--primary-color);
    }
    .tab-panel { border-top: 1px solid var(--border-light); }
}


/* Content Image Split */
.content-image-split {
    display: grid;
    gap: 32px;
    align-items: center;
}
.image-fit { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
    .content-image-split {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .content-image-split.reversed .split-content {
        order: 2;
    }
}

/* --- MISSION.HTML Specific --- */

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-dark);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 12px;
    top: 20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--dark-bg);
    z-index: 1;
    border-radius: 0 !important;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: block;
}

.timeline-title {
    margin-bottom: 8px;
}

/* Principles List */
.principles-list {
    list-style: none;
    padding-left: 0;
}
.principles-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 16px;
}
.principles-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- CONTACT.HTML Specific --- */
.contact-form-container {
    max-width: 800px;
    margin: 48px auto;
    padding: 0 16px;
}
.contact-form {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border-light);
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 0 !important;
}
.form-submit-btn { width: 100%; }

.contact-info-grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}
.contact-info-card {
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Legal & Thank You Pages --- */
.legal-content, .thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h1, .legal-content h2 { margin: 32px 0 16px; }
.thank-you-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 40px auto;
    width: 100px;
}
.thank-you-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* --- 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(--dark-bg);
    color: var(--text-light);
    box-shadow: 0 -2px 10px 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(--secondary-color); font-weight: bold; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    border-radius: 0 !important;
    transition: background-color 0.3s ease;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: #fff;
}
.cookie-btn-decline {
    background-color: var(--border-dark);
    color: var(--text-light);
}
.cookie-btn-accept:hover { background-color: var(--secondary-color); }
.cookie-btn-decline:hover { background-color: #555; }

@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; }
}