/* ===== Reset / base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Work Sans', system-ui, sans-serif; background: #06141B; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Nav ===== */
.topbar {
  width: 100%; box-sizing: border-box; padding: 11px 64px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  background: #050D12; font-size: 13px; color: #8A97A0;
}
.mainnav {
  width: 100%; box-sizing: border-box; padding: 26px 64px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid rgba(204,208,207,0.08);
}
.logo { font-family: 'Fraunces', serif; font-size: 27px; font-weight: 500; color: #E6E8E7; }
.nav { display: flex; gap: 38px; flex-wrap: wrap; font-size: 15px; color: #CFD5D6; }
.nav a { position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: #CCD0CF; transition: right .25s ease;
}
.nav a:hover::after { right: 0; }

.btn-fill {
  display: inline-block; background: #CCD0CF; color: #0A141A;
  padding: 11px 24px; font-size: 14.5px; font-weight: 500; transition: background .15s;
}
.btn-fill:hover { background: #E6E8E7; }
.btn-fill.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-fill.btn-xl { padding: 16px 34px; font-size: 15px; white-space: nowrap; }

.btn-outline {
  display: inline-block; border: 1px solid rgba(230,232,231,0.45); color: #F0F2F1;
  padding: 15px 30px; font-size: 15px; font-weight: 500; transition: background .15s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

a:focus-visible, button:focus-visible { outline: 2px solid #CCD0CF; outline-offset: 3px; }

@media (max-width: 760px) {
  .nav { display: none !important; }
}

/* ===== Hero ===== */
.hero-header { width: 100%; min-height: 100vh; background: #06141B; display: flex; flex-direction: column; }
.hero { position: relative; flex: 1; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(0.85); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,20,27,0.94) 0%, rgba(17,33,45,0.72) 42%, rgba(37,55,69,0.22) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 64px; max-width: 700px; }
.hero-title {
  margin: 0 0 26px 0; font-family: 'Fraunces', serif; font-weight: 440; font-style: italic;
  font-size: 60px; line-height: 1.14; color: #F0F2F1; white-space: pre-line;
}
.hero-sub { margin: 0 0 38px 0; font-size: 17px; line-height: 1.7; color: #AEB7B9; max-width: 460px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero-title { font-size: 38px; }
  .hero-header, .hero { min-height: auto; }
  .hero { padding: 80px 0; }
}

/* ===== Sobre ===== */
.sobre { width: 100%; min-height: 640px; background: #CCD0CF; display: flex; align-items: center; box-sizing: border-box; padding: 96px 64px; }
.sobre-wrap { width: 100%; max-width: 1312px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 80px; }
.sobre-imgs { position: relative; flex: 1 1 420px; min-width: 320px; height: 480px; }
.sobre-img-main { position: absolute; left: 0; top: 0; width: 78%; height: 86%; object-fit: cover; box-shadow: 0 24px 50px rgba(6,20,27,0.2); filter: saturate(0.9); }
.sobre-img-accent {
  position: absolute; right: 0; bottom: 0; width: 42%; height: 48%; object-fit: cover;
  border: 8px solid #CCD0CF; box-shadow: 0 16px 36px rgba(6,20,27,0.22); filter: grayscale(100%);
}
.sobre-text { flex: 1 1 420px; min-width: 320px; }
.sobre-title { margin: 0 0 26px 0; font-family: 'Fraunces', serif; font-weight: 440; font-style: italic; font-size: 42px; line-height: 1.2; color: #11212D; white-space: pre-line; }
.sobre-body { margin: 0 0 40px 0; font-size: 16.5px; line-height: 1.8; color: #2F4553; max-width: 480px; }
.stats { display: flex; gap: 0; border-top: 1px solid #B5BCBC; }
.stat { flex: 1; padding: 22px 28px 0 0; }
.stat + .stat { border-left: 1px solid #B5BCBC; padding: 22px 0 0 28px; }
.stat-num { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 500; color: #253745; }
.stat-label { font-size: 14px; color: #51616B; margin-top: 6px; }

@media (max-width: 760px) {
  .sobre-imgs { height: 340px; }
  .sobre-title { font-size: 32px; }
}

/* ===== Serviços ===== */
.servicos { width: 100%; min-height: 820px; background: #06141B; box-sizing: border-box; padding: 110px 64px; }
.servicos-wrap { max-width: 1180px; margin: 0 auto; }
.servicos-head { max-width: 620px; margin-bottom: 72px; }
.servicos-title { margin: 0 0 18px 0; font-family: 'Fraunces', serif; font-weight: 440; font-style: italic; font-size: 42px; color: #F0F2F1; }
.servicos-sub { margin: 0; font-size: 16px; line-height: 1.75; color: #9BA8AB; }
.servicos-list { border-top: 1px solid rgba(230,232,231,0.12); }

.row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 40px 8px;
  border-bottom: 1px solid rgba(230,232,231,0.12); transition: background .2s ease;
}
.row:last-child { border-bottom: none; }
.row:hover { background: rgba(230,232,231,0.035); }
.row:hover .row-img img { transform: scale(1.04); }
.row-rev { flex-direction: row-reverse; }
.row-img { flex: 0 0 340px; width: 340px; height: 240px; overflow: hidden; }
.row-img.tall { height: 280px; }
.row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.row-body { flex: 1 1 320px; }
.row-title { margin: 0 0 8px 0; font-family: 'Fraunces', serif; font-size: 23px; font-weight: 500; color: #F0F2F1; }
.row-desc { margin: 0; font-size: 14.5px; line-height: 1.7; color: #8A97A0; max-width: 480px; }

@media (max-width: 760px) {
  .row, .row-rev { flex-direction: column; align-items: flex-start; }
  .row-img, .row-img.tall { width: 100%; height: 220px; }
}

/* ===== Galeria ===== */
.galeria { width: 100%; min-height: 820px; background: #CCD0CF; box-sizing: border-box; padding: 110px 64px; }
.galeria-wrap { max-width: 1180px; margin: 0 auto; }
.galeria-title { margin: 0 0 56px 0; font-family: 'Fraunces', serif; font-weight: 440; font-style: italic; font-size: 42px; color: #11212D; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 18px; }
.gcell { overflow: hidden; }
.gcell-big { grid-column: span 2; grid-row: span 2; }
.gcell-wide { grid-column: span 2; }
.gimg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gcell:hover .gimg { transform: scale(1.05); }

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .gcell-big { grid-column: span 2; grid-row: span 2; }
  .gcell-wide { grid-column: span 2; }
}

/* ===== Contato / Rodapé ===== */
.contato { width: 100%; background: #06141B; }
.cta { width: 100%; box-sizing: border-box; padding: 80px 64px; border-bottom: 1px solid rgba(230,232,231,0.1); }
.cta-wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-title { margin: 0; font-family: 'Fraunces', serif; font-weight: 440; font-style: italic; font-size: 34px; color: #F0F2F1; max-width: 480px; }

.footer-main { width: 100%; box-sizing: border-box; padding: 64px 64px 32px 64px; }
.footer-wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.fcol-brand { flex: 2 1 260px; min-width: 240px; }
.fbrand { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; color: #F0F2F1; margin-bottom: 16px; }
.ftext { margin: 0; font-size: 14px; line-height: 1.8; color: #8A97A0; max-width: 320px; }
.social { display: flex; gap: 14px; margin-top: 22px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #2A3C48;
  display: flex; align-items: center; justify-content: center; color: #AEB7B9;
  transition: border-color .15s ease, color .15s ease;
}
.social a:hover { border-color: #CCD0CF; color: #CCD0CF; }
.social svg { width: 17px; height: 17px; }

/* ===== Botão flutuante WhatsApp ===== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(0,0,0,0.42); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:focus-visible { outline: 2px solid #0A141A; outline-offset: 3px; }

@media (max-width: 760px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}
.fcol { flex: 1 1 180px; min-width: 160px; }
.fcol.wide { flex: 1 1 220px; min-width: 220px; }
.fcol-title { font-size: 14.5px; font-weight: 500; color: #CCD0CF; margin-bottom: 20px; }
.flinks { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #9BA8AB; }
.flink { position: relative; }
.flink::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: #9BA8AB; transition: right .25s ease; }
.flink:hover::after { right: 0; }

.footer-bottom {
  max-width: 1180px; margin: 56px auto 0 auto; padding-top: 24px; border-top: 1px solid rgba(230,232,231,0.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; color: #5A6B72;
}

@media (max-width: 760px) {
  .cta-wrap { flex-direction: column; align-items: flex-start; }
}

/* ===== Scroll / load reveal ===== */
.ab-load, .ab-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.ab-load.ab-in, .ab-reveal.ab-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ab-load, .ab-reveal { opacity: 1; transform: none; transition: none; }
}
