/* PROTEXIA - Prototype multi-page additions */

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    z-index: 2000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 12px;
}

.logo {
    text-decoration: none;
    color: inherit;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--primary-color);
    padding: 6px;
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid #e5e5e5;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e5e5;
    background: var(--bg-white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    margin: 4px 0;
    border-radius: 2px;
}

.hero {
    background-image: linear-gradient(135deg, rgba(12, 20, 28, 0.92), rgba(21, 36, 52, 0.88)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.page-hero {
    position: relative;
    padding: 120px 0 90px;
    color: #ffffff;
    background-image: linear-gradient(135deg, rgba(12, 20, 28, 0.92), rgba(18, 32, 46, 0.88)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.page-hero-inner {
    max-width: 720px;
}

.page-hero-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.page-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-lg);
}

.page-hero-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
                 0 4px 16px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.meta-card {
    background: rgba(255, 255, 255, 0.16);
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-darker);
    color: #ffffff;
}

.section-dark .section-title,
.section-dark .section-subtitle {
    color: #ffffff;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section-title.align-left,
.section-subtitle.align-left {
    text-align: left;
}

.center-actions {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    align-items: center;
}

.panel {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.panel-text {
    color: var(--text-medium);
}

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

/* Alternar color de icon-badge */
.feature-card:nth-child(2n) .icon-badge {
    background: var(--secondary-light);
}

.feature-card:nth-child(3n) .icon-badge {
    background: #FEF5E7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.feature-description {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
}

.list-check {
    list-style: none;
    display: grid;
    gap: var(--spacing-xs);
}

.list-check li {
    position: relative;
    padding-left: 24px;
    color: var(--text-medium);
}

.list-check li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--spacing-sm);
}

.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-medium);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: var(--spacing-sm);
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.featured-image {
    min-height: 280px;
    border-radius: var(--radius-xl);
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 40px;
}

.featured-meta {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.chip {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid #e4e4e4;
    font-size: 14px;
    color: var(--text-medium);
    background: var(--bg-white);
}

.chip.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.post-image {
    min-height: 160px;
    background: var(--gradient-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
}

.post-content {
    padding: var(--spacing-md);
    flex: 1;
}

.post-meta {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.post-excerpt {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
}

.post-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: var(--spacing-sm);
}

.map-panel {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.map-panel iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

.map-caption {
    margin-top: var(--spacing-sm);
    text-align: center;
    color: var(--text-medium);
    font-size: 14px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-dark);
    margin: 0 auto var(--spacing-sm);
}

.team-name {
    font-weight: 700;
}

.team-role {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
}

.faq details {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.faq details + details {
    margin-top: var(--spacing-sm);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:after {
    content: "+";
    float: right;
    color: var(--primary-color);
    font-weight: 700;
}

.faq details[open] summary:after {
    content: "–";
}

.stagger > * {
    animation: fadeInUp 0.8s ease both;
    animation-delay: var(--delay, 0s);
}

@media (max-width: 1024px) {
    .feature-grid,
    .post-grid,
    .team-grid,
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-article,
    .split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header-content {
        position: relative;
    }

    .nav {
        position: absolute;
        top: 64px;
        right: 16px;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
        flex-direction: column;
        gap: var(--spacing-sm);
        display: none;
    }

    .nav-close {
        display: inline-flex;
        align-self: flex-end;
    }

    .nav.is-open {
        display: flex;
    }

    .header-cta {
        gap: 10px;
    }

    .page-hero-title {
        font-size: 34px;
    }

    .page-hero-subtitle {
        font-size: 16px;
    }

    .feature-grid,
    .post-grid,
    .team-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
