/* ==========================================================================
   Voël Arquitetura
   ========================================================================== */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat.woff2') format('woff2');
}

:root {
  /* Cores da marca (mesmos valores do site original) */
  --azul: #2c3e4c;
  --azul-profundo: #1f2d38;
  --rosa: #fbd8cd;
  --caramelo: #b98963;
  --caramelo-texto: #8a6142;

  --papel: #f7f3ee;
  --branco: #ffffff;
  --texto: var(--azul);
  --texto-suave: #5b6871;
  --linha: rgba(44, 62, 76, 0.14);
  --linha-clara: rgba(255, 255, 255, 0.16);

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --fs-h1: clamp(2.75rem, 1.9rem + 3.6vw, 5.5rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.1vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);

  --maxw: 1360px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(88px, 6rem + 4vw, 168px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; }

:focus-visible { outline: 2px solid var(--caramelo); outline-offset: 4px; }
::selection { background: var(--rosa); color: var(--azul); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--azul);
  color: var(--branco);
  font-size: var(--fs-small);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--caramelo-texto);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
}
.eyebrow::before { content: ''; flex: 0 0 32px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--rosa); }

.display {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  font-variation-settings: 'opsz' 72;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.title-3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  font-variation-settings: 'opsz' 48;
  line-height: 1.2;
  text-wrap: balance;
}

.lead { color: var(--texto-suave); font-size: 1.0625rem; max-width: 56ch; }

/* --------------------------------------------------------------------------
   Botões e links
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--azul);
  --btn-fg: var(--branco);
  --btn-line: var(--azul);
  --btn-fill: var(--azul-profundo);
  --btn-fg-hover: var(--branco);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover); }

.btn__arrow { width: 22px; height: 10px; flex: none; transition: transform 0.45s var(--ease-out); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(5px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--azul); --btn-fill: var(--azul); }
.btn--rosa { --btn-bg: var(--rosa); --btn-fg: var(--azul); --btn-line: var(--rosa); --btn-fill: var(--branco); --btn-fg-hover: var(--azul); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--branco); --btn-line: rgba(255, 255, 255, 0.5); --btn-fill: var(--branco); --btn-fg-hover: var(--azul); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--linha);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.link-arrow:hover, .link-arrow:focus-visible { border-color: currentColor; color: var(--caramelo-texto); }
.link-arrow:hover .btn__arrow, .link-arrow:focus-visible .btn__arrow { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--papel);
  border-bottom: 1px solid var(--linha);
  transition: height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-solid { --header-h: 68px; box-shadow: 0 12px 32px -24px rgba(31, 45, 56, 0.35); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}

.brand { display: block; flex: none; }
.brand img { width: 128px; transition: width 0.4s var(--ease); }
.site-header.is-solid .brand img { width: 104px; }


.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 44px); }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }

.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-active::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--azul);
  color: var(--branco);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__phone svg { width: 16px; height: 16px; }
.nav__phone:hover, .nav__phone:focus-visible { background: var(--rosa); color: var(--azul); }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vh, 72px);
  color: var(--branco);
  background: var(--azul-profundo);
  overflow: clip;
}

/* Fotos de fundo que se alternam em fade */
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 55%); transform: scale(1); }
.hero__slide.is-active img { animation: hero-drift 9s var(--ease-out) both; }
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(31, 45, 56, 0.38) 0%, rgba(31, 45, 56, 0.12) 45%, transparent 70%),
    linear-gradient(to top, rgba(31, 45, 56, 0.62) 0%, rgba(31, 45, 56, 0.22) 40%, transparent 72%),
    linear-gradient(to bottom, rgba(31, 45, 56, 0.3), transparent 22%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.hero__grid .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
.hero__title {
  grid-column: 1 / span 8;
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 500;
  font-variation-settings: 'opsz' 72;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__aside {
  grid-column: 10 / span 3;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 6px;
}
.hero__aside p { color: rgba(255, 255, 255, 0.86); font-size: 1.0625rem; line-height: 1.6; }

.hero__bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(32px, 5vh, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--linha-clara);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero__dots { display: flex; gap: 10px; }
.hero__dots button {
  position: relative;
  width: 44px;
  height: 24px;
}
.hero__dots button::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 11px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 0.4s var(--ease);
}
.hero__dots button::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 11px;
  height: 2px;
  background: var(--branco);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dots button[aria-current="true"]::after { animation: dot-fill var(--slide-ms, 6000ms) linear forwards; }
.hero__dots button:hover::before, .hero__dots button:focus-visible::before { background: rgba(255, 255, 255, 0.6); }
.hero__dots button:focus-visible { outline-offset: 0; }
@keyframes dot-fill { to { transform: scaleX(1); } }

.js .hero__grid > * { opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease-out) forwards; }
.js .hero__grid > :nth-child(2) { animation-delay: 0.12s; }
.js .hero__grid > :nth-child(3) { animation-delay: 0.28s; }
.js .hero__grid > :nth-child(4) { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Cabeçalho transparente sobre o hero (home) */
.site-header--overlay { position: fixed; inset: 0 0 auto; background: transparent; border-bottom-color: transparent; color: var(--branco); }
.site-header--overlay .brand__dark { display: none; }
.site-header--overlay .nav__phone { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); }
.site-header--overlay.is-solid { background: var(--papel); border-bottom-color: var(--linha); color: var(--texto); }
.site-header--overlay.is-solid .brand__light, .site-header--overlay.is-open .brand__light { display: none; }
.site-header--overlay.is-solid .brand__dark, .site-header--overlay.is-open .brand__dark { display: block; }
.site-header--overlay.is-solid .nav__phone { background: var(--azul); border-color: var(--azul); }
.site-header--overlay.is-open { color: var(--texto); }
.site-header--overlay.is-open .nav__phone { background: var(--azul); border-color: var(--azul); color: var(--branco); }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--white { background: var(--branco); }
.section--dark { background: var(--azul); color: var(--branco); }
.section--tight { padding-block: clamp(64px, 5vw, 104px); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px 24px;
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 80px);
}
.section-head__main { grid-column: 1 / span 7; }
.section-head__side { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.section-head__side .lead { max-width: none; }

/* Quem somos */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.about__head { grid-column: 1 / span 5; }
.about__head .display { position: sticky; top: calc(var(--header-h) + 40px); }
.about__body { grid-column: 7 / span 6; }

.about__text { color: var(--texto); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.8; }
.about__text strong { font-weight: 600; }
.about__text + .about__text { margin-top: 1.25em; }
.about__text:first-of-type::first-letter {
  float: left;
  margin: 0.1em 0.14em 0 0;
  color: var(--caramelo);
  font-family: var(--serif);
  font-size: 4.6em;
  font-weight: 500;
  line-height: 0.8;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  margin-top: clamp(40px, 4vw, 64px);
}
.facts li {
  padding: 20px 0;
  border-top: 1px solid var(--linha);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.service { display: flex; flex-direction: column; }
.service__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--linha); margin-bottom: 28px; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.service:hover .service__media img { transform: scale(1.02); }
.service .title-3 { margin-bottom: 14px; }
.service p { color: var(--texto-suave); margin-bottom: 24px; }
.service .link-arrow { margin-top: auto; align-self: flex-start; }

/* Carrossel de projetos */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }

.card {
  flex: 0 0 calc((100% - clamp(16px, 2vw, 32px) * 2) / 2.5);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--linha); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.02); }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 0; border-top: 1px solid transparent; }
.card__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--texto-suave); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; }
.card .title-3 { margin-top: 4px; }
.card .link-arrow { align-self: flex-start; margin-top: 14px; }

.carousel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--linha);
}
.carousel__count { color: var(--texto-suave); font-size: var(--fs-small); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.carousel__nav { display: flex; gap: 12px; }
.carousel__nav .round-btn { border-color: var(--linha); color: var(--azul); }
.carousel__nav .round-btn:hover:not(:disabled), .carousel__nav .round-btn:focus-visible { background: var(--azul); border-color: var(--azul); color: var(--branco); }
.carousel__nav .round-btn:disabled { opacity: 0.3; cursor: default; }

.featured__cta { display: flex; justify-content: center; margin-top: clamp(48px, 5vw, 72px); }

/* Por que nós */
.reasons { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.reasons__media { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
/* A foto original tem 574 px: mantida abaixo do tamanho natural para não perder nitidez */
.reasons__media img { width: 100%; max-width: 420px; }
.reasons__text { grid-column: 6 / span 7; }
.reasons__intro { max-width: 50ch; color: rgba(255, 255, 255, 0.84); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); }
.reasons__list { margin: clamp(40px, 4vw, 64px) 0 48px; }
.reasons__list li { padding: 28px 0; border-top: 1px solid var(--linha-clara); }
.reasons__list li:last-child { border-bottom: 1px solid var(--linha-clara); }
.reasons__list h3 { margin-bottom: 10px; font-family: var(--serif); font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem); font-weight: 500; line-height: 1.25; }
.reasons__list p { color: rgba(255, 255, 255, 0.74); font-size: 0.9375rem; }

/* Instagram */
.insta-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.insta-grid a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linha); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.insta-grid a::after { content: ''; position: absolute; inset: 0; background: rgba(44, 62, 76, 0.4); opacity: 0; transition: opacity 0.5s var(--ease); }
.insta-grid a:hover img, .insta-grid a:focus-visible img { transform: scale(1.05); }
.insta-grid a:hover::after, .insta-grid a:focus-visible::after { opacity: 1; }
.insta-grid a:focus-visible { outline-offset: -3px; }

/* Contato */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact__head { grid-column: 1 / span 6; }
.contact__list { grid-column: 8 / span 5; }
.contact__item { padding: 28px 0; border-top: 1px solid var(--linha); }
.contact__item:last-child { border-bottom: 1px solid var(--linha); }
.contact__item h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; color: var(--caramelo-texto); }
.contact__item h3 svg { width: 18px; height: 18px; color: var(--azul); }
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 36;
  font-variant-numeric: lining-nums;
  line-height: 1.15;
  transition: color 0.4s var(--ease);
}
.contact__link .btn__arrow { width: 28px; height: 12px; }
.contact__link:hover, .contact__link:focus-visible { color: var(--caramelo-texto); }
.contact__link:hover .btn__arrow, .contact__link:focus-visible .btn__arrow { transform: translateX(6px); }

/* Chamada final */
.cta { background: var(--rosa); color: var(--azul); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(48px, 5vw, 72px);
}
.cta__text { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem); font-weight: 500; line-height: 1.2; max-width: 22ch; text-wrap: balance; }

/* --------------------------------------------------------------------------
   Página de portfólio
   -------------------------------------------------------------------------- */

.page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.page-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.page-head__grid > :first-child { grid-column: 1 / span 7; }
.page-head__grid .lead { grid-column: 9 / span 4; }
.page-head .hero__title { grid-column: auto; }

.project-index { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); font-size: var(--fs-small); }
.project-index a { display: inline-flex; gap: 10px; align-items: baseline; font-weight: 500; letter-spacing: 0.04em; }
.project-index a span { color: var(--texto-suave); font-size: var(--fs-label); }
.project-index a:hover, .project-index a:focus-visible { color: var(--caramelo-texto); }

.project { padding-block: clamp(64px, 6vw, 112px); border-top: 1px solid var(--linha); }
.project:first-of-type { border-top: 0; }
.project__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.project__head .title-3 { grid-column: 1 / span 6; font-size: clamp(1.875rem, 1.5rem + 1.5vw, 3rem); }
.project__head p { grid-column: 9 / span 4; color: var(--texto-suave); font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; }

/* Carrossel de fotos de cada projeto */
.carousel--photos { --h: clamp(340px, 60vh, 680px); }
.carousel--photos .carousel__item { flex: none; scroll-snap-align: start; }
.gallery__link { position: relative; display: block; height: var(--h); aspect-ratio: 2 / 3; overflow: hidden; background: var(--linha); cursor: zoom-in; }
.gallery__item--wide .gallery__link { aspect-ratio: 3 / 2; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.gallery__link:hover img { transform: scale(1.03); }
.gallery__link::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--caramelo); transition: box-shadow 0.3s var(--ease); }
.gallery__link:focus-visible { outline: none; }
.gallery__link:focus-visible::after { box-shadow: inset 0 0 0 3px var(--caramelo); }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer { background: var(--azul-profundo); color: rgba(255, 255, 255, 0.78); font-size: var(--fs-small); }

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px 64px;
  padding-block: clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--linha-clara);
}
.footer-main .brand img { width: 140px; }

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-nav a { color: var(--branco); font-weight: 500; letter-spacing: 0.12em; transition: color 0.3s var(--ease); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--rosa); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--linha-clara);
}
.social { display: flex; gap: 12px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--linha-clara);
  border-radius: 50%;
  color: var(--branco);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.social a:hover, .social a:focus-visible { background: var(--rosa); border-color: var(--rosa); color: var(--azul); }
.social svg { width: 18px; height: 18px; }
.footer-mail { color: var(--branco); letter-spacing: 0.04em; border-bottom: 1px solid var(--linha-clara); padding-bottom: 2px; transition: border-color 0.3s; }
.footer-mail:hover, .footer-mail:focus-visible { border-color: var(--rosa); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}
.footer-bottom a { color: var(--branco); transition: color 0.3s; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--rosa); }
.footer-bottom .credit-label { color: rgba(255, 255, 255, 0.6); }

.to-top { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--linha-clara); border-radius: 50%; color: var(--branco); transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover, .to-top:focus-visible { background: var(--branco); color: var(--azul); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--branco);
  box-shadow: 0 10px 30px -10px rgba(30, 43, 53, 0.55);
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease), visibility 0s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease), visibility 0s 0.4s; }

/* --------------------------------------------------------------------------
   Galeria em tela cheia
   -------------------------------------------------------------------------- */

.lightbox {
  --lb-top: 76px;
  --lb-bottom: 64px;
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(22, 32, 40, 0.97);
  color: var(--branco);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); height: var(--lb-top); }
.lightbox__title { font-family: var(--serif); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); font-weight: 500; }
.lightbox__count { font-size: var(--fs-small); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(16px, 7vw, 120px); }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - var(--lb-top) - var(--lb-bottom)); max-height: calc(100dvh - var(--lb-top) - var(--lb-bottom)); width: auto; height: auto; object-fit: contain; transition: opacity 0.35s var(--ease); }
.lightbox__stage img.is-loading { opacity: 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 32px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 32px); }
.lightbox__alt { display: grid; place-items: center; height: var(--lb-bottom); padding: 0 var(--gutter); color: rgba(255, 255, 255, 0.7); font-size: var(--fs-small); text-align: center; overflow: hidden; }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--linha-clara);
  border-radius: 50%;
  color: var(--branco);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover, .round-btn:focus-visible { background: var(--branco); border-color: var(--branco); color: var(--azul); }

/* --------------------------------------------------------------------------
   Revelação ao rolar
   -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* O recorte fica na imagem, não no elemento observado: com clip-path no alvo o IntersectionObserver não dispara */
.js .reveal-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out), transform 1.4s var(--ease-out); }
.js .reveal-img.is-visible img { clip-path: inset(0 0 0 0); }

/* Página 404 */
.not-found { display: grid; place-items: center; min-height: 70vh; padding: 64px var(--gutter); text-align: center; }
.not-found .display { margin-bottom: 40px; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .site-header.is-solid { --header-h: 64px; }

  .menu-toggle { display: block; z-index: 2; }
  .site-header .brand { position: relative; z-index: 2; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 40px;
    padding: calc(var(--header-h) + 40px) var(--gutter) max(40px, env(safe-area-inset-bottom));
    background: var(--papel);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__link {
    display: block;
    padding: 6px 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .nav__link::after { bottom: 6px; }
  .site-header.is-open .nav__link { opacity: 1; transform: none; }
  .site-header.is-open .nav__list li:nth-child(2) .nav__link { transition-delay: 0.05s; }
  .site-header.is-open .nav__list li:nth-child(3) .nav__link { transition-delay: 0.1s; }
  .site-header.is-open .nav__list li:nth-child(4) .nav__link { transition-delay: 0.15s; }
  .site-header.is-open .nav__list li:nth-child(5) .nav__link { transition-delay: 0.2s; }
  .site-header.is-open .nav__list li:nth-child(6) .nav__link { transition-delay: 0.25s; }
  .nav__phone { font-size: 0.9375rem; padding: 14px 22px; }

  .hero__title { grid-column: 1 / -1; }
  .hero__aside { grid-column: 1 / span 8; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }

  .section-head__main, .section-head__side { grid-column: 1 / -1; }
  .about__head, .about__body { grid-column: 1 / -1; }
  .about__head .display { position: static; margin-bottom: 36px; }

  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .card { flex-basis: calc((100% - 20px) / 1.8); }

  .reasons__media { grid-column: 1 / span 4; }
  .reasons__text { grid-column: 6 / span 7; }

  .insta-grid { grid-template-columns: repeat(4, 1fr); }

  .contact__head, .contact__list { grid-column: 1 / -1; }
  .contact__list { margin-top: 32px; }

  .page-head__grid > :first-child, .page-head__grid .lead { grid-column: 1 / -1; }
  .project__head .title-3, .project__head p { grid-column: 1 / -1; }

  .footer-main { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 760px) {
  :root { --section: 80px; }
  .eyebrow { margin-bottom: 20px; }

  .hero { padding-bottom: 32px; }
  .hero__grid { gap: 20px; }
  .hero__aside { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero__slide img { object-position: 46% 50%; }
  .hero__bar { margin-top: 28px; }
  .hero__dots button { width: 32px; }

  .facts { grid-template-columns: 1fr; gap: 0; }

  .services { grid-template-columns: 1fr; gap: 48px; }

  /* Seções com foto e texto lado a lado: a foto vem primeiro */
  .reasons { display: flex; flex-direction: column; align-items: stretch; gap: 36px; }
  .reasons__media { order: -1; position: static; align-self: stretch; width: 100%; }
  .reasons__media img { max-width: 400px; }

  .card { flex-basis: 82%; }

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

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

  .carousel--photos { --h: min(110vw, 520px); }

  .lightbox__stage { padding: 0; }
  .lightbox__nav { top: auto; bottom: -64px; transform: none; }
  .lightbox__nav--prev { left: var(--gutter); }
  .lightbox__nav--next { right: var(--gutter); }
  .lightbox { --lb-bottom: 88px; }
  .lightbox__alt { padding-inline: 84px; }
}

@media (max-width: 420px) {
  .btn { padding: 0 22px; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .reveal-img img, .js .hero__grid > * { opacity: 1; transform: none; clip-path: none; }
}
