/* 
  SMCONT GROUP - Premium Accounting Website
  Design System & Custom Styles
*/

/* ===================================================
   INTRO / LOADING ANIMATION
   =================================================== */

#intro-overlay {
    position: fixed;
    inset: 0;
    background: #08326C;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#intro-overlay.intro-fade-out {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* SVG ring ao redor do logo */
.intro-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2;
}

.ring-draw {
    fill: none;
    stroke: #309BD3;
    stroke-width: 2.5;
    stroke-linecap: round;

    stroke-dasharray: 660;
    stroke-dashoffset: 660;

    animation: drawRing 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;

    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

@keyframes drawRing {
    to {
        stroke-dashoffset: 0;
    }
}

/* Logo com revelação clip-path (efeito "desenhando") */
.intro-logo {
    width: 160px;
    height: auto;
    filter: brightness(0) invert(1);

    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: scale(0.95);

    animation: revealLogo 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;

    position: relative;
    z-index: 2;
}

@keyframes revealLogo {
    to {
        clip-path: inset(0 0% 0 0);
        opacity: 1;
        transform: scale(1);
    }
}

/* Linha de destaque abaixo do logo */
.intro-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #309BD3, #DF8620);
    border-radius: 2px;
    animation: growLine 0.8s ease 2s forwards;
}

@keyframes growLine {
    to {
        width: 160px;
    }
}

/* Tagline */
.intro-tagline {
    color: rgba(255, 255, 255, 0);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    animation: fadeTagline 0.8s ease 2.2s forwards;
}

@keyframes fadeTagline {
    to {
        color: rgba(255, 255, 255, 0.65);
    }
}

.intro-logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo {
    width: 120px;
}

.intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

:root {
    --primary-blue: #08326C;
    --secondary-blue: #309BD3;
    --accent-orange: #DF8620;
    --accent-orange-hover: #C6751C;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --dark-text: #0f172a;
    --gray-text: #475569;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(8, 50, 108, 0.05);
    --shadow-hover: 0 20px 50px rgba(48, 155, 211, 0.15);
    --radius: 16px;
}

/* Global Reset & Base */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--secondary-blue);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Typography Helpers */
.text-justify {
    text-align: justify;
}

.text-orange {
    color: var(--accent-orange);
}

.text-blue {
    color: var(--primary-blue);
}

.text-secondary-blue {
    color: var(--secondary-blue);
}

.bg-blue {
    background-color: var(--primary-blue);
}

.bg-secondary-blue {
    background-color: var(--secondary-blue);
}

.bg-orange {
    background-color: var(--accent-orange);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(8, 50, 108, 0.2);
}

.btn-primary-custom:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(8, 50, 108, 0.3);
    color: white;
}

.btn-orange-custom {
    background-color: var(--accent-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(223, 134, 32, 0.2);
}

.btn-orange-custom:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 134, 32, 0.3);
    color: white;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    text-align: center;
    font-size: 0.95rem;
}

.navbar.scrolled .nav-link {
    color: var(--secondary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(8, 50, 108, 0.9), rgba(48, 155, 211, 0.8)), url('assets/img/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Particle effect placeholder / Background animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    animation: movePixels 20s linear infinite;
    pointer-events: none;
}

@keyframes movePixels {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50px);
    }
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--secondary-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

/* About Section */
.about-img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-features .feature-item {
    display: flex;
    align-items: start;
    margin-bottom: 25px;
}

.about-features .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 20px;
    font-size: 1.2rem;
}

.icon-box-white {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.differential-item:hover .icon-box-white {
    background: white;
    color: var(--primary-blue);
    transform: rotateY(180deg);
}

/* Services Cards */
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--primary-blue);
    color: white;
}

/* Differentials */
.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-item .count {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
}

.stat-item .label {
    font-weight: 600;
    color: white;
}

/* Segments Grid */
.segment-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.segment-card:hover {
    background: var(--primary-blue);
    color: white;
}

.segment-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    color: var(--secondary-blue);
}

.segment-card:hover i {
    color: white;
}

/* Testimonials Swiper Placeholder / Bootstrap */
.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 20px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Timeline — removido bloco antigo, regras abaixo */

/* Timeline */
.timeline {
    position: relative;
    padding: 50px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(-50%);
}

/* Wrapper de cada linha da timeline */
.timeline-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

/* Card de texto (lado esquerdo por padrão) */
.timeline-item {
    flex: 0 0 50%;
    padding: 0 40px;
    position: relative;
}

/* Dot na linha central (item ímpar → lado direito do card) */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-blue);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(48, 155, 211, 0.1);
    z-index: 1;
}

/* Card de texto (lado direito — item par) */
.timeline-item-even {
    margin-left: 0;
}

/* Dot no item par → lado esquerdo do card */
.timeline-item-even::after {
    left: -10px;
    right: auto;
}

/* Imagem ao lado oposto ao texto */
.timeline-item-image {
    flex: 0 0 50%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item-image img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(8, 50, 108, 0.1);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #060b16;
    color: white;
    padding: 100px 0 30px;
}

footer h5 {
    color: white;
    margin-bottom: 25px;
}

footer p,
footer ul li {
    color: rgba(255, 255, 255, 0.6);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--primary-blue);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        padding: 10px 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    .navbar-brand img {
        height: 35px;
    }

    .navbar-collapse {
        background: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
    }

    .navbar-nav {
        text-align: center;
        width: 100%;
    }

    .nav-link {
        color: var(--secondary-blue) !important;
        margin: 10px 0;
        display: block;
    }

    /* Ajuste para evitar sobreposição */
    .hero {
        padding-top: 120px;
        text-align: left;
    }

    .hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero .d-flex {
        justify-content: flex-start;
    }

    .btn-orange-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-row {
        flex-direction: column;
    }

    .timeline-item-image {
        width: 100%;
        padding: 0 40px;
        margin-top: 20px;
        order: 2;
        /* imagem aparece abaixo do texto no mobile */
    }

    .timeline-item,
    .timeline-item-even {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        order: 1;
    }

    .timeline-item::after,
    .timeline-item-even::after {
        left: 30px !important;
        right: auto;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .navbar-brand img {
        height: 30px;
    }

    .btn-lg {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
        max-width: 280px;
    }

    .timeline-item,
    .timeline-item-even {
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline-item::after,
    .timeline-item-even::after {
        left: 15px !important;
    }

    .timeline::before {
        left: 24px;
    }
}

/* Mission, Vision, Values Horizontal Layout */
.philosophy-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.philosophy-card h5 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.philosophy-card p {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin: 0;
}

.philosophy-card ul {
    padding-left: 20px;
    margin: 0;
}

.philosophy-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Modal Content Adjustments */
.modal-body-content {
    line-height: 1.8;
}

.modal-benefits-list .list-group-item {
    border: none;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-benefits-list .list-group-item i {
    color: #22c55e;
}

/* Custom spacing and whitespace */
.section-padding {
    padding: 120px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}