/* HB Construções e Serviços Ltda. — estilos (mobile-first) */

:root {
  --night: #0b1b2b;
  --navy: #10263b;
  --navy-2: #163350;
  --accent: #2bb3a8;       /* turquesa */
  --accent-hover: #4cc8bd;
  --accent-strong: #1f978d;
  --accent-ink: #0a4d48;
  --paper: #ffffff;
  --sand: #f4f2ee;
  --ink: #141a21;
  --muted: #5a636e;
  --muted-dark: #8fa1b3;   /* texto secundário em fundo escuro */
  --soft-dark: #c3cfdb;    /* texto corrido em fundo escuro */
  --line: #e1ddd5;
  --line-dark: rgba(255,255,255,.12);
  --whatsapp: #25d366;
  --radius: 8px;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-stretch: 110%; line-height: 1.02; margin: 0 0 .5em; color: var(--night); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; max-width: 18ch; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
[role="list"] { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--night); padding: 10px 16px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1.1rem;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.label--light { color: var(--accent); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: .8rem 1.6rem;
  font-family: var(--head); font-stretch: 105%; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--night); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--sand); }
.btn--dark { background: var(--night); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { background: rgba(11,27,43,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent); color: var(--night);
  font-family: var(--head); font-stretch: 120%; font-weight: 900; font-size: 1.15rem;
}
.logo__text { font-family: var(--head); font-weight: 700; font-size: .76rem; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase; }
.logo--footer .logo__mark { width: 38px; height: 38px; font-size: 1rem; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; color: #fff;
  font-family: var(--head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em;
}
.menu-btn__icon, .menu-btn__icon::before, .menu-btn__icon::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; }
.menu-btn__icon::before { top: -7px; }
.menu-btn__icon::after { top: 7px; }
.menu-open .menu-btn__icon { background: transparent; }
.menu-open .menu-btn__icon::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn__icon::after { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); padding: 8px 20px 28px; border-top: 1px solid var(--line-dark); }
.menu-open .nav { display: block; }
.nav a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--head); font-stretch: 110%; font-weight: 700; font-size: 1.5rem; color: #fff; text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav .nav__cta { margin-top: 20px; border: 0; border-radius: 999px; text-align: center; font-size: 1.05rem; background: var(--accent); color: var(--night); padding: 15px; }
.nav .nav__cta:hover { background: var(--accent-hover); color: var(--night); }

/* Abertura */
.hero { position: relative; isolation: isolate; background: var(--night); color: #fff; overflow: hidden; padding-bottom: 40px; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.35) contrast(1.05); }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,27,43,.78) 0%, rgba(11,27,43,.9) 70%, rgba(11,27,43,.97) 100%);
}
.hero--photo .hero__art { display: none; }

.hero__grid { display: grid; gap: 32px; align-items: center; padding: 56px 0 40px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.4rem;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,.04);
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #aebccb;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(43,179,168,.2); }
.hero h1 {
  color: #fff; font-weight: 900; font-stretch: 112%; letter-spacing: -.035em;
  font-size: clamp(2.6rem, 8.4vw, 5.6rem); line-height: .96; max-width: 13ch; margin-bottom: .45em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--soft-dark); max-width: 44ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art img { width: 100%; max-width: 620px; margin-inline: auto; }
.js .hero__art img { opacity: 0; transform: translateY(28px); animation: rise 1.2s var(--ease) .2s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__stats { display: grid; gap: 10px; }
.hero__stats li {
  padding: 16px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(11,27,43,.55); backdrop-filter: blur(8px);
  font-family: var(--head); font-stretch: 105%; font-weight: 700; font-size: 1.05rem;
}
.hero__stats span { display: block; font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

/* Seções */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--night); color: var(--soft-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: grid; gap: 8px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 { margin-bottom: 0; }
.section__intro { color: var(--muted); max-width: 46ch; margin: 12px 0 0; }

/* Serviços */
.services { display: grid; gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 28px 28px 32px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service:hover { border-color: transparent; box-shadow: 0 24px 48px -28px rgba(11,27,43,.45); transform: translateY(-4px); }
.service:hover::after { transform: scaleX(1); }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 48px; }
.service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--night); color: var(--accent); }
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service__num { font-family: var(--head); font-stretch: 120%; font-weight: 900; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); transition: -webkit-text-stroke-color .35s var(--ease); }
.service:hover .service__num { -webkit-text-stroke-color: var(--accent-strong); }
.service h3 { font-size: 1.6rem; }
.service p { color: var(--muted); margin: 0; max-width: 40ch; }

/* Obras */
.works { display: grid; gap: 32px; }
.work { background: #fff; border-radius: var(--radius); overflow: hidden; }
.work__media { aspect-ratio: 4 / 3; background: #dcd8cf; display: grid; place-items: center; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work__media img { transform: scale(1.04); }
.work__placeholder { font-family: var(--head); font-weight: 600; color: #8a857b; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.work__meta, .work__title, .work__scope, .work__role { padding-inline: 24px; }
.work__meta { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 22px 0 8px; }
.work__title { margin-bottom: 10px; }
.work__scope { color: var(--muted); margin-bottom: 10px; }
.work__role { font-size: .95rem; margin: 0 0 26px; }

/* Parcerias — bento */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { border-radius: var(--radius); padding: 28px; background: var(--navy); border: 1px solid var(--line-dark); }
.tile--lead, .tile--model { grid-column: 1 / -1; }
.tile--lead { background: var(--navy-2); padding: clamp(28px, 4vw, 48px); }
.tile--lead p { max-width: 48ch; margin-bottom: 1.8rem; }
.tile--profile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 150px; padding: 22px 18px; transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.tile--profile:hover { background: var(--navy-2); border-color: rgba(43,179,168,.45); }
.tile--profile span { font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--accent); }
.tile--profile h3 { margin: 0; font-size: clamp(1.05rem, 4.4vw, 1.8rem); font-stretch: 100%; }
.tile--model h3 { font-size: 1.25rem; margin-bottom: .5em; }
.tile--model p { margin: 0; font-size: .98rem; }
.tile--accent { background: var(--accent); border-color: transparent; }
.section--dark .tile--accent h3 { color: var(--night); }
.tile--accent p { color: var(--accent-ink); }

/* Sobre */
.about { display: grid; gap: 48px; }
.about p { max-width: 60ch; color: var(--muted); }
.facts { margin: 0; background: var(--sand); border-radius: var(--radius); padding: 8px 28px; align-self: start; }
.facts > div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--head); font-stretch: 105%; font-weight: 700; font-size: 1.08rem; color: var(--night); }

.steps { display: grid; border-top: 1px solid var(--line); }
.step { position: relative; padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent); color: var(--night);
  font-family: var(--head); font-weight: 800; font-size: .9rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: .35em; }
.step p { margin: 0; font-size: .98rem; }

/* Contato */
.contact-band { background: var(--night); color: var(--soft-dark); padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.contact { display: grid; gap: 40px; align-items: center; }
.contact__photo-wrap { position: relative; max-width: 380px; }
.contact__photo-wrap::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--accent); border-radius: var(--radius); z-index: 0; }
.contact__photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.contact h2 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.8rem); max-width: 16ch; }
.contact__name { font-size: 1.08rem; color: #e3e9ef; }
.contact__name strong { font-family: var(--head); font-stretch: 105%; color: #fff; }
.contact__hint { color: var(--muted-dark); font-size: .98rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.contact__email { font-size: .95rem; color: var(--muted-dark); margin: 0; word-break: break-word; }

/* Rodapé */
.footer { background: #07131f; color: #8597aa; padding: 40px 0; font-size: .9rem; }
.footer p { margin: 0; }
.footer a { color: var(--soft-dark); }
.footer__grid { display: grid; gap: 20px; }
.footer__wa {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start;
  padding: 8px 18px 8px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  color: #fff; text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.footer .footer__wa { color: #fff; }
.footer__wa:hover { border-color: var(--whatsapp); background: rgba(37,211,102,.08); }
.footer__wa-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; flex: none;
  box-shadow: 0 6px 18px -6px rgba(37,211,102,.7);
  transition: transform .25s var(--ease);
}
.footer__wa:hover .footer__wa-icon { transform: scale(1.08) rotate(-6deg); }
.footer__wa-icon svg { width: 24px; height: 24px; }
.footer__wa-text { display: grid; line-height: 1.25; font-family: var(--head); font-weight: 700; font-size: 1rem; }
.footer__wa-text small { font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8597aa; }

/* Páginas internas */
.page { padding: 64px 0 96px; max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 900; font-stretch: 112%; letter-spacing: -.03em; }
.page h2 { font-size: 1.35rem; margin-top: 2.2rem; max-width: none; }
.page ul { padding-left: 1.2rem; }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 500; }

/* Revelar ao rolar */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hero__art img, .js [data-reveal] { opacity: 1; transform: none; }
}

/* ≥ 720px */
@media (min-width: 720px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .bento .tile--profile h3 { font-stretch: 115%; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .contact { grid-template-columns: minmax(240px, 360px) 1fr; gap: 72px; }
  .footer__grid { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 40px; }
}

/* ≥ 1000px */
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav { display: flex !important; align-items: center; gap: 34px; position: static; padding: 0; border: 0; background: none; }
  .nav a { padding: 0; border: 0; font-size: .95rem; font-stretch: 100%; font-weight: 600; color: #d8e0e8; }
  .nav .nav__cta { margin-left: 6px; padding: 12px 22px; font-size: .95rem; }
  .hero { padding-bottom: 56px; }
  .hero--photo::before { background: linear-gradient(90deg, rgba(11,27,43,.96) 0%, rgba(11,27,43,.84) 48%, rgba(11,27,43,.45) 100%); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; padding: 88px 0 56px; min-height: min(70vh, 660px); }
  .section__head { grid-template-columns: 1.2fr .8fr; align-items: end; column-gap: 64px; }
  .section__head .label { grid-column: 1 / -1; }
  .section__intro { margin: 0; }
  .works { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile--lead { grid-column: span 2; grid-row: span 2; }
  .tile--model { grid-column: auto; }
  .bento .tile--model:nth-last-child(3) { grid-column: 1 / span 2; }
  .about { grid-template-columns: 1.3fr .7fr; column-gap: 96px; row-gap: 64px; }
  .steps { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-top: 0; }
  .step { border-bottom: 0; border-top: 2px solid var(--line); padding-top: 32px; }
  .step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
}
