/*
Theme Name: Tema IRL
Description: Tema personalizado para IRL Consultoria baseado no site existente
Version: 1.0
Author: Rodrigo Santos
*/

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.entry-content {
    color: #334155;
    font-size: 1.125rem;
    line-height: 1.9;
}

.entry-content>*+* {
    margin-top: 1.5rem;
}

.entry-content p {
    margin: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 2.25rem;
}

.entry-content h3 {
    font-size: 1.75rem;
}

.entry-content h4 {
    font-size: 1.375rem;
}

.entry-content a {
    color: #059669;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.entry-content strong {
    color: #0f172a;
    font-weight: 800;
}

.entry-content em {
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li+li {
    margin-top: 0.75rem;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #10b981;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 500;
}

.entry-content figure {
    margin: 2.5rem 0;
}

.entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    cursor: zoom-in;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-cover,
.entry-content .wp-block-gallery {
    border-radius: 1.5rem;
    overflow: hidden;
}

.entry-content .wp-block-heading {
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.entry-content .wp-block-button {
    margin-top: 2rem;
}

.entry-content .wp-block-button__link {
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.entry-content .wp-block-separator {
    margin: 2.5rem auto;
    border-color: #cbd5e1;
}

.entry-content .wp-caption-text,
.entry-content figcaption {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

body.entry-lightbox-is-open {
    overflow: hidden;
}

.entry-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.entry-lightbox.hidden {
    display: none;
}

.entry-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(6px);
}

.entry-lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    width: min(1100px, calc(100vw - 3rem));
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.entry-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    width: auto;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
    object-fit: contain;
}

.entry-lightbox__caption {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    max-width: 60rem;
}

.entry-lightbox__caption:empty {
    display: none;
}

.entry-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.entry-lightbox__close:hover {
    background: rgba(5, 150, 105, 0.92);
    transform: scale(1.04);
}

@media (max-width: 640px) {
    .entry-lightbox {
        padding: 1rem;
    }

    .entry-lightbox__figure {
        width: min(100vw - 2rem, 1000px);
        max-height: calc(100vh - 2rem);
    }

    .entry-lightbox__image {
        max-height: calc(100vh - 5rem);
        border-radius: 1rem;
    }
}

.irl-flipbook {
    width: min(100%, var(--irl-flipbook-max-width, 1000px));
    margin: 3rem auto;
    padding: 1rem;
    border-radius: 2rem;
    background: #f8fafc;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

.irl-flipbook__stage {
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    aspect-ratio: var(--irl-flipbook-spread-ratio, 1.414) / 1;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #e2e8f0;
}

.irl-flipbook__stage .stf__wrapper {
    max-width: 100% !important;
}

.irl-flipbook--single .irl-flipbook__stage,
.irl-flipbook--single .irl-flipbook__stage .stf__wrapper {
    width: 100% !important;
    min-width: 0 !important;
}

.irl-flipbook__stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.irl-flipbook__status {
    padding: 1rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.irl-flipbook__status.is-error {
    color: #b91c1c;
}

.irl-flipbook__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
}

.irl-flipbook__button {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.irl-flipbook__button:hover {
    background: #059669;
    transform: translateY(-1px);
}

.irl-flipbook__counter {
    min-width: 5.5rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
}

.irl-flipbook:fullscreen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
    padding: clamp(0.75rem, 2vw, 2rem);
    border-radius: 0;
    background: #020617;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.irl-flipbook:fullscreen .irl-flipbook__stage {
    width: min(100%, calc((100vh - 7rem) * var(--irl-flipbook-spread-ratio, 1.414)));
    max-height: calc(100vh - 7rem);
    margin: 0 auto;
    border-radius: 1rem;
    background: #0f172a;
}

.irl-flipbook:fullscreen .irl-flipbook__controls {
    padding-top: 1.25rem;
}

.irl-flipbook:fullscreen .irl-flipbook__counter {
    color: #e2e8f0;
}

.irl-flipbook:-webkit-full-screen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
    padding: clamp(0.75rem, 2vw, 2rem);
    border-radius: 0;
    background: #020617;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.irl-flipbook:-webkit-full-screen .irl-flipbook__stage {
    width: min(100%, calc((100vh - 7rem) * var(--irl-flipbook-spread-ratio, 1.414)));
    max-height: calc(100vh - 7rem);
    margin: 0 auto;
    border-radius: 1rem;
    background: #0f172a;
}

.irl-flipbook:-webkit-full-screen .irl-flipbook__controls {
    padding-top: 1.25rem;
}

.irl-flipbook:-webkit-full-screen .irl-flipbook__counter {
    color: #e2e8f0;
}

@keyframes ken-burns {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.2) translate(1%, 1%);
    }
}

.animate-ken-burns {
    animation: ken-burns 15s ease-out forwards;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-in {
    animation: fade-in 1s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateX(-48px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

body.special-home-modal-is-open {
    overflow: hidden;
}

.special-home-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.special-home-modal.hidden {
    display: none;
}

.special-home-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(5px);
}

.special-home-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(380px, 92vw);
    max-height: min(90vh, 920px);
    background: #020617;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
}

.special-home-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.special-home-modal__close:hover {
    background: rgba(16, 185, 129, 0.85);
    transform: scale(1.04);
}

.special-home-modal__carousel {
    position: relative;
    display: block;
    aspect-ratio: 4 / 6.6;
    min-height: 555px;
    background: #020617;
}

.special-home-modal__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.special-home-modal__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.special-home-modal__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.special-home-modal__footer {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0;
}

.special-home-modal__indicators {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.38rem;
}

.special-home-modal__dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.special-home-modal__dot.is-active {
    background: #10b981;
    transform: scale(1.12);
}

@media (max-width: 767px) {
    .entry-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .entry-content h2 {
        font-size: 1.9rem;
    }

    .entry-content h3 {
        font-size: 1.5rem;
    }

    .irl-flipbook {
        margin: 2rem auto;
        padding: 0.65rem;
        border-radius: 1.5rem;
        width: calc(100vw - 3rem);
        max-width: 22rem;
        box-sizing: border-box;
    }

    .irl-flipbook__stage {
        aspect-ratio: var(--irl-flipbook-single-ratio, 0.707) / 1;
        border-radius: 1rem;
        margin-inline: auto;
    }

    .irl-flipbook__controls {
        gap: 0.5rem;
        padding-top: 0.65rem;
    }

    .irl-flipbook__button {
        width: 2.35rem;
        height: 2.35rem;
    }

    .irl-flipbook__counter {
        min-width: 4.5rem;
        font-size: 0.85rem;
    }

    .irl-flipbook:fullscreen .irl-flipbook__stage,
    .irl-flipbook:-webkit-full-screen .irl-flipbook__stage {
        width: min(100%, calc((100vh - 7rem) * var(--irl-flipbook-single-ratio, 1.7778)));
    }

    .special-home-modal {
        padding: 0.75rem;
    }

    .special-home-modal__dialog {
        width: 80vw;
        border-radius: 20px;
    }

    .special-home-modal__carousel {
        aspect-ratio: 3 / 5.3;
        min-height: 476px;
    }

    .special-home-modal__footer {
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
}