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

:root {
  --green:        #3D4F3E;
  --green-dark:   #2C3A2D;
  --cream:        #F0EFE5;
  --cream-dark:   #E4E3D8;
  --text:         #2C3A2D;
  --text-muted:   #6B7A6C;
  --text-faint:   #96A597;
  --white:        #FAFAF5;

  /* Base mobile portrait — método de áreas úteis */
  --content-max-width: 360px;
  --layout-gap: 16px;
}

/* As variáveis mudam por faixa; os valores nos media queries permanecem
   explícitos porque CSS custom properties não funcionam como condição de @media. */
@media (min-width: 768px) {
  :root { --content-max-width: 728px; --layout-gap: 16px; }
}
@media (min-width: 881px) {
  :root { --content-max-width: 780px; --layout-gap: 16px; }
}
@media (min-width: 1025px) {
  :root { --content-max-width: 924px; --layout-gap: 16px; }
}
@media (min-width: 1201px) {
  :root { --content-max-width: 1100px; --layout-gap: 32px; }
}
@media (min-width: 1367px) {
  :root { --content-max-width: 1280px; --layout-gap: 32px; }
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 1s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; opacity: 1; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(240,239,229,0.92);
  border-bottom: 1px solid rgba(61,79,62,0.12);
  transition: background 0.3s, transform 0.35s ease;
}
nav.nav-hidden { transform: translateY(-100%); }

.nav-inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s;
}
nav.scrolled .nav-inner { height: 52px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--green-dark);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-text > span {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--green);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--green) !important;
  color: var(--cream) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 2px;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--green-dark) !important; opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 0 solid transparent;
  padding: 0 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.2s ease, border-bottom-width 0.2s ease;
}
.mobile-menu.open {
  max-height: 500px;
  border-bottom-width: 1px;
  border-bottom-color: rgba(61,79,62,0.12);
  padding: 1.5rem 2rem 2rem;
}
.mobile-menu a,
.mobile-link {
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  /* Reserva espaço da navbar fixa, pra ela não sobrepor o Hero. */
  margin-top: 24px;
}

.hero-left {
  background: var(--green-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5rem 4rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(240,239,229,0.06);
}

.hero-left::after {
  content: '';
  position: absolute;
  top: 60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(240,239,229,0.04);
}

.hero-eyebrow {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(240,239,229,0.45);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: rgba(240,239,229,0.25);
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: rgba(240,239,229,0.6);
}

.hero-break { display: none; }
@media (min-width: 1201px) {
  .hero-break { display: block; content: ""; }
}

.hero-sub {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240,239,229,0.55);
  max-width: 340px;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 220px;
  background: var(--cream);
  color: var(--green-dark);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn-hero-primary:hover { background: var(--cream-dark); transform: translateY(-1px); }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 220px;
  background: transparent;
  color: rgba(240,239,229,0.7);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  border: 1px solid rgba(240,239,229,0.2);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-hero-outline:hover {
  border-color: rgba(240,239,229,0.45);
  color: var(--cream);
  transform: translateY(-1px);
}

/* Hero right — slideshow */
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--green);
}

.hero-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.77,0,0.18,1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
}

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


.hero-slide-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}


/* ── TICKER ── */
.ticker-section {
  background: var(--green-dark);
  overflow: hidden;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(240,239,229,0.06);
  border-bottom: 1px solid rgba(240,239,229,0.06);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 55s linear infinite;
  width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  padding-right: 0.75rem;
}

.ticker-diamond {
  width: 4px; height: 4px;
  background: var(--cream);
  transform: rotate(45deg);
  flex-shrink: 0;
}

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

/* ── SECTIONS SHARED ── */
section {
  padding: 6rem 2rem;
}

.section-inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--text-muted);
}

.faq-list { max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) {
  .section-title.mobile-center { text-align: center; }
}
@media (min-width: 1025px) {
  .section-title { text-align: center; }
}

/* FAQ: bloco centralizado na página; título centralizado, perguntas à esquerda. */
#faq .section-title {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SOBRE ── */
.sobre {
  background: var(--cream);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--layout-gap);
  align-items: stretch;
  margin-top: 0;
}

.sobre-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sobre-image-main {
  width: 100%;
  flex: 1;
  min-height: 300px;
  background: var(--green-dark);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.sobre-image-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  inset: 0;
}


.sobre-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(61,79,62,0.15);
  border-radius: 2px;
  z-index: -1;
}

.sobre-content { padding-right: 1rem; }

.sobre-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-top: 2rem;
  letter-spacing: 0.015em;
}

.sobre-details {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--layout-gap);
}

.sobre-detail {
  background: var(--green-dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  transition: background 0.3s;
}

.sobre-detail:hover {
  background: rgba(61,79,62,0.6);
}

@media (max-width: 767px) {
  .sobre-details { grid-template-columns: 1fr; }
}

.sobre-cta {
  margin-top: 3rem;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--green);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  border: 1px solid rgba(61,79,62,0.25);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.sobre-cta:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-1px);
}

/* ── SERVIÇOS ── */
.servicos {
  background: var(--green-dark);
  padding: 6rem 2rem;
}

.servicos .section-title { color: var(--cream); }
.servicos .section-title em { color: rgba(240,239,229,0.45); }

.servicos-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--layout-gap);
}

.servico-card {
  background: var(--green-dark);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.servico-card:hover {
  background: rgba(61,79,62,0.6);
}

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

.servico-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: rgba(240,239,229,0.5);
}

.servico-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.servico-desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(240,239,229,0.45);
  font-weight: 300;
}

/* ── PORTFÓLIO ── */
.portfolio {
  background: var(--cream);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.portfolio-link {
  margin-top: 3.5rem;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--green);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  border: 1px solid rgba(61,79,62,0.25);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.portfolio-link:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-1px);
}

/* Notebook/Desktop: grid de 4 colunas — botão do tamanho de 2 cards, centralizado. */
@media (min-width: 1201px) {
  .portfolio-link {
    width: calc(50% - var(--layout-gap) / 2);
    margin-left: auto;
    margin-right: auto;
  }
}


/* Portfolio grid */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--layout-gap);
}

.proj-card {
  flex: 0 0 calc((100% - 3 * var(--layout-gap)) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s;
  border: 1px solid rgba(61,79,62,0.08);
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,58,45,0.12);
}

.proj-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.proj-card:hover .proj-card-img img { transform: scale(1.04); }


.proj-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}

.proj-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proj-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.proj-card-type {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.proj-card-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(61,79,62,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.proj-card:hover .proj-card-arrow {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--cream);
}

@media (max-width: 767px) {
  .portfolio {
    padding-left: 0;
    padding-right: 0;
  }
  .portfolio .section-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .portfolio-header {
    margin-bottom: 2rem;
  }
  .portfolio-grid {
    gap: var(--layout-gap);
    padding: 0;
    flex-direction: column;
  }
  .portfolio-grid .proj-card {
    flex: 0 0 100%;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(61,79,62,0.1);
  }
  .proj-card-img {
    aspect-ratio: 4 / 3;
    width: 100%;
  }
  .proj-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .proj-card-name {
    font-size: 20px;
  }
  .proj-card-arrow {
    width: 42px;
    height: 42px;
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--cream);
  }

  .contato-items-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
  }
  .contato-item {
    align-items: flex-start;
    text-align: left;
  }
  .contato-item:nth-child(even) {
    align-items: flex-end;
    text-align: right;
  }
}

/* ── PROCESSO ── */
.processo {
  background: var(--green-dark);
  padding: 6rem 2rem;
}

.processo .section-title { color: var(--cream); }
.processo .section-title em { color: rgba(240,239,229,0.45); }

.processo-grid {
  margin-top: 3.5rem;
}

.processo-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--layout-gap);
}

.passo {
  flex: 0 0 100%;
  background: rgba(240,239,229,0.06);
  padding: 2rem;
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.passo:hover {
  background: rgba(240,239,229,0.12);
}

.passo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.passo-num {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: rgba(240,239,229,0.35);
  line-height: 1;
  flex-shrink: 0;
}

.passo-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--cream);
}

.passo-desc {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(240,239,229,0.45);
  font-weight: 300;
}

@media (min-width: 768px) {
  .passo { flex: 0 0 calc((100% - var(--layout-gap)) / 2); }
}

@media (min-width: 1025px) {
  .passo { flex: 0 0 calc((100% - 2 * var(--layout-gap)) / 3); }
}

@media (min-width: 1367px) {
  .passo { flex: 0 0 calc((100% - 4 * var(--layout-gap)) / 5); }
}

/* Reduz o respiro de cima, que somado ao do FAQ ficava grande demais. */
.cta-final { padding-top: 2.5rem; }

/* Banner de CTA, abaixo dos cards de passos — empilhado e centralizado. */
.processo-banner {
  margin-top: var(--layout-gap);
  background: var(--green-dark);
  border-radius: 2px;
  padding: 2.5rem;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.processo-banner-text { width: 100%; }

.processo-aside-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: rgba(240,239,229,0.8);
  margin-bottom: 1rem;
  text-align: center;
}

.processo-aside-sub {
  font-size: 12px;
  font-weight: 300;
  color: rgba(240,239,229,0.4);
  line-height: 1.75;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.processo-aside-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 280px;
  background: rgba(240,239,229,0.1);
  color: rgba(240,239,229,0.75);
  text-decoration: none;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(240,239,229,0.12);
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}
.processo-aside-cta:hover {
  background: rgba(240,239,229,0.15);
  border-color: rgba(240,239,229,0.25);
}

/* ── CONTATO ── */
.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

.contato-items-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}

.contato-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

.contato-item-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240,239,229,0.3);
}

.contato-item-value {
  font-size: 15px;
  font-weight: 300;
  color: rgba(240,239,229,0.75);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
a.contato-item-value:hover { color: var(--cream); }

.contato-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(240,239,229,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(240,239,229,0.45);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover {
  border-color: rgba(240,239,229,0.35);
  color: rgba(240,239,229,0.8);
}
.social-link svg { width: 15px; height: 15px; }

/* ── FOOTER ── */
footer {
  background: #1e2a1f;
  padding: 3.5rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(240,239,229,0.05);
}

.footer-copy,
.footer-dev {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240,239,229,0.08);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-dev {
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,239,229,0.4);
  margin-top: 0.5rem;
}

.footer-dev-link {
  color: #F56A00;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-dev-link:hover {
  opacity: 0.75;
}

/* ── WHATSAPP FLOAT ── */
.whats-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.25s ease;
}
.whats-float.wa-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}
.whats-float:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.whats-float svg { width: 26px; height: 26px; display: block; }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.sobre-mobile-img {
  display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: flex;
    padding-left: max(1.5rem, calc((100vw - var(--content-max-width)) / 2));
    padding-right: max(1.5rem, calc((100vw - var(--content-max-width)) / 2));
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(220px, 50vw, 420px) 1fr;
    min-height: auto;
    /* Aqui embaixo (mobile/tablet) usa a altura cheia da navbar (64px),
       diferente do desktop (32px), pra não sobrepor o slideshow. */
    margin-top: 64px;
    /* Zera o padding herdado da regra genérica 'section', para o
       fundo/imagem realmente ocuparem a largura e o topo totais. */
    padding: 0;
  }

  .hero-right { grid-row: 1; }

  .hero-left {
    padding: 3rem 1.75rem 3.5rem;
    grid-row: 2;
  }

  /* Fundo e imagem continuam full-width; o conteúdo respeita a área útil. */
  .hero-left > * {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-title {
    text-align: center;
    font-size: clamp(28px, 8vw, 48px);
  }

  .hero-sub {
    text-align: center;
    max-width: var(--content-max-width);
  }

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

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
  }

  .sobre-grid { grid-template-columns: 1fr; gap: var(--layout-gap); }

  .contato-items-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .contato-item { align-items: center; text-align: center; }

  .sobre-image-wrap { display: none; }
  .sobre-mobile-img {
    display: block;
    width: 100%;
    height: clamp(200px, 56vw, 340px);
    object-fit: cover;
    object-position: center 15%;
    border-radius: 2px;
    margin: 1.5rem 0;
  }

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

  .portfolio-grid { justify-content: flex-start; }
  .portfolio-grid .proj-card { flex: 0 0 calc((100% - var(--layout-gap)) / 2); }
  .portfolio-grid .proj-card .proj-card-img { aspect-ratio: 16 / 9; }

  section { padding: 4rem 1.5rem; }
  .processo { padding: 4rem 1.5rem; }


}

/* Celular retrato: área útil de até 360px e grids em uma coluna. */
@media (max-width: 767px) {
  .servicos-grid { grid-template-columns: 1fr; }
  .portfolio-grid .proj-card { flex-basis: 100%; }

  .nav-inner { padding-left: 1rem; padding-right: 1rem; }
  .hero-title { font-size: clamp(32px, 9vw, 40px); }
  .section-title { font-size: clamp(32px, 9vw, 38px); }
  .servico-card { padding: 2rem; }
  .servico-title { font-size: 22px; }
  .sobre-text { font-size: 14px; line-height: 1.8; }
  .passo-title { font-size: 21px; }
  .contato-item-value { font-size: 13px; }
  .footer-copy { font-size: 8.5px; letter-spacing: 0.15em; }
}

/* Celular paisagem: 728px, seis colunas conceituais e gutter de 16px. */
@media (min-width: 768px) and (max-width: 880px) {
  .hero-title { font-size: clamp(40px, 6vw, 48px); }
  .section-title { font-size: 40px; }
}

/* Removido: exceção de paisagem que forçava object-fit:contain (causava barras verdes indesejadas). */

/* Tablet retrato: 780px. O layout permanece empilhado para leitura confortável. */
@media (min-width: 881px) and (max-width: 1024px) {
  .hero-title { font-size: 52px; }
  .section-title { font-size: 44px; }
}

/* Tablet paisagem: 924px. Portfólio usa dois cartões por linha (3 de 6 colunas). */
@media (min-width: 1025px) and (max-width: 1200px) {
  .portfolio-grid { justify-content: flex-start; }
  .portfolio-grid .proj-card { flex: 0 0 calc((100% - var(--layout-gap)) / 2); }
  .portfolio-grid .proj-card .proj-card-img { aspect-ratio: 16 / 9; }
  .hero-left { padding: 4rem 3rem 3rem; }
  .hero-title { font-size: 56px; }
  .section-title { font-size: 48px; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .btn-hero-primary,
  .btn-hero-outline { width: 100%; }
}

/* Do tablet paisagem em diante, mostra a foto inteira no hero. */
@media (min-width: 1025px) {
  /* Mantém o hero dentro da área útil: 924px, 1100px ou 1280px. */
  .hero {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    /* Altura acompanha o conteúdo em toda a faixa lado a lado, evitando
       salto de 100vh entre Tablet Paisagem/Notebook/Desktop. */
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    /* Zera o padding lateral herdado da regra genérica 'section',
       que desalinhava o Hero em relação às demais seções (bug real). */
    padding-left: 0;
    padding-right: 0;
  }
  .hero-right {
    padding-top: 0;
    padding-bottom: 0;
    background: var(--green-dark);
  }
  .hero-slide img {
    object-fit: cover;
  }
  .hero-sub {
    max-width: 100%;
  }
}

/* Notebook: 1100px, com escala intermediária antes do desktop de 1280px. */
@media (min-width: 1201px) and (max-width: 1366px) {
  .hero-left { padding: 4rem 3rem 3rem; }
  .hero-title { font-size: 60px; }
  .section-title { font-size: 52px; }
  .hero-actions { gap: 0.75rem; }
  .btn-hero-primary,
  .btn-hero-outline { flex: 1; }
}

/* Desktop e telas amplas: 1280px e grid de 12 colunas (cartões em 3 colunas cada). */
@media (min-width: 1367px) {
  .hero-left { padding: 4rem 3rem 3rem; }
  .hero-title { font-size: 64px; }
  .section-title { font-size: 56px; }
  .hero-actions { gap: 0.75rem; }
  .btn-hero-primary,
  .btn-hero-outline { flex: 1; }
}

/* ── MODAL PROJETO ── */
.proj-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,28,21,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.proj-modal-overlay.open { display: flex; }

.proj-modal-box {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  box-shadow: 0 32px 80px rgba(20,28,21,0.35);
  position: relative;
  animation: modalIn 0.28s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.proj-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  background: rgba(240,239,229,0.92);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}
.proj-modal-close:hover { background: var(--cream-dark); }

/* Slider */
.proj-modal-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background: var(--cream-dark);
  overflow: hidden;
}
.proj-modal-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.proj-modal-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Placeholder sem foto */
.proj-modal-slide-placeholder {
  min-width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-faint);
}
.proj-modal-slide-placeholder svg { opacity: 0.35; }
.proj-modal-slide-placeholder span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }

.proj-modal-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(240,239,229,0.85);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, opacity 0.2s;
  z-index: 5;
}
.proj-modal-nav:hover { background: var(--cream); }
.proj-modal-nav.prev { left: 0.75rem; }
.proj-modal-nav.next { right: 0.75rem; }
.proj-modal-nav.hidden { opacity: 0; pointer-events: none; }

.proj-modal-dots {
  position: absolute;
  bottom: 0.9rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.proj-modal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(240,239,229,0.45);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.proj-modal-dot.active { background: var(--cream); transform: scale(1.3); }


/* Info panel (mobile/base) */
.proj-modal-info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}
.proj-modal-meta { border-bottom: 1px solid var(--cream-dark); padding-bottom: 1rem; }
.proj-modal-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.proj-modal-type {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}
.proj-modal-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}
.proj-modal-desc p { margin-bottom: 0.9em; }
.proj-modal-desc p:last-child { margin-bottom: 0; }

.proj-modal-whats {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.15s;
  align-self: stretch;
  justify-content: center;
  flex-shrink: 0;
}
.proj-modal-whats svg { width: 20px; height: 20px; flex-shrink: 0; }
.proj-modal-whats svg path { fill: white; }
.proj-modal-whats:hover { background: #1ebe5d; transform: translateY(-1px); }

/* Desktop: lado a lado */
@media (min-width: 1201px) {
  .proj-modal-box {
    flex-direction: row;
    max-width: 1000px;
    width: 90vw;
    align-items: flex-start;
    overflow: hidden;
  }
  .proj-modal-slider {
    width: 60%;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 6px 0 0 6px;
    overflow: hidden;
  }
  .proj-modal-info {
    width: 40%;
    flex-shrink: 0;
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--cream-dark);
    align-self: stretch;
    overflow: hidden;
    gap: 0;
  }
  .proj-modal-meta { flex-shrink: 0; margin-bottom: 1rem; }
  .proj-modal-desc { flex: 1; overflow: hidden; }
  .proj-modal-whats {
    flex-shrink: 0;
    margin-top: 1.25rem;
    padding: 0.9rem 1.25rem;
    font-size: 13px;
  }
  .proj-modal-close { top: 0.75rem; right: 0.75rem; }
}

/* Tablet / janela estreita */
@media (min-width: 601px) and (max-width: 1200px) {
  .proj-modal-box {
    max-width: 560px;
    max-height: 90vh;
    flex-direction: column;
  }
  .proj-modal-slider {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
  }
}

/* ── FAQ (animação abrir/fechar) ── */
.faq-list details summary svg {
  transition: transform 0.3s ease;
}
.faq-list details.is-open summary svg {
  transform: rotate(180deg);
}
.faq-list details > p {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}
