/* ============================================
   SIPOP — style.css
   Paleta: Pine Blue #2C7A7B | Pearl Aqua #81C7B7
           White Smoke #F4F4F4 | Pale Slate #CBD5E0
           Slate Black #0F172A | Pure White #FFFFFF
   Fonte: Inter (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400&display=swap');

/* ============================================
   1. VARIÁVEIS — LIGHT & DARK
   ============================================ */

:root {
    /* Brand */
    --pine-blue:    #2C7A7B;
    --pearl-aqua:   #81C7B7;
    --pale-slate:   #CBD5E0;
    --font-main:    'Inter', sans-serif;

    /* Light mode (default) */
    --bg-primary:       #FFFFFF;
    --bg-secondary:     #F4F4F4;
    --bg-services:      #e1eaee;
    --bg-bottom:        #F4F4F4;
    --bg-disclaimer:    #f9f9f9;
    --bg-footer:        #0F172A;

    --text-primary:     #0F172A;
    --text-secondary:   #4A5568;
    --text-muted:       #718096;

    --card-bg:          #FFFFFF;
    --card-border:      #CBD5E0;
    --header-bg:        rgba(255, 255, 255, 0.95);
    --header-border:    #CBD5E0;

    --hero-bg:          url('/assets/images/backgrounds/BG1.webp');
    --about-bg:         url('/assets/images/backgrounds/BG2.webp');

    --logo-light:       block;
    --logo-dark:        none;
}

[data-theme="dark"] {
    --bg-primary:       #0F172A;
    --bg-secondary:     #1a2540;
    --bg-services:      #162032;
    --bg-bottom:        #1a2540;
    --bg-disclaimer:    #111827;
    --bg-footer:        #060e1a;

    --text-primary:     #F4F4F4;
    --text-secondary:   #CBD5E0;
    --text-muted:       #81C7B7;

    --card-bg:          #1e2d45;
    --card-border:      #2C3E50;
    --header-bg:        rgba(15, 23, 42, 0.97);
    --header-border:    #2C3E50;

    --hero-bg:          url('/assets/images/backgrounds/BG1DM.webp');
    --about-bg:         url('/assets/images/backgrounds/BG2DM.webp');

    --logo-light:       none;
    --logo-dark:        block;
}

/* Sistema em dark, sem preferência manual salva */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --bg-primary:       #0F172A;
        --bg-secondary:     #1a2540;
        --bg-services:      #162032;
        --bg-bottom:        #1a2540;
        --bg-disclaimer:    #111827;
        --bg-footer:        #060e1a;

        --text-primary:     #F4F4F4;
        --text-secondary:   #CBD5E0;
        --text-muted:       #81C7B7;

        --card-bg:          #1e2d45;
        --card-border:      #2C3E50;
        --header-bg:        rgba(15, 23, 42, 0.97);
        --header-border:    #2C3E50;

        --hero-bg:          url('/assets/images/backgrounds/BG1DM.webp');
        --about-bg:         url('/assets/images/backgrounds/BG2DM.webp');

        --logo-light:       none;
        --logo-dark:        block;
    }
}

/* ============================================
   2. RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ============================================
   3. HEADER & NAVBAR
   ============================================ */

.main-header {
    background: var(--header-bg);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-logo {
    height: 45px;
    width: auto;
    display: block;
}

.brand-logo--light { display: var(--logo-light); }
.brand-logo--dark  { display: var(--logo-dark);  }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--pine-blue); }

.btn-outline {
    border: 2px solid var(--pine-blue);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--pine-blue) !important;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
    background: var(--pine-blue);
    color: #fff !important;
}

/* Theme toggle — três estados */
.theme-toggle {
    background: none;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: border-color 0.3s;
    color: var(--text-primary);
}

.theme-toggle:hover { border-color: var(--pine-blue); }

/* Esconde todos os ícones por padrão */
.theme-toggle__icon { display: none; }

/* Mostra apenas o ícone do estado atual */
[data-theme="light"]  .theme-toggle__icon--sun    { display: inline; }
[data-theme="dark"]   .theme-toggle__icon--moon   { display: inline; }
[data-theme="system"] .theme-toggle__icon--system { display: inline; }

/* ============================================
   4. HERO
   ============================================ */

.hero {
    padding: 180px 0 100px;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    transition: background-image 0.3s;
}

.hero-content { max-width: 600px; }

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.btn-primary {
    background-color: var(--pine-blue);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.3s;
}

.btn-primary:hover { opacity: 0.85; }

/* ============================================
   5. RESEARCH SCOPE
   ============================================ */

.research-scope {
    padding: 30px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--card-border);
}

.scope-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pine-blue);
    letter-spacing: 1px;
}

.badge-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: var(--card-bg);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    transition: border-color 0.3s, color 0.3s;
}

.badge:hover {
    border-color: var(--pine-blue);
    color: var(--pine-blue);
}

/* ============================================
   6. ABOUT
   ============================================ */

.about {
    padding: 100px 0;
    background-image: var(--about-bg);
    background-size: cover;
    background-position: center;
    text-align: center;
}

.about h2 { font-size: 36px; margin-bottom: 30px; color: var(--text-primary); }
.about h2 span { color: var(--pine-blue); }
.about p { max-width: 800px; margin: 0 auto; font-size: 18px; color: var(--text-secondary); }

/* ============================================
   7. PROCESS
   ============================================ */

.process { padding: 80px 0; background-color: var(--bg-primary); }
.process h2 { text-align: center; margin-bottom: 50px; font-size: 32px; }

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.process-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: transform 0.3s;
}

.process-item:hover { transform: translateY(-4px); }

.process-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    object-fit: contain;
}

.process-item h3 { margin-bottom: 10px; color: var(--pine-blue); }
.process-item p  { color: var(--text-secondary); font-size: 15px; }

/* ============================================
   8. SERVICES
   ============================================ */

.services-section {
    padding: 100px 0;
    background-color: var(--bg-services);
    text-align: center;
}

.services-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.services-intro {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-style: italic;
}

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

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 122, 123, 0.1);
}

.service-card--entry {
    border-color: var(--pine-blue);
    position: relative;
}

.service-card--entry::before {
    content: 'New';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pine-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
}

.service-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--bg-secondary);
    padding-bottom: 15px;
}

.service-header h3 {
    font-size: 20px;
    color: var(--pine-blue);
    margin-bottom: 5px;
}

.engagement {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding: 0;
    flex: 1;
}

.service-list li {
    font-size: 15px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--pearl-aqua);
    font-weight: bold;
}

.btn-service {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--pine-blue);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.3s;
}

.btn-service:hover { opacity: 0.85; }

/* ============================================
   9. BENEFITS
   ============================================ */

.benefits { padding: 80px 0; background-color: var(--bg-primary); }
.benefits h2 { text-align: center; margin-bottom: 50px; font-size: 32px; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: transform 0.3s;
}

.benefit-card:hover { transform: translateY(-4px); }

.benefit-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    object-fit: contain;
}

.benefit-card h3 { margin-bottom: 10px; color: var(--pine-blue); }
.benefit-card p  { color: var(--text-secondary); font-size: 15px; }

/* ============================================
   10. TESTIMONIALS + CONTACT
   ============================================ */

.bottom-section {
    padding: 100px 0;
    background-color: var(--bg-bottom);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Testimonials */
.testimonials h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.testimonial-card {
    background: var(--card-bg);
    border-left: 4px solid var(--pearl-aqua);
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin-bottom: 20px;
    font-style: normal;
}

.testimonial-card p {
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.testimonial-card cite {
    font-style: normal;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--pearl-aqua);
}

.cite-info {
    display: flex;
    flex-direction: column;
}

.testimonial-card cite strong {
    display: block;
    color: var(--pine-blue);
    font-size: 15px;
    margin-bottom: 2px;
}

/* Contact form */
.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.contact-form-container h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group select { cursor: pointer; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pine-blue);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* Telefone — seletor de DDI + número */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.phone-input-group select {
    flex: 0 0 130px;
}

.phone-input-group input {
    flex: 1;
    min-width: 0;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--pine-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: opacity 0.3s;
}

.btn-submit:hover    { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    color: var(--pine-blue);
}

.form-status.error { color: #e53e3e; }

/* ============================================
   11. ETHICAL DISCLAIMER
   ============================================ */

.ethical-disclaimer {
    padding: 40px 0;
    background-color: var(--bg-disclaimer);
    border-top: 1px solid var(--card-border);
}

.disclaimer-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.disclaimer-box h4 {
    color: var(--pine-blue);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   12. FOOTER
   ============================================ */

.main-footer {
    background-color: var(--bg-footer);
    color: var(--pale-slate);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-footer {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

.footer-info {
    text-align: right;
    font-size: 14px;
    color: var(--pale-slate);
    line-height: 1.8;
}

.footer-link {
    color: var(--pearl-aqua);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-link:hover { opacity: 0.75; }

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.footer-credit {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(244, 244, 244, 0.12);
    text-align: center;
}

.footer-credit p {
    margin: 0;
    font-size: 12px;
    color: var(--pale-slate);
    opacity: 0.6;
}

.footer-credit a {
    color: var(--pale-slate);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: opacity 0.3s, border-color 0.3s;
}

.footer-credit a:hover {
    opacity: 1;
    border-color: currentColor;
}

/* ============================================
   13. MEDIA QUERIES
   ============================================ */

@media (max-width: 768px) {

    .main-header {
        position: relative;
        padding: 15px 0;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
        justify-content: center;
    }

    .nav-links li:nth-child(1),
    .nav-links li:nth-child(2) { display: none; }
    .nav-links .btn-outline     { display: none; }

    .brand-logo { height: 35px; }

    .hero {
        padding: 60px 0;
        min-height: auto;
        text-align: center;
    }

    .hero h1 { font-size: 32px; }

    .scope-badges {
        flex-direction: column;
        gap: 10px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container {
        position: static;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .phone-input-group select {
        flex: 1 1 auto;
        width: 100%;
    }

    .services-section { padding: 60px 0; }
    .services-grid    { grid-template-columns: 1fr; gap: 20px; }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-info     { text-align: center; width: 100%; }
    .footer-social   { justify-content: center; }

    .theme-toggle { align-self: flex-end; }
}
