/**
 * NANTIA Site Stylesheet
 * Shared across all new multi-page site pages.
 */

/* ─── Variables ───────────────────────────────────────── */
:root {
    --bg-dark: #15181D;
    --bg-medium: #1D2026;
    --bg-light: #242830;
    --bg-card: #2C3039;
    --border-color: #3B404C;
    --text-primary: #ffffff;
    --text-secondary: #8A94A7;
    --text-muted: #5A6270;
    --accent-blue: #0270D7;
    --accent-blue-light: #0F8AFD;
    --accent-green: #00bf9a;
    --accent-red: #dc3545;
    --accent-yellow: #ffc107;
    --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 1200px;
    --header-height: 72px;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* ─── Layout ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--bg-light);
}

.section--medium {
    background: var(--bg-medium);
}

.section__heading {
    margin-bottom: 3rem;
}

.section__heading h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section__heading p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 700px;
}

.section__heading.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    color: #fff;
    border-color: transparent;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 191, 154, 0.3);
    text-decoration: none;
}

.btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.btn--secondary:hover {
    border-color: #fff;
    text-decoration: none;
}

.btn--outline {
    background: transparent;
    color: var(--accent-blue-light);
    border-color: var(--accent-blue);
}

.btn--outline:hover {
    background: var(--accent-blue);
    color: #fff;
    text-decoration: none;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* ─── Site Header ─────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(21, 24, 29, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-header__brand .brand-logo {
    height: 36px;
    width: auto;
}

/* ─── Navigation ──────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-nav__item { position: relative; }

.site-nav__link {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.site-nav__link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* Dropdown */
.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.has-dropdown:hover .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.15s;
}

.site-nav__dropdown a:hover {
    color: var(--text-primary);
    background: var(--bg-light);
    text-decoration: none;
}

.site-nav__ctas {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Page Hero ───────────────────────────────────────── */
.page-hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(2,112,215,0.15) 0%, rgba(0,191,154,0.08) 100%),
                var(--bg-medium);
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.page-hero--compact {
    padding: 140px 0 60px;
}

.page-hero__eyebrow {
    color: var(--accent-green);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-hero__headline {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero__sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.page-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Audience Cards (homepage) ───────────────────────── */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.audience-card__flag {
    margin-bottom: 1rem;
}

.flag-label {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.audience-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.audience-card ul {
    margin-bottom: 2rem;
}

.audience-card li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.audience-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

/* ─── Service Cards Grid ──────────────────────────────── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    display: block;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-decoration: none;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-card__icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-blue-light);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card__link {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ─── Video Showcase ──────────────────────────────────── */
.video-showcase {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.video-showcase__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-showcase__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-showcase__poster {
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
    min-height: 200px;
}

.video-showcase__poster img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
}

.video-showcase__caption {
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

/* ─── Proof / Feature Lists ───────────────────────────── */
.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.proof-list {
    list-style: none;
}

.proof-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.proof-list li svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-green);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ─── CTA Banner ──────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-banner__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Highlight / Relevance Block ─────────────────────── */
.highlight-block {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: #fff;
}

.highlight-block h2, .highlight-block h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.highlight-block p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

/* ─── Content Sections (service pages) ────────────────── */
.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-blue-light);
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 800px;
}

.content-section ul {
    margin-bottom: 1.5rem;
}

.content-section li {
    color: var(--text-secondary);
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.content-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

/* Two-column content layout */
.content-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Use-case cards */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.usecase-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.usecase-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ─── Related Services Strip ──────────────────────────── */
.related-services {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-services a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.related-services a:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    text-decoration: none;
}

/* ─── Forms ───────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
}

/* ─── Assessment Region Chooser ───────────────────────── */
.region-chooser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.region-chooser__card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.region-chooser__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.region-chooser__card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.region-chooser__card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ─── Site Footer ─────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.site-footer__brand .brand-logo {
    height: 30px;
    width: auto;
    margin-bottom: 0.75rem;
}

.site-footer__tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.site-footer__links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.site-footer__links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.site-footer__links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.site-footer__bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-blue-light);
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .site-nav__ctas { display: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid var(--border-color);
        padding: calc(var(--header-height) + 24px) 24px 24px;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .site-nav.is-open {
        right: 0;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__link {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .site-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0 0 0 1rem;
        min-width: 0;
    }

    .site-nav__dropdown a {
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .site-nav__ctas {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .page-hero__headline { font-size: 2.25rem; }
    .page-hero__sub { font-size: 1.05rem; }
    .page-hero { padding: 120px 0 60px; }

    .audience-grid { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .content-2col { grid-template-columns: 1fr; }
    .region-chooser { grid-template-columns: 1fr; }

    .service-grid { grid-template-columns: 1fr; }

    .site-footer__links { grid-template-columns: 1fr; }

    .site-footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cta-banner h2 { font-size: 1.75rem; }
    .section__heading h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .page-hero__headline { font-size: 1.75rem; }
    .audience-card { padding: 2rem; }
    .container { padding: 0 16px; }
}

/* ─── FAQ Section ─────────────────────────────────── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.faq-item__q {
    cursor: pointer;
    padding: 1.25rem 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--accent-blue-light);
}

.faq-item[open] .faq-item__q::after {
    content: '−';
}

.faq-item__a {
    padding: 0 0 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item__a p { margin: 0; }
