/* Modern CSS for Segen1 Website - Bootstrap 5 Enhanced Styles */

:root {
    --primary-color: #227BBA;
    --secondary-color: #295b69;
    --accent-color: #f7bc5e;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --success-color: #28a745;
    --navbar-color: #0F7DCC;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    /* Compensa a navbar fixed-top (Bootstrap recomenda padding no body) */
    padding-top: calc(100px + env(safe-area-inset-top, 0px));
}

/* Navbar Styles */
.navbar-brand {
    height: 80px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.navbar-brand img {
    height: 90px;
    width: auto;    
}

.navbar-brand img.large {
    height: 150px;
    margin-top: -20px;
}

.navbar {
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-scrolled {
    background: rgba(15, 125, 204, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 100px;
}

.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0 10px;
    display: flex;
    align-items: center;
    min-height: 20vh;
}

.contact-hero .container {
    transform: translateY(10px);
}

.newsletter-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
}

.thank-you-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 110px 0 60px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

/* Carousel Styles */
.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer Styles */
.footer-section {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

/* Newsletter Form Styles */
.newsletter-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 123, 186, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 16px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 123, 186, 0.25);
}

/* Contact Card Styles */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
}

/* Thank You Page Styles */
.success-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Benefits and Next Steps Cards */
.benefits-card,
.next-steps {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits-icon,
.step-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

/* Contact Info Section */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feedback cards (home) */
.feedback-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 123, 186, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(34, 123, 186, 0.25);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.feedback-card {
    background: #fff;
    border: 1px solid #e9eef4;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.feedback-card h5 {
    color: #17324f;
    font-weight: 700;
}

.feedback-card--quote {
    border-left: 4px solid var(--primary-color);
}

.feedback-quote {
    font-style: italic;
    color: #2f445a;
}

.feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.feedback-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f2f7fc;
    border: 1px solid #d7e6f5;
    color: #2a4f73;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section,
    .newsletter-hero,
    .thank-you-hero {
        padding: 80px 0 60px;
    }

    /* Navbar: logo até ~80px + padding — evita título “grudado” sob a barra */
    body { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
    
    .contact-hero {
        padding: 120px 0 6px;
        min-height: 15vh;
    }
    
    .contact-hero .container {
        transform: translateY(8px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 30px;
    }

    .feedback-card {
        padding: 20px;
    }
    
    .navbar-brand img {
        height: 80px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 70px;
    }
    
    .hero-section,
    .newsletter-hero,
    .thank-you-hero {
        padding: 70px 0 50px;
    }

    body { padding-top: calc(98px + env(safe-area-inset-top, 0px)); }
    
    .contact-hero {
        padding: 110px 0 4px;
        min-height: 12vh;
    }
    
    .contact-hero .container {
        transform: translateY(6px);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Extra small devices (phones, less than 400px) */
@media (max-width: 400px) {
    .contact-hero {
        padding: 130px 0 4px;
        min-height: 15vh;
    }
    
    .contact-hero .container {
        transform: translateY(8px);
    }
    
    .navbar-brand img {
        height: 60px;
    }
    
    .success-card {
        padding: 40px 20px;
    }
    
    .newsletter-form,
    .contact-card {
        padding: 30px 20px;
    }
}

/* Extra responsive tweaks for very small screens */
@media (max-width: 400px) {
    .navbar { padding-top: 6px; padding-bottom: 6px; }
    .navbar-brand img { height: 46px; }
    .hero-section { padding: 70px 0 50px; }
    .hero-section h1 { font-size: 1.9rem; line-height: 1.2; }

    /* Logo ~46px + padding navbar; folga extra para iOS / barra de endereço */
    body { padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
}

/* -------------------------------------------------------------------------- */
/* Home: banner de conversão (WhatsApp + NFSe)                                 */
/* -------------------------------------------------------------------------- */
.home-cv-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #050810 0%, #0d1525 45%, #0a1628 100%);
    color: #e8eef8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Folga extra no mobile: primeiro bloco após navbar fixa */
@media (max-width: 767.98px) {
    .home-cv-banner .container.position-relative > .row {
        padding-top: 0.75rem;
    }
}

.home-cv-banner__glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-cv-banner__title {
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}

.home-cv-banner__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: #c5d4e8;
    max-width: 36rem;
}

.home-cv-banner__subtitle .text-wa { color: #5fe08a; }
.home-cv-banner__subtitle .text-nfse { color: #e8c547; }

.home-cv-banner__desc {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(232, 238, 248, 0.82);
    max-width: 34rem;
}

.home-cv-btn-primary {
    color: #fff !important;
    background: linear-gradient(180deg, #1d8cf8 0%, #0f7dcc 100%);
    border: 2px solid #2c9af9;
    font-weight: 700;
    padding: 0.7rem 1.35rem;
    border-radius: 0.65rem;
    box-shadow: 0 8px 22px rgba(15, 125, 204, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cv-btn-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 125, 204, 0.45);
}

.home-cv-proof {
    color: rgba(232, 238, 248, 0.72);
    font-size: 0.92rem;
}

/* Meta Tech Provider badge */
.meta-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 132, 255, 0.45);
    color: #e8eef8;
    line-height: 1.2;
    vertical-align: middle;
}

.meta-tech-badge--hero {
    background: linear-gradient(90deg, rgba(0, 132, 255, 0.18) 0%, rgba(37, 211, 102, 0.12) 100%);
}

.meta-tech-badge__icon {
    color: #4da3ff;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.meta-tech-badge__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.meta-tech-badge__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.meta-tech-badge__sub {
    font-size: 0.68rem;
    opacity: 0.85;
}

.home-cv-banner__note {
    font-size: 0.88rem;
    color: rgba(232, 238, 248, 0.7);
    max-width: 36rem;
}

.agente-ia-compare th,
.agente-ia-compare td {
    vertical-align: middle;
    font-size: 0.95rem;
}

.agente-ia-compare thead th:last-child {
    background: rgba(15, 125, 204, 0.12);
}

/* Botões do banner (Atendimento com IA / NFSe integrada) */
.home-cv-btn-tag {
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 0.65rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.home-cv-btn-tag--wa {
    color: #fff !important;
    background: #25d366;
    border: 2px solid #20bd5a;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.home-cv-btn-tag--wa:hover {
    color: #fff !important;
    background: #1ebe57;
    border-color: #1aa34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.home-cv-wa-image-link {
    display: inline-block;
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cv-wa-image-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.35);
}

.home-cv-wa-image {
    display: block;
    max-width: 280px;
    height: auto;
}

.home-cv-btn-tag--nfse {
    color: #f0d060 !important;
    background: rgba(212, 168, 75, 0.12);
    border: 2px solid #d4a84b;
}

.home-cv-btn-tag--nfse:hover {
    color: #1a1408 !important;
    background: linear-gradient(180deg, #f0d060 0%, #d4a84b 100%);
    border-color: #e8c547;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 168, 75, 0.35);
}

/* Botão flutuante WhatsApp (página inicial) */
.home-cv-wa-fab {
    position: fixed;
    bottom: 1.35rem;
    right: 1.35rem;
    z-index: 1090;
    isolation: isolate;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cv-wa-fab > .bi-whatsapp {
    position: relative;
    z-index: 1;
}

.home-cv-wa-fab:hover {
    color: #fff !important;
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.32), 0 4px 14px rgba(37, 211, 102, 0.45);
}

.home-cv-wa-fab:focus-visible {
    outline: 3px solid #7bed9f;
    outline-offset: 3px;
}

.home-cv-wa-fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    animation: home-cv-wa-pulse 2.2s ease-out infinite;
}

@keyframes home-cv-wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
        box-shadow: 0 0 0 1.15rem rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 575.98px) {
    .home-cv-wa-fab {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.85rem;
        bottom: 1rem;
        right: 1rem;
    }

    .home-cv-btn-tag {
        width: 100%;
        max-width: 20rem;
        justify-content: center;
    }

    .home-cv-btn-primary {
        width: 100%;
        max-width: 20rem;
        justify-content: center;
    }

    .home-cv-wa-image {
        max-width: 20rem;
        width: 100%;
    }
}
