/* =============================================
   NTi Consultoria – Custom Styles
   ============================================= */

/* ---- CSS Variables ---- */
:root {
    --primary:     #1E4D7B;
    --primary-d:   #0F2D4E;
    --primary-l:   #2A6BAF;
    --secondary:   #0EA5A0;
    --sec-d:       #097A76;
    --accent:      #E07B2A;
    --acc-d:       #C46018;
    --light:       #F5F9FF;
    --surface:     #FFFFFF;
    --text:        #1A2E4A;
    --muted:       #607080;
    --border:      #E2EAF2;
    --shadow:      0 4px 24px rgba(30, 77, 123, 0.08);
    --shadow-lg:   0 12px 40px rgba(30, 77, 123, 0.14);
    --radius:      14px;
    --radius-sm:   8px;
    --transition:  0.25s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { color: var(--text); background: #fff; }

/* ---- Animations ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(14, 165, 160, 0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(14, 165, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 160, 0); }
}

.animate-fadeUp {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

/* ---- Reveal on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Header ---- */
#header {
    background: transparent;
}
#header .header-inner {
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
#header.scrolled .header-inner {
    background: rgba(15, 45, 78, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
#header:not(.scrolled) .header-inner {
    background: transparent;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    display: block;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-link-mobile {
    display: block;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}
.nav-link-mobile:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.logo-icon { flex-shrink: 0; }
.logo-name  { display: block; font-weight: 800; font-size: 1.25rem; color: #fff; line-height: 1; }
.logo-sub   { display: block; font-size: 0.625rem; color: rgba(255,255,255,0.6); line-height: 1; margin-top: 2px; letter-spacing: 0.05em; text-transform: uppercase; }

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0F2D4E 0%, #1E4D7B 40%, #0D6E6A 100%);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(14,165,160,0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30,77,123,0.3) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}
/* Imagem de fundo do Hero */
.hero-photo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.35;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,45,78,0.72) 0%, rgba(15,45,78,0.45) 50%, rgba(13,110,106,0.6) 100%);
    z-index: 2;
}
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 3;
}
.hero-wave svg { display: block; width: 100%; }

/* Hero content must be above all layers */
.hero-section > .relative { z-index: 3; }

.text-gradient-hero {
    background: linear-gradient(90deg, #0EA5A0, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 6px 24px rgba(14, 165, 160, 0.4);
}
.btn-hero-primary:hover {
    background: var(--sec-d);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 160, 0.5);
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* ---- Section Helpers ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 160, 0.1);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-d);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

/* ---- About Visual ---- */
.about-visual {
    position: relative;
    height: 460px;          /* altura fixa da imagem */
    border-radius: var(--radius);
    overflow: hidden;       /* clips imagem + stats dentro */
}

/* Camada de imagem de fundo */
.about-bg-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1E4D7B 0%, #0EA5A0 100%);
    z-index: 0;
}
.about-bg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
    display: block;
}
.about-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,77,123,0.55) 0%, rgba(14,165,160,0.3) 100%);
}

/* Card "Saúde Mental" — fora do overflow:hidden, espia abaixo da imagem */
.about-card-main {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 240px;
    margin: -4rem 0 0 1.5rem; /* sobrepõe 4rem sobre a borda inferior da imagem */
    animation: float 5s ease-in-out infinite;
}
.about-icon-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(14, 165, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-ring 2.5s infinite;
}
.about-stat {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.5);
    min-width: 175px;
}
.stat-1 { top: 1.25rem; right: 1rem; }
.stat-2 { bottom: 1.5rem; right: 1rem; }
.stat-3 { top: 2.5rem;  left: 1rem; }

@media (max-width: 768px) {
    .about-visual    { height: 340px; }
    .about-stat      { position: static; margin: 0.5rem 0.5rem 0; display: inline-flex; }
    .about-card-main { margin: -3rem 0 1.5rem auto; }
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(14, 165, 160, 0.08);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
}

/* ---- Service Cards ---- */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14,165,160,0.25);
}
.service-card--featured {
    background: linear-gradient(135deg, #f0fffe 0%, #e8f7f6 100%);
    border-color: rgba(14, 165, 160, 0.3);
    box-shadow: 0 8px 32px rgba(14, 165, 160, 0.12);
}
.service-card--featured:hover {
    box-shadow: 0 16px 48px rgba(14, 165, 160, 0.2);
}
.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-d);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.service-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
}
.service-link:hover {
    color: var(--primary-l);
    gap: 0.625rem;
}
.service-link--sec { color: var(--secondary); }
.service-link--sec:hover { color: var(--sec-d); }

/* ---- CTA Banner ---- */
.cta-banner {
    background: #060F1E;
    position: relative;
    overflow: hidden;
}
/* Imagem de fundo — 10% maior verticalmente para o parallax nunca expor o fundo */
.cta-photo-bg {
    position: absolute;
    top: -5%;
    left: 0;
    right: 0;
    bottom: -5%;
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: 1;
    will-change: transform;
}
/* Overlay com cores da marca NTi (navy → teal-navy) */
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(14, 42, 78, 0.85) 0%, rgba(10, 55, 72, 0.82) 100%);
    z-index: 1;
    pointer-events: none;
}
/* Bolas decorativas */
.cta-ball {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}
.cta-ball-1 {
    width: 420px;
    height: 420px;
    background: rgba(14,165,160,0.12);
    top: -200px;
    right: -100px;
    box-shadow: 0 0 80px 20px rgba(14,165,160,0.08);
}
.cta-ball-2 {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    bottom: -150px;
    left: -80px;
    box-shadow: 0 0 60px 15px rgba(30,77,123,0.15);
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
    position: relative;
    z-index: 1;
}
.btn-cta-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}
.btn-cta-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}
.btn-cta-email:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* ---- Blog Cards ---- */
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--light);
}
.blog-card-img-placeholder {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-d);
    line-height: 1.4;
}
.blog-card-link {
    color: var(--secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ---- Contact Form ---- */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--light);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 77, 123, 0.1);
}
.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}
.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9375rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(30, 77, 123, 0.25);
}
.btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 77, 123, 0.3);
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.form-success-msg {
    text-align: center;
    padding: 2.5rem 1rem;
    animation: fadeIn 0.5s ease;
}

/* ---- Contact Info ---- */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
}
.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(135deg, var(--primary-d) 0%, #0B3559 100%);
}
.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}
.footer-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
    display: block;
    padding: 0.125rem 0;
}
.footer-link:hover {
    color: #fff;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    animation: fadeIn 1s ease 1s both;
}
.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.5;
    animation: pulse-ring 2s infinite;
}

/* ---- Blog Page ---- */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
    padding: 7rem 0 4rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* ---- Post Page ---- */
.post-content {
    color: var(--text);
    line-height: 1.85;
    font-size: 1.0625rem;
}
.post-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary-d); margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary-d); margin: 1.5rem 0 0.75rem; }
.post-content p  { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content a  { color: var(--primary); text-decoration: underline; }
.post-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 1rem 1.5rem;
    background: rgba(14,165,160,0.06);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted);
}
.post-content strong { font-weight: 700; color: var(--primary-d); }

/* ---- Admin Colours ---- */
.primary { color: var(--primary); }
.bg-primary { background: var(--primary); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

/* ---- Tailwind Overrides / Utilities ---- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* ---- 404 Page ---- */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .form-card { padding: 1.5rem; }
    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
    .whatsapp-float::before { display: none; }
}
