/* ===== Variaveis MARCH7 ===== */
:root {
    --primary-blue: #38568C;
    /* SÃ­mbolo */
    --text-graphite: #363333;
    /* Tipografia March7 */
    --bg-light: #F4F5F7;
    /* SeÃ§Ãµes hÃ­bridas claras */
    --white: #ffffff;
    --dark-bg: #1c1c1e;

    --gray-100: #e2e4e8;
    --gray-300: #a9adb8;
    --gray-500: #717682;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Escala TipogrÃ¡fica Modular (Fluid Typography) */
    --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
    --fs-h2: clamp(1.8rem, 4vw, 3rem);
    --fs-h3: clamp(1.5rem, 3vw, 2.2rem);
    --fs-body: clamp(1rem, 1.2vw, 1.125rem);
    /* 16px a 18px */
    --fs-label: 0.75rem;

    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

/* Notebook Font-Size Scaling (1024px - 1536px) */
@media (min-width: 1024px) and (max-width: 1536px) {
    html {
        font-size: 90%;
    }
}

/* ===== Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 300;
    color: var(--text-graphite);
    background-color: var(--white);
    line-height: 1.7;
    /* Legibilidade arquitetÃ´nica */
    overflow-x: hidden;
}

h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-graphite);
}

h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-graphite);
}

h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 400;
    line-height: 1.3;
}

.section-label,
.hero-eyebrow-text,
.arq-label {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-white {
    color: var(--white);
}

.service-arrow {
    color: var(--gray-500);
    font-size: 2rem;
    transition: transform var(--transition-fast);
}

.service-item:hover .service-arrow {
    transform: translateX(10px);
    color: var(--primary-blue);
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-graphite);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-icon {
    width: 60px;
    height: auto;
    animation: preloaderPulse 1.4s ease-in-out infinite;
    filter: brightness(0) invert(1);
}

@keyframes preloaderPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ===== UtilitÃ¡rios de AnimaÃ§Ã£o Oculta (Intersection Observer) ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar Glassmorphism ===== */
.navbar {
    padding: 0;
    transition: all 0.4s ease-in-out;
    background: transparent !important;
}

.navbar-pill-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-top: 20px;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    transition: all 0.4s ease-in-out;
}

.navbar.scrolled .navbar-pill-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    border-radius: 0;
    margin-top: 0;
    padding: 1rem 2rem;
    max-width: 100%;
}

.navbar-logo {
    height: 55px;
    transition: all 0.4s ease-in-out;
    filter: brightness(0) invert(1);
}

.navbar.scrolled .navbar-logo {
    height: 48px;
    filter: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.4s ease-in-out;
}

.navbar.scrolled .nav-link {
    color: var(--text-graphite) !important;
}

/* No hero (fundo escuro): active e hover ficam brancos e visÃ­veis */
.nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.nav-link.active {
    color: var(--white) !important;
    opacity: 1;
    border-bottom: 2px solid var(--white);
}

/* Scrolled (fundo claro): active e hover ficam azul MARCH7 */
.navbar.scrolled .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar.scrolled .nav-link.active {
    color: var(--primary-blue) !important;
    border-bottom-color: var(--primary-blue);
}

.btn-outline-quote {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 0.6rem 2rem;
    text-transform: uppercase;
    transition: all 0.4s ease-in-out;
    text-decoration: none;
}

.btn-outline-quote:hover {
    background: var(--white);
    color: var(--text-graphite);
    border-color: var(--white);
}

.navbar.scrolled .btn-outline-quote {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.navbar.scrolled .btn-outline-quote:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.navbar-toggler {
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.navbar.scrolled .navbar-toggler {
    filter: none;
}

@media (max-width: 991px) {
    .navbar-pill-container {
        border-radius: 20px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .navbar-links-center {
        text-align: center;
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.3rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.scrolled .nav-link {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* ===== Hero Custom ===== */
.hero-custom {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--primary-blue);
    overflow: hidden;
}

.hero-custom .carousel,
.hero-custom .carousel-inner,
.hero-custom .carousel-item {
    height: 100%;
    width: 100%;
}

.hero-img-bg {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.65);
    transform: scale(1);
    transition: transform 10s linear;
}

.carousel-item.active .hero-img-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.75) 0%, rgba(56, 86, 140, 0.3) 60%, transparent 100%);
    z-index: 1;
}

/* â€” Content Wrapper: left-aligned, max 50% width â€” */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 8%;
}

.hero-content {
    max-width: 800px;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* â€” Eyebrow â€” */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-eyebrow-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.hero-eyebrow-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* â€” Headline â€” */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* â€” CTA Group â€” */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.9rem 3rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--primary-blue);
    text-decoration: none;
    transition: all 0.35s ease;
}

.btn-hero-primary:hover {
    background-color: var(--white) !important;
    color: var(--primary-blue) !important;
    border-color: var(--white) !important;
    transform: translateY(-3px);
}

.btn-hero-ghost {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 0.9rem 3rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: all 0.35s ease;
}

.btn-hero-ghost:hover {
    background-color: var(--white);
    color: var(--text-graphite);
    border-color: var(--white);
}

/* â€” Slide-in Animation (left â†’ right with fade) â€” */
@keyframes heroSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-slide-in {
    opacity: 0;
    animation: heroSlideIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* â€” Responsive â€” */
@media (max-width: 991px) {
    .hero-content {
        max-width: 85%;
    }

    .hero-content-wrapper {
        padding: 0 5%;
    }
}

@media (max-width: 576px) {
    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-ghost {
        width: 100%;
        text-align: center;
    }
}

.btn-primary-custom {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 3.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--primary-blue);
    border-radius: 0;
    transition: all var(--transition-fast);
}

.btn-primary-custom:hover {
    background-color: var(--text-graphite);
    color: var(--white);
    border-color: var(--text-graphite);
    transform: translateY(-3px);
}

.btn-outline-dark-custom {
    display: inline-block;
    background-color: transparent;
    color: var(--text-graphite);
    padding: 1rem 3.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--text-graphite);
    border-radius: 0;
    transition: all var(--transition-fast);
}

.btn-outline-dark-custom:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-white-custom {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 3.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--primary-blue);
    border-radius: 0;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-white-custom:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ===== Page Header com Carrossel de Fundo ===== */
.page-header-carousel {
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 4rem;
}

.page-header-carousel .carousel,
.page-header-carousel .carousel-inner,
.page-header-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transform: scale(1);
    transition: transform 10s linear;
}

.page-header-carousel .carousel-item.active img {
    transform: scale(1.06);
}

.page-header-carousel .page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 28, 30, 0.6) 0%, rgba(28, 28, 30, 0.8) 100%);
    z-index: 1;
}

.page-header-carousel .container {
    position: relative;
    z-index: 2;
}

/* ===== Marquee (Logos) ===== */
.marquee-section {
    background-color: var(--text-graphite);
    padding: 2rem 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 4rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== SeÃ§Ãµes Gerais ===== */
.section-padding {
    padding: 8rem 0;
}

.bg-light-section {
    background-color: var(--bg-light);
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 500;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-graphite);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===== Sobre / InspiraÃ§Ãµes ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.stat-item {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

/* ===== ServiÃ§os ===== */
.service-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.service-item:hover {
    padding-left: 1rem;
    border-bottom-color: var(--primary-blue);
}

.service-item:hover h4 {
    color: var(--primary-blue);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: color var(--transition-fast);
}

/* ===== Projetos / Grid Geral (PÃ¡gina de Projetos) ===== */
.project-card {
    position: relative;
    overflow: hidden;
    display: block;
    margin-bottom: 2rem;
    background-color: #000;
}

.project-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.03);
    filter: brightness(0.4);
}

.project-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 2;
}

.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project-info h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.project-info p {
    color: var(--bg-light);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Projetos em Destaque (Estilo CinematogrÃ¡fico de Luxo) ===== */
.projects-cinema-section {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    overflow: hidden;
    background-color: var(--white);
}

.swiper-projects-luxury {
    width: 100%;
    padding: 2rem 0 4rem !important;
    overflow: visible !important;
}

.swiper-projects-luxury .swiper-slide {
    opacity: 0.4;
    filter: brightness(0.4);
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.swiper-projects-luxury .swiper-slide-active {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
    z-index: 10;
}

.project-slide-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 4px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: block;
    text-decoration: none;
}

@media (max-width: 768px) {
    .project-slide-card {
        aspect-ratio: 1 / 1.5;
    }
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s ease;
}

.swiper-slide-active .slide-bg-img {
    transform: scale(1.05);
}

.slide-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.slide-content-box {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: 75%;
    z-index: 2;
    color: var(--white);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.swiper-slide-active .slide-content-box {
    opacity: 1;
    left: 10%;
}

.slide-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.slide-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.btn-slide-luxury-mock {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.project-slide-card:hover .btn-slide-luxury-mock {
    border-bottom-color: var(--primary-blue);
    gap: 20px;
}

/* NavegaÃ§Ã£o Minimalista de Luxo */
.nav-luxury {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--text-graphite);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-prev {
    left: 40px;
}

.nav-next {
    right: 40px;
}

.nav-luxury:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .nav-luxury {
        display: none;
        /* Esconder setas no mobile para focar no touch */
    }

    .slide-content-box {
        width: 85%;
        left: 5% !important;
    }

    .slide-description {
        margin-bottom: 1.5rem;
    }

    .projects-cinema-section {
        padding: 2rem 0 !important;
    }

    .swiper-projects-luxury {
        padding: 1rem 0 2rem !important;
    }

    .projects-cinema-section .mt-5 {
        margin-top: 1.5rem !important;
    }
}

/* BotÃ£o Global Minimalista */
.btn-all-projects-minimal {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--gray-100);
    color: var(--text-graphite);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.btn-all-projects-minimal:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===== FAQ Accordion Minimalista e Grid ===== */
.faq-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

.faq-text-column {
    align-self: center;
    /* Alinha o texto ao centro verticalmente da coluna */
}

.faq-text-column .section-title {
    margin-bottom: 40px;
    /* Separador generoso do tÃ­tulo */
}

.btn-hero-portfolio {
    transition: all 0.3s ease;
}

.btn-hero-portfolio:hover {
    background-color: transparent !important;
    color: #38568C !important;
    border: 1px solid #38568C !important;
}

.faq-text-column p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--gray-500);
}

.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid var(--gray-300);
    background: transparent;
    border-radius: 0;
    padding: 25px 0;
    /* Respiro extra pedido para a lista */
}

.faq-accordion .accordion-item:last-child {
    border-bottom: none;
}

.faq-accordion .accordion-button {
    background: transparent;
    color: var(--text-graphite);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding: 0;
    /* O padding extra foi movido pro item */
    padding-bottom: 1rem;
    box-shadow: none !important;
}

.faq-accordion .accordion-button::after {
    /* Seta mais fina e harmoniosa (stroke no lugar de fill massivo) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1e' stroke-width='1' stroke-linecap='square' stroke-linejoin='miter'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-size: 1.2rem;
    transition: transform var(--transition-medium);
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background: transparent;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338568C' stroke-width='1' stroke-linecap='square' stroke-linejoin='miter'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.faq-accordion .accordion-body {
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-500);
}

/* ===== Contact Grid (PÃ¡gina Inicial) ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 80px;
    align-items: center;
}

.limit-inputs input,
.limit-inputs textarea {
    max-width: 600px;
}

@media (max-width: 991px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ===== Form de DiagnÃ³stico Premium ===== */
.form-floating-custom {
    position: relative;
    margin-bottom: 2rem;
}

.form-floating-custom input,
.form-floating-custom textarea,
.form-floating-custom select {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--gray-300);
    background: transparent;
    padding: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-graphite);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: var(--font-body);
}

.form-floating-custom input:focus,
.form-floating-custom textarea:focus,
.form-floating-custom select:focus {
    outline: none;
    border-bottom-color: var(--primary-blue);
    box-shadow: 0 1px 0 0 var(--primary-blue);
}

.form-floating-custom select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1em;
}

.form-floating-custom select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338568C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-floating-custom label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: var(--font-body);
    color: var(--gray-300);
    pointer-events: none;
    transition: all 0.2s ease-out;
}

.form-floating-custom input:focus~label,
.form-floating-custom input:not(:placeholder-shown)~label,
.form-floating-custom textarea:focus~label,
.form-floating-custom textarea:not(:placeholder-shown)~label,
.form-floating-custom select:focus~label,
.form-floating-custom select:not([value=""])~label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: var(--primary-blue);
}

.btn-pill {
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 86, 140, 0.2);
}

/* ===== Responsividade ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .project-card img {
        height: 350px;
    }
}

@media (max-width: 768px) {

    /* ===== 1. HEADER & HERO â€” Cinematic Logo Choreography ===== */

    .navbar {
        padding: 0.5rem 0;
        background: transparent !important;
        display: flex;
        justify-content: center;
    }

    .navbar-pill-container {
        position: relative;
        display: flex;
        justify-content: center !important;
        align-items: center;
        border-radius: 0;
        margin-top: 0;
        padding: 0.75rem 1.5rem;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1) !important;
    }

    /* Logo â€” starts centered via Flexbox, no transform needed */
    .navbar .navbar-brand {
        position: relative;
        z-index: 2;
        opacity: 1;
        will-change: transform, opacity;
        transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1) !important;
    }

    .navbar .navbar-brand img {
        filter: brightness(0) invert(1);
        height: 45px;
        will-change: filter;
        transition: height 0.8s cubic-bezier(0.7, 0, 0.3, 1), filter 0.6s ease;
    }

    /* Toggler â€” fully hidden on load so it doesn't push the logo */
    .navbar .navbar-toggler {
        position: relative;
        z-index: 2;
        display: none !important;
        opacity: 0;
        pointer-events: none;
        will-change: opacity;
        transition: opacity 0.6s ease 0.3s, visibility 0.6s ease 0.3s !important;
    }

    /* â€”â€”â€” Scrolled State â€”â€”â€” */
    .navbar.scrolled {
        background: var(--white) !important;
    }

    .navbar.scrolled .navbar-pill-container {
        justify-content: space-between !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .navbar.scrolled .navbar-brand img {
        filter: none;
        height: 35px;
    }

    /* Toggler fades in with staggered delay after logo starts sliding */
    .navbar.scrolled .navbar-toggler {
        display: block !important;
        opacity: 1;
        pointer-events: auto;
        filter: none;
    }

    .navbar.scrolled .nav-link {
        color: var(--text-graphite) !important;
    }

    /* Collapsed menu text color */
    .navbar .nav-link {
        color: var(--text-graphite) !important;
    }

    .hero-content {
        padding-top: 40px !important;
    }

    .hero-eyebrow-text {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
        white-space: normal;
        line-height: 1.4;
    }

    .hero-title {
        font-size: clamp(1.4rem, 6.5vw, 2.2rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 2rem;
    }

    .hero-cta-group {
        gap: 15px !important;
    }

    /* ===== 2. SEÃ‡ÃƒO SOBRE â€” Carousel centralizado ===== */
    .about-img-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        margin: 0 auto;
    }

    .about-grid {
        gap: 2.5rem;
    }

    .swiper-about-main {
        height: 350px !important;
    }

    /* ===== 3. SEÃ‡ÃƒO CONTATO â€” FormulÃ¡rio primeiro no mobile ===== */
    .contact-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2.5rem;
    }

    /* ===== 4. FOOTER â€” CentralizaÃ§Ã£o total + Touch targets ===== */
    .footer-custom .row {
        text-align: center;
    }

    .footer-custom .col-lg-6 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-custom .col-lg-6 img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-custom .col-lg-6 .btn-primary-custom {
        width: 100%;
        text-align: center;
    }

    .footer-custom .col-lg-2,
    .footer-custom .col-lg-3,
    .footer-custom [class*="col-6"] {
        text-align: center;
    }

    .footer-custom .col-lg-2 h6,
    .footer-custom .col-lg-3 h6,
    .footer-custom [class*="col-6"] h6 {
        text-align: center;
    }

    .footer-custom .list-unstyled {
        align-items: center;
    }

    /* Improved touch targets â€” larger pill spacing */
    .footer-custom .list-unstyled li {
        padding: 0.35rem 0;
    }

    .footer-custom .list-unstyled li a {
        display: inline-block;
        padding: 0.5rem 1rem;
        min-height: 44px;
        line-height: 1.8;
    }

    .footer-custom .mt-4 p {
        text-align: center;
    }

    /* ===== General mobile spacing ===== */
    .section-padding {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .marquee-item {
        font-size: 1.2rem;
        margin: 0 2rem;
    }

    /* ===== PROJETOS MOBILE â€” Info sempre visÃ­vel ===== */
    .project-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
        bottom: 1.5rem !important;
        left: 1.5rem !important;
    }

    .project-info h3 {
        font-size: 1.5rem !important;
    }

    .project-card img {
        filter: brightness(0.6) !important;
        height: 400px !important;
    }

    /* ===== 5. FAQ / ACCORDION MOBILE â€” Compact layout ===== */
    .faq-accordion .accordion-button {
        padding: 1.5rem 1.25rem !important;
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }

    .faq-accordion .accordion-body {
        padding: 1.25rem !important;
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }

    .faq-grid {
        gap: 2rem !important;
    }
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--white);
    color: var(--primary-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}


/* ===== SeÃ§Ã£o Arquiteto (Sobre) ===== */
.arq-section {
    position: relative;
    min-height: 80vh;
    background-image: url('../img/projetos/apto-liberty-home/Projetos_hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.arq-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.arq-container {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.arq-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

/* â€” Coluna Esquerda â€” */
.arq-col-left {
    display: flex;
    flex-direction: column;
}

.arq-photo-wrapper {
    max-width: 300px;
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.arq-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.arq-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.arq-name {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--white);
    margin-bottom: 1rem;
}

.arq-cau {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* â€” Coluna Direita â€” */
.arq-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arq-purpose-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.arq-purpose-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--white);
    margin-bottom: 0;
}

.arq-divider {
    width: 60px;
    height: 1px;
    background-color: var(--primary-blue);
    margin: 2.5rem 0;
}

.arq-bio {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.arq-formation {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue);
}

/* â€” Responsivo â€” */
@media (max-width: 992px) {
    .arq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .arq-col-left {
        align-items: center;
    }

    .arq-photo-wrapper {
        max-width: 250px;
    }

    .arq-col-right {
        align-items: center;
        text-align: center;
    }

    .arq-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .arq-container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Fail-safe de produÃ§Ã£o: garante visibilidade no mobile caso JS atrase */
@media (max-width: 768px) {

    /* Fail-safe de produÃ§Ã£o: garante visibilidade no mobile caso JS atrase */
    .reveal-up {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: opacity 0.8s ease, transform 0.8s ease !important;
    }

    @keyframes mobileReveal {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .reveal-up {
        animation: mobileReveal 0.8s ease forwards;
    }

    /* VariÃ¡veis de Escala Modular - Mobile Only */
    :root {
        --fs-h1: clamp(2rem, 6vw, 2.8rem);
        --fs-h2: clamp(1.5rem, 5vw, 2.2rem);
        --fs-body: 1rem;
        --fs-label: 0.75rem;
    }

    h1 {
        font-size: var(--fs-h1);
        font-weight: 300;
        line-height: 1.2;
        word-break: break-word;
    }

    h2 {
        font-size: var(--fs-h2);
        font-weight: 400;
        line-height: 1.3;
    }

    p {
        font-size: var(--fs-body);
        line-height: 1.6;
    }

    .section-label,
    .hero-eyebrow-text,
    .arq-label {
        font-size: var(--fs-label);
        letter-spacing: 3px;
    }

    /* Ajuste especÃ­fico para Hero no mobile */
    .hero-title {
        margin-bottom: 2rem;
    }

    /* Overrides para seÃ§Ã£o Arquiteto e PropÃ³sito no mobile */
    .arq-name {
        font-size: clamp(2.2rem, 9vw, 2.8rem);
        line-height: 1.1;
        margin-bottom: 0.5rem !important;
        text-align: center;
        white-space: nowrap;
    }

    .arq-label,
    .arq-cau {
        text-align: center;
        display: block;
    }

    .arq-purpose-tag {
        margin-top: 2.5rem !important;
        margin-bottom: 0.75rem !important;
        text-align: center;
        display: block;
    }

    .arq-purpose-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        line-height: 1.2;
        margin-bottom: 1.5rem !important;
        text-align: center;
    }

    .arq-divider {
        margin: 2rem auto !important;
    }

    .arq-bio {
        font-size: 1.05rem;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 2rem !important;
        padding: 0 15px;
    }

    .arq-formation {
        font-size: var(--fs-label);
        letter-spacing: 2px;
        opacity: 0.8;
        text-align: center;
        display: block;
    }

    .arq-label,
    .arq-purpose-tag,
    .arq-cau {
        font-size: var(--fs-label);
        letter-spacing: 2px;
    }
}

/* Social Icons Footer */
.social-icon-link {
    color: var(--white);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.social-icon-link:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
    opacity: 1;
}