/* =============================================
   GJ CONSTRUTORA — CSS
   Brand: #D71F1F · #121212 · #FFFFFF
   Mobile-first, performance-optimized
   ============================================= */

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

:root {
  --red:       #D71F1F;
  --red-dark:  #C71A1A;
  --dark:      #121212;
  --dark-2:    #191919;
  --dark-3:    #222222;
  --white:     #FFFFFF;
  --off-white: #F5F5F5;
  --gray-lt:   #E8E8E8;
  --gray:      #888888;
  --gray-dk:   #555555;

  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.1);
  --shadow:     0 4px 24px rgba(0,0,0,.15);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.2);
  --shadow-red: 0 6px 24px rgba(215,31,31,.4);

  --transition: .3s ease;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark);
  overscroll-behavior-x: none;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #1e1e1e;
}

::-webkit-scrollbar         { width: 7px; }
::-webkit-scrollbar-track   { background: #1e1e1e; }
::-webkit-scrollbar-thumb   { background: var(--red); border-radius: 10px; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* ---- Barra de leitura ---- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--red), #ff5555);
  z-index: 1002;
  pointer-events: none;
  transition: width .1s linear;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
address { font-style: normal; }
button  { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- SECTION SPACING ---- */
.about, .contact    { padding: 80px 0; }
.projects, .features { padding: 80px 0; }

/* ---- EYEBROW ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.eyebrow--light { color: rgba(255,255,255,.6); }
.eyebrow--light .eyebrow__bar { background: var(--red); }

.eyebrow__bar {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
}

.eyebrow__bar--dark { background: var(--dark); }

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}

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

.section-title--light { color: var(--white); }

.section-desc {
  font-size: 1rem;
  color: var(--gray-dk);
  max-width: 520px;
  margin: 0 auto;
}

.section-desc--light { color: rgba(255,255,255,.6); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

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

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

.btn--sm   { padding: 10px 20px; font-size: .85rem; }
.btn--lg   { padding: 18px 40px; font-size: 1.1rem; }
.btn--full { width: 100%; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: var(--dark);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.4); }

.navbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.logo-img { height: 36px; width: auto; display: block; }
.logo-img--dark { display: none; }

.navbar__nav ul {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--white);
  border-bottom-color: var(--red);
}

.nav-link.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.nav-link--cta {
  background: var(--red);
  color: var(--white) !important;
  border-bottom: none !important;
  padding: 0 24px;
  margin-left: 8px;
}

.nav-link--cta:hover {
  background: var(--red-dark);
  transform: none;
}

/* Instagram no navbar — desktop */
.navbar__instagram {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.navbar__instagram:hover { color: #E1306C; }
.navbar__instagram svg { width: 20px; height: 20px; display: block; }

/* Instagram no drawer mobile */
.nav-instagram-mobile { display: none; }
.nav-link--instagram { gap: 10px; }
.nav-link--instagram svg { flex-shrink: 0; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 16px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO — Split Layout
   ============================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 68px;
  background: var(--dark);
}

.hero__left {
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.hero__left::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: var(--red);
  opacity: .04;
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Grain/noise texture no hero ---- */
.hero__left::after {
  content: '';
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
  pointer-events: none;
  z-index: 1;
  animation: grain 7s steps(9) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,   0);    }
  11%  { transform: translate(-2%, -3%);  }
  22%  { transform: translate(3%,  1%);   }
  33%  { transform: translate(-1%, 3%);   }
  44%  { transform: translate(2%, -1%);   }
  55%  { transform: translate(-3%, 2%);   }
  66%  { transform: translate(1%, -2%);   }
  77%  { transform: translate(-2%, 3%);   }
  88%  { transform: translate(3%, -2%);   }
  100% { transform: translate(0,   0);    }
}

.hero__content {
  padding: 0 48px 0 32px;
  max-width: 580px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}

.label-bar {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

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

/* --- Animação de entrada do título (stagger por linha) --- */
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(52px);
  will-change: opacity, transform;
}

/* Fallback CSS caso o JS demore ou falhe */
.hero__title-line:nth-child(1) { animation: titleIn .8s ease 1.5s  both; }
.hero__title-line:nth-child(2) { animation: titleIn .8s ease 1.65s both; }
.hero__title-line:nth-child(3) { animation: titleIn .8s ease 1.8s  both; }

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


.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 380px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero__stat {
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.02em;
}

.hero__stat span {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

.hero__right {
  position: relative;
  overflow: hidden;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

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

.hero__image-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18,18,18,.8) 0%,
    rgba(18,18,18,.2) 40%,
    transparent 100%
  );
}

.hero__badge {
  position: absolute;
  bottom: 32px;
  right: 24px;
  background: rgba(18,18,18,.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(215,31,31,.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__badge-logo {
  height: 32px;
  width: auto;
  opacity: .9;
}

.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .05em;
}

.hero__badge span {
  display: block;
  font-size: .7rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

/* Parallelogram clip matching brand's geometric language */
.about__img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 8px 0, 100% 0, 100% 100%, calc(100% - 8px) 100%, 0 100%);
  border-left: 4px solid var(--red);
  pointer-events: none;
}

.about__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.about__img-frame:hover img { transform: scale(1.04); }

.about__img-accent {
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 40%;
  background: var(--red);
}

.about__since {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--dark);
  padding: 16px 20px;
  border-top-right-radius: var(--radius);
}

.about__since strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .06em;
}

.about__since span {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about__image-side { position: relative; }

.about__text p {
  color: var(--gray-dk);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.about__text .section-title { margin-bottom: 28px; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-lt);
}

.stat {
  text-align: center;
  padding: 0 12px;
}

.stat + .stat {
  border-left: 1px solid var(--gray-lt);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.02em;
}

.stat__label {
  display: block;
  font-size: .72rem;
  color: var(--gray);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.4;
}

/* =============================================
   PROJECTS — Dark Section
   ============================================= */
.projects { background: var(--dark-2); }

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card {
  background: var(--dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  border-color: rgba(215,31,31,.3);
}

.project-card--featured {
  border-color: rgba(215,31,31,.4);
}

.project-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,.7) 0%, transparent 50%);
}

.project-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.badge--green { background: #16a34a; color: #fff; }
.badge--red   { background: var(--red); color: #fff; }

.project-card__launch {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(18,18,18,.8);
  color: var(--red);
  border: 1px solid var(--red);
  padding: 5px 12px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-card__body { padding: 28px; }

.project-card__num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,.05);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: -20px;
  user-select: none;
}

.project-card__num--red { color: rgba(215,31,31,.12); }

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 12px;
}

.project-card__desc {
  font-size: .92rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.project-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}

.feat-icon {
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.3);
  border-radius: 1px;
  flex-shrink: 0;
  transform: rotate(45deg);
}

.feat-icon--red { background: var(--red); }

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}

.project-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.status-dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status--done  { color: #4ade80; }
.status--done  .status-dot { background: #4ade80; }
.status--wip   { color: var(--red); }
.status-dot--red { background: var(--red); }

.status-dot--pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.4); }
}

/* =============================================
   FEATURES — Dark + Red accent
   ============================================= */
.features {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.features__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/padrao.png');
  background-size: 300px;
  background-repeat: repeat;
  opacity: .03;
  pointer-events: none;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-item {
  background: var(--dark);
  padding: 36px 28px;
  transition: background var(--transition);
}

.feature-item:hover { background: var(--dark-3); }

.feature-item:hover .feature-item__icon { background: var(--red); border-color: var(--red); }
.feature-item:hover .feature-item__icon svg { stroke: var(--white); }

.feature-item__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(215,31,31,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-item__icon svg {
  width: 22px; height: 22px;
  stroke: var(--red);
  transition: stroke var(--transition);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: .9rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
}

.cta-banner__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,18,18,.88);
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner__logo {
  margin: 0 auto 28px;
  width: 72px;
  opacity: .8;
}

.cta-banner__logo img { width: 100%; }

.cta-banner__content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-banner__content h2 em {
  font-style: italic;
  color: var(--red);
}

.cta-banner__content p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--off-white); }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact__wa {
  text-align: center;
}

/* keep contact-info class for footer compatibility */
.contact__info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-item:hover .contact-item__icon { background: var(--red); }

.contact-item__icon svg {
  width: 20px; height: 20px;
  stroke: var(--white);
}

.contact-item h4 {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact-item p { color: var(--dark); font-size: .95rem; line-height: 1.6; }
.contact-item a:hover { color: var(--red); }

/* Form */
.contact__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}

.form-group { margin-bottom: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-dk);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215,31,31,.1);
}

textarea { resize: vertical; }

.form-note {
  text-align: center;
  margin-top: 14px;
  font-size: .85rem;
  color: var(--gray);
}

.form-note a { color: #25D366; font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark); }

.footer__top-bar {
  height: 4px;
  background: var(--red);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer__logo { height: 40px; width: auto; margin-bottom: 20px; }

.footer__brand p {
  color: rgba(255,255,255,.4);
  font-size: .88rem;
  line-height: 1.7;
  max-width: 240px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.footer__social svg { width: 16px; height: 16px; }

.footer__nav h4, .footer__projects h4, .footer__contact h4 {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}

.footer__nav ul, .footer__projects ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav li a, .footer__projects li a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__nav li a:hover, .footer__projects li a:hover { color: var(--white); }

.badge-tag {
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.badge-tag--green { background: rgba(74,222,128,.15); color: #4ade80; }
.badge-tag--red   { background: rgba(215,31,31,.2);   color: var(--red); }

.footer__contact address p {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer__contact a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer__contact a:hover { color: var(--red); }

.footer__bottom {
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 13px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
}

.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }

.whatsapp-float:hover {
  background: #1fbe5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .55s ease, visibility .55s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-icon {
  width: 68px;
  height: auto;
  animation: loadIconIn .75s var(--ease-out) forwards;
}

@keyframes loadIconIn {
  0%   { opacity: 0; transform: scale(.7) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.loading-bar {
  width: 72px;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar__fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  animation: loadBar .9s ease forwards;
}

@keyframes loadBar {
  0%  { width: 0; }
  60% { width: 65%; }
  100%{ width: 100%; }
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
  background: var(--off-white);
  padding: 80px 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: zoom-in;
  background: var(--gray-lt);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.07); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,.88) 0%, rgba(18,18,18,.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay { opacity: 1; }

.gallery-item__overlay svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  stroke: rgba(255,255,255,.9);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.gallery-item__overlay span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  line-height: 1.2;
  position: relative;
}

.gallery-item__overlay small {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
  position: relative;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.93);
  cursor: zoom-out;
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(.95);
  transition: transform .3s ease;
}

.lightbox.open .lightbox__inner { transform: scale(1); }

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  transition: opacity .2s ease;
}

.lightbox__caption {
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  text-align: center;
  letter-spacing: .05em;
  max-width: 560px;
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.lightbox__close:hover { background: var(--red); border-color: var(--red); }
.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav svg { width: 22px; height: 22px; }

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* =============================================
   PROGRESS BAR — Monte Verde II
   ============================================= */
.project-card__progress {
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-header span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}

.progress-header strong {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .04em;
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(to right, var(--red-dark), var(--red));
  border-radius: 3px;
  transition: width 1.4s var(--ease-out);
  width: 0;
}

.progress-bar__fill.animated { width: var(--progress-target); }

/* =============================================
   LGPD COOKIE BANNER
   ============================================= */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--dark);
  border-top: 3px solid var(--red);
  padding: 16px 20px;
  transform: translateY(100%);
  transition: transform .4s var(--ease-out);
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}

.lgpd-banner.visible { transform: translateY(0); }

.lgpd-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.lgpd-banner__content p {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease, border-color .2s ease;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
  border-color: var(--red);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =============================================
   NAV OVERLAY (mobile)
   ============================================= */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }

  .hero__left  { padding: 60px 0 48px; }
  .hero__content { padding: 0 20px; max-width: 100%; margin: 0; }

  .hero__right {
    height: 360px;
    position: relative;
  }

  .hero__image-tint {
    background: linear-gradient(to bottom, rgba(18,18,18,.5) 0%, transparent 100%);
  }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__image-side { order: -1; }
  .about__img-frame { aspect-ratio: 16/9; }

  .projects__grid   { grid-template-columns: 1fr; }
  .features__grid   { grid-template-columns: repeat(2, 1fr); }
  .contact__cards   { grid-template-columns: 1fr 1fr; }
  .footer__inner    { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* --- Navbar mobile --- */
  .navbar__nav {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 90vw);
    height: 100vh;
    background: var(--dark);
    padding: 80px 24px 40px;
    /* clip-path mantém o drawer DENTRO do viewport — sem overflow */
    clip-path: inset(0 0 0 100%);
    /* visibility atrasa 0.35s no fechamento para a animação terminar */
    transition: clip-path .35s var(--ease-out), visibility 0s .35s;
    overflow-y: auto;
    z-index: 999;
    border-left: 3px solid var(--red);
    pointer-events: none;
    visibility: hidden;
  }

  .navbar__nav.open {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
    visibility: visible;
    /* ao abrir: visibility imediata, clip-path animado */
    transition: clip-path .35s var(--ease-out), visibility 0s 0s;
  }

  .navbar__nav ul {
    flex-direction: column;
    height: auto;
    gap: 4px;
  }

  .nav-link {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    border-left: none;
    justify-content: flex-start;
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    justify-content: center;
    border-bottom: none !important;
  }

  .navbar__toggle { display: flex; }
  .navbar__instagram { display: none; }
  .nav-instagram-mobile { display: block; }

  /* --- Hero mobile --- */
  .hero__right { height: 280px; }
  .hero__badge { display: none; }

  .hero__title { font-size: 2.8rem; }

  .hero__stats {
    gap: 0;
    flex-wrap: nowrap;
  }

  .hero__stat strong { font-size: 1.5rem; }
  .hero__stat span   { font-size: .62rem; letter-spacing: .06em; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  /* --- About mobile --- */
  .about__stats { grid-template-columns: 1fr 1fr; }
  .about__stats .stat:nth-child(3) {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--gray-lt);
    padding-top: 20px;
    margin-top: 8px;
  }

  /* --- Features mobile --- */
  .features__grid { grid-template-columns: 1fr; gap: 2px; }

  /* --- Contact mobile --- */
  .contact__cards { grid-template-columns: 1fr; }

  /* --- Footer mobile --- */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 40px;
  }

  .footer__bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  /* --- WhatsApp float mobile --- */
  .whatsapp-float span { display: none; }
  .whatsapp-float {
    padding: 14px;
    border-radius: 50%;
    bottom: 20px;
    right: 16px;
    width: 52px;
    height: 52px;
    justify-content: center;
  }

  /* --- Back to top mobile --- */
  .back-to-top {
    bottom: 20px;
    left: 16px;
    width: 44px;
    height: 44px;
  }

  /* --- LGPD mobile --- */
  .lgpd-banner__content { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* --- Gallery mobile --- */
  .gallery__grid { grid-template-columns: 1fr; gap: 10px; }

  /* --- Gallery section mobile --- */
  .gallery { padding: 64px 0; }

  /* --- Lightbox nav mobile --- */
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }

  /* --- CTA banner mobile --- */
  .cta-banner { padding: 72px 0; }
  .cta-banner__content h2 { font-size: 2rem; }

  /* --- Section spacing mobile --- */
  .about, .contact { padding: 64px 0; }
  .projects, .features { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .navbar__inner { height: 60px; }
  .logo-img { height: 28px; }

  .hero__left { padding: 48px 0 40px; }
  .hero__title { font-size: 2.4rem; }
  .hero__right { height: 220px; }

  .about__stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat + .stat { border-left: none; }

  .project-card__num { font-size: 4rem; }
  .project-card__title { font-size: 1.5rem; }

  .cta-banner__logo { width: 56px; }

  .feature-item { padding: 28px 20px; }
}

/* =============================================
   PRINT / PREFERS-REDUCED-MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .status-dot--pulse { animation: none; }
}

/* =============================================
   TOUCH DEVICES — tap targets
   ============================================= */
@media (hover: none) {
  .btn { min-height: 48px; }
  .nav-link { min-height: 48px; }
  .whatsapp-float { min-width: 52px; min-height: 52px; }
}

/* =============================================
   IMAGE FALLBACK — when images missing
   ============================================= */
.hero__image-wrap { background: var(--dark-3); }
.project-card__image { background: var(--dark-3); }
.about__img-frame { background: var(--gray-lt); }

/* Logo fallback */
.logo-img[src="images/logo-branco.png"]:not([src]) + .logo-fallback,
.logo-img:not([complete]) { opacity: 0; }
