@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}


#sobre {
    scroll-margin-top: 40px;
}

:root {
    --primary-blue: #4a7be4;
    --dark-blue: #23437E;
    --deep-dark: #001E3A;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Customization */
.navbar {
    padding: 1rem 0;
    /* Consistent padding */
    transition: var(--transition);
}

.navbar.navbar-scrolled {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 1rem 0 !important;
    /* Match initial padding */
}

@media (max-width: 991px) {

    /* Full solid background when scrolled or when menu is open */
    .navbar.navbar-scrolled,
    .navbar.navbar-expanded {
        background: rgba(0, 0, 0, 1) !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Offcanvas Panel Styling */
.offcanvas {
    background: #070d1a;
    color: white;
    max-width: 280px;
}

.offcanvas-header {
    padding: 1.2rem 1.5rem;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.offcanvas-body {
    padding: 1rem 1.5rem;
}

.offcanvas-link {
    font-size: 1.05rem !important;
    font-weight: 500;
    padding: 14px 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85) !important;
    transition: var(--transition);
}

.offcanvas-link:hover {
    color: white !important;
    padding-left: 16px !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.navbar-nav .nav-item:last-child .offcanvas-link {
    border-bottom: none;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

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

.nav-link {
    font-weight: 500 !important;
    font-size: 0.95rem;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Seção Hero */
#inicio {
    height: 100vh;
    /* Ocupa a página inteira */
    min-height: 700px;
    background: radial-gradient(circle at center, #1E5BB4 0%, #0D214F 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
}

#inicio h1 {
    font-weight: 700;
    font-size: clamp(2rem, 8vw, 3.5rem);
    /* Responsive sizing */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

#inicio p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    /* Responsive sizing */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.btn-primary-custom {
    background: #4a7be4;
    /* Vibrant blue from image */
    border: none;
    padding: 1rem 3.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    /* Clip the ripple */
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    /* Match button shape */
    transform: translateX(-50%);
    opacity: 0;
    animation: ripple-pill 5s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    z-index: -1;
}

@keyframes ripple-pill {
    0% {
        width: 0;
        opacity: 0;
    }

    6% {
        opacity: 0.8;
    }

    60% {
        width: 100%;
        opacity: 0;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

.btn-primary-custom:hover {
    background: white;
    color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Sobre Nós Section (with overlap) */
#sobre {
    background: white;
    border-radius: 40px 40px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 3px solid var(--primary-blue);
    margin-bottom: 2rem;
    padding-bottom: 5px;
}

.texto-sobre {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    /* Smaller on mobile */
    color: #475569;
    text-align: justify;
    width: 100%;
    line-height: 1.7;
}

/* Serviços Section */
#servicos {
    background-color: var(--deep-dark);
    padding: 100px 0;
    color: white;
}

.servicos-header {
    text-align: center;
    margin-bottom: 3.5rem;
    /* Balanced spacing for the cards */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.servicos-header h2 {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    color: white;
    white-space: nowrap;
    /* Forces single line on desktop */
}

@media (max-width: 991px) {
    .servicos-header h2 {
        white-space: normal;
        /* Allows wrap on smaller screens to prevent overflow */
    }
}

/* Removed .servicos-grid (now using Bootstrap Row) */

.card-servico {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-servico:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--primary-blue);
}

.card-servico .icon-box {
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
}

.card-servico .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensuring icons are white as in the design */
    filter: brightness(0) invert(1);
}

.card-servico h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-servico p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.card-servico .arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 20px;
    height: 20px;
    opacity: 0.3;
    transition: var(--transition);
}

.card-servico .arrow img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

.card-servico:hover .arrow {
    opacity: 1;
    transform: translate(5px, -5px);
}

/* Process Section */
#processo {
    padding: 100px 0;
    background: #f8fafc;
}

.processo-header {
    margin-bottom: 2.5rem;
    /* Decreased spacing */
}

.processo-header span,
.faq-header h2 span {
    color: var(--primary-blue);
}

.processo-eyebrow,
.faq-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.processo-header h2,
.faq-header h2 {
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #1e293b;
    margin-bottom: 0.75rem;
}

/* Removed .steps-container (now using Bootstrap Row) */

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.step-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(45, 128, 180, 0.3);
    transition: var(--transition);
}

.step-item:hover .step-number {
    transform: scale(1.1);
    background: var(--dark-blue);
}

.step-item h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.step-item p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Removed .steps-container mobile overrides */

/* Utilities */
.container {
    max-width: 1200px;
    padding-left: 20px;
    /* Essential breathing room on mobile */
    padding-right: 20px;
}

:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ─── FAQ Section ─────────────────────────────────────────── */
#faq {
    padding: 100px 0;
    background: #f0f4f8;
}

.faq-header {
    margin-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
}

@media (max-width: 767px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-col {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    color: #64748b;
    transition: var(--transition);
    line-height: 0;
    padding-bottom: 2px;
    /* Visual center compensation */
}

.faq-question[aria-expanded="true"] .faq-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 0 1.25rem 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* ─── Footer ──────────────────────────────────────────────── */
#footer {
    font-family: 'Inter', sans-serif;
}

.footer-top {
    background: var(--deep-dark);
    padding: 70px 0 50px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
    display: block;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 340px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.contact-item svg {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.footer-links-col h6 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links-col ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-col ul li a:hover {
    color: white;
    padding-left: 8px;
}

.contact-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.copy-btn img {
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.copy-btn:hover,
.copy-btn:focus {
    opacity: 1 !important;
    background: white;
    border-color: white;
    transform: scale(1.1);
}

.copy-btn:hover img,
.copy-btn:focus img {
    filter: brightness(0);
    /* Changes icon to deep dark color */
}

.footer-bottom {
    background: #000d1a;
    padding: 1.1rem 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}