/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

.img-responsive {
    display: block;
    width: 100%;
}

.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.text-center { text-align: center; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-80 { margin-bottom: 80px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Header & Navigation */
.main-header {
    position: relative;
    z-index: 1000;
}

.top-bar {
    background-color: #1a237e;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    text-align: right;
}

.navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #1a237e;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #1a237e;
    transition: all 0.3s ease-in-out;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f4f4f4;
}

.section-title {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Hero */
.hero {
    height: 500px;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    max-width: 600px;
    line-height: 1.2;
    font-style: italic;
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #1a237e;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #0d145a;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #1a237e;
    color: #1a237e;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #1a237e;
    color: white;
}

.btn-white {
    display: inline-block;
    background-color: white;
    color: #1a237e;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

/* Cards */
.card-exame {
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
}

.card-exame:hover {
    transform: translateY(-5px);
}

.card-exame img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.card-exame h3 {
    font-size: 1rem;
    color: #555;
}

.card-medico {
    text-align: center;
}

.card-medico img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #f4f4f4;
}

.card-medico h4 {
    color: #1a237e;
    margin-bottom: 5px;
}

.card-medico span {
    font-size: 0.8rem;
    color: #888;
}

/* Result Box */
.result-box {
    background-color: #1a237e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    border-radius: 15px;
    position: relative;
    overflow: visible;
}

.result-text {
    flex: 1;
}

.result-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.result-text p {
    margin-bottom: 25px;
    font-weight: 300;
}

.result-icon {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.result-icon img {
    width: 70px;
}

/* Footer */
.main-footer {
    background-color: #1a237e;
    color: white;
    padding: 50px 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-content p {
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 500;
}

.footer-content p strong {
    font-weight: 700;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 110px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 15px 0;
    }
    .menu-toggle {
        display: block;
    }
    .result-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .result-icon {
        margin: 30px 0 0 0;
    }
}

@media (max-width: 480px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2rem; }
}
