/* ============================================
   style.css - EDSON CENTRO
   Design elegante, responsivo e profissional
   ============================================ */

/* ----- Fonte e reset ----- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
    background: #f8fafc;
    color: #1e293b;
    padding-top: 0;
}

/* ----- 1º HEADER (topo) ----- */
.top-header {
    background: #0a2b5e;
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 2px solid #ffc107;
}
.top-header a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}
.top-header a:hover {
    color: #ffc107;
    transform: translateY(-1px);
}
.top-header .btn-outline-light {
    border-width: 1px;
    transition: all 0.3s ease;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}
.top-header .btn-outline-light:hover {
    background: #ffc107;
    color: #0a2b5e;
    border-color: #ffc107;
    transform: scale(1.05);
}

/* ----- 2º HEADER (navbar) ----- */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}
.navbar-brand {
    font-weight: 700;
    color: #0a2b5e;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}
.navbar-brand img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}
.navbar-brand span {
    display: inline-block;
    vertical-align: middle;
}
.navbar-nav .nav-link {
    font-weight: 500;
    color: #1e293b;
    padding: 0.65rem 1rem;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 30px;
    position: relative;
}
.navbar-nav .nav-link i {
    margin-right: 6px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #0d6efd;
    border-radius: 10px;
}
.navbar-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ----- Hero Slider ----- */
.hero-slider .carousel-item {
    height: 80vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 43, 94, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}
.hero-slider .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
    pointer-events: none; /* deixa cliques passarem para os controles */
}
.hero-slider .carousel-caption > * {
    pointer-events: auto; /* reativa cliques nos elementos internos */
}
.hero-slider .carousel-caption h1 {
    font-size: 3.8rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out;
}
.hero-slider .carousel-caption p {
    font-size: 1.4rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    animation: fadeInUp 1s ease-out;
}
.hero-slider .carousel-caption .btn {
    animation: fadeInUp 1.2s ease-out;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
}
.hero-slider .carousel-caption .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.5);
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1.8rem;
    background-size: 60%;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    opacity: 0.7;
    transition: opacity 0.3s;
    width: 5%;
    z-index: 10; /* GARANTE que os botões fiquem acima de tudo */
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    opacity: 1;
}
.hero-slider .carousel-indicators {
    z-index: 10;
}
.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid rgba(255,255,255,0.6);
}
.hero-slider .carousel-indicators button.active {
    background: #ffc107;
    border-color: #ffc107;
}

/* ----- Títulos de seção ----- */
.section-title {
    font-weight: 800;
    font-size: 2.8rem;
    color: #0a2b5e;
    letter-spacing: -1px;
}
.section-title i {
    color: #0d6efd;
    margin-right: 10px;
}

/* ----- Cards de cursos ----- */
.curso-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    background: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    height: 100%;
}
.curso-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}
/* ----- Cards de cursos ----- */
.curso-card .card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;          /* FORÇA QUADRADO PERFEITO */
    object-fit: cover;            /* PREENCHE SEM DISTORCER */
    border-bottom: 4px solid #0d6efd;
    transition: transform 0.5s ease;
}
.curso-card:hover .card-img-top {
    transform: scale(1.03);
}
.curso-card .card-body {
    padding: 1.8rem;
}
.curso-card .card-title {
    font-weight: 700;
    color: #0a2b5e;
}
.curso-card .btn-outline-primary {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}
.curso-card .btn-outline-primary:hover {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    transform: scale(1.05);
}

/* ----- Galeria ----- */
#galeriaCarousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
#galeriaCarousel .carousel-item img {
    height: 500px;
    object-fit: cover;
}
#galeriaCarousel .carousel-caption {
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
    border-radius: 0 0 20px 20px;
    padding: 2rem 1.5rem;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
}
#galeriaCarousel .carousel-caption h5 {
    font-size: 1.8rem;
    font-weight: 700;
}
#galeriaCarousel .carousel-control-prev-icon,
#galeriaCarousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 60%;
}
#galeriaCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ----- Contacto ----- */
#contacto .bg-light {
    background: #f1f5f9 !important;
}
#contacto .form-control {
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    padding: 0.8rem 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}
#contacto .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}
#contacto textarea.form-control {
    border-radius: 24px;
}
#contacto .btn-primary {
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border: none;
}
#contacto .btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.3);
}
#contacto .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
#contacto .btn-outline-primary {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    line-height: 50px;
    transition: all 0.3s ease;
    border-width: 2px;
}
#contacto .btn-outline-primary:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Alerta de sucesso do formulário */
.alert-contacto {
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.alert-contacto.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* ----- Footer elegante ----- */
.footer {
    background: #0a1a2f !important;
    border-top: 5px solid #ffc107;
    color: #fff;
}
.footer a {
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer .hover-link {
    display: inline-block;
}
.footer .hover-link:hover {
    color: #ffc107 !important;
    transform: translateX(6px);
}
.footer .fab {
    transition: transform 0.3s ease, color 0.3s ease;
}
.footer .fab:hover {
    color: #ffc107 !important;
    transform: scale(1.15) rotate(-5deg);
}
.footer hr {
    opacity: 0.2;
}
.footer .text-white-50 {
    color: rgba(255, 255, 255, 0.65) !important;
}
.footer .btn-outline-primary {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.footer .btn-outline-primary:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #0a1a2f;
}

/* ----- Animações ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Botão "Voltar ao topo" ----- */
#btnTopo {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border: none;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
}
#btnTopo:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.5);
}

/* ============================================ */
/* RESPONSIVIDADE                               */
/* ============================================ */

@media (max-width: 992px) {
    .hero-slider .carousel-item {
        height: 65vh;
        min-height: 400px;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 2.8rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .top-header .contact-info {
        font-size: 0.75rem;
    }
    .top-header .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    .navbar-brand {
        font-size: 1.1rem;
        gap: 0.4rem;
    }
    .navbar-brand img {
        height: 36px;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0.8rem;
        border-radius: 0;
    }
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    .hero-slider .carousel-item {
        height: 55vh;
        min-height: 300px;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 2.2rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    .hero-slider .carousel-caption .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    #galeriaCarousel .carousel-item img {
        height: 300px;
    }
    #galeriaCarousel .carousel-caption {
        padding: 1rem;
    }
    #galeriaCarousel .carousel-caption h5 {
        font-size: 1.2rem;
    }
    #contacto .col-md-6:first-child {
        order: 2;
    }
    #contacto .col-md-6:last-child {
        order: 1;
        margin-bottom: 2rem;
    }
    .footer .row > div {
        text-align: center;
    }
    .footer .fab {
        font-size: 1.4rem !important;
    }
    .footer .hover-link:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .top-header .container {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .top-header .contact-info a {
        display: inline-block;
        margin: 0 6px;
    }
    .hero-slider .carousel-item {
        height: 50vh;
        min-height: 250px;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 1.8rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .hero-slider .carousel-caption .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .curso-card .card-img-top {
        height: 150px;
    }
    #galeriaCarousel .carousel-item img {
        height: 220px;
    }
    #contacto .form-control {
        border-radius: 30px;
        font-size: 0.9rem;
    }
    #contacto .btn-primary {
        width: 100%;
        justify-content: center;
    }
    #btnTopo {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
    }
}

/* Extra: telas muito pequenas */
@media (max-width: 360px) {
    .navbar-brand {
        font-size: 0.95rem;
        gap: 0.3rem;
    }
    .navbar-brand img {
        height: 30px;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 1.5rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .top-header {
        font-size: 0.75rem;
    }
    .top-header .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
}

@media (max-width: 576px) {
    /* ... outros estilos ... */
    .curso-card .card-img-top {
        aspect-ratio: 1 / 1;      /* MANTÉM QUADRADO MESMO EM MOBILE */
        height: auto;             /* DEIXA O ASPECT-RATIO CONTROLAR */
    }
}