/* public/assets/css/style.css */

/* =========================================================
   PALETA ALQUÍMICA & TIPOGRAFIA PADRÃO EXOTIC
   ========================================================= */
:root {
    --gold-title: #B87333;   
    --copper-main: #9c6650;
    --copper-dark: #4a271d;
    
    --text-ivory-bright: #F5EFE1; 
    --text-ivory-base: #EAE3D2;   
    --text-parchment: #CFC5B0;    
    
    --bg-abyss: #050201; 
    
    --font-title: 'Cinzel', serif; 
    --font-display: 'Cinzel Decorative', cursive; 
    --font-body: 'Cormorant Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: url('../images/medieval-bg.png') no-repeat center center fixed; /* Ajustado caminho da imagem para o CSS global */
    background-size: cover;
    background-color: var(--bg-abyss);
    font-family: var(--font-body); 
    display: flex; flex-direction: column; align-items: center; 
    min-height: 100vh; overflow-x: hidden; 
}

.main-content {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; width: 100%; max-width: 1050px;
}

.container { width: 100%; text-align: center; animation: emergeFromShadows 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* --- BOTÃO LOGO GRANDE (HERO) --- */
.hero-logo-link { display: inline-block; margin-bottom: 15px; cursor: pointer; text-decoration: none; }
.hero-logo-btn {
    width: 110px; height: 110px;
    background-image: url('../images/logo-exotic-nova.webp');
    background-size: contain; background-repeat: no-repeat; background-position: center; margin: 0 auto; 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
}
.hero-logo-link:hover .hero-logo-btn, .hero-logo-link:active .hero-logo-btn {
    background-image: url('../images/logo-exotic-nova.webp');
    transform: scale(1.12) translateY(-5px); 
    filter: drop-shadow(0 15px 20px rgba(255, 140, 0, 0.35));
}

h1 {
    font-family: var(--font-display); 
    font-size: 3.5rem; 
    margin: 0 0 5px 0;
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 3px;
    background: linear-gradient(90deg, #5c300d 0%, #b87333 25%, #ffdf73 50%, #b87333 75%, #5c300d 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,1)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.15));
}

.page-subtitle {
    font-family: var(--font-title); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 6px; 
    margin-bottom: 45px; display: inline-block; padding-bottom: 10px;
    border-bottom: 1px solid rgba(184, 115, 51, 0.3);
    color: var(--text-ivory-base);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* =========================================================
   O PERGAMINHO MÍSTICO COM A MOLDURA MATEMÁTICA DEFINITIVA
   ========================================================= */
.royal-box {background-color: #050201; background-image: linear-gradient(145deg, #0f0805 0%, #050201 100%); background-clip: padding-box; width: calc(100% - 60px); 
    max-width: 970px; 
    margin: 0 auto;
    background: linear-gradient(145deg, #0f0805 0%, #050201 100%);
    background-clip: padding-box;

    border: 50px solid transparent; 
    border-image-source: url('../images/moldura-casa.webp'); /* Ajustado caminho */
    border-image-slice: 250; 
    border-image-repeat: round; 
    border-image-width: 125px;
    border-image-outset: 0;
    
    padding: 83px 83px 83px 83px; 
    box-shadow: inset 0 0 60px rgba(0,0,0,1); 
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.85));
    position: relative;
    z-index: 10; background-color: #050201; background-clip: padding-box; }

.text-backdrop {
    background: radial-gradient(circle at center, rgba(18, 10, 5, 0.4) 0%, rgba(5, 2, 1, 0.98) 100%);
    padding: 40px 35px;
    border: none; 
    box-shadow: inset 0 0 60px rgba(0,0,0,0.9); 
    position: relative;
}

.section-header { 
    font-family: var(--font-title); font-size: 0.95rem; letter-spacing: 4px; margin-bottom: 15px; display: block; font-weight: 700; 
    background: linear-gradient(90deg, #5c300d 0%, #b87333 25%, #ffdf73 50%, #b87333 75%, #5c300d 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,1)); 
}

.section-title { 
    font-family: var(--font-display); font-size: 2.4rem; margin-bottom: 5px; font-weight: 700; letter-spacing: 2px; line-height: 1.2;
    background: linear-gradient(90deg, #5c300d 0%, #b87333 25%, #ffdf73 50%, #b87333 75%, #5c300d 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,1)) drop-shadow(0 0 20px rgba(184, 115, 51, 0.3));
}

.section-sub { 
    font-family: var(--font-body); font-style: italic; font-size: 1.5rem; margin-bottom: 35px; display: block; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
}

.text-body { 
    font-family: var(--font-body); font-size: 1.35rem; color: var(--text-ivory-base); 
    line-height: 1.7; margin-bottom: 25px; font-weight: 400; 
    text-shadow: 0 3px 6px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8); 
}

.highlight-gold { 
    background: linear-gradient(90deg, #5c300d 0%, #b87333 25%, #ffdf73 50%, #b87333 75%, #5c300d 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,1));
    font-weight: 700;
}

/* O titulo dos quadros de destaque — "CURSOS, WORKSHOPS E IMERSOES" na
   Escola e "SALA DE REUNIOES" no Coworking — nao tinha regra propria e
   herdava 16px, MENOR que o texto do paragrafo ao lado dele, que esta em
   17,92px. Um titulo menor que o corpo que ele encabeca nao se le como
   titulo, e foi isso que a dona apontou.

   O clamp cresce com a tela sem estourar a caixa no celular, onde a
   largura util cai para 256px: fica em 20px no aparelho e 25,6px no
   computador. */
.special-box-title {
    display: block;
    font-size: clamp(1.25rem, 3.4vw, 1.6rem);
    line-height: 1.3;
    margin-bottom: .4em;
}

.emphasis { 
    font-family: var(--font-body); font-style: italic; font-weight: 600; font-size: 1.6rem; display: block; margin: 35px 0; 
    color: var(--text-ivory-bright);
    text-shadow: 0 0 20px rgba(234, 227, 210, 0.3), 0 4px 8px rgba(0,0,0,1);
}

.divider { 
    height: 1px; width: 50%; margin: 35px auto; 
    background: radial-gradient(circle, rgba(156,102,80,0.6) 0%, transparent 100%); 
}

.symbols { 
    font-size: 1.8rem; margin-top: 30px; letter-spacing: 20px; 
    color: var(--copper-dark);
    text-shadow: 0 2px 4px rgba(0,0,0,1);
}

.btn-wrapper { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

.btn-prosseguir {
    display: inline-block; padding: 18px 45px; 
    background: linear-gradient(180deg, rgba(20, 10, 5, 0.8) 0%, rgba(5, 2, 1, 0.9) 100%);
    border: 1px solid var(--copper-dark); border-radius: 2px;
    color: var(--text-parchment); text-decoration: none; text-transform: uppercase; letter-spacing: 4px; 
    font-size: 0.95rem; font-family: var(--font-title); font-weight: 700; 
    cursor: pointer; transition: all 0.4s ease; 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.8);
    position: relative; overflow: hidden;
}

.btn-prosseguir.secondary {
    background: linear-gradient(180deg, rgba(10, 5, 2, 0.4) 0%, rgba(2, 1, 0, 0.6) 100%);
    border-color: rgba(109, 67, 53, 0.5);
}

.btn-prosseguir:hover {
    border-color: var(--copper-main); color: var(--text-ivory-bright);
    box-shadow: 0 0 25px rgba(184, 115, 51, 0.3), inset 0 0 20px rgba(184, 115, 51, 0.2);
    text-shadow: 0 0 10px rgba(255, 223, 115, 0.5); transform: translateY(-2px);
}

@keyframes emergeFromShadows { 
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); } 
    to { opacity: 1; transform: translateY(0); filter: blur(0); } 
}

@media (max-width: 850px) { 
    h1 { font-size: 2.4rem; } 
    .royal-box { 
        width: calc(100% - 40px);
        border-width: 14px; 
        border-image-width: 32px; 
        border-image-outset: 0; 
        padding: 26px; 
    }
    .text-backdrop { padding: 30px 15px; }
    .section-title { font-size: 1.8rem; } 
    .text-body { font-size: 1.15rem; }
    .hero-logo-btn { width: 90px; height: 90px; }
    .btn-wrapper { flex-direction: column; gap: 15px; margin-top: 25px; padding: 0 15px; }
}

@media (max-width: 400px) {
    .royal-box {
        width: calc(100% - 30px);
        border-width: 10px; 
        border-image-width: 24px; 
        border-image-outset: 0; padding: 22px;}
}

.highlight-traversing {
    color: var(--gold-title);
}
/* =========================================================
   CAMADA DE ACESSIBILIDADE E REFINO — não altera a moldura
   ========================================================= */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid #ffdf73;
    outline-offset: 4px;
}

:where(button, input, select, textarea) {
    font: inherit;
}

.status-message {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid rgba(184, 115, 51, .45);
    background: rgba(10, 5, 2, .82);
    color: var(--text-ivory-base);
    line-height: 1.5;
    text-align: left;
}
.status-message[data-tone="success"] { border-color: rgba(76, 175, 80, .65); color: #c8f3cd; }
.status-message[data-tone="warning"] { border-color: rgba(255, 193, 7, .6); color: #ffe8a1; }
.status-message[data-tone="danger"] { border-color: rgba(220, 80, 80, .7); color: #ffcaca; }
.status-message[data-tone="info"] { border-color: rgba(184, 115, 51, .65); color: var(--text-ivory-bright); }

@media (max-width: 520px) {
    input,
    select,
    textarea { font-size: 16px !important; }
    .main-content { padding-left: 12px; padding-right: 12px; }
    .btn-prosseguir { width: 100%; padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
