:root {
  --bg: #e7f6ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --surface-dark: #0f172a;
  --text: #0f172a;
  --muted: #364151;
  --line: rgba(15, 23, 42, 0.1);
  --accent: #ff6900;
  --accent-deep: #cf5200;
  --accent-soft: rgba(255, 105, 0, 0.18);
  --shadow: 0 30px 80px rgba(7, 6, 20, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 105, 0, 0.15), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(0, 103, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #eff8ff 0%, #f8fbff 55%, #eef4fb 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
  opacity: 0.4;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  position: relative;
  overflow: clip;
}

.section,
.metrics-strip,
.site-footer {
  width: var(--container);
  margin-inline: auto;
}

.cta {
  width: 100%;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  backdrop-filter: blur(0px);
  background: transparent;
  box-shadow: none;
}

/* Nav text always white — header é sempre escuro ou transparente */
.site-header .site-nav,
.site-header .site-nav a {
  color: rgba(255, 255, 255, 0.88);
}


.brand {
  margin-left: 16px;
}

.cta-header {
  margin-right: 16px;
}

.brand img {
  width: 145px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 220ms ease;
}

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

/* Hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  transition: transform 280ms ease, opacity 280ms ease, width 280ms ease;
}

.menu-toggle.is-open span:nth-child(2) {
  width: 14px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Buttons ─────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8d3a 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(255, 105, 0, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

/* ─── Sections ────────────────────────────────────────────── */

.section {
  padding: 96px 0;
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 82vh;
  width: 100%;
  max-width: none;
  padding: 140px 48px 56px;
  margin-inline: 0;
  margin-top: 0;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
  box-shadow: 0 50px 120px rgba(15, 23, 42, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 6, 20, 0.86) 0%, rgba(7, 6, 20, 0.68) 42%, rgba(7, 6, 20, 0.48) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.58));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 0, 0.42), transparent 68%);
  z-index: -1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-copy .eyebrow {
  color: #ffb37b;
}

.hero-copy h1 {
  color: #ffffff;
}

.hero-copy .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(0) scale(1.0);
  filter: saturate(1.08) contrast(1.06);
}

/* ─── Typography ──────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Raleway", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  max-width: 12ch;
}

h2 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.1;
  max-width: 12ch;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}

.hero-text,
.about-story p,
.about-mockup figcaption,
.featured-copy p,
.service-card p,
.process-step p,
.testimonial-card p,
.cta-panel p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  max-width: 760px;
}

/* ─── Cards (shared glass style) ─────────────────────────── */

.signal-card,
.feature-card,
.service-card,
.process-step,
.testimonial-card,
.project-card,
.featured-project,
.cta-panel,
.metrics-strip,
.hero-floating {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.service-card:hover,
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(7, 6, 20, 0.22);
  border-color: rgba(255, 105, 0, 0.45);
}

.signal-card,
.feature-card,
.service-card,
.process-step,
.testimonial-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.signal-card strong,
.feature-card h3,
.service-card h3,
.process-step h3 {
  display: block;
  margin-bottom: 12px;
}

.signal-card span {
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.6;
}

/* ─── Metrics ─────────────────────────────────────────────── */

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
  margin-top: 32px;
}

.metrics-strip article {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.metrics-strip strong {
  font-family: "Raleway", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  color: var(--accent);
}

.metrics-strip span {
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Marquee ─────────────────────────────────────────────── */

.marquee-wrap {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  margin-top: 18px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  white-space: nowrap;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-track .dot {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Section headings ────────────────────────────────────── */

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

/* ─── About ───────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: 34px;
  overflow: hidden;
}

.about-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 40px;
}

.about-left .section-heading {
  margin-bottom: 0;
}

.about-story {
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15));
  border-radius: var(--radius-lg);
}

.about-cta {
  align-self: flex-start;
}

.about-photo {
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
  transition: transform 500ms ease;
}

.about-photo:hover img {
  transform: scale(1.03);
}

.about-stack,
.service-grid {
  display: grid;
  gap: 18px;
}

.about-stack {
  grid-template-columns: 1fr;
  padding: 24px;
  gap: 14px;
}

.feature-card span,
.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* ─── Portfolio ───────────────────────────────────────────── */

.portfolio-showcase {
  display: grid;
  gap: 22px;
}

.featured-project {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  overflow: hidden;
  border-radius: 34px;
  height: 460px;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 400ms ease, opacity 280ms ease;
}

.featured-media img:hover {
  transform: scale(1.03);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 36px;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255, 105, 0, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 246, 255, 0.88));
}

.featured-copy p {
  flex: 1;
  overflow: hidden;
}

.featured-post-date {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-cta {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border-radius: 24px;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 400ms ease;
}

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

.project-card div {
  padding: 18px;
}

.project-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card strong {
  font-family: "Raleway", sans-serif;
  line-height: 1.3;
}

.blog-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Portfolio Carousel ──────────────────────────────────── */

.portfolio-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 28px 0;
}

.portfolio-carousel-wrap::before,
.portfolio-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.portfolio-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, #e7f6ff, transparent);
}

.portfolio-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, #e7f6ff, transparent);
}

.portfolio-carousel {
  display: flex;
  gap: 18px;
  width: 100%;
  will-change: transform;
  transition: transform 420ms ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}

.carousel-btn:hover {
  background: var(--surface-strong);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }

.portfolio-carousel .project-card {
  width: 300px;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
  transition: transform 240ms ease;
}

.portfolio-carousel .project-card:hover {
  transform: translateY(-4px);
}

.portfolio-carousel .project-card.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.portfolio-carousel .project-card.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

/* ─── Portfolio CTA ──────────────────────────────────────── */

.portfolio-cta {
  margin-top: 28px;
  text-align: center;
}

.portfolio-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: gap 220ms ease;
}

.portfolio-cta a:hover {
  gap: 14px;
}

.noscript-portfolio-msg {
  margin-top: 12px;
  color: var(--muted);
}

/* ─── Services ────────────────────────────────────────────── */

.service-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 255px;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 0, 0.2), transparent 70%);
}

/* ─── Process ─────────────────────────────────────────────── */

.process-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ─── Testimonials ────────────────────────────────────────── */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

.testimonial-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-featured {
  grid-row: span 2;
  padding: 48px;
}

.tcard-quote {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: "Raleway", sans-serif;
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
}

.testimonial-featured .tcard-quote {
  font-size: 16rem;
  opacity: 0.08;
  top: 0;
  right: 12px;
}

.tcard-stars {
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 3px;
  flex-shrink: 0;
}

.tcard-text {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
  font-style: italic;
  flex: 1;
}

.testimonial-featured .tcard-text {
  font-size: 1.18rem;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.tcard-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8d3a 100%);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(255, 105, 0, 0.32);
}

.tcard-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tcard-info strong {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.tcard-info span {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.68;
}

/* ─── CTA ─────────────────────────────────────────────────── */

.cta-panel {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 26px;
  width: 100%;
  padding: 38px max(20px, calc((100vw - var(--container)) / 2 + 38px));
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 105, 0, 0.18), transparent 25%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(54, 65, 81, 0.94));
  color: #fff;
}

.cta-panel p,
.cta-details p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .eyebrow {
  color: #ffb37b;
}

.cta-details {
  display: grid;
  align-content: start;
  gap: 12px;
}

.cta-details > a {
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-mail-grid {
  display: grid;
  gap: 10px;
}

.contact-mail-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-mail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb37b;
}

.contact-mail-link {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

.contact-mail-link:hover {
  text-decoration: underline;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.cta .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ─── Footer ──────────────────────────────────────────────── */

.site-footer {
  padding: 32px 0 40px;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: background 200ms, color 200ms, transform 200ms, border-color 200ms;
}

.footer-social a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 105, 0, 0.3);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ─── Lightbox ────────────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 6, 20, 0.92);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms, border-color 200ms;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ─── WhatsApp FAB ────────────────────────────────────────── */

.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 44px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ─── Reveal animations ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--delay, 0s);
}

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

/* ─── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .site-nav a::after,
  .marquee-track {
    transition: none;
    animation: none;
  }

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

/* ─── Breakpoint: 1100px ──────────────────────────────────── */

@media (max-width: 1100px) {
  .about-grid,
  .featured-project,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .featured-project {
    height: auto;
    grid-template-rows: auto auto;
  }

  .featured-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  .featured-copy {
    min-height: 0;
    padding: 30px;
  }

  .featured-copy p {
    flex: initial;
    overflow: visible;
  }

  .about-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px;
  }

  .service-grid,
  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Breakpoint: 820px ───────────────────────────────────── */

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 12px 16px;
    border-radius: 0 !important;
    background: rgba(10, 16, 32, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(18px) !important;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.32) !important;
  }

  .brand {
    margin-left: 0;
  }

  /* Quando o menu está aberto, sobrescreve os estilos inline do JS */
  .site-header.is-nav-open {
    background: rgba(10, 16, 32, 0.97) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(24px) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35) !important;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .cta-header {
    display: none;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    order: 4;
    width: 100%;
    gap: 0;
    padding: 8px 0 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 6px;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: 0.01em;
    transition: color 180ms ease, padding-left 180ms ease;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a:hover,
  .site-nav a:active {
    color: #fff !important;
    padding-left: 10px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 78vh;
    padding: 116px 22px 30px;
    margin-top: 0;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
  }

  .hero-signals,
  .metrics-strip,
  .about-grid,
  .about-stack,
  .service-grid,
  .process-line,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-featured {
    grid-row: auto;
    padding: 32px;
  }

  .section {
    padding: 72px 0;
  }

  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}

/* ─── Breakpoint: 560px ───────────────────────────────────── */

@media (max-width: 560px) {
  :root {
    --container: min(1180px, calc(100vw - 24px));
  }

  .site-header {
    margin-top: 0;
    padding: 10px 12px;
  }

  .brand img {
    width: 132px;
  }

  h1 {
    max-width: none;
  }

  .hero {
    min-height: auto;
    padding: 104px 12px 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10.5vw, 2.65rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .signal-card {
    padding: 18px;
  }

  .about-left,
  .featured-copy,
  .cta-panel {
    padding: 24px;
  }

  .featured-media {
    aspect-ratio: 4 / 3;
  }

  .featured-copy {
    gap: 12px;
    padding: 22px;
  }

  .featured-copy h3 {
    font-size: 1.9rem;
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .featured-copy p {
    margin: 4px 0 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .about-story {
    padding: 18px;
  }
}
