/* Global style foundation
   Objetivo: padronizar tipografia, espaçamento e componentes sem reescrever o layout existente. */

:root {
    --color-primary: #3d76c7;
    --color-primary-dark: #2c5aa2;
    --color-accent: #0077b6;
    --color-text: #2f3640;
    --color-muted: #6b7280;
    --color-surface: #ffffff;
    --color-bg: #f7f9fc;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.10);
    --radius-md: 12px;
    --radius-sm: 8px;
    --content-max: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img,
video,
iframe {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 20px;
}

main {
    display: block;
}

section {
    background: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}

.section-title h1,
.section-title h2,
.section-title h3 {
    margin: 0 0 8px 0;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: 0.2px;
}

.section-title p {
    margin: 0;
    color: var(--color-muted);
}

p {
    margin: 0 0 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.btn-saiba-mais,
.btn-enviar,
.menu-button,
.card-button,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-saiba-mais:hover,
.btn-enviar:hover,
.menu-button:hover,
.card-button:hover,
.btn-login:hover {
    transform: translateY(-1px);
}

.card-button,
.btn-saiba-mais {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-enviar {
    background: var(--color-accent);
    color: #fff;
    border: 0;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
}

.menu-button,
.btn-login {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    padding: 10px 18px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font-size: 1rem;
}

.form-control:focus {
    outline: 2px solid rgba(61, 118, 199, 0.2);
    border-color: var(--color-primary);
}

.page-card,
.contato-form,
.gallery-container,
.flip-card-inner,
.testimonial-card,
.about-us-image iframe {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

.about-us-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 32px;
    align-items: center;
    margin-top: 28px;
}

.about-us-media {
    margin: 0;
}

.about-us-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.about-us-copy {
    margin: 0;
}

.about-us-copy h3 {
    margin-top: 0;
}

.about-us-copy p {
    text-align: justify;
}

.page-narrow-inner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-narrow {
    padding-left: 0;
    padding-right: 0;
}

.colegio-page .section-title {
    margin-bottom: 32px;
}

.colegio-page .about-us-content {
    max-width: 980px;
    margin: 0 auto;
}

.colegio-page .about-us-text {
    font-size: 1.03rem;
}

.colegio-page .about-us-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-size: 1.55rem;
    line-height: 1.25;
}

.colegio-page .about-us-text h4 {
    margin: 1.35rem 0 0.4rem;
    color: var(--color-text);
    font-size: 1.12rem;
    line-height: 1.3;
}

.colegio-page .about-us-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.colegio-page .about-us-text p + h3,
.colegio-page .about-us-text p + h4 {
    margin-top: 1.65rem;
}

.proposta-page .section-title {
    margin-bottom: 30px;
}

.proposta-page .proposta-card {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 28px;
    align-items: center;
    margin: 24px auto;
    max-width: 1040px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.proposta-page .proposta-card.reverse {
    grid-template-columns: 1fr minmax(260px, 360px);
}

.proposta-page .proposta-card-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.proposta-page .proposta-card-content h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    font-size: 1.55rem;
}

.proposta-page .proposta-card-content p {
    margin-bottom: 1rem;
}

.proposta-page .about-us-content {
    max-width: 980px;
    margin: 0 auto;
}

.proposta-page .about-us-text {
    font-size: 1.03rem;
}

.proposta-page .about-us-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-size: 1.45rem;
}

.proposta-page .about-us-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.proposta-page .about-us-text ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.proposta-page .about-us-text li {
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.proposta-teens-page #galeria-root {
    margin-top: 44px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.proposta-teens-page .about-us-content {
    display: block;
    max-width: 920px;
    margin: 0 auto;
}

.proposta-teens-page .about-us-text {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.proposta-teens-page .about-us-text p,
.proposta-teens-page .about-us-text li {
    font-size: 1.02rem;
    line-height: 1.72;
}

.proposta-teens-page .about-us-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.proposta-teens-page .about-us-text ul {
    margin-left: 1.2rem;
    margin-bottom: 1.25rem;
}

.proposta-teens-page .cta-visita {
    max-width: 920px;
}

.proposta-teens-page .teens-article {
    max-width: 920px;
    margin: 0 auto;
}

.proposta-teens-page .teens-copy {
    display: block;
}

.proposta-teens-page .teens-copy > p,
.proposta-teens-page .teens-copy > h3,
.proposta-teens-page .teens-copy > ul {
    width: 100%;
}

.proposta-teens-page .teens-copy p {
    font-size: 1.02rem;
    line-height: 1.72;
    margin-bottom: 1rem;
    text-align: justify;
}

.proposta-teens-page .teens-copy h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    font-size: 1.5rem;
    line-height: 1.25;
}

.proposta-teens-page .teens-copy ul {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
}

.proposta-teens-page .teens-copy li {
    margin-bottom: 0.8rem;
    line-height: 1.65;
}

.proposta-teens-page .teens-copy strong {
    color: var(--color-text);
}

.proposta-teens-page .teens-cta {
    max-width: 920px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
}

.cta-visita {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 32px auto 8px;
    max-width: 1040px;
    padding: 22px 24px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #3d76c7 0%, #2754a4 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.cta-visita-content h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.35rem;
}

.proposta-teens-page .teens-cta .cta-visita-content {
    min-width: 0;
}

.cta-visita-content {
    flex: 1 1 auto;
    min-width: 0;
}

.cta-visita-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.btn-agendar-visita {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 14px 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.btn-agendar-visita:hover {
    transform: translateY(-1px);
    background: #f8fbff;
}

@media (max-width: 900px) {
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .proposta-page .proposta-card,
    .proposta-page .proposta-card.reverse {
        grid-template-columns: 1fr;
    }

    .cta-visita {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .proposta-teens-page .teens-cta {
        grid-template-columns: 1fr;
    }
}

.estrutura-page .section-title {
    margin-bottom: 32px;
}

.estrutura-page .gallery-container {
    margin-bottom: 56px;
    background: #fff;
    padding: 20px;
}

.estrutura-page .gallery-main-image {
    margin-top: 0;
    margin-bottom: 16px;
}

.estrutura-page .gallery-main-image img {
    border-radius: var(--radius-md);
}

.estrutura-page .gallery-thumbnails-wrapper {
    max-width: 100%;
}

.estrutura-page .gallery-thumbnails {
    padding: 12px 0 4px;
}

.estrutura-page .thumbnail-image {
    border-radius: 6px;
}

.contato-page .section-title {
    margin-bottom: 28px;
}

.contato-page .contato-hero {
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: 32px;
    align-items: center;
    margin: 28px auto 32px;
    max-width: 1100px;
}

.contato-page .contato-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-height: 320px;
    object-fit: cover;
    cursor: zoom-in;
}

.contato-page .contato-hero-copy h3,
.contato-page .contato-panel h3 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 1.55rem;
}

.contato-page .contato-hero-copy p,
.contato-page .contato-panel p {
    margin-bottom: 1rem;
}

.contato-page .contato-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contato-page .contato-panel {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    text-align: left;
}

.contato-page .contact-info-list {
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.contato-page .contact-info-list p {
    margin: 0 0 12px 0;
    line-height: 1.7;
}

.contato-page .contact-info-list p:last-child {
    margin-bottom: 0;
}

.contato-page .contato-form {
    width: 100%;
    background: #fff;
    padding: 0;
    border: 0;
    box-shadow: none;
    text-align: left;
}

.contato-page .form-group {
    margin-bottom: 18px;
}

.contato-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
}

.contato-page .contato-form .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.contato-page .contato-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    justify-content: flex-start;
}

.contato-page .btn-enviar {
    min-width: 150px;
}

.contato-page #form-status-message {
    min-height: 20px;
    font-weight: 600;
}

.contato-page #form-status-message.success {
    color: #0f766e;
}

.contato-page #form-status-message.error {
    color: #b91c1c;
}

.contato-page .honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contato-page .contato-map-panel iframe {
    width: 100%;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 3000;
}

.image-modal-frame {
    position: relative;
    display: inline-block;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
}

.image-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-modal-content {
    display: block;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.92);
    transition: transform 0.25s ease;
    object-fit: contain;
}

.image-modal.is-visible .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.image-modal-close:hover {
    background: #fff;
}

@media (max-width: 900px) {
    .contato-page .contato-hero,
    .contato-page .contato-layout {
        grid-template-columns: 1fr;
    }

    .contato-page .contato-hero-image {
        min-height: 220px;
    }

    .contato-page .contato-panel {
        padding: 22px;
    }

    .contato-page .contato-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contato-page .btn-enviar {
        width: 100%;
    }

    .image-modal {
        padding: 16px;
    }

    .image-modal-close {
        top: 8px;
        right: 8px;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

