/* ===== VARIÁVEIS DE COR ===== */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fed7aa;
    --secondary: #dc2626;
    --bg-dark: #0f172a;
    --bg-dark2: #1e293b;
    --bg-dark3: #0d1117;
    --bg-soft: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
}

/* ===== RESET BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: var(--bg-soft);
    color: var(--text-dark);
}

/* ===== TIPOGRAFIA ===== */
.font-display { font-family: 'Montserrat', sans-serif; }

/* ===== NAVBAR ===== */
.navbar-bg {
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.25);
    transition: all 0.3s ease;
}
.navbar-bg.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar-link {
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}
.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.navbar-link:hover { color: var(--primary); }
.navbar-link:hover::after { width: 100%; }

/* ===== BOTÃO PRIMÁRIO ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: pulse-glow 2.5s ease-in-out infinite;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.025em;
    border: none;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.55);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline-orange {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-outline-orange:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249,115,22,0.35);
}

/* ===== HERO ===== */
.hero-bg {
    background:
        linear-gradient(135deg, rgba(13,17,23,0.88) 0%, rgba(15,23,42,0.75) 60%, rgba(234,88,12,0.25) 100%),
        url('img_2.jpg') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: var(--primary-light);
    display: inline-block;
    padding: 6px 22px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    margin: 0 auto;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: rgba(249, 115, 22, 0.08);
    border-top: 1px solid rgba(249, 115, 22, 0.3);
    backdrop-filter: blur(10px);
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(249, 115, 22, 0.25);
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-label-outline {
    display: inline-block;
    border: 1px solid rgba(249,115,22,0.5);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* ===== SOBRE ===== */
.sobre-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.sobre-img-wrapper::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}
.sobre-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.sobre-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
    background: rgba(249,115,22,0.05);
    border: 1px solid rgba(249,115,22,0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.sobre-feature:hover {
    background: rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.3);
}
.sobre-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* ===== CARDS DE SERVIÇO ===== */
.service-card {
    background: var(--bg-dark2);
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.38s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 25px 55px rgba(249, 115, 22, 0.18);
}
.service-card-img-wrap {
    overflow: hidden;
    height: 200px;
}
.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.service-card:hover .service-card-img { transform: scale(1.07); }

.service-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.service-tag {
    display: inline-block;
    background: rgba(249,115,22,0.12);
    color: var(--primary);
    border: 1px solid rgba(249,115,22,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
}

/* ===== TREINAMENTOS ===== */
.training-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: all 0.38s ease;
    border: 1px solid rgba(249,115,22,0.08);
}
.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(249,115,22,0.18);
    border-color: rgba(249,115,22,0.4);
}
.training-card-img-wrap {
    overflow: hidden;
    height: 230px;
}
.training-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.training-card:hover .training-card-img { transform: scale(1.07); }

.training-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== DIFERENCIAIS ===== */
.section-dark {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}
.section-dark::after {
    content: '';
    position: absolute;
    bottom: -300px; left: -300px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.section-dark2 {
    background: var(--bg-dark2);
    position: relative;
    overflow: hidden;
}

.diferencial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(249,115,22,0.12);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    transition: all 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.diferencial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.diferencial-card:hover {
    background: rgba(249,115,22,0.07);
    border-color: rgba(249,115,22,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(249,115,22,0.12);
}
.diferencial-card:hover::before { opacity: 1; }

.diferencial-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(234,88,12,0.08));
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}
.diferencial-card:hover .diferencial-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
}

/* ===== CERTIFICAÇÕES ===== */
.cert-scroll-wrapper {
    position: relative;
}
.cert-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.25rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(249,115,22,0.1);
}
.cert-scroll::-webkit-scrollbar { height: 4px; }
.cert-scroll::-webkit-scrollbar-track { background: rgba(249,115,22,0.08); border-radius: 2px; }
.cert-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.cert-card {
    flex: 0 0 auto;
    width: 200px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.35s ease;
    scroll-snap-align: start;
    cursor: zoom-in;
}
.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 45px rgba(249,115,22,0.25);
}
.cert-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.cert-card-label {
    padding: 0.6rem 1rem;
    background: var(--bg-soft);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* ===== GALERIA TRABALHOS ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(234,88,12,0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== DEPOIMENTOS ===== */
.depo-card {
    background: var(--bg-dark2);
    border: 1px solid rgba(249,115,22,0.12);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.35s ease;
}
.depo-card:hover {
    border-color: rgba(249,115,22,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(249,115,22,0.12);
}
.depo-card::before {
    content: '\201C';
    position: absolute;
    top: 10px; left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.12;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
.stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 2px; }
.depo-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* ===== CTA SEÇÃO ===== */
.cta-bg {
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 40%, #f97316 70%, #fbbf24 100%);
    background-size: 300% 300%;
    animation: gradientShift 7s ease infinite;
    position: relative;
    overflow: hidden;
}
.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' 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='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.btn-white {
    background: white;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-white:hover {
    background: var(--bg-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

/* ===== FAQ ===== */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(249,115,22,0.1);
}
.faq-item button {
    background: white;
    transition: background 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    white-space: normal;
}
.faq-item button > span:first-child {
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.faq-item button:hover { background: #fef3ec; }
.faq-item.open button { background: #fff7ed; }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
}
.faq-content.open { max-height: 500px; }

/* ===== FOOTER ===== */
.footer-bg {
    background: var(--bg-dark3);
    border-top: 1px solid rgba(249,115,22,0.2);
}

/* ===== ANIMAÇÕES ===== */
@keyframes floatParticle {
    0%   { opacity: 0; transform: translateY(100vh) scale(0); }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-40px) scale(2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(249,115,22,0.4), 0 0 30px rgba(249,115,22,0.2); }
    50%       { box-shadow: 0 0 35px rgba(249,115,22,0.7), 0 0 70px rgba(249,115,22,0.35); }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ===== PROTEÇÃO DE BOTÕES ===== */
button, input[type="button"], input[type="submit"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.2;
}

a[href*="wa.me"], a[href*="whatsapp.com"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
}

/* ===== TOP CTA BAR ===== */
#top-cta-bar a:hover {
    background: #fff7ed !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
    nav a[href*="wa.me"],
    nav a[href*="whatsapp.com"] {
        display: none !important;
    }
    .hero-bg { background-attachment: scroll; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-card { width: 170px; }
    .cert-card img { height: 240px; }
    h1, h2 { word-break: break-word; overflow-wrap: break-word; }
    img { max-width: 100%; height: auto; }
    section, footer, nav { overflow-x: hidden; }
}
