/* ========================================
   Escola Horizonte de Lisboa - Estilos Principais
   ======================================== */

/* === RESET E VARIÁVEIS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d7a4f;
    --primary-green-hover: #235d3a;
    --light-green: #4a9d6f;
    --lightest-green: #e8f5ed;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --text-color: #333333;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* === TIPOGRAFIA === */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p, li, a {
    font-weight: 400;
    max-width: 700px;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* === HEADER E NAVEGAÇÃO === */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--text-color);
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-green);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 122, 79, 0.85) 0%, rgba(74, 157, 111, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BOTÕES === */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 122, 79, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* === SECTIONS === */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background-color: var(--gray-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-medium);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* === GRID RESPONSIVO === */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === CARTÕES === */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.card-title {
    color: var(--primary-green);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card-text {
    color: var(--gray-medium);
    line-height: 1.7;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* === ESTATÍSTICAS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-medium);
    font-size: 1rem;
}

/* === CALL TO ACTION === */
.cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === CONTEÚDO COM IMAGEM === */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* === FORMULÁRIO === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* === MAPA === */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === INFORMAÇÕES DE CONTACTO === */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--lightest-green);
    border-radius: var(--border-radius);
}

.contact-item-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

/* === BLOG === */
.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.blog-card-title {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.blog-card-excerpt {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* === ARTIGO DO BLOG === */
.article-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--lightest-green);
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--gray-medium);
    font-size: 0.95rem;
}

.article-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article-content h2 {
    color: var(--primary-green);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

/* === FAQ === */
.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.faq-question {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--gray-medium);
    line-height: 1.8;
}

/* === DISCLAIMER === */
.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.disclaimer h4 {
    color: #856404;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.disclaimer p {
    color: #856404;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === BANNER DE COOKIES === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 100%;
}

.cookie-banner a {
    color: var(--light-green);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.btn-accept {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.btn-accept:hover {
    background-color: var(--primary-green-hover);
}

/* === FOOTER === */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--light-green);
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: #d0d0d0;
    font-size: 0.95rem;
    max-width: 100%;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--light-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #d0d0d0;
    font-size: 0.9rem;
}

/* === RESPONSIVIDADE === */

/* TABLET (2 colunas) */
@media (max-width: 992px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-with-image {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* MOBILE (1 coluna) */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner-buttons {
        width: 100%;
    }
    
    .btn-accept {
        flex: 1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* === UTILITÁRIOS === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.text-green {
    color: var(--primary-green);
}

.bg-light {
    background-color: var(--gray-light);
}
