/* Global Variables and Grid Fixes in base.css or layout.css are assumed done.
   This file focuses on Page-Specific layout and visuals. */

/* Home Page */
.home-hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg-visual {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 60%;
    height: 120%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.hero-bg-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Page Hero Template */
.page-hero {
    padding: 240px 0 120px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 184, 154, 0.05));
    pointer-events: none;
}

/* Section Visual Modules */
.visual-module {
    margin: 80px 0;
    position: relative;
}

.visual-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-container img {
    max-width: 100%;
    height: auto;
    transition: transform 1.2s var(--transition-slow);
}

.scroll-mask-reveal.revealed .visual-container img {
    transform: scale(1.05);
}

/* About Page Timeline */
.timeline-visual {
    margin-top: 60px;
    opacity: 0.6;
}

/* Expertise Workflow */
.workflow-visual {
    position: relative;
    margin-top: 100px;
    padding-bottom: 40px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Policy Layout */
.policy-page {
    padding: 200px 0 120px;
}

.policy-visual-header {
    height: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-narrow {
    max-width: 800px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .hero-bg-visual {
        width: 80%;
        right: -20%;
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 160px 0 80px;
    }
    .hero-bg-visual {
        width: 100%;
        right: 0;
        top: 52%;
        height: 100%;
        opacity: 0.28;
    }
    .hero-bg-visual img {
        object-fit: cover;
        object-position: center;
    }
    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .visual-container {
        padding: 20px;
    }
    .visual-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .card-visual-header img,
    .insight-img-container img {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
    }

    .policy-visual-header {
        height: 140px;
    }
}

/* ---------- Missing layout/components hardening ---------- */
.bg-accent-muted {
    background: linear-gradient(180deg, var(--accent-muted), rgba(15, 15, 15, 0.55));
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    margin-bottom: 24px;
}

.hero-subtitle {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.grid-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.align-center {
    align-items: center;
}

.split-content p + p {
    margin-top: 14px;
}

.text-large {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.75;
}

.expertise-grid,
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card-visual-header,
.insight-img-container,
.policy-icon {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 18px;
    overflow: hidden;
}

.card-visual-header img,
.insight-img-container img,
.policy-icon img {
    width: 100%;
    height: auto;
}

.trust-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.trust-item {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
    padding: 18px 20px;
}

.trust-item h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.trust-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.feature-list li {
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.policy-card {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 24px;
    position: relative;
    transition: transform .35s ease, border-color .35s ease;
}

.policy-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.policy-card h3 {
    margin-bottom: 8px;
}

.policy-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.link-arrow {
    color: var(--accent);
    font-weight: 600;
}

.timeline {
    border-left: 1px solid var(--border);
    margin-left: 14px;
    padding-left: 24px;
    display: grid;
    gap: 24px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
}

.timeline-year {
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-content h3 {
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
}

.insights-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-btn {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.insight-meta {
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.btn-text {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
}

.kintesis-form {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 28px;
}

.contact-form-panel,
.contact-info-panel {
    width: 100%;
}

.contact-method {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 18px;
}

.form-feedback {
    min-height: 20px;
    margin-top: 12px;
    color: var(--accent);
    font-size: 0.9rem;
}

.policy-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.policy-date {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.policy-section {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 22px;
}

.policy-section h2 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.policy-section p,
.policy-section li {
    color: var(--text-secondary);
    line-height: 1.75;
}

@media (max-width: 1100px) {
    .grid-split {
        grid-template-columns: 1fr;
    }

    .grid-three,
    .expertise-grid,
    .insights-grid,
    .policy-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-three,
    .expertise-grid,
    .insights-grid,
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        gap: 10px;
    }
}

/* light utility classes used in HTML */
.btn-magnetic {
    transition: transform 0.28s ease;
}

.footer-group {
    min-width: 0;
}

.footer-contact {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
}
