/* ============================================================
   A Bastos Marcenaria — stylesheet
   Paleta: preto / marrom escuro / off-white / dourado fosco
   ============================================================ */

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

:root {
  --gold:       #B08A57;
  --gold-dark:  #9C7A4E;
  --gold-hover: #A67C52;
  --dark:       #1A1510;
  --dark-mid:   #231E18;
  --dark-soft:  #2E2720;
  --off-white:  #F5F2EE;
  --light-bg:   #FAFAF8;
  --text:       #3A3028;
  --text-soft:  #6B5E52;
  --border:     #E2DBD4;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 24px rgba(26,21,16,.10);
  --shadow-lg:  0 8px 40px rgba(26,21,16,.16);

  --transition: .25s ease;
  --header-h:   96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---- Typography ---- */
.section__eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.section__divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.section { padding-block: 96px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .82rem 1.75rem;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.65);
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline-dark:hover { background: var(--dark); color: #fff; }

.btn--sm { padding: .52rem 1.2rem; font-size: .76rem; }

/* Botão maior para CTA principal */
.btn--cta-lg {
  padding: 1rem 2.25rem;
  font-size: .88rem;
  letter-spacing: .07em;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.header.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(26,21,16,.09);
  height: 82px;
  

}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

/* Logo — aumentado ~28% para mais presença de marca */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  

}
.header__logo img { height: 60px; width: auto; }
.header__logo .logo-preta  { display: none; }
.header__logo .logo-branca { display: block; }

.header.scrolled .logo-branca { display: none; }
.header.scrolled .logo-preta  { display: block; }
.header.scrolled .header__logo img { height: 58px; }

/* Nav */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav__link {
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--gold); border-color: var(--gold); }

.header.scrolled .nav__link { color: var(--text); }
.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active { color: var(--gold); border-color: var(--gold); }

.header__cta { margin-left: .75rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.header.scrolled .hamburger span { background: var(--dark); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

/* Overlay refinado: escurece o suficiente para leitura, mas deixa a cozinha aparecer. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,12,6,.62) 0%, rgba(18,12,6,.34) 42%, rgba(18,12,6,.16) 100%),
    linear-gradient(180deg, rgba(18,12,6,.38) 0%, rgba(18,12,6,.08) 44%, rgba(18,12,6,.34) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  max-width: 700px;
}

.hero__eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: .9;
}

/* Headline maior para mais impacto visual */
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 28px rgba(0,0,0,.34);
}

.hero__title--gold {
  color: var(--gold);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.65;
}

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

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 74px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.5));
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diferenciais {
  background: var(--off-white);
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.diferencial {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.diferencial__icon {
  flex-shrink: 0;
  color: var(--gold);
  padding-top: 3px;
}

.diferencial__body strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .3rem;
  letter-spacing: .02em;
}

.diferencial__body p {
  font-size: .81rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ============================================================
   PROJETOS — PORTFÓLIO EDITORIAL
   ============================================================ */
.projetos { background: var(--dark-mid); }

.projetos .section__eyebrow { color: var(--gold); }
.projetos .section__title   { color: #fff; }

/* Introdução da seção de portfólio */
.projetos__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.projetos__intro-texto { flex: 1; }

.projetos__subtexto {
  font-size: .93rem;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  max-width: 600px;
  margin-top: -.5rem;
}

.projetos__intro-destaque { flex-shrink: 0; max-width: 280px; }

.projetos__experiencia {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
}

.projetos__experiencia strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: .2rem;
}

/* Grid editorial assimétrico — 3 colunas, primeiro card em destaque */
.projetos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 308px;
  gap: 14px;
}

/* Primeiro card: dobra a altura */
.projeto-card--featured {
  grid-row: span 2;
}

/* ---- Card base ---- */
.projeto-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  cursor: pointer;
  outline: none;
}

.projeto-card:focus-visible {
  box-shadow: 0 0 0 3px var(--gold);
}

.projeto-card__img {
  position: absolute;
  inset: 0;
}

.projeto-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}

.projeto-card:hover .projeto-card__img img {
  transform: scale(1.055);
}

/* Overlay com gradiente */
.projeto-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16,10,4,.92) 0%,
    rgba(16,10,4,.42) 48%,
    rgba(16,10,4,.04) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem 1.4rem;
  transition: background .35s ease;
}

.projeto-card:hover .projeto-card__overlay {
  background: linear-gradient(
    to top,
    rgba(16,10,4,.97) 0%,
    rgba(16,10,4,.6) 52%,
    rgba(16,10,4,.12) 100%
  );
}

/* Ícone de expand — aparece no hover */
.projeto-card__hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(176,138,87,.22);
  border: 1px solid rgba(176,138,87,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  opacity: 0;
  transform: scale(.75);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 2;
}

.projeto-card:hover .projeto-card__hint {
  opacity: 1;
  transform: scale(1);
}

/* Body do card */
.projeto-card__body { width: 100%; }

.projeto-card__category {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .45rem;
  opacity: .9;
}

.projeto-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0;
}

.projeto-card--featured .projeto-card__title {
  font-size: 1.3rem;
}

/* Descrição — aparece no hover */
.projeto-card__desc {
  font-size: .79rem;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height .4s ease, opacity .35s ease .05s, margin-top .35s ease;
}

.projeto-card:hover .projeto-card__desc {
  max-height: 80px;
  opacity: 1;
  margin-top: .55rem;
}

.projeto-card--featured:hover .projeto-card__desc {
  max-height: 100px;
}

/* Tag — aparece no hover */
.projeto-card__tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(176,138,87,.45);
  padding: .22rem .65rem;
  border-radius: 3px;
  margin-top: .8rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .3s ease .15s, transform .3s ease .15s;
}

.projeto-card:hover .projeto-card__tag {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Card "Projeto em breve" ---- */
.projeto-card--soon {
  background: var(--dark-soft);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.projeto-card__soon-inner {
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,.3);
}

.projeto-card__soon-inner svg {
  margin: 0 auto .75rem;
  opacity: .4;
  color: var(--gold);
}

.projeto-card__soon-label {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.35);
  line-height: 1.4;
  margin-bottom: .65rem;
}

.projeto-card__soon-tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(176,138,87,.25);
  padding: .2rem .6rem;
  border-radius: 3px;
  opacity: .7;
}

/* CTA portfólio */
.projetos__cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.projetos .btn--outline-dark {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.25);
}
.projetos .btn--outline-dark:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre { background: var(--off-white); }

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sobre__content p {
  font-size: .96rem;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  line-height: 1.72;
}

.sobre__content .btn { margin-top: .5rem; }

.sobre__gallery {
  display: grid;
  grid-template-columns: 1fr .58fr;
  grid-template-rows: auto auto;
  gap: .75rem;
}

.sobre__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.sobre__img--main      { grid-row: span 2; min-height: 440px; }
.sobre__img--secondary { min-height: 190px; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos { background: var(--light-bg); }

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: .5rem;
}

.servico-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.servico-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(176,138,87,.25);
}

.servico-card__icon {
  color: var(--gold);
  margin-bottom: 1rem;
}

.servico-card h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .6rem;
}

.servico-card p {
  font-size: .86rem;
  color: var(--text-soft);
  line-height: 1.62;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--dark);
  padding-block: 88px;
  border-top: 1px solid rgba(176,138,87,.12);
}

.cta-section__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cta-section__wa-icon { color: #25D366; flex-shrink: 0; }

.cta-section__text { flex: 1; min-width: 200px; }

.cta-section__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: #fff;
  font-weight: 600;
  margin-bottom: .4rem;
}

.cta-section__text p {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
}

.cta-section .btn--cta-lg { flex-shrink: 0; }

/* ============================================================
   CONTATO INFO
   ============================================================ */
.contato-info { background: var(--off-white); }

.contato-info__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contato-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .93rem;
  color: var(--text-soft);
}

.contato-list li svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.contato-list a {
  color: var(--text);
  transition: color var(--transition);
}
.contato-list a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer__logo { height: 54px; width: auto; margin-bottom: 1rem; }

.footer__brand p {
  font-size: .84rem;
  line-height: 1.65;
  max-width: 280px;
  color: rgba(255,255,255,.45);
}

.footer__col { display: flex; flex-direction: column; gap: .4rem; }

.footer__col-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
   display: flex;
  align-items: center;
  gap: .45rem;
}

.footer__col p, .footer__col a {
  font-size: .83rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: 20px;
}

.footer__bottom-row {
  display: flex;
  align-items: center;
    gap: 2rem;
  flex-wrap: wrap;
  font-size: .77rem;
  color: rgba(255,255,255,.38);
}

.footer__bottom-row svg { vertical-align: middle; margin-right: 4px; }
.footer__bottom-row a { color: rgba(255,255,255,.3); transition: color var(--transition); }
.footer__bottom-row a:hover { color: var(--gold); }

.footer-credit {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .77rem;
  color: rgba(255,255,255,.3);
}

.footer-credit a {
  color: rgba(176,138,87,.78);
  transition: opacity .25s ease, color .25s ease;
}

.footer-credit a:hover {
  opacity: .85;
  color: #C7A06C;
}



/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 800;
  width: 56px; height: 78px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.42);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(37,211,102,.58);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,4,0,.92);
  cursor: pointer;
  animation: lbFadeIn .22s ease forwards;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 1120px;
  max-height: 88svh;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 28px 80px rgba(0,0,0,.65);
  animation: lbSlideIn .28s ease forwards;
}

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

@keyframes lbSlideIn {
  from { opacity: 0; transform: scale(.96) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.lightbox__close:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.lightbox__img-col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #0a0602;
}

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

.lightbox__info-col {
  width: 340px;
  flex-shrink: 0;
  background: var(--dark-mid);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid rgba(176,138,87,.1);
}

.lightbox__info-body {
  padding: 2.5rem 1.85rem 2.25rem;
}

.lightbox__category {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}

.lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: .85rem;
}

.lightbox__desc {
  font-size: .86rem;
  color: rgba(255,255,255,.6);
  line-height: 1.62;
  margin-bottom: 1.75rem;
}

.lightbox__divider {
  width: 40px;
  height: 1px;
  background: rgba(176,138,87,.35);
  margin-bottom: 1.25rem;
}

.lightbox__cta-label {
  font-size: .74rem;
  color: rgba(255,255,255,.38);
  margin-bottom: .85rem;
  letter-spacing: .02em;
}

.lightbox__cta-btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  font-size: .74rem;
  line-height: 1.2;
  padding: .92rem 1rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet grande */
@media (max-width: 1100px) {
  .projetos__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 286px;
  }
  .projeto-card--featured {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 370px;
  }
}

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

  .sobre__inner { grid-template-columns: 1fr; gap: 3rem; }
  .sobre__gallery { grid-template-columns: 1fr 1fr; }
  .sobre__img--main { min-height: 300px; }

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

  .contato-info__inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }

  .projetos__intro { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .projetos__intro-destaque { max-width: 100%; }
}

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

  .section { padding-block: 72px; }

  /* Header mobile */
  .hamburger { display: flex; }
  .header.scrolled { height: 64px; }
  .header__logo img { height: 58px; }
  .header.scrolled .header__logo img { height: 74px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
  }

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

  .nav__list { flex-direction: column; gap: 0; align-items: flex-start; }

  .nav__link {
    display: block;
    padding: .9rem 0;
    font-size: 1rem;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav__list li:last-child .nav__link { border-bottom: none; }

  .header__cta { display: none; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: clamp(2.35rem, 8.8vw, 3.35rem); }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { justify-content: center; }
  .hero__scroll { display: none; }

  /* Diferenciais */
  .diferenciais { padding-block: 44px; }
  .diferenciais__grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Projetos */
  .projetos__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 268px;
    gap: 10px;
  }
  .projeto-card--featured {
    grid-column: auto;
    grid-row: span 1;
    min-height: 308px;
  }

  /* Sobre */
  .sobre__gallery { grid-template-columns: 1fr; }
  .sobre__img--secondary { display: none; }

  /* Serviços */
  .servicos__grid { grid-template-columns: 1fr; gap: 1rem; }

  /* CTA */
  .cta-section { padding-block: 64px; }
  .cta-section__inner { flex-direction: column; text-align: center; align-items: center; }
  .cta-section__wa-icon { display: none; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 48px; padding-bottom: 36px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom-row { gap: 1rem; }

  /* Lightbox mobile — imagem sem corte */
  .lightbox {
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  .lightbox__panel {
    flex-direction: column;
    max-height: 94svh;
    border-radius: 14px;
    max-width: calc(100% - 24px);
    width: calc(100% - 24px);
    overflow-y: auto;
    background: var(--dark);
    animation: lbSlideUp .3s ease forwards;
  }

  @keyframes lbSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .lightbox__img-col {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    flex: none;
    overflow: visible !important;
    background: #0a0602;
  }

  .lightbox__img-col img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
  }

  .lightbox__info-col {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(176,138,87,.12);
    max-height: none;
    overflow-y: visible;
    background: var(--dark-mid);
  }

  .lightbox__info-body {
    padding: 1.5rem 1.25rem 2rem;
  }

  .lightbox__title {
    font-size: 1.55rem;
  }

  .lightbox__desc {
    font-size: .92rem;
    color: rgba(255,255,255,.72);
  }

  .lightbox__cta-btn {
    font-size: .74rem;
    padding: 1rem .85rem;
  }

  .lightbox__close {
    top: .75rem;
    right: .75rem;
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.18rem; }
  .section__title { font-size: 1.6rem; }
  .projetos__grid { grid-auto-rows: 248px; }
}
