/*
Theme Name: Colégio Crista Evangélica
Theme URI: https://colegiocrista.com.br
Author: Replit Design
Description: Tema institucional para o Colégio Crista Evangélica
Version: 1.0
*/

/* Reset e estilos básicos são carregados via main.css (Tailwind) */
body {
    font-family: 'Open Sans', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

button:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled) {
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
input[type="button"]:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35);
    filter: brightness(1.03);
}

button:not(:disabled):active,
input[type="submit"]:not(:disabled):active,
input[type="button"]:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.28);
}

/* =========================================
   WordPress Content Formatting
   ========================================= */
.entry-content {
    line-height: 1.8;
    color: #4b5563; /* text-gray-600 */
}

/* Default Paragraph Alignment */
.entry-content p {
    text-align: justify;
    margin-bottom: 1.5em;
}

/* Headings */
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    color: #0c6b3e;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

/* Lists */
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }

/* Images & Alignments */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
    text-align: center;
}

/* Gutenberg Alignments */
.wp-block-image .alignleft { float: left; margin-right: 1.5em; }
.wp-block-image .alignright { float: right; margin-left: 1.5em; }
.wp-block-image .aligncenter { margin-left: auto; margin-right: auto; }

/* Text Alignments Overrides */
.has-text-align-center { text-align: center !important; }
.has-text-align-left { text-align: left !important; }
.has-text-align-right { text-align: right !important; }
.has-text-align-justify { text-align: justify !important; }

/* Blockquote */
.entry-content blockquote {
    border-left: 4px solid #f2943b;
    padding-left: 1em;
    font-style: italic;
    color: #555;
    margin: 1.5em 0;
}

/* Mission, Vision, Values Hover Effect */
.mission-card {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.mission-card .hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2943b;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 0;
}

.mission-card:hover .hover-bg {
    transform: translateY(0);
}

.mission-card .content {
    position: relative;
    z-index: 10;
}

.mission-card .icon-circle {
    background-color: rgba(242, 148, 59, 0.2); /* #f2943b com opacidade */
    transition: background-color 0.5s ease;
    perspective: 1000px; /* Adiciona profundidade para o efeito 3D */
}

.mission-card:hover .icon-circle {
    background-color: rgba(255, 255, 255, 0.2);
}

.mission-card .icon {
    color: #f2943b;
    transition: all 0.5s ease;
}

.mission-card:hover .icon {
    color: #ffffff;
    transform: rotateY(360deg); /* Rotação 3D conforme solicitado */
}

.mission-card h3,
.mission-card p,
.mission-card ul {
    transition: color 0.5s ease;
}

.mission-card:hover h3,
.mission-card:hover p,
.mission-card:hover ul,
.mission-card:hover li {
    color: #ffffff !important;
}

.hero-banner-section {
    position: relative;
    overflow: hidden;
    background: #0c6b3e;
}

.hero-banner-media {
    position: relative;
    width: 100%;
    min-height: 320px;
    height: clamp(320px, 56vw, 760px);
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    height: 100%;
}

.hero-swiper .swiper-slide {
    background: #0c6b3e;
}

.hero-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-swiper-pagination {
    bottom: 2rem !important;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #f2943b;
}

/* =========================================
   Z-Index Fixes & Floating Button
   ========================================= */

/* Menu Superior */
header {
    z-index: 9998 !important;
}

.home header {
    position: sticky;
    top: 0;
    width: 100%;
}

/* Modal de Visita */
#visit-modal {
    z-index: 99999 !important; /* Extremely high z-index */
}

#visit-modal > div.relative {
    z-index: 100000 !important;
}

#visit-modal-card {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

#visit-modal-body {
    overflow-y: auto;
}

#visit-form-wrapper .wpcf7 {
    width: 100%;
}

#visit-form-wrapper .wpcf7-form p {
    margin: 0 0 1rem;
}

#visit-form-wrapper .wpcf7-form label {
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
}

#visit-form-wrapper .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
#visit-form-wrapper .wpcf7-form select,
#visit-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
    color: #111827;
}

#visit-form-wrapper .wpcf7-form input:not([type="submit"]):focus,
#visit-form-wrapper .wpcf7-form select:focus,
#visit-form-wrapper .wpcf7-form textarea:focus {
    border-color: #79be52;
    box-shadow: 0 0 0 2px rgba(121, 190, 82, 0.2);
}

#visit-form-wrapper .wpcf7-form input[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: 0.5rem;
    background: #f2943b;
    color: #ffffff;
    font-weight: 700;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#visit-form-wrapper .wpcf7-form input[type="submit"]:hover {
    background: #e0802a;
    transform: translateY(-1px);
}

#visit-form-wrapper .wpcf7-spinner {
    display: block;
    margin: 0.75rem auto 0;
}

#visit-form-wrapper .wpcf7-response-output,
#visit-form-wrapper .wpcf7-not-valid-tip {
    font-size: 0.875rem;
}

/* Botão Flutuante */
#floating-visit-btn {
    z-index: 9990 !important;
    border: 4px solid white !important;
}

/* Fix for Banner Overlap (Tailwind mix-blend can cause stacking context issues) */
section.relative {
    z-index: 1; /* Lower than modal */
}

/* Compensa o header fixo nas páginas internas de projetos */
.single-projeto main {
    padding-top: 7rem;
}

.not-found-page {
    background: #ffffff;
}

.not-found-hero {
    padding: 9rem 0 5rem;
    background: linear-gradient(135deg, #0c6b3e 0%, #79be52 100%);
    color: #ffffff;
}

.not-found-content {
    text-align: center;
}

.not-found-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.not-found-title {
    color: #ffffff;
}

.not-found-description {
    color: rgba(255, 255, 255, 0.92);
}

.not-found-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.not-found-button {
    min-width: 220px;
    text-decoration: none;
}

.not-found-button-primary {
    background: #ffffff;
    color: #0c6b3e;
}

.not-found-button-primary:hover {
    background: rgba(255, 255, 255, 0.92);
}

.not-found-button-secondary {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.not-found-button-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
    .not-found-hero {
        padding: 8rem 0 4rem;
    }

    .not-found-button {
        width: 100%;
        max-width: 320px;
    }
}
