/* Custom CSS para KL Quartz Site */

/* Fonte padrão do site - Montserrat em todos os textos */
html,
body {
    font-family: 'Montserrat', sans-serif;
}

/* Hierarquia tipográfica (Montserrat com pesos diferentes) */
/* Títulos principais - h1, hero */
h1,
.font-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Subtítulos - h2, h3, destaques */
h2,
h3,
.font-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Títulos menores - h4, h5, h6 */
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Texto de apoio / corpo - parágrafos, listas */
p,
li,
span,
.font-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Texto de apoio em destaque (lead, introdução) */
.font-lead {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Transitions globais */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Container personalizado */
.container {
    max-width: 1280px;
}

/* Gradient overlay para banners */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(46, 59, 142, 0.9) 0%, rgba(46, 59, 142, 0.7) 100%);
}

/* Hero com background (serviços, downloads, contato) - mesmo padrão das internas de produtos */
.hero-bg-section {
    position: relative;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 1024px) {
    .hero-bg-image {
        object-position: center 50%;
    }
}

/* Overlay com blur/gradient - mesmo tom em todas as heroes (blog, serviços, área, quem-somos) */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to bottom right, var(--brand-primary, #01458C), #1e3a8a);
    opacity: 0.28;
}

.hero-bg-section > .container {
    position: relative;
    z-index: 10;
}

/* Otimização de render: seções longas abaixo da dobra */
.cv-auto {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* Destaque e visibilidade dos títulos e textos na hero (produtos, serviços e área de atuação) */
.hero-bg-section .hero-title,
.products-hero-section .hero-title,
.area-hero-section .hero-title {
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
}

.hero-bg-section .hero-subtitle,
.hero-bg-section .hero-label,
.products-hero-section .hero-subtitle,
.area-hero-section .hero-subtitle,
.area-hero-section .hero-label {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-bg-section .hero-label,
.area-hero-section .hero-label {
    font-size: 1rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .hero-bg-section .hero-label,
    .products-hero-section .hero-label,
    .area-hero-section .hero-label {
        font-size: 1.125rem;
    }
}

.hero-bg-section .hero-subtitle,
.products-hero-section .hero-subtitle,
.area-hero-section .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hero-bg-section .hero-subtitle,
    .products-hero-section .hero-subtitle,
    .area-hero-section .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-bg-section .hero-subtitle,
    .products-hero-section .hero-subtitle,
    .area-hero-section .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* Header sem background (serviços sem imagem) - mesmo destaque de texto */
header.hero-plain .hero-title {
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

header.hero-plain .hero-label {
    font-size: 1rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    header.hero-plain .hero-label {
        font-size: 1.125rem;
    }
}

header.hero-plain .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    header.hero-plain .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Hero da home - mesmo destaque de títulos e textos das internas */
.hero-section .hero-title {
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .hero-section .hero-title {
        font-size: clamp(2rem, 4vw, 3.75rem);
    }
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hero-section .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-section .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* Placeholders visíveis nos formulários da hero */
.hero-section input::placeholder,
.hero-section textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.hero-section input::placeholder {
    font-size: 0.875rem;
}

.hero-section textarea::placeholder {
    font-size: 0.875rem;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2E3B8E;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2E3B8E;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC107;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: #2E3B8E;
    color: white;
}

.badge-secondary {
    background-color: #FFC107;
    color: #1a1a1a;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #FFC107;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #FFC107;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }
}

/* Custom checkbox/radio */
input[type="checkbox"],
input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #2E3B8E;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Blog post content styles */
.blog-content {
    line-height: 1.8;
}

/* Garantir que parágrafos sejam renderizados como blocos */
.blog-content p {
    display: block !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2E3B8E;
    display: block !important;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2E3B8E;
    display: block !important;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content a {
    color: #2E3B8E;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #FFC107;
}

.blog-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid #FFC107;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #2E3B8E;
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}





