/* Shared Statamic components aligned with WP theme */

/* Home hero — WP uses combined class on one element; compiled SCSS targets .hero .hero--startpage (descendant) */
.hero.hero--startpage {
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 3;
    color: var(--textLight);
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
}

.hero__content h1 {
    font-size: 54px;
    line-height: 1.2;
}

@media screen and (max-width: 800px) {
    .hero__content h1 {
        font-size: 45px;
    }

    .hero__content {
        padding: 0 20px;
    }
}

.hero__content p {
    max-width: 500px;
    margin-inline: auto;
}

.hero__content .flex-container {
    margin-top: 24px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.flex-container--center {
    justify-content: center;
    align-items: center;
}

/* Center dashboard mockup below hero (WP: margin auto, no left:50% hack) */
.hero-screen-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: -250px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.hero-screen-wrap.js-fade-up {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.hero-screen-wrap.js-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-screen-wrap .hero-screen {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    left: auto;
    transform: none;
    border-radius: 20px;
    border: 10px solid #120616;
}

.home .first-section {
    margin-top: 120px;
}

.home .first-section__content {
    text-align: center;
    margin-bottom: 48px;
}

.home .boxes-grid .box-item:not(.box-item--image) {
    background-color: var(--colorPrimary);
    color: var(--textLight);
}

.home .image-text-blocks {
    background-image: url('/assets/home/vivir-section-bg.png');
    background-position: bottom center;
    background-repeat: no-repeat;
}

/* Contact page — info-card grid (WP: 3 + 2 columns) */
.contact-page .entry-content > .wp-block-columns + .wp-block-columns {
    margin-top: 40px;
}

.contact-page .info-card__line-3 a,
.contact-page .info-card__line-4 a {
    color: var(--textColor);
    text-decoration: none;
}

.contact-page .info-card__line-3 a:hover,
.contact-page .info-card__line-4 a:hover {
    text-decoration: underline;
}

/* Contact CTA section — flat rules (nested CSS fallback) */
.contact-section {
    background-color: var(--colorPrimary);
    color: var(--textLight);
    padding: 160px 0;
}

.contact-section h2,
.contact-section p,
.contact-section label {
    color: var(--textLight);
}

.contact-section .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 120px;
    align-items: start;
}

@media screen and (max-width: 900px) {
    .contact-section .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.contact-section .contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.contact-section .contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-section .contact-detail-item a {
    color: var(--textLight);
    text-decoration: none;
}

.contact-section .contact-detail-item__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--textLight);
    border-radius: 16px;
}

.contact-section .contact-detail-item__icon img {
    max-width: 22px;
    max-height: 22px;
}

.contact-section .contact-detail-item__info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-section .contact-detail-item__info label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-section .contact-detail-item__info p {
    margin: 0;
}

.contact-section .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-section .form-group label {
    font-weight: 600;
}

.contact-section .form-group input,
.contact-section .form-group textarea,
.contact-section .form-group select {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
}

.contact-section .form-success {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgb(255 255 255 / 0.15);
    border-radius: 0.5rem;
}

.contact-section .form-errors {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem 0.75rem 2rem;
    background: rgb(0 0 0 / 0.15);
    border-radius: 0.5rem;
    color: #fff;
}

.contact-section .contact-grid__right .button {
    margin-top: 0.5rem;
    background: #191028;
}

.quote-text {
    text-align: center;
}

.get-started-steps .feature-card--dark {
    margin-top: 0;
}

.section-description p {
    margin: 0 0 1rem;
}

.section-description p:last-child {
    margin-bottom: 0;
}

/* Modules page — feature cards in wp-block-columns (match WP) */
.modules-page .entry-content > .wp-block-columns {
    gap: 40px;
    align-items: stretch;
    margin-bottom: 0;
}

.modules-page .entry-content > .wp-block-columns + .wp-block-columns {
    margin-top: 40px;
}

.modules-page .entry-content .wp-block-column {
    display: flex;
    flex-direction: column;
}

.modules-page .entry-content .wp-block-column > .feature-card {
    flex: 1;
    width: 100%;
    margin: 0;
}

.modules-page .entry-content > .media-text,
.modules-page .entry-content > .impact-section,
.modules-page .entry-content > .comparison-section {
    margin-top: 60px;
}

.modules-page .feature-card--light {
    background: #fff;
}

.modules-page .feature-card--dark .feature-card__description {
    color: #fff;
}

.modules-page .impact-section {
    padding-left: 0;
    padding-right: 0;
}

.modules-page .comparison-section {
    margin-bottom: 0;
}

/* ---- Book a demo: success flash popup + submit state ---- */
.form-flash {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 560px;
    animation: form-flash-in 0.3s ease-out;
}
.form-flash__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #7402FF;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(116, 2, 255, 0.35);
}
.form-flash__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #7402FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.contact-section .form-flash__text,
.form-flash__text {
    margin: 0;
    flex: 1;
    font-size: 15px;
    line-height: 1.45;
    color: #fff !important;
}
.form-flash__close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0.55;
}
.form-flash__close:hover {
    opacity: 1;
}
.form-flash.is-hiding {
    opacity: 0;
    transition: opacity 0.25s ease;
}
@keyframes form-flash-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
.contact-section .button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
