/* ===================================================
   Parque de Estudo e Reflexão Retiro — Folha de estilo compartilhada
   =================================================== */

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --whatsapp-color: #25d366;
    --text-color: #444;
    --bg-light: #f9fbfb;
    --card-bg: #ffffff;
    --border-color: #e0e6e6;
    --ept-red: #a31d21;
    --ept-blue: #1d4a7a;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

a { color: var(--accent-color); }

/* Cabeçalho e navegação */
header {
    background: #ffffff;
    border-bottom: 2px solid var(--accent-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.65), rgba(44, 62, 80, 0.65)),
                url('https://via.placeholder.com/1500x500?text=Parque+Retiro+Marica+Rio+de+Janeiro');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.hero h1 { font-size: 2.3rem; margin-bottom: 10px; }
.hero p { font-size: 1.05rem; font-weight: 300; }

.page-hero {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 55px 20px;
}
.page-hero h1 { font-size: 1.9rem; margin: 0 0 8px 0; }
.page-hero p { font-size: 0.95rem; font-weight: 300; margin: 0; opacity: 0.85; }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Conteúdo principal */
.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 20px;
}

section { margin-bottom: 20px; }

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.subsection-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 35px 0 15px 0;
}

.lead-text { font-size: 1rem; text-align: justify; max-width: 80ch; }

/* Grid e cartões */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.card h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.15rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.card p { font-size: 0.95rem; text-align: justify; margin: 0 0 12px 0; }
.card p:last-child { margin-bottom: 0; }

.nav-card {
    text-decoration: none;
    color: inherit;
}
.nav-card h3 { display: flex; align-items: center; gap: 8px; }
.nav-card .go { margin-top: auto; color: var(--accent-color); font-weight: 600; font-size: 0.85rem; }

/* Botões */
.btn-visit {
    align-self: flex-start;
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: auto;
    transition: 0.3s;
    display: inline-block;
}
.btn-visit:hover { background: var(--primary-color); color: white; }

/* Acessos rápidos */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 25px 0;
}
.quick-link-btn {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.25s;
}
.quick-link-btn i { font-size: 1.3rem; color: var(--accent-color); }
.quick-link-btn:hover { background: var(--accent-color); color: #fff; transform: translateY(-2px); }

/* Caixa de dica */
.tip-box {
    background: #fff8e6;
    border-left: 4px solid #e6b800;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 35px;
}
.tip-box i { color: #e6b800; margin-right: 6px; }

/* Título de subseção menor (dentro de uma subsection-title) */
.micro-title {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 22px 0 8px 0;
}

/* Lista de passos numerados (De carro) */
.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 20px 0 35px 0;
}
.step-list li {
    counter-increment: step;
    position: relative;
    padding: 12px 16px 12px 50px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.92rem;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Lista de recursos do app (com ícones) */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.feature-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list i { color: var(--accent-color); width: 18px; text-align: center; }

/* Mapa incorporado */
.map-embed {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.map-embed iframe { display: block; }

/* Tabelas de horário de ônibus (EPT Maricá) */
.bus-header {
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin: 15px 0 10px 0;
}
.bus-header.red { background: var(--ept-red); }
.bus-header.blue { background: var(--ept-blue); }

.bus-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.bus-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    background: #fff;
}

/* Tabelas de documentos/produções */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 30px 0;
    font-size: 0.85rem;
}
.doc-table th {
    background: var(--primary-color);
    color: #fff;
    text-align: left;
    padding: 8px 10px;
}
.doc-table td {
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    background: #fff;
    vertical-align: top;
}
.doc-table tr:nth-child(even) td { background: #f7f9f9; }
.doc-table a { word-break: break-word; }

.app-link {
    text-align: center;
    margin-top: 15px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    display: block;
}

/* Lista de Parques no Mundo */
.park-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.park-section h3 { margin-top: 0; color: var(--primary-color); }

.park-card { padding: 0; overflow: hidden; position: relative; }
.park-photo { width: 100%; height: 160px; object-fit: cover; display: block; }
.park-card h3, .park-card p, .park-card .btn-visit { margin-left: 20px; margin-right: 20px; }
.park-card h3 { margin-top: 16px; border-bottom: none; padding-bottom: 0; }
.park-card p { margin-bottom: 14px; color: #666; font-size: 0.85rem; }
.park-card .btn-visit { margin-bottom: 20px; align-self: flex-start; }
.park-card.own-park { border-color: var(--accent-color); border-width: 2px; }
.badge-own {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.park-list {
    columns: 2;
    -webkit-columns: 2;
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}
.park-list li { margin-bottom: 10px; break-inside: avoid; }
.park-list a { font-weight: 500; }

/* Reservas */
.reserva-box { text-align: center; margin-top: 20px; }
.reserva-frame {
    width: 100%;
    height: 220px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #eef1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}
.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
    align-self: center;
    margin-top: 20px;
}

/* Rodapé */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3.5rem 0;
    margin-top: 3rem;
}
.social-links { margin-bottom: 22px; }
.social-links a {
    color: white;
    font-size: 24px;
    margin: 0 12px;
    transition: color 0.3s;
}
.social-links a:hover { color: var(--accent-color); }
footer p { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* Responsividade */
@media (max-width: 768px) {
    .park-list { columns: 1; }
    .hero h1 { font-size: 1.6rem; }
    .page-hero h1 { font-size: 1.5rem; }
    nav { gap: 5px; }
    nav a { font-size: 0.62rem; }
}

/* Submenus (Escola > Nivelamento, Reservas > Calendário de uso): aparecem ao passar o mouse */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    padding: 6px;
    z-index: 1200;
}
.nav-sub a { display: block; white-space: nowrap; }
.nav-dropdown:hover .nav-sub,
.nav-dropdown:focus-within .nav-sub { display: block; }

/* Em telas pequenas (sem mouse), o submenu fica visível ao lado do item */
@media (max-width: 768px) {
    .nav-dropdown { display: contents; }
    .nav-sub { display: contents; }
    .nav-dropdown:hover .nav-sub,
    .nav-dropdown:focus-within .nav-sub { display: contents; }
    .nav-sub a { display: inline-block; }
}

/* Página Escola */
.escola-banner {
    display: block;
    width: 100%;
    max-width: 820px;
    height: auto;
    margin: 10px auto 30px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.escola-contato { text-align: center; margin: 0 auto 35px auto; font-size: 0.95rem; }

/* Página Nivelamento */
.aviso-download {
    background: #fff8e6;
    border-left: 4px solid #e6b800;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 0 25px 0;
}
.aviso-download strong { font-style: normal; }
.file-list { list-style: none; padding: 0; margin: 0 0 30px 0; }
.file-list li {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.file-list ul { list-style: none; padding: 0; margin: 8px 0 0 0; }
.file-list ul li { border: none; border-top: 1px solid #f0f0f0; border-radius: 0; margin: 0; padding: 7px 0 7px 12px; }
.audio-list { list-style: none; padding: 0; margin: 0; }
.audio-list li { padding: 6px 0; font-size: 0.92rem; display: flex; gap: 10px; align-items: baseline; }
.audio-list i { color: var(--accent-color); width: 16px; text-align: center; flex: none; }
.audio-list li.sem-link { color: #888; }

/* Formulário de solicitação de reserva */
.form-reserva {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
    max-width: 720px;
}
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--primary-color); }
.form-row input,
.form-row select,
.form-row textarea {
    font: inherit;
    font-size: 0.95rem;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--text-color);
}
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 1px; }
.form-erro { color: var(--ept-red); font-weight: 600; font-size: 0.9rem; margin: 0 0 12px 0; }
.form-nota { font-size: 0.8rem; color: #777; margin: 14px 0 0 0; }
.form-reserva .btn-large { border: none; cursor: pointer; font: inherit; font-weight: bold; }

/* Marca no topo: mandala + nome do Parque */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 6px auto;
    padding: 0 20px;
    text-decoration: none;
    color: var(--primary-color);
}
.brand-logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand-name { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }

@media (max-width: 768px) {
    .brand { gap: 10px; }
    .brand-logo { width: 38px; height: 38px; }
    .brand-name { font-size: 1rem; }
}

/* Banner da página inicial */
.hero-banner { background: var(--primary-color); line-height: 0; }
.hero-banner img { display: block; width: 100%; height: auto; max-width: 1600px; margin: 0 auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Item "Comece Aqui": leve destaque no menu, por ser a porta de entrada do site */
nav a[href="comece-aqui.html"] {
    background: var(--accent-color);
    color: #fff;
}
nav a[href="comece-aqui.html"]:hover,
nav a[href="comece-aqui.html"].active {
    background: var(--primary-color);
    color: #fff;
}
