/* ==============================================
   MANACÁ ENGENHARIA E CONSULTORIA AMBIENTAL
   Landing Page Stylesheet
   Paleta: #9B583A #D98560 #545036 #E0AC8D #F9F3EA
   ============================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #9B583A;
    --primary-light: #D98560;
    --dark: #545036;
    --accent: #E0AC8D;
    --cream: #F9F3EA;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --gray-100: #f7f5f2;
    --gray-200: #e8e4df;
    --gray-300: #d1cbc3;
    --gray-600: #7a7466;
    --gray-700: #5a5549;
    --gray-800: #3a372e;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
    --shadow-xl: 0 16px 56px rgba(0,0,0,0.18);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;

    --header-height: 80px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section__label.center {
    display: block;
    text-align: center;
}

.section__title {
    margin-bottom: 16px;
    color: var(--dark);
}

.section__title.center {
    text-align: center;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 600px;
    line-height: 1.7;
}

.section__subtitle.center {
    text-align: center;
    margin: 0 auto;
}

.section__header {
    margin-bottom: 60px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn--primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--whatsapp {
    background-color: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.btn--whatsapp:hover {
    background-color: #20bd5a;
    border-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(249, 243, 234, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo img {
    height: 64px;
    width: auto;
    transition: all var(--transition);
}

.header .header__logo-light {
    display: block;
}

.header .header__logo-dark {
    display: none;
}

.header.scrolled .header__logo-light {
    display: none;
}

.header.scrolled .header__logo-dark {
    display: block;
}

.header.scrolled .header__logo img {
    height: 42px;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__menu {
    display: flex;
    gap: 8px;
}

.header__link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.header.scrolled .header__link {
    color: var(--dark);
}

.header__link:hover,
.header__link.active {
    color: var(--primary-light);
}

.header.scrolled .header__link:hover,
.header.scrolled .header__link.active {
    color: var(--primary);
    background: rgba(155, 88, 58, 0.08);
}

.header__cta {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header.scrolled .header__toggle span {
    background-color: var(--dark);
}

.header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /*
     * HERO BACKGROUND:
     * Adicione sua imagem de copas de árvores em: assets/img/hero-bg.jpg
     * A imagem será exibida com o overlay gradiente por cima.
     * Se não houver imagem, o gradiente solo cria um visual elegante.
     */
    background:
        linear-gradient(
            160deg,
            rgba(22, 34, 18, 0.55) 0%,
            rgba(30, 45, 24, 0.45) 30%,
            rgba(20, 35, 20, 0.50) 60%,
            rgba(15, 25, 12, 0.60) 100%
        ),
        url('../img/arvores.jpg') center / cover no-repeat;
    background-color: #1e2d18;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(155, 88, 58, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(217, 133, 96, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 900px;
}

.hero__title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero__type {
    color: var(--accent);
}

.hero__type-caret {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background-color: var(--accent);
    margin-left: 6px;
    vertical-align: baseline;
    animation: caret-blink 0.9s steps(2, start) infinite;
}

@keyframes caret-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__type-caret { display: none; }
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    animation: bounce-down 2s infinite;
    transition: color var(--transition-fast);
}

.hero__scroll:hover {
    color: var(--white);
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- About ---------- */
.about {
    background-color: var(--cream);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    font-size: 1.05rem;
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__pillars {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.about__pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.about__pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about__pillar span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

.about__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__image-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.4;
}

.about__image-wrapper img {
    width: 85%;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(155, 88, 58, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Clients ---------- */
.clients {
    padding: 72px 0 60px;
    background-color: var(--cream);
    border-top: 1px solid var(--gray-200);
    overflow: hidden;
}

.clients__title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 48px;
}

.clients__carousel {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.clients__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    will-change: transform;
}

.clients__track.is-dragging {
    cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
    .clients__carousel {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .clients__track {
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        cursor: auto;
    }
}

.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.clients__item img {
    height: 70px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.clients__track:hover .clients__item img {
    opacity: 1;
}

/* ---------- Services ---------- */
.services {
    background-color: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px 28px 32px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(155, 88, 58, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    transition: transform var(--transition);
}

.service-card:hover .service-card__icon {
    transform: scale(1.08) rotate(-3deg);
}

.service-card__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card__text {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.service-card__link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.service-card__link:hover {
    color: var(--primary-light);
}

.service-card__link:hover i {
    transform: translateX(4px);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-banner__pattern {
    display: none;
}

.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, #3a372e 100%);
}

.cta-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.cta-banner__title {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 20px;
}

.cta-banner__text {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

/* ---------- Differentials ---------- */
.differentials {
    background-color: var(--cream);
}

.diff__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.diff-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.diff-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.diff-item__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
}

.diff-item__title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.diff-item__text {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact {
    background-color: var(--white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Form */
.contact__form {
    background: var(--cream);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--dark);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155, 88, 58, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%237a7466' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-feedback {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    display: none;
}

.form-feedback.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-feedback.error {
    display: block;
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Contact Info */
.contact__info-card {
    background: var(--cream);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.contact__info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 28px;
    color: var(--dark);
}

.contact__info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact__info-item:last-child {
    margin-bottom: 0;
}

.contact__info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact__info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact__info-item p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact__info-item a {
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 500;
}

.contact__info-item a:hover {
    color: var(--primary-light);
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact__map iframe {
    display: block;
    max-width: 100%;
}

.contact__info-card,
.contact__form,
.contact__map {
    overflow: hidden;
    max-width: 100%;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer__location {
    font-size: 0.85rem;
    color: var(--accent);
}

.footer__location i {
    margin-right: 4px;
}

.footer__col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.footer__col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-float__tooltip {
    position: absolute;
    right: 72px;
    background: var(--white);
    color: var(--dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: all var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.08); }
}

/* ---------- Scroll Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children delay */
.services__grid .fade-up:nth-child(2),
.diff__grid .fade-up:nth-child(2) {
    transition-delay: 0.1s;
}
.services__grid .fade-up:nth-child(3),
.diff__grid .fade-up:nth-child(3) {
    transition-delay: 0.2s;
}
.services__grid .fade-up:nth-child(4),
.diff__grid .fade-up:nth-child(4) {
    transition-delay: 0.3s;
}

/* ---------- Responsive ---------- */

/* Tablet Large */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid {
        gap: 48px;
    }

    .about__image-wrapper {
        width: 300px;
        height: 300px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 72px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Header Mobile */
    .header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .header__logo img {
        height: 54px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
    }

    .header__nav.open {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0 32px;
    }

    .header__link {
        color: var(--dark) !important;
        padding: 16px 20px;
        font-size: 1.05rem;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-200);
        background: none !important;
    }

    .header__link:last-child {
        border-bottom: none;
    }

    .header__link.active {
        color: var(--primary) !important;
        font-weight: 700;
    }

    .header__link:hover {
        color: var(--primary) !important;
    }

    .header__cta {
        display: none;
    }

    .header__toggle {
        display: flex;
    }

    /* Mobile nav overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__image {
        order: -1;
    }

    .about__image-wrapper {
        width: 250px;
        height: 250px;
    }

    .about__pillars {
        gap: 20px;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Contact - prevent overflow */
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .contact__form {
        padding: 24px;
    }

    .contact__info-card {
        padding: 24px;
    }

    .contact__map iframe {
        width: 100%;
        border-radius: 8px;
    }

    /* CTA */
    .cta-banner {
        padding: 72px 0;
    }

    .cta-banner__content {
        padding: 0 20px;
    }

    /* Clients */
    .clients {
        padding: 56px 0 48px;
    }

    .clients__track {
        gap: 28px;
    }

    .clients__item {
        padding: 0 8px;
    }

    .clients__item img {
        height: 54px;
    }

    /* Hero */
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Differentials */
    .diff__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer {
        padding: 56px 0 0;
    }

    .footer__logo {
        height: 60px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    /* Header */
    .header__logo img {
        height: 50px;
    }

    /* Hero */
    .hero__content {
        padding: 100px 16px 60px;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
    }

    /* Differentials */
    .diff__grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact__form {
        padding: 16px;
    }

    .contact__info-card {
        padding: 20px;
    }

    .contact__map {
        margin: 0;
        border-radius: var(--radius-md);
    }

    .contact__map iframe {
        border-radius: var(--radius-md) !important;
    }

    /* About */
    .about__pillars {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .about__pillar {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .about__pillar span br {
        display: none;
    }

    /* Clients - carrossel infinito com drag também no mobile */
    .clients__carousel {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }

    .clients__track {
        gap: 24px;
    }

    /* Buttons */
    .btn--lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float__tooltip {
        display: none;
    }

    /* CTA */
    .cta-banner {
        padding: 56px 0;
    }

    .cta-banner__content {
        padding: 0 16px;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .about__image-wrapper img {
        animation: none;
    }
}
