:root {
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --bg-softer: #fbfbfc;
    --border-soft: #eaeaea;
    --border-softer: #f4f4f4;
    --text-main: #222222; /* Slightly softer black */
    --text-muted: #555555;
    --text-soft: #777777;
    --brand: #F2B200;
    --brand-soft: #fff9e6; /* Lighter brand background */
    --radius-lg: 8px; /* Sharper corners for cleaner look */
    --radius-md: 6px;
    --radius-sm: 4px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.03); /* Lighter, more diffuse */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.02);
    --max: 1200px; /* Slightly wider */
    --header-height: 80px; /* Taller header */
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height)
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Classic clean sans */
    color: var(--text-main);
    background: var(--bg);
    line-height: 1.6;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px; /* Pill like original */
    border: 1px solid var(--border-soft);
    background: #ffffff;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    transition: all .3s ease;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    background: #f9f9f9;
    border-color: #d1d1d1;
}

.btn.primary {
    background: linear-gradient(180deg, #facc15, #f2b200);
    border-color: #f4b400;
    color: #1b1300;
    box-shadow: 0 10px 22px rgba(234, 179, 8, 0.28);
}

.btn.primary:hover {
    background: linear-gradient(180deg, #fde047, #facc15);
    border-color: #f4b400;
    transform: translateY(-2px);
}

.btn--whats {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.25);
    font-weight: 600;
}

.btn--whats:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

/* Header/Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-logo {
    width: 50px;
    height: 50px;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title strong {
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--text-main);
}

.brand-title span {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-tagline {
    display: none; /* Simplify top bar */
}

nav {
    display: flex;
    gap: 32px; /* More space between links */
    align-items: center;
}

nav a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-muted);
    padding: 0;
    border-radius: 0;
    transition: color .2s ease;
    font-weight: 500;
    position: relative;
    background: transparent !important;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-main);
}

nav a:hover::after {
    width: 100%;
}

.cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-btn {
    display: none;
    gap: 8px;
    padding: 8px 12px;
}

.menu-btn svg {
    width: 18px;
    height: 18px;
}

.mobile-menu {
    display: none;
    padding: 8px 0 16px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.mobile-menu.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-panel {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 12px;
    transition: background .18s ease, color .18s ease;
}

.mobile-link:hover {
    background: #f4f4f5;
}

.mobile-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

/* Hero Section */
main {
    background: transparent
}

.hero {
    padding: 80px 0 60px; /* More vertical space */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* More gap */
    align-items: center;
}

.hero-card {
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.hero-left {
    padding: 0; /* Remove internal padding */
}

.kicker {
    display: inline-block;
    padding: 0; /* Minimalist kicker */
    background: transparent;
    color: var(--brand);
    border: none;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 24px;
}

.dot {
    display: none; /* Remove distractions */
}

h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 4.5vw, 64px); /* Larger, more architectural */
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 300; /* Lighter weight for elegance */
    color: #000;
}

.lead {
    margin: 0 0 32px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 500px;
}

.lead b {
    font-weight: 500;
    color: var(--text-main)
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.23);
}

h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.lead {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.6;
    max-width: 60ch;
}

.lead b {
    color: var(--text-main)
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.proof {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f1f4;
    font-size: 13px;
    color: var(--text-soft);
}

.proof b {
    color: var(--text-main)
}

.hero-right {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: none;
    background: #f7f7f8;
    aspect-ratio: 4/3; /* Consistent aspect ratio */
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    right: 24px;
    color: white;
    z-index: 2;
}

.carousel-caption h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-indicator {
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background: white;
    width: 48px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.shot-label span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* Seções genéricas */
section {
    padding: 100px 0; /* Lots of whitespace */
}

.section-head {
    display: block; /* Stack vertically for simpler reading */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-head h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 3vw, 42px);
    letter-spacing: -0.03em;
    font-weight: 300;
}

.section-head p {
    margin: 0 auto;
    max-width: 60ch;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* More breathing room */
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid transparent; /* Clean borders */
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all .3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.card-pad {
    padding: 32px; /* More padding inside cards */
}

.card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Circle icons */
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    background: var(--bg-soft);
    border: none;
}

.icon--brand {
    background: var(--brand-soft);
    border: 1px solid rgba(242, 178, 0, 0.2);
}

.icon svg {
    width: 28px;
    height: 28px;
    fill: var(--brand);
}

.grid {
    display: grid;
    gap: 1.2rem
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr)
}

/* Services Grid - Layout equilibrado para 5 itens */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.2rem;
}

.services-grid .card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.services-grid .card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.services-grid .card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.services-grid .card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.services-grid .card:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: 500px;
    margin: 0 auto;
}

/* Timeline / Processo Section */
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 80px 0;
    position: relative;
}

.timeline::before {
    /* Connecting line - simple version */
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-soft);
    z-index: 0;
    display: none; 
}

@media (min-width: 992px) {
    .timeline::before {
        display: block;
    }
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 1;
}

.num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    color: var(--brand);
    font-weight: 600;
    font-size: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    box-shadow: none; /* Flat */
}

.step h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: var(--text-main);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 0;
}

/* Portfolio Filter Pills */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.chip {
    padding: 10px 24px;
    border-radius: 0; /* Square for architecture */
    border: 1px solid transparent; /* Clean */
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chip:hover {
    border-color: #000;
    background: transparent;
    color: #000;
}

.chip.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform .24s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 24, 27, 0.85) 0%, rgba(24, 24, 27, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity .24s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

/* Depoimentos Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--brand);
}

.testimonial-card p {
    font-size: 18px; /* Larger text */
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0 0 32px;
    font-style: normal;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.author-info span {
    font-size: 13px;
    color: var(--text-soft);
}

/* Na Mídia Section */
.media-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px 0;
}

.media-logos img {
    height: 48px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all .24s ease;
}

.media-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .18s ease;
}

details[open] {
    border-color: var(--brand);
}

summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 24px;
    color: var(--brand);
    transition: transform .24s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.contact-info h3 {
    font-size: 18px;
    margin: 0 0 16px;
}

.contact-info p {
    color: var(--text-soft);
    line-height: 1.7;
    margin: 0 0 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--brand);
}

.contact-item a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color .18s ease;
}

.contact-item a:hover {
    color: var(--brand);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background: #fff;
    transition: border-color .18s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
}

.form-group textarea {
/* Removing the duplicate .card styles and updating .process */
/* .card duplicate removed here */

/* Processo */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Removing duplicate .step */   display: inline-flex;
    vertical-align: middle;
    margin-right: .4rem;
    color: var(--mb-gold);
}

.step b .label {
    vertical-align: middle;
}

/* Form styling */
.contact-form {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
}

.contact-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--mb-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem;
    margin-top: .3rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--mb-gold);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Parallax slice mid */
.slice {
    position: relative;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111; /* Dark background instead of image for clean look */
    color: #fff;
}

.slice::before, .slice::after {
    display: none; /* Remove filters */
}

.slice__inner {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.slice__inner h3 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 0 0 24px;
    font-weight: 300;
}

.slice__inner p {
    opacity: .8;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 18px;
    font-weight: 300;
}

.stat-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform .24s ease, box-shadow .24s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
}

.stats-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.stats-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 500px;
}

.stats-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(242, 178, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin: 0 0 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    transition: color .18s ease;
}

.footer-col a:hover {
    color: var(--brand);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    transition: all .18s ease;
    color: var(--text-soft)
}

.social-links a:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.social-links a:hover svg {
    stroke: #18181b;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-soft);
}

.dev-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.dev-badge {
    height: 28px;
    width: auto;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, .2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 18px rgba(0, 0, 0, .3);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Sobre section */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: start;
}

.sobre-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #f2f2f2;
}

.sobre-img {
    width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: cover;
    object-position: top;
    display: block;
}

@media (max-width: 768px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sobre-img {
        max-height: 350px;
    }

    .grid3,
    .grid2,
    .services-grid,
    .stats-list,
    .portfolio-grid,
    .testimonials-grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Developer credit badge */
.dev-credit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    opacity: .9;
}

.dev-badge {
    height: 32px;
    width: auto;
    display: block;
}

.dev-credit__label {
    color: #555;
}

/* Depoimentos */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--mb-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--mb-dark);
}

.testimonial-stars {
    color: var(--mb-gold);
    font-size: .9rem;
}

.testimonial-text {
    color: var(--mb-mid);
    line-height: 1.6;
    font-style: italic;
}

.testimonial-project {
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--mb-mid);
    font-weight: 600;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease
}

.is-visible {
    opacity: 1;
    transform: none
}

/* Portfólio Completo */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap
}

.filter-btn {
    background: #fff;
    border: 2px solid var(--mb-line);
    color: var(--mb-mid);
    padding: .7rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all .25s ease;
    font-family: inherit
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--mb-gold);
    border-color: var(--mb-gold);
    color: #1a1a1a;
    transform: translateY(-2px)
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    height: 240px
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12)
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    display: block
}

.portfolio-item:hover img {
    transform: scale(1.05)
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    color: #fff;
    padding: 1.5rem 1rem .8rem;
    transform: translateY(100%);
    transition: transform .3s ease
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0)
}

.portfolio-overlay h4 {
    margin: 0 0 .3rem;
    font-size: 1.1rem;
    font-weight: 700
}

.portfolio-overlay p {
    margin: 0;
    font-size: .9rem;
    opacity: .9
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .9);
    backdrop-filter: blur(10px)
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001
}

.lightbox-close:hover {
    opacity: .7
}

#lightboxImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px
}

.lightbox-info {
    text-align: center;
    color: #fff;
    margin-top: 1rem
}

.lightbox-info h3 {
    margin: 0 0 .5rem;
    font-size: 1.4rem
}

.lightbox-info p {
    margin: 0;
    opacity: .8
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background .3s ease
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, .3)
}

.lightbox-prev {
    left: 20px
}

.lightbox-next {
    right: 20px
}

/* Filtro de categorias */
.portfolio-item.hidden {
    display: none
}

/* FAQ */
.faq-item[open] summary span:last-child {
    transform: rotate(45deg)
}

.faq-item:hover {
    border-color: var(--mb-gold) !important;
    box-shadow: 0 4px 16px rgba(255, 191, 0, .15) !important
}

.faq-item summary::-webkit-details-marker {
    display: none
}

/* Responsivo Portfolio */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem
    }

    .portfolio-item img {
        height: 200px
    }

    .filter-btn {
        padding: .6rem 1rem;
        font-size: .9rem
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: .7rem
    }

    .lightbox-prev {
        left: 10px
    }

    .lightbox-next {
        right: 10px
    }
}

/* Responsivo */
@media (max-width: 980px) {
    .topbar-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    nav {
        display: none;
    }

    .cta {
        margin-left: auto;
    }

    .cta .btn:not(.menu-btn) {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-right {
        min-height: 420px;
        aspect-ratio: auto; /* Remove strict aspect ratio for mobile */
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .grid3 {
        grid-template-columns: 1fr 1fr; /* 2 cols tablet */
    }
}

@media (max-width:640px) {
    section {
        padding: 60px 0; /* Less padding on mobile but still airy */
    }

    .section-head {
        text-align: left; /* Align left for mobile reading */
        margin-bottom: 32px;
    }

    .section-head p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero {
        padding: 40px 0 30px;
    }

    /* Stack everything */
    .grid3, .grid2, .timeline {
        grid-template-columns: 1fr;
        display: grid; /* Reset flex for timeline */
    }

    .step {
        max-width: 100%; /* Reset max-width */
        text-align: left;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }
    
    .timeline::before {
        display: none;
    }

    .num {
        margin: 0;
        flex-shrink: 0;
    }

    .card p,
    .lead,
    .contact-info p,
    .sobre-grid p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .step-desc {
        display: none;
    }

    .step-mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        border: none;
        background: transparent;
        color: var(--brand);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
    }

    .step-toast {
        position: fixed;
        inset: auto 16px 16px 16px;
        background: #111;
        color: #fff;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        display: none;
        z-index: 1000;
    }

    .step-toast.is-open {
        display: block;
    }

    .step-toast-inner strong {
        display: block;
        font-size: 14px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 8px;
        color: var(--brand);
    }

    .step-toast-inner p {
        margin: 0 0 12px;
        font-size: 14px;
        line-height: 1.6;
    }

    .step-toast-close {
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: transparent;
        color: #fff;
        padding: 6px 10px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
    }


@media (min-width: 641px) {
    .step-mobile-toggle,
    .step-toast {
        display: none !important;
    }
}
    h1 {
        font-size: 36px;
    }
    
    .slice__inner h3 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-carousel {
        min-height: 280px;
    }

    .carousel-caption {
        left: 16px;
        bottom: 16px;
        right: 16px;
    }

    .carousel-caption h3 {
        font-size: 15px;
    }

    .carousel-caption p {
        font-size: 12px;
    }

    .carousel-indicator {
        width: 24px;
    }

    .carousel-indicator.active {
        width: 36px;
    }

    .section-head h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        gap: 6px;
    }

    .chip {
        font-size: 13px;
        padding: 6px 12px;
    }
}
