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

:root {
    --navy: #023459;
    --navy-deep: #01243f;
    --green: #00d173;
    --green-dark: #00ae61;
    --white: #ffffff;
    --off-white: #f3f6f4;
    --gray: #494a4b;
    --text: #18313f;
    --line: rgba(2, 52, 89, 0.14);
    --shadow: 0 24px 70px rgba(1, 36, 63, 0.14);
    --radius-lg: 34px;
    --radius-md: 22px;
    --container: 1200px;
    --header-height: 88px;
    --transition: 280ms cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Poppins", sans-serif;
    line-height: 1.12;
    color: var(--navy);
}

h1 {
    font-size: clamp(3rem, 7vw, 6.9rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2.25rem, 4.7vw, 4.8rem);
    letter-spacing: -0.045em;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: clamp(86px, 11vw, 160px) 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy);
    transform: translateY(-140%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--green-dark);
    font-family: "Poppins", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-3px);
}

.button--primary {
    color: var(--navy-deep);
    background: var(--green);
    box-shadow: 0 14px 34px rgba(0, 209, 115, 0.28);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: #14df84;
    box-shadow: 0 20px 40px rgba(0, 209, 115, 0.36);
}

.button--dark {
    color: var(--white);
    background: var(--navy);
}

.text-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.text-link::after {
    width: 32px;
    height: 1px;
    margin-left: 12px;
    background: currentColor;
    content: "";
    transition: width var(--transition);
}

.text-link:hover::after {
    width: 54px;
}

.text-link--dark {
    color: var(--navy);
}

/* Header */
.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: var(--header-height);
    color: var(--white);
    transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.site-header.is-scrolled {
    height: 74px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(1, 36, 63, 0.1);
    backdrop-filter: blur(15px);
}

.header-inner {
    display: grid;
    height: 100%;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
}

.brand img {
    width: 116px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition), width var(--transition);
}

.site-header.is-scrolled .brand img {
    width: 102px;
    filter: none;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.7vw, 36px);
}

.main-nav a {
    position: relative;
    font-family: "Poppins", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--green);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.button--header {
    min-height: 44px;
    padding: 10px 18px;
    color: var(--navy);
    background: var(--white);
}

.site-header.is-scrolled .button--header {
    color: var(--white);
    background: var(--navy);
}

.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: max(760px, 100svh);
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--navy);
    isolation: isolate;
}

.hero-media,
.hero-overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.hero-media {
    background: url("../images/hero-lago-natural.webp") center 46% / cover no-repeat;
    transform: scale(1.04);
    animation: heroZoom 16s ease-out forwards;
}

.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(1, 28, 49, 0.88) 0%, rgba(1, 36, 63, 0.62) 48%, rgba(1, 36, 63, 0.18) 76%),
        linear-gradient(0deg, rgba(1, 28, 49, 0.7) 0%, transparent 42%);
}

@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero-content {
    padding-top: 80px;
    padding-bottom: 130px;
}

.hero .eyebrow {
    color: var(--green);
}

.hero h1 {
    max-width: 930px;
    margin-bottom: 26px;
    color: var(--white);
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero-copy {
    max-width: 670px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-facts {
    position: absolute;
    right: 6vw;
    bottom: 42px;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-facts div {
    padding: 18px 22px;
    background: rgba(1, 36, 63, 0.62);
}

.hero-facts strong,
.hero-facts span {
    display: block;
}

.hero-facts strong {
    margin-bottom: 3px;
    color: var(--green);
    font-family: "Poppins", sans-serif;
    font-size: 0.82rem;
}

.hero-facts span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.74rem;
}

.scroll-cue {
    position: absolute;
    bottom: 38px;
    left: 50%;
    width: 30px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 20px;
    transform: translateX(-50%);
}

.scroll-cue span {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: var(--green);
    transform: translateX(-50%);
    animation: scrollCue 1.9s infinite;
}

@keyframes scrollCue {
    0% { opacity: 0; transform: translate(-50%, 0); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* Intro */
.intro {
    overflow: hidden;
    background: var(--white);
}

.intro::before {
    position: absolute;
    top: 14%;
    right: -120px;
    width: 430px;
    height: 430px;
    border: 80px solid rgba(0, 209, 115, 0.06);
    border-radius: 50%;
    content: "";
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(50px, 8vw, 120px);
    align-items: start;
}

.section-heading h2 {
    margin-bottom: 0;
}

.intro-copy {
    padding-top: 55px;
}

.intro-copy p {
    margin-bottom: 22px;
    color: #536773;
    font-size: 1.08rem;
}

/* Feature */
.feature {
    background: var(--off-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(48px, 7vw, 100px);
    align-items: center;
}

.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    min-height: 650px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.image-note {
    position: absolute;
    right: -36px;
    bottom: 40px;
    max-width: 250px;
    padding: 18px 22px;
    color: var(--white);
    background: var(--navy);
    border-left: 4px solid var(--green);
    font-family: "Poppins", sans-serif;
    font-size: 0.83rem;
}

.feature-content p {
    color: #536773;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 36px;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(0, 209, 115, 0.12);
    content: "";
}

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

.section-heading--center {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading--center > p:last-child {
    margin-top: 18px;
    color: #61737e;
}

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

.service-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 209, 115, 0.65);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
}

.service-card--featured {
    color: var(--white);
    border-color: var(--navy);
    background: linear-gradient(155deg, var(--navy) 20%, #045a6c 72%, var(--green-dark));
}

.service-card--featured h3,
.service-card--featured a {
    color: var(--white);
}

.service-number {
    margin-bottom: auto;
    color: var(--green);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.service-card h3 {
    margin: 34px 0 14px;
}

.service-card p {
    color: #60737d;
    font-size: 0.93rem;
}

.service-card--featured p {
    color: rgba(255, 255, 255, 0.74);
}

.service-card a {
    margin-top: 20px;
    color: var(--navy);
    font-family: "Poppins", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration-color: var(--green);
    text-underline-offset: 5px;
}

/* Manifesto */
.manifesto {
    overflow: hidden;
    color: var(--white);
    background: var(--navy-deep);
}

.manifesto-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background:
        radial-gradient(circle at 82% 20%, var(--green), transparent 24%),
        linear-gradient(120deg, transparent 56%, rgba(0, 209, 115, 0.2));
}

.manifesto-inner {
    position: relative;
}

.manifesto-title {
    max-width: 880px;
    margin-bottom: 70px;
}

.manifesto h2,
.manifesto h3 {
    color: var(--white);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.manifesto-grid article {
    min-height: 280px;
    padding: 32px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.manifesto-grid article:last-child {
    border-right: 0;
}

.manifesto-grid strong {
    display: block;
    margin-bottom: 56px;
    color: var(--green);
    font-family: "Poppins", sans-serif;
}

.manifesto-grid p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

/* Process */
.process {
    background: var(--off-white);
}

.process .section-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.process-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.process-list li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 38px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.process-list > li > span {
    color: var(--green-dark);
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.process-list li div {
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: 50px;
}

.process-list h3,
.process-list p {
    margin: 0;
}

.process-list p {
    color: #60737d;
}

/* Projects */
.projects {
    background: var(--white);
}

.section-heading--split {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 60px;
}

.section-heading--split > p {
    color: #60737d;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
}

.project-card {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--navy);
}

.project-card--large {
    grid-row: span 2;
    min-height: 1022px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.project-card:hover img {
    transform: scale(1.045);
}

.project-card::after {
    position: absolute;
    inset: 30% 0 0;
    background: linear-gradient(0deg, rgba(1, 28, 49, 0.95), transparent);
    content: "";
}

.project-info {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 36px;
    color: var(--white);
}

.project-info span {
    color: var(--green);
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 8px 0 14px;
    color: var(--white);
}

.project-info p {
    max-width: 620px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.87rem;
}

.before-after {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 50px;
    align-items: center;
    margin-top: 90px;
    padding: clamp(28px, 5vw, 60px);
    border-radius: var(--radius-lg);
    background: var(--off-white);
}

.before-after-copy p {
    color: #60737d;
}

.comparison {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    user-select: none;
}

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

.comparison-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.comparison-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 52%;
    overflow: hidden;
}

.comparison-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.comparison input {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.comparison-handle {
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    left: 52%;
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(2, 52, 89, 0.15);
    transform: translateX(-50%);
}

.comparison-handle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 8px 24px rgba(1, 36, 63, 0.28);
    content: "↔";
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 42px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.comparison-label {
    position: absolute;
    z-index: 3;
    top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(1, 36, 63, 0.72);
    font-family: "Poppins", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
}

.comparison-label--left { left: 16px; }
.comparison-label--right { right: 16px; }

/* Contact */
.contact {
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-deep), var(--navy) 64%, #075d6b);
}

.contact::after {
    position: absolute;
    top: -180px;
    right: -100px;
    width: 520px;
    height: 520px;
    border: 110px solid rgba(0, 209, 115, 0.09);
    border-radius: 50%;
    content: "";
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 100px;
    align-items: center;
}

.contact h2 {
    color: var(--white);
}

.contact-copy > p:not(.eyebrow) {
    max-width: 670px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
}

.contact-details {
    display: grid;
    gap: 25px;
}

.contact-details div {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-details span {
    display: block;
    margin-bottom: 5px;
    color: var(--green);
    font-family: "Poppins", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-details p,
.contact-details a {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

/* Footer */
.site-footer {
    padding: 34px 0;
    color: rgba(255, 255, 255, 0.64);
    background: #011c31;
    font-size: 0.78rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

.footer-brand img {
    width: 92px;
    filter: brightness(0) invert(1);
}

.footer-grid p {
    margin: 0;
}

/* ==========================================================
   Variáveis — troque aqui se depois quiser usar as cores do site
   ========================================================== */
:root {
  --wa-green: #25d366;
  --wa-green-dark: #1fb855;
  --wa-bg-menu: #1f2532;
  --wa-bg-menu-hover: #2a3142;
  --wa-text-main: #f4f6f8;
  --wa-text-sub: #9aa3b2;
  --wa-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --wa-radius: 14px;
  --wa-gap: 12px;
}

/* Reset leve só para a demo desta página de exemplo */
.page-demo {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 48px;
  color: #333;
}

/* ==========================================================
   Container do widget
   ========================================================== */
.wa-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--wa-gap);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================
   Botão flutuante
   ========================================================== */
.wa-widget__button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--wa-shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.wa-widget__button:hover {
  background: var(--wa-green-dark);
  transform: scale(1.05);
}

.wa-widget__button:active {
  transform: scale(0.96);
}

.wa-widget__icon {
  width: 28px;
  height: 28px;
  position: absolute;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.wa-widget__icon--close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.5);
}

/* Estado aberto: troca o ícone de WhatsApp pelo X */
.wa-widget--open .wa-widget__icon--whatsapp {
  opacity: 0;
  transform: rotate(45deg) scale(0.5);
}

.wa-widget--open .wa-widget__icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ==========================================================
   Menu de contatos
   ========================================================== */
.wa-widget__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--wa-bg-menu);
  border-radius: var(--wa-radius);
  padding: 10px;
  box-shadow: var(--wa-shadow);
  width: 300px;
  max-width: calc(100vw - 48px);

  /* animação de abrir/fechar */
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-widget--open .wa-widget__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-widget__item {
  display: flex;
  align-items: center;
  gap: var(--wa-gap);
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--wa-text-main);
  transition: background 0.15s ease;
}

.wa-widget__item:hover,
.wa-widget__item:focus-visible {
  background: var(--wa-bg-menu-hover);
  outline: none;
}

.wa-widget__item-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-widget__item-icon svg {
  width: 18px;
  height: 18px;
}

.wa-widget__item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wa-widget__item-text strong {
  font-size: 14.5px;
  font-weight: 600;
}

.wa-widget__item-text small {
  font-size: 12.5px;
  color: var(--wa-text-sub);
}

/* ==========================================================
   Responsivo — telas pequenas
   ========================================================== */
@media (max-width: 400px) {
  .wa-widget {
    right: 16px;
    bottom: 16px;
  }

  .wa-widget__menu {
    width: calc(100vw - 32px);
  }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 850ms cubic-bezier(.2, .8, .2, 1),
        transform 850ms cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 190ms; }
.reveal-delay-3 { transition-delay: 280ms; }

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1050px) {
    .button--header {
        display: none;
    }

    .header-inner {
        grid-template-columns: auto 1fr;
    }

    .main-nav {
        justify-content: flex-end;
    }

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

    .manifesto-grid article:nth-child(2) {
        border-right: 0;
    }

    .manifesto-grid article {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .hero-facts {
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 74px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        justify-self: end;
        width: 44px;
        height: 44px;
        display: grid;
        place-content: center;
        gap: 5px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        background: currentColor;
        transition: transform var(--transition), opacity var(--transition);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        color: var(--white);
        background: rgba(1, 28, 49, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity var(--transition), transform var(--transition);
    }

    .main-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        font-size: 1.35rem;
    }

    .site-header.is-scrolled .main-nav {
        color: var(--white);
    }

    .hero {
        min-height: 900px;
        align-items: flex-start;
    }

    .hero-content {
        padding-top: 160px;
        padding-bottom: 310px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 13vw, 5rem);
    }

    .hero-facts {
        bottom: 80px;
        grid-template-columns: 1fr;
    }

    .hero-facts div {
        padding: 11px 16px;
    }

    .scroll-cue {
        display: none;
    }

    .intro-grid,
    .feature-grid,
    .section-heading--split,
    .before-after,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .intro-copy {
        padding-top: 0;
    }

    .feature-image {
        order: 2;
    }

    .feature-image img {
        min-height: 520px;
    }

    .image-note {
        right: 18px;
        bottom: 18px;
    }

    .process-list li {
        grid-template-columns: 50px 1fr;
        gap: 12px;
    }

    .process-list li div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .project-card,
    .project-card--large {
        min-height: 620px;
        grid-row: auto;
    }

    .before-after {
        gap: 28px;
        margin-top: 50px;
    }

    .comparison-overlay img {
        width: 100%;
    }

    .contact-grid {
        gap: 55px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .footer-brand {
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 82px 0;
    }

    .hero {
        min-height: 920px;
    }

    .hero-content {
        padding-top: 135px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-grid,
    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 330px;
    }

    .manifesto-grid article,
    .manifesto-grid article:nth-child(2) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .manifesto-grid strong {
        margin-bottom: 30px;
    }

    .project-card,
    .project-card--large {
        min-height: 520px;
    }

    .project-info {
        padding: 26px;
    }

    .comparison {
        aspect-ratio: 4 / 5;
    }

    .comparison-overlay img {
        width: 100%;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 56px;
        min-height: 56px;
        padding: 0;
    }

    .whatsapp-float span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}


/* Galeria de projetos */
.project-gallery {
    margin-top: 90px;
}

.project-gallery-heading {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 36px;
}

.project-gallery-heading h3 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 310px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--navy);
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(.2, .8, .2, 1);
}

.gallery-item::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(1, 28, 49, .88), transparent);
    content: "";
}

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

.gallery-item figcaption {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 18px;
    left: 20px;
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: .82rem;
    font-weight: 600;
}

/* Vídeos */
.videos {
    background: var(--off-white);
}

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

.video-card {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--navy-deep);
    box-shadow: var(--shadow);
}

.video-card iframe {
    width: 100%;
    height: 100%;
    min-height: 640px;
    border: 0;
    background: var(--white);
}

/* Instagram */
.instagram {
    background: var(--white);
}

.instagram-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 46px;
}

.instagram-header h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1 / 1.18;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--navy);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(.2, .8, .2, 1);
}

.instagram-post::after {
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(0deg, rgba(1, 28, 49, .88), transparent);
    content: "";
}

.instagram-post span {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 16px;
    left: 18px;
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: .78rem;
    font-weight: 600;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-status {
    margin: 18px 0 0;
    color: #60737d;
    font-size: .78rem;
    text-align: center;
}

/* Correção do logo do rodapé */
.footer-brand {
    display: inline-flex;
    align-items: center;
}

.footer-brand img {
    width: min(240px, 46vw);
    height: auto;
    max-height: 64px;
    object-fit: contain;
    filter: none;
}

@media (max-width: 1050px) {
    .video-grid,
    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-card,
    .video-card iframe {
        min-height: 720px;
    }
}

@media (max-width: 820px) {
    .project-gallery-heading {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .instagram-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .project-gallery {
        margin-top: 56px;
    }

    .project-gallery-grid,
    .video-grid,
    .instagram-feed {
        grid-template-columns: 1fr;
    }

    .gallery-item--wide {
        grid-column: auto;
    }

    .project-gallery-grid {
        grid-auto-rows: 360px;
    }

    .video-card,
    .video-card iframe {
        min-height: 680px;
    }

    .instagram-post {
        aspect-ratio: 1 / 1.05;
    }
}
