/* ============================================================================
 * VIGILIO — BRAND CSS
 * AI Governance platform for Valtieri Group
 * Intellectual, contemplative tone. Sage green accent color.
 * ============================================================================ */

/* === NAV LOGO === */
.nav__logo-img {
    height: 18px;
    width: auto;
}

/* === BODY & BACKGROUND === */
body {
    background-color: var(--vi-surface, #F0EDE6);
    color: var(--vi-primary, #1A1A1A);
}

/* === BRAND COLOR OVERRIDES === */
:root {
    --accent-color: var(--vi-accent, #7A8B6F);
}

/* === SAGE GREEN BUTTON VARIANT === */
.btn--sage {
    background: transparent;
    color: var(--vi-accent, #7A8B6F);
    border: 1.5px solid var(--vi-accent, #7A8B6F);
    transition: all var(--duration-normal) var(--ease-default);
}

.btn--sage:hover {
    background: var(--vi-accent, #7A8B6F);
    color: #FFFFFF;
}

/* === HERO SECTION === */
.vi-hero {
    background: linear-gradient(135deg, var(--vi-surface) 0%, rgba(122, 139, 111, 0.05) 100%);
    padding: var(--space-20) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.vi-hero__content {
    max-width: 800px;
}

.vi-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    color: var(--vi-primary);
}

.vi-hero__subtitle {
    font-size: var(--text-md);
    line-height: var(--leading-relaxed);
    color: var(--grey-700);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.vi-hero__cta {
    display: flex;
    gap: var(--space-4);
}

/* === RISK CARDS === */
.vi-risk-card {
    padding: var(--space-8);
}

.vi-risk-card__icon {
    color: var(--vi-accent);
    margin-bottom: var(--space-5);
}

.vi-risk-card h3 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-3);
    color: var(--vi-primary);
}

.vi-risk-card p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--grey-700);
}

/* === MATURITY SLIDER SECTION === */
.vi-maturity {
    background: #FFFFFF;
    padding: var(--space-16) 0;
}

.vi-maturity-container {
    max-width: 1000px;
    margin: 0 auto;
}

.vi-maturity-slider-wrapper {
    margin-bottom: var(--space-12);
}

.vi-maturity-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(
        to right,
        #E0E0E0 0%,
        #E0E0E0 calc(var(--slider-fill, 50%) - 0px),
        var(--vi-accent) calc(var(--slider-fill, 50%)),
        var(--vi-accent) 100%
    );
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: var(--space-8);
}

.vi-maturity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--vi-accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(122, 139, 111, 0.3);
    transition: all var(--duration-normal) var(--ease-default);
}

.vi-maturity-slider::-webkit-slider-thumb:hover {
    width: 28px;
    height: 28px;
    box-shadow: 0 4px 12px rgba(122, 139, 111, 0.4);
}

.vi-maturity-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--vi-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(122, 139, 111, 0.3);
    transition: all var(--duration-normal) var(--ease-default);
}

.vi-maturity-slider::-moz-range-thumb:hover {
    width: 28px;
    height: 28px;
    box-shadow: 0 4px 12px rgba(122, 139, 111, 0.4);
}

.vi-maturity-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.vi-maturity-display {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-8);
    align-items: start;
    background: var(--vi-surface);
    padding: var(--space-8);
    border: 1px solid rgba(122, 139, 111, 0.1);
}

.vi-maturity-level {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-6);
    border: 2px solid var(--vi-accent);
    border-radius: 8px;
}

.vi-level-number {
    font-family: var(--font-data);
    font-size: 3rem;
    font-weight: 600;
    color: var(--vi-accent);
    line-height: 1;
}

.vi-maturity-panel h3 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vi-primary);
    margin-bottom: var(--space-3);
}

.vi-maturity-description {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--grey-700);
    margin-bottom: var(--space-6);
}

.vi-maturity-recommendations {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(122, 139, 111, 0.1);
}

.vi-maturity-recommendations h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vi-primary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.vi-maturity-recommendations ul {
    list-style: none;
    display: grid;
    gap: var(--space-2);
}

.vi-maturity-recommendations li {
    font-size: var(--text-sm);
    color: var(--grey-700);
    padding-left: var(--space-4);
    position: relative;
}

.vi-maturity-recommendations li:before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--vi-accent);
    font-weight: bold;
}

/* === FRAMEWORK VISUALIZER === */
.vi-framework-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.vi-phase {
    position: relative;
    overflow: hidden;
}

.vi-phase-number {
    font-family: var(--font-data);
    font-size: 2rem;
    font-weight: 600;
    color: rgba(122, 139, 111, 0.15);
    margin-bottom: var(--space-4);
    line-height: 1;
}

.vi-phase .icon-frame {
    background: var(--vi-surface);
    border-color: var(--vi-accent);
    color: var(--vi-accent);
    margin-bottom: var(--space-5);
}

.vi-phase h3 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--vi-primary);
}

.vi-phase p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--grey-700);
}

@media (max-width: 1024px) {
    .vi-framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vi-framework-grid {
        grid-template-columns: 1fr;
    }
}

/* === COMPLIANCE TIMELINE === */
.vi-compliance-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-10);
}

.vi-timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(122, 139, 111, 0.1);
}

.vi-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vi-timeline-marker {
    font-family: var(--font-data);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vi-accent);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding-top: var(--space-2);
}

.vi-timeline-content h4 {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--vi-primary);
    margin-bottom: var(--space-2);
}

.vi-timeline-content p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--grey-700);
}

@media (max-width: 768px) {
    .vi-timeline-item {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .vi-timeline-marker {
        padding-top: 0;
    }
}

/* === SHADOW AI DETECTION SECTION === */
.vi-shadow-calculator {
    max-width: 700px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: var(--space-8);
    border: 1px solid rgba(122, 139, 111, 0.1);
    border-radius: 8px;
}

.vi-shadow-input-group {
    margin-bottom: var(--space-8);
}

.vi-shadow-input-group label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vi-primary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.vi-shadow-input-wrapper {
    position: relative;
}

.vi-shadow-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-data);
    font-size: var(--text-base);
    border: 1px solid rgba(122, 139, 111, 0.2);
    border-radius: 4px;
    background: var(--vi-surface);
    color: var(--vi-primary);
    transition: border-color var(--duration-normal) var(--ease-default);
}

.vi-shadow-input:focus {
    outline: none;
    border-color: var(--vi-accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(122, 139, 111, 0.1);
}

.vi-shadow-estimate {
    background: linear-gradient(135deg, rgba(122, 139, 111, 0.05) 0%, rgba(122, 139, 111, 0.02) 100%);
    padding: var(--space-8);
    border: 1px solid var(--vi-accent);
    border-radius: 4px;
    margin-bottom: var(--space-6);
}

.vi-shadow-stat {
    text-align: center;
}

.vi-shadow-stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--grey-700);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-3);
}

#shadow-count {
    font-family: var(--font-data);
    font-size: 3rem;
    font-weight: 600;
    color: var(--vi-accent);
    line-height: 1;
}

.vi-shadow-insight {
    font-size: var(--text-xs);
    color: var(--grey-600);
    text-align: center;
    line-height: var(--leading-relaxed);
}

/* === CALL TO ACTION SECTION === */
.vi-cta {
    background: linear-gradient(135deg, var(--vi-primary) 0%, rgba(26, 26, 26, 0.95) 100%);
    color: #FFFFFF;
}

.vi-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.vi-cta-content h2 {
    color: #FFFFFF;
    margin-bottom: var(--space-5);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.vi-cta-content p {
    font-size: var(--text-md);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
}

/* === ICON STYLING === */
.icon-frame {
    background: #FFFFFF;
    border: 1px solid rgba(122, 139, 111, 0.15);
    color: var(--vi-accent);
}

/* === DIVIDER OVERRIDE === */
.divider {
    background: var(--vi-accent);
}

/* === SECTION EYEBROW OVERRIDE === */
.section-eyebrow {
    color: var(--vi-accent);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .vi-hero {
        padding: var(--space-12) 0;
        min-height: 70vh;
    }

    .vi-hero__title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .vi-maturity-display {
        grid-template-columns: 1fr;
    }

    .vi-cta-content h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .vi-hero {
        padding: var(--space-10) 0;
        min-height: 60vh;
    }

    .vi-hero__title {
        font-size: var(--text-3xl);
    }

    .vi-maturity-labels {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
        font-size: var(--text-xs);
    }
}

/* === UTILITY: MAINTAIN NATURAL LINEN AESTHETIC === */
.vi-surface-light {
    background: rgba(240, 237, 230, 0.5);
}

.vi-accent-text {
    color: var(--vi-accent);
}

.vi-accent-border {
    border-color: var(--vi-accent);
}

/* === ANIMATIONS === */
[data-reveal] {
    opacity: 0;
    transition: opacity var(--duration-reveal) var(--ease-out),
                transform var(--duration-reveal) var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}
