/*
  Theme: Dynamic Tech
  Palette: Graphite & Copper
  - Dark: #1a1a1a
  - Light: #f4f4f4
  - Accent: #e67e22
  - Secondary: #34495e
  - Text Dark: #e0e0e0
  - Text Light: #2c3e50
*/

:root {
    --color-dark: #1a1a1a;
    --color-light: #f4f4f4;
    --color-accent: #e67e22;
    --color-secondary: #34495e;
    --color-text-dark-bg: #e0e0e0;
    --color-text-light-bg: #2c3e50;
    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Teko', sans-serif;
    --border-radius: 0; /* Sharp border style */
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    background-color: var(--color-light);
    color: var(--color-text-light-bg);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: clamp(60px, 10vw, 100px) 0;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-text-dark-bg);
}

.section-dark a {
    color: var(--color-accent);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--color-light);
}

.section-light {
    background-color: var(--color-light);
    color: var(--color-text-light-bg);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 24px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 48px auto;
    font-size: clamp(16px, 2vw, 20px);
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-dark);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-light);
    z-index: 100;
}
.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(--color-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 .nav-list a {
    color: var(--color-light);
    font-family: var(--font-display);
    font-size: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav .nav-list 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 .nav-list a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px; /* Header height approx */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    background-color: var(--color-dark);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
}

.mobile-nav li a {
    color: var(--color-light);
    font-size: 22px;
    font-family: var(--font-display);
    text-transform: uppercase;
}

@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 {
    background-color: var(--color-dark);
    padding: 60px 0;
    overflow: hidden;
}

.hero-grid-overlap {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 30px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-wrapper {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.glass-card {
    background: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    color: var(--color-light);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--color-text-dark-bg);
    margin-bottom: 32px;
}

@media (min-width: 992px) {
    .hero-section {
        padding: 100px 0;
    }
    .hero-grid-overlap {
        grid-template-columns: repeat(12, 1fr);
        gap: 0;
    }
    .hero-image-wrapper {
        grid-column: 1 / 8;
        grid-row: 1 / 2;
    }
    .hero-content-wrapper {
        grid-column: 6 / 13;
        grid-row: 1 / 2;
        transform: translateX(40px);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* --- Timeline Section --- */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 3px;
    background-color: var(--color-secondary);
    opacity: 0.2;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-icon {
    position: absolute;
    left: 2px;
    top: 5px;
    width: 30px;
    height: 30px;
    background-color: var(--color-accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

/* --- Split Layout Section --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.split-layout.reverse .split-image {
    order: 2;
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.custom-list {
    list-style: none;
    padding-left: 0;
}
.custom-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}
.custom-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 24px;
    color: var(--color-accent);
}

@media(min-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .split-layout.reverse .split-image {
        order: initial;
    }
}

/* --- Quote Highlight Section --- */
.quote-highlight-block {
    position: relative;
    padding: 60px 40px;
    background-color: var(--color-secondary);
    color: var(--color-light);
    text-align: center;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}
.quote-highlight-block blockquote p {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 24px;
    position: relative;
}
.quote-highlight-block blockquote p::before,
.quote-highlight-block blockquote p::after {
    content: '"';
    font-size: 80px;
    color: var(--color-accent);
    opacity: 0.5;
    position: absolute;
}
.quote-highlight-block blockquote p::before {
    top: -40px;
    left: -20px;
}
.quote-highlight-block blockquote p::after {
    bottom: -60px;
    right: -20px;
}
.quote-highlight-block cite {
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: bold;
    color: var(--color-text-dark-bg);
}

/* --- Expert Block --- */
.expert-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.expert-photo-placeholder {
    width: 150px;
    height: 150px;
    background-color: var(--color-secondary);
    margin: 0 auto;
}
.expert-quote {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 16px;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
}
.expert-signature {
    text-align: right;
}
@media (min-width: 768px) {
    .expert-block {
        grid-template-columns: 150px 1fr;
        gap: 40px;
    }
    .expert-photo-placeholder {
        margin: 0;
    }
}

/* --- Numbered Steps Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.step-card {
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.step-number {
    position: absolute;
    top: -20px;
    right: 10px;
    font-family: var(--font-display);
    font-size: 100px;
    color: var(--color-light);
    -webkit-text-stroke: 1px var(--color-secondary);
    opacity: 0.3;
    z-index: 0;
}
.step-title {
    font-size: 24px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.step-card p {
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-dark) !important;
    color: var(--color-text-dark-bg) !important;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3 {
    font-size: 24px;
    color: var(--color-light) !important;
    margin-bottom: 16px;
}
.footer-nav {
    list-style: none;
}
.footer-nav li {
    margin-bottom: 8px;
}
.footer-nav a, .footer-column a {
    color: var(--color-text-dark-bg) !important;
}
.footer-nav a:hover, .footer-column a:hover {
    color: var(--color-accent) !important;
}
.footer-bottom {
    border-top: 1px solid var(--color-secondary);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* --- Inner Pages (Generic) --- */
.page-hero {
    padding: 80px 0;
    text-align: center;
}
.page-title {
    font-size: clamp(40px, 7vw, 64px);
    margin-bottom: 12px;
}
.page-subtitle {
    font-size: clamp(18px, 3vw, 22px);
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-dark-bg);
    opacity: 0.9;
}
.legal-content h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 8px;
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content p, .legal-content ul {
    margin-bottom: 20px;
}

/* --- Program Page Specific --- */
.program-timeline .timeline-content {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.image-feature-section {
    padding: 0;
    overflow: hidden;
}
.image-feature-container {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    max-width: none;
}
.image-feature-content {
    padding: clamp(60px, 10vw, 100px) 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.image-feature-bg {
    display: none;
}
@media (min-width: 992px) {
    .image-feature-container {
        grid-template-columns: 1fr 1fr;
    }
    .image-feature-bg {
        display: block;
        width: 100%;
        height: 100%;
    }
    .image-feature-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/* --- Mission Page Specific --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    padding: 30px;
    background-color: var(--color-dark);
    color: var(--color-text-dark-bg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.value-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    margin-bottom: 20px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.value-title {
    font-size: 28px;
    color: var(--color-light);
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
.contact-form .form-group {
    margin-bottom: 24px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: var(--font-primary);
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}
.contact-details .contact-item {
    margin-bottom: 24px;
}
.contact-details h3 {
    font-size: 22px;
    color: var(--color-secondary);
    margin-bottom: 4px;
}
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 3fr 2fr;
    }
}

/* --- Thank You Page --- */
.thank-you-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.explore-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
.explore-card {
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.explore-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
}
@media(min-width: 768px) {
    .explore-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 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;
    transform: translateY(0); transition: transform 0.4s ease;
    background: var(--color-secondary);
    color: var(--color-light);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 15px; }
#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 16px;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--color-dark);
}
.cookie-btn-accept:hover {
    background-color: #ff9d43;
}
.cookie-btn-decline {
    background-color: transparent;
    border: 1px solid var(--color-light);
    color: var(--color-light);
}
.cookie-btn-decline:hover {
    background-color: rgba(255,255,255,0.1);
}
@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; }
}