/* ============================================
   SABIN MEDICINA DIAGNÓSTICA
   Design Profissional para Saúde
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066CC;
    --secondary-teal: #00A3A3;
    --accent-green: #00B050;
    --accent-light-blue: #E8F4F8;
    --accent-red: #E74C3C;
    --dark-bg: #0D1B2A;
    --light-bg: #F8FBFC;
    --text-dark: #1A1A1A;
    --text-light: #4A5A6A;
    --border-color: #D5E5F0;
    --shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 102, 204, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

header {
    background: white;
    color: var(--text-dark);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary-blue);
}

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

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-blue);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-teal));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-blue);
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: white;
    padding: 6.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: rgba(0, 176, 80, 0.08);
    border-radius: 50%;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

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

.btn-primary {
    background: white;
    color: var(--primary-blue);
    padding: 1.1rem 2.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1.1rem 2.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

/* ============================================
   SEÇÕES DE CONTEÚDO
   ============================================ */

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

section {
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ============================================
   SERVIÇOS
   ============================================ */

.services {
    background: var(--accent-light-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
    position: relative;
}

.service-card:nth-child(2) {
    border-top-color: var(--secondary-teal);
}

.service-card:nth-child(3) {
    border-top-color: var(--accent-green);
}

.service-card:nth-child(4) {
    border-top-color: var(--accent-red);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, var(--secondary-teal), var(--accent-green));
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, var(--accent-green), #00C853);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, var(--accent-red), #FF6B6B);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
}

/* ============================================
   TABELA
   ============================================ */

.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    color: white;
}

th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
}

td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: var(--accent-light-blue);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   FORMULÁRIO
   ============================================ */

.form-section {
    background: white;
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
}

.form-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.contact-card h4 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--text-light);
    font-weight: 300;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--dark-bg), #1A2E42);
    color: white;
    padding: 3.5rem 2rem 1.5rem;
    margin-top: 5rem;
}

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

.footer-section h4 {
    margin-bottom: 1.2rem;
    color: var(--accent-green);
    font-size: 1.15rem;
    font-weight: 800;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: #B0C4D4;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #8A9AAA;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-cnpj {
    background: rgba(0, 102, 204, 0.15);
    padding: 1.8rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--accent-green);
}

.footer-cnpj strong {
    color: var(--accent-green);
}

/* ============================================
   PÁGINA DE POLÍTICA E TERMOS
   ============================================ */

.legal-content {
    background: white;
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    line-height: 1.9;
}

.legal-content h2 {
    color: var(--primary-blue);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.legal-content h3 {
    color: var(--secondary-teal);
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

.legal-content li {
    margin-bottom: 0.6rem;
    font-weight: 300;
}

/* ============================================
   PÁGINA DE CONTATO
   ============================================ */

.contact-page {
    background: var(--accent-light-blue);
}

.contact-page .form-section {
    background: white;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

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

    .legal-content {
        padding: 2rem;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero {
        padding: 3.5rem 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}
