/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Garante que o html e o body possam ter 100% de altura */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex; /* Ativa o layout flexbox */
    flex-direction: column; /* Organiza os itens em coluna */
}

.main-content {
    flex: 1; /* Faz esta div se esticar e ocupar o espaço disponível */
}

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

/* Estilo para o Logo posicionado no canto superior esquerdo */
.logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.logo img {
    width: 250px;
    height: auto;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-background {
    background: url('images/Tomografia.jpeg') center/cover;
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Estilo para a imagem do título */
.hero-title-image {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title-image img {
    max-width: 100%;
    height: auto;
    width: 600px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Removendo os estilos antigos do título de texto */
.hero-title {
    display: none;
}

.hero-subtitle {
    display: none;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.about-cta {
    margin-top: 2rem;
    padding: 20px;
    background: #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.btn-about-cta {
    display: inline-block;
    background: linear-gradient(145deg, #30d5c8, #28b4a9);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 16px rgba(48, 213, 200, 0.3);
    border: none;
    cursor: pointer;
}

.btn-about-cta:hover {
    background: linear-gradient(145deg, #28b4a9, #239a8f);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(48, 213, 200, 0.4);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Modules Section */
.modules {
    padding: 80px 0;
    background: #fff;
}

.modules .container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: start;
}

.modules-header {
    position: sticky;
    top: 80px;
}

.modules-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    text-align: center;
}

.modules-grid {
    display: grid;
    gap: 20px;
    grid-template-areas:
        "card1 card3 card5 card7"
        "card2 card3 card6 card7"
        "card2 card4 card6 card8";
    grid-template-rows: repeat(3, 150px);
}

#card1 { grid-area: card1; }
#card2 { grid-area: card2; }
#card3 { grid-area: card3; }
#card4 { grid-area: card4; }
#card5 { grid-area: card5; }
#card6 { grid-area: card6; }
#card7 { grid-area: card7; }
#card8 { grid-area: card8; }

.module-card {
    padding: 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.module-card.dark { background: #1c1c1c; color: white; }
.module-card.light { background: #e9ecef; color: #333; }
.module-card.medium { background: #868686; color: white; }

.module-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: #4a90a4;
    color: white;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.team-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.team-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Instructor Sections */
.instructor { padding: 80px 0; }
.instructor-1 { background: #81817f; color: #ecedec; }
.instructor-2 { background: #81817f; color: #ecedec; }

.instructor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.instructor-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.instructor-text ul { list-style: none; }
.instructor-text li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.instructor-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ecedec;
    font-weight: bold;
    font-size: 1.5rem;
}

.instructor-1 .instructor-text li::before { color: #fff; }
.instructor-image img { width: 100%; height: auto; border-radius: 10px; }

/* CTA Section */
.cta {
    padding: 0; 
    position: relative;
}

.cta-background {
    background: url('images/Tomografia.jpeg') center/cover;
    position: relative;
    padding: 100px 0; 
}

.cta-background::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.cta-benefits {
    list-style: disc;
    margin-bottom: 3rem;
    padding-left: 25px;
}

.cta-benefits li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 10px;
    position: relative;
}

.cta-benefits li::before { content: none; }

.btn-cta {
    display: block;
    background: transparent;
    color: white;
    padding: 20px 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border: 3px solid white;
}

.btn-cta:hover {
    background: white;
    color: #1c1c1c;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- SEÇÃO FINAL (PREÇO + GARANTIA) --- */
.final-offer {
    background-color: #f4f6f8;
}

.price-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.price-card {
    background: linear-gradient(145deg, #ffffff, #e6e9ee);
    border-radius: 24px;
    box-shadow: 10px 10px 30px #d1d4d8, -10px -10px 30px #ffffff;
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.price-value {
    margin-bottom: 30px;
}

.price-value .amount-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1;
    margin: 0 auto;
    margin-bottom: 8px;
}

.price-value .currency {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
    margin-top: 8px;
}

.price-value .main-price {
    display: flex;
    align-items: baseline;
}

.price-value .value {
    font-size: 5.5rem;
    font-weight: 900;
    color: #222;
}

.price-value .cents {
    font-size: 2.5rem;
    font-weight: 700;
    color: #444;
    margin-left: 2px;
}

.price-value .installment {
    display: block;
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
}

.btn-price {
    display: inline-block;
    background: linear-gradient(145deg, #30d5c8, #28b4a9);
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 10px 20px rgba(48, 213, 200, 0.3), inset 0 -2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.btn-price:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(48, 213, 200, 0.4), inset 0 -2px 5px rgba(0,0,0,0.2);
}

.btn-price .btn-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 5px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.guarantee-bar {
    padding: 25px 0;
    background: #1c1c1c;
    color: white;
    text-align: center;
}

.guarantee-bar p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
}

.guarantee-bar .lock-icon {
    color: #f0c14b;
    margin-right: 8px;
    vertical-align: middle;
}

/* Footer */
.footer {
    padding-bottom: 40px; /* Apenas padding inferior */
    background: #1c1c1c; /* Mesma cor da barra de garantia */
    text-align: center;
    position: relative;
}

.footer .container {
    position: relative;
    height: 120px; /* Altura para conter a logo */
}

.footer-logo {
    height: 150px; /* Tamanho da logo */
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-logo:hover {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 992px) {
    .modules .container {
        grid-template-columns: 1fr;
    }

    .modules-title {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: center;
        margin-bottom: 3rem;
        font-size: 2.5rem;
    }

    .modules-grid {
        grid-template-areas:
            "card1 card3" "card2 card3" "card2 card5"
            "card4 card6" "card7 card6" "card7 card8";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, 150px);
    }

    .hero-title-image img {
        width: 500px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .logo { top: 20px; left: 20px; }
    .logo img { width: 180px; }
    .hero-description, .hero-text { font-size: 1rem; }
    .about-content, .team-content, .instructor-content { grid-template-columns: 1fr; gap: 40px; }
    
    .modules-grid {
        grid-template-areas: "card1" "card2" "card3" "card4" "card5" "card6" "card7" "card8";
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 200px);
    }

    .module-card { padding: 20px 15px; text-align: center; justify-content: center; }
    .module-card h3 { font-size: 1rem; }
    .modules-title, .team-text h2, .instructor-text h2, .about-text h2, .cta-content h2 { font-size: 2rem; }
    
    .btn-primary, .btn-cta, .btn-price, .btn-about-cta { padding: 15px 30px; font-size: 1rem; }
    .price-section { padding: 60px 20px; }
    .guarantee-bar p { font-size: 1rem; }

    .hero-title-image img {
        width: 400px;
    }
}

@media (max-width: 480px) {
    .modules-title, .team-text h2, .instructor-text h2, .about-text h2, .cta-content h2 { font-size: 1.8rem; }
    .price-value .value { font-size: 4rem; }
    .price-value .cents { font-size: 2rem; }
    .price-value .currency { font-size: 1.5rem; margin-top: 5px; }

    .hero-title-image img {
        width: 300px;
    }
}

