/**
 * =========================================
 * MP Férias - Stylesheet Principal
 * O site mais bonito do segmento!
 * =========================================
 */

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&display=swap');

/* Variáveis CSS - Cores da Marca */
:root {
    /* Cores principais */
    --primary-color: #025e85;
    --secondary-color: #ffa20d;
    --support-white: #fefefe;
    --support-black: #000000;
    
    /* Variações das cores principais */
    --primary-light: #0a7ba8;
    --primary-dark: #014a6b;
    --secondary-light: #ffb340;
    --secondary-dark: #e6920c;
    
    /* Cores neutras */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Cores de status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Tipografia */
    --font-primary: 'Mulish', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Bordas */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-2xl: 2rem;
    --border-radius-full: 9999px;
    
    /* Transições */
    --transition-fast: 150ms ease-in-out;
    --transition: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Espaçamentos */
    --container-padding: 1rem;
    --section-padding: 4rem 0;
    --section-padding-sm: 2rem 0;
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--support-white);
    overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Container responsivo */
.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Botões - estilo unificado (inspirado em Uiverse) */
.btn {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--btn-color, var(--primary-color));
    color: #fff;
    border-radius: 10rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.25s ease, filter 0.25s ease, transform 0.15s ease;
}

/* Ícone dentro do botão como círculo branco */
.btn i.bi {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    background-color: #fff;
    color: var(--btn-color, var(--primary-color));
    border-radius: 50%;
    font-size: 14px;
}

/* Cores por variante */
.btn-primary { --btn-color: var(--primary-color); }
.btn-secondary { --btn-color: var(--primary-dark); }
.btn-outline { --btn-color: var(--primary-color); }
.btn-white { --btn-color: var(--support-white); color: var(--primary-color); }

/* Hovers brand-friendly */
.btn:hover { transform: translateY(-1px); filter: brightness(0.95); }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary:hover { background-color: #003544; }
.btn-outline:hover { background-color: var(--primary-dark); color: #fff; }
.btn-white:hover { background-color: var(--gray-50); color: var(--primary-color); }

/* Tamanhos */
.btn-lg { padding: 1rem 2.25rem; font-size: 1.075rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

/* Header/Navbar */
.navbar {
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(2, 94, 133, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(254, 254, 254, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(2, 94, 133, 0.1);
}

/* ==========================================
   HERO SECTION (versão corrigida)
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: none !important; /* remove o gradiente azul */
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: none !important; /* remove overlays ou nuances */
}

.hero img {
    width: 120%;
    height: auto;
    opacity: 1 !important;              /* 100% visível */
    filter: none !important;            /* remove tons acinzentados ou azulados */
    mix-blend-mode: normal !important;  /* evita mistura de cores com o fundo */
    transform: none !important;
    transition: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--support-white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: transparent !important; /* garante que não haja camada translúcida */
}

.hero h1 {
    color: var(--support-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(254, 254, 254, 0.9);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero split (texto à esquerda e imagem à direita) */
.hero--split {
    min-height: 80vh;
    padding-top: 7rem; /* espaço para navbar fixa */
    padding-bottom: 3rem;
    overflow: visible; /* permite a imagem 'sair' da seção */
}

.hero--split h1 {
    color: var(--support-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero--split .lead {
    color: rgba(254, 254, 254, 0.9);
}

.hero--split .hero-cta {
    justify-content: flex-start;
}

@media (max-width: 991.98px) {
    .hero--split {
        padding-top: 6rem;
        min-height: unset;
    }
    .hero--split .hero-cta { justify-content: center; }
}

.hero-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0; /* permite que a próxima seção fique por cima, criando efeito de "sair de trás" */
    transform: translateY(12%);
    margin-bottom: -12%; /* sobrepõe a próxima seção */
    filter: drop-shadow(0 24px 60px rgba(2, 94, 133, 0.18));
}

@media (max-width: 991.98px) {
    .hero-image {
        max-width: 560px;
        transform: translateY(6%);
        margin-bottom: -6%;
    }
}

@media (min-width: 1200px) {
    .hero-image {
        max-width: 1160px;
        transform: translateY(16%);
        margin-bottom: -16%;
    }
}

@media (min-width: 1400px) {
    .hero-image {
        max-width: 1280px;
        transform: translateY(18%);
        margin-bottom: -18%;
    }
}

/* Garante que a seção "Sobre" fique sobre a imagem da hero, dando impressão de que ela sai de trás */
#sobre {
    position: relative;
    z-index: 1;
    background: var(--support-white);
}

/* Mobile: esconder imagem da hero */
@media (max-width: 767.98px) {
    .hero-image {
        display: none !important;
    }
}


/* Seções */
.section {
    padding: var(--section-padding);
}

.section-sm {
    padding: var(--section-padding-sm);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards - Estilo moderno inspirado em Uiverse */
.card {
    margin: auto;
    width: 100%;
    background-color: var(--support-white);
    border-radius: 1rem;
    padding: 0.5rem;
    color: var(--gray-900);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    /* Equal height cards */
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Card Hero/Header */
.card__hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1.5rem;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.card__hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(2,94,133,0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
}

.card__hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card__hero-header span {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.card__icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(2,94,133,0.15);
    cursor: pointer;
    transition: var(--transition);
}

.card__icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(2,94,133,0.25);
}

.card__icon svg {
    width: 20px;
    height: 20px;
}

/* Imagem no hero do card */
.card__image {
    width: 100%;
    height: 160px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card__job-title,
.card__title {
    margin: 2rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    padding-right: 2rem;
    color: var(--primary-color);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* Card Footer */
.card__footer {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0.75rem;
    row-gap: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: auto; /* empurra o footer para base, igualando alturas visuais */
}

@media (min-width: 340px) {
    .card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.card__job-summary,
.card__summary {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.card__job-icon,
.card__summary-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card__job-icon svg,
.card__summary-icon svg,
.card__job-icon i,
.card__summary-icon i {
    width: 28px;
    height: 28px;
    color: white;
    font-size: 1.5rem;
}

.card__job p,
.card__content p {
    margin: 0;
    line-height: 1.4;
    color: var(--gray-700);
}

.card__job .card__job-title,
.card__content .card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: var(--gray-900);
}

.card__btn {
    width: 100%;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10rem;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.card__btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

.card__btn i {
    font-size: 1rem;
}

@media (min-width: 340px) {
    .card__btn {
        width: max-content;
    }
}

/* Variantes de cor do hero */
.card__hero.hero-yellow {
    background: linear-gradient(135deg, #fef4e2 0%, #fde7b8 100%);
}

.card__hero.hero-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.card__hero.hero-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

/* Legacy card styles - manter compatibilidade */
.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 0.5rem 0.5rem 0 0;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Grid responsivo */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: var(--support-white);
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: rgba(254, 254, 254, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--support-white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--support-white);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(254, 254, 254, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--support-white);
}

.footer-bottom {
    border-top: 1px solid rgba(254, 254, 254, 0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: rgba(254, 254, 254, 0.7);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Utilidades */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Responsividade */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 1.5rem 0; /* menor que o atual */
    }

    /* Tipografia menor */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    p  { font-size: 0.95rem; }

    /* Seções mais compactas */
    .section-title { margin-bottom: 1.5rem; }

    /* Botões menores */
    .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }

    /* Cards mais compactos */
    .card-body { padding: 1rem; }
}

@media (max-width: 480px) {
    /* Tipografia ainda menor */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    p  { font-size: 0.9rem; }

    .section { padding: 1rem 0; }
    .hero p { font-size: 1rem; margin-bottom: 1rem; }

    /* Menos espaçamento */
    .mb-5 { margin-bottom: 1.5rem !important; }
    .mt-5 { margin-top: 1.5rem !important; }

    /* Logo menor */
    .hero img { max-height: 70px; }
}

/* Hero - reforço de tipografia no mobile */
@media (max-width: 768px) {
    .hero--split h1 { font-size: 2.1rem; line-height: 1.2; }
    .hero--split .lead { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .hero--split h1 { font-size: 1.9rem; line-height: 1.2; }
    .hero--split .lead { font-size: 1.08rem; }
}

@media (max-width: 480px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        --support-white: #1a1a1a;
        --support-black: #ffffff;
        --gray-50: #111827;
        --gray-100: #1f2937;
        --gray-200: #374151;
        --gray-300: #4b5563;
        --gray-400: #6b7280;
        --gray-500: #9ca3af;
        --gray-600: #d1d5db;
        --gray-700: #e5e7eb;
        --gray-800: #f3f4f6;
        --gray-900: #f9fafb;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para acessibilidade */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}
