/* ============================= */
/* RESET GLOBAL */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f5f8fc;
    color: #1f2937;
    line-height: 1.6;
}

/* ============================= */
/* HEADER */
/* ============================= */
.header {
    background: linear-gradient(90deg, #1e40af, #2563eb);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #fff;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.header nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.header nav a:hover {
    opacity: 0.8;
}

/* ============================= */
/* BOTÕES */
/* ============================= */
.btn-primary {
    background: #ffffff;
    color: #1e40af;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e0ecff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 80px 40px;
    background: linear-gradient(180deg, #1e40af, #3b82f6);
    color: #fff;
    flex-wrap: wrap;
}

.hero-text {
    max-width: 520px;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 18px;
    opacity: 0.95;
}

.hero-input {
    margin-top: 20px;
    display: flex;
    max-width: 420px;
}

.hero-input input {
    padding: 12px;
    width: 100%;
    border-radius: 10px 0 0 10px;
    border: none;
}

.hero-input button {
    padding: 12px 20px;
    border: none;
    background: #1e3a8a;
    color: #fff;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: 0.3s;
}

.hero-input button:hover {
    background: #172554;
}

/* ============================= */
/* CARDS - METROLOGIA */
/* ============================= */
.metrologia-cards {
    padding: 80px 8%;
    display: grid;
    gap: 24px;
    max-width: 1000px;
    margin: auto;
}

.metro-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s ease;
}

.metro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.metro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metro-header h3 {
    font-size: 20px;
    color: #1e40af;
}

.icon {
    font-size: 22px;
    font-weight: bold;
    transition: 0.3s;
}

.metro-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.metro-card.active .metro-content {
    max-height: 500px;
    margin-top: 15px;
}

.metro-card.active .icon {
    transform: rotate(45deg);
}

/* ============================= */
/* CALCULADORAS */
/* ============================= */
.calc-page {
    padding: 60px 40px;
    max-width: 1000px;
    margin: auto;
}

.calc-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.calc-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.calc-form input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.calc-form button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.calc-form button:hover {
    background: #1e40af;
}

/* ============================= */
/* MODAL */
/* ============================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    position: relative;
}

/* ============================= */
/* RESPONSIVIDADE */
/* ============================= */
@media (max-width: 768px) {

    .header {
        padding: 16px 20px;
        text-align: center;
    }

    .hero {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-input {
        flex-direction: column;
        max-width: 100%;
    }

    .hero-input input,
    .hero-input button {
        width: 100%;
        border-radius: 10px;
        margin-top: 10px;
    }

    .metrologia-cards {
        padding: 40px 20px;
    }

    .calc-page {
        padding: 30px 20px;
    }

    .calc-section {
        padding: 24px 20px;
    }
}
