:root {
  --navy: #071525;
  --navy-2: #0c2035;
  --steel: #18344d;
  --blue: #1c70b7;
  --cyan: #69c9e6;
  --green: #25d366;
  --white: #ffffff;
  --ink: #17202a;
  --muted: #63707d;
  --line: #dfe7ed;
  --surface: #f5f8fa;
  --shadow: 0 24px 60px rgba(4, 20, 34, .14);
  --radius: 22px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 21, 37, .92);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; color: #fff; min-width: 245px; }
.brand-logo { height: 58px; width: auto; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
.main-nav { display: flex; align-items: center; gap: 25px; color: #dce8ef; font-size: 14px; font-weight: 700; }

.icon-inline {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.icon-inline svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.icon-whatsapp {
  background: rgba(37, 211, 102, .18);
  color: #25d366;
}
.icon-phone {
  background: rgba(28, 112, 183, .14);
  color: #1c70b7;
}
.icon-email {
  background: rgba(255, 140, 0, .14);
  color: #f08a00;
}
.icon-company {
  background: rgba(7, 21, 37, .08);
  color: #0c2035;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.nav-cta, .btn, .whatsapp-float, .contact-line strong, .contact-panel strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-line strong, .contact-panel strong {
  color: inherit;
}
.contact-line strong .icon-inline,
.contact-panel strong .icon-inline {
  margin-right: 2px;
}
.btn .icon-inline, .nav-cta .icon-inline, .whatsapp-float .icon-inline {
  background: rgba(255,255,255,.22);
  color: inherit;
}
.btn-primary .icon-inline,
.nav-cta .icon-inline,
.whatsapp-float .icon-inline {
  background: rgba(7, 21, 37, .16);
  color: #ffffff;
}
.contact-panel > a strong,
.contact-panel > div strong,
.contact-line strong {
  flex-wrap: wrap;
}
.main-nav > a:not(.nav-cta) { position: relative; padding: 28px 0; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 20px; width: 0; height: 2px; background: var(--cyan); transition: .25s; }
.main-nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--green); color: #071a0f; padding: 11px 18px; border-radius: 999px; font-weight: 800; justify-content: center; }
.menu-btn { display: none; background: transparent; border: 0; padding: 8px; }
.menu-btn span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px; }

.hero {
  min-height: 750px;
  position: relative;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(5,15,27,.95) 0%, rgba(7,25,43,.88) 48%, rgba(7,24,41,.68) 100%),
    url('https://images.pexels.com/photos/37604386/pexels-photo-37604386/free-photo-of-industrial-hvac-system-in-modern-facility.jpeg?auto=compress&dpr=1&h=900&w=1600') center/cover no-repeat;
  color: #fff;
  padding: 145px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: 120px; width: 500px; height: 500px; border-radius: 50%;
  border: 1px solid rgba(105,201,230,.18); box-shadow: 0 0 0 80px rgba(105,201,230,.025), 0 0 0 160px rgba(105,201,230,.02);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr .72fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-block; color: var(--cyan); letter-spacing: .19em; font-size: 12px; font-weight: 900; margin-bottom: 12px; }
.eyebrow.dark { color: #146ea2; }
.hero-logo-wrap { margin-bottom: 14px; }
.hero-logo { width: min(100%, 520px); height: auto; display: block; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 5.5vw, 72px); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p { max-width: 700px; font-size: 19px; color: #c6d4df; margin: 26px 0 31px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 850; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 21px; height: 21px; fill: currentColor; }
.btn-primary { background: var(--green); color: #071a0f; box-shadow: 0 12px 28px rgba(37,211,102,.2); }
.btn-primary:hover { background: #2be372; }
.btn-secondary { border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.07); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-large { min-height: 58px; padding-inline: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 26px; color: #a9bdcc; font-size: 13px; margin-top: 28px; }
.hero-card { border: 1px solid rgba(255,255,255,.14); background: rgba(11,31,51,.72); backdrop-filter: blur(16px); border-radius: 24px; padding: 28px; box-shadow: 0 28px 60px rgba(0,0,0,.22); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; color: #99efb8; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(37,211,102,.1); }
.hero-card h2 { font-size: 26px; line-height: 1.1; margin: 18px 0 10px; }
.hero-card > p { color: #adc0cd; font-size: 14px; margin: 0 0 20px; }
.contact-line { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-line span { color: #829aad; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.contact-line strong { font-size: 14px; overflow-wrap: anywhere; }

.section { padding: 100px 0; }
.section-head { max-width: 740px; margin-bottom: 45px; }
.section-head h2, .about-copy h2, .brand-text h2, .contact h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.section-head > p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 28px; min-height: 260px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(20,45,63,.04); transition: .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfd1dd; }
.icon-box { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #eaf5fb; color: #0e679d; }
.icon-box svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 22px; margin: 25px 0 7px; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.highlight-card { background: linear-gradient(145deg, #0a1d2e, #123652); color: #fff; border: 0; justify-content: space-between; }
.highlight-card p { color: #afc5d3; }
.highlight-card .mini-label { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.highlight-card h3 { margin-top: 14px; }
.text-link { color: #8be5aa; font-weight: 800; margin-top: 20px; }

.about { background: var(--surface); }
.brand-section { background: #fff; }
.brand-section-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.brand-panel { background: linear-gradient(145deg, #f5f8fa, #eef4f8); border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: 0 18px 46px rgba(15,35,53,.08); }
.section-logo { width: 100%; height: auto; display: block; }
.brand-text p { color: var(--muted); font-size: 17px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { min-height: 570px; border-radius: 28px; box-shadow: var(--shadow); background: linear-gradient(rgba(7,21,37,.08), rgba(7,21,37,.18)), url('https://images.pexels.com/photos/34938443/pexels-photo-34938443/free-photo-of-engineer-assembling-industrial-heating-unit.jpeg?auto=compress&dpr=1&h=900&w=1600') center/cover no-repeat; }
.about-copy > p { color: var(--muted); font-size: 17px; }
.about-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0; }
.about-points div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.about-points strong { display: block; color: #0e679d; font-size: 20px; }
.about-points span { display: block; color: #5a6874; font-size: 12px; line-height: 1.35; margin-top: 6px; }

.section-head.split { max-width: none; display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.section-head.split > div { max-width: 650px; }
.section-head.split > p { max-width: 400px; margin: 0 0 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 20px; margin: 0; background: #dce6ec; grid-column: span 4; }
.gallery-large { grid-column: span 7; grid-row: span 2; }
.gallery-wide { grid-column: span 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(3,12,20,.72)); pointer-events: none; }
.gallery-item figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; color: #fff; font-weight: 800; }

.contact { background: linear-gradient(130deg, #071525, #0a2a44); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.contact p { max-width: 640px; color: #b5c6d1; font-size: 17px; margin: 18px 0 28px; }
.contact-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 10px 28px; }
.contact-panel > a, .contact-panel > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-panel > :last-child { border-bottom: 0; }
.contact-panel span { font-size: 11px; color: #7f9caf; text-transform: uppercase; letter-spacing: .11em; }
.contact-panel strong { font-size: 16px; overflow-wrap: anywhere; }

.site-footer { background: #04101c; color: #9db0be; padding: 32px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; align-items: center; gap: 25px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-logo { height: 52px; width: auto; max-width: 100%; display: block; }
.footer-links { display: flex; gap: 16px; justify-content: center; font-size: 13px; }
.site-footer p { text-align: right; font-size: 12px; margin: 0; }

.whatsapp-float { position: fixed; z-index: 110; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 9px; background: var(--green); color: #071a0f; padding: 13px 17px; border-radius: 999px; font-weight: 900; box-shadow: 0 16px 34px rgba(19,65,35,.28); }
.whatsapp-float svg { width: 25px; height: 25px; fill: currentColor; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .main-nav { position: absolute; top: 78px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #0a1c2e; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.nav-cta) { padding: 14px 12px; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-card { max-width: 620px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid, .contact-grid, .brand-section-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 430px; }
  .section-head.split { display: block; }
  .section-head.split > p { max-width: 700px; margin-top: 16px; }
  .gallery-large { grid-column: span 12; grid-row: span 2; }
  .gallery-item { grid-column: span 6; }
  .gallery-wide { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .site-footer p { text-align: center; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand { min-width: 0; }
  .brand-logo { height: 48px; }
  .nav-wrap { min-height: 68px; }
  .main-nav { top: 68px; left: 14px; right: 14px; }
  .hero { min-height: auto; padding: 125px 0 62px; }
  .hero-logo-wrap { margin-bottom: 14px; }
.hero-logo { width: min(100%, 520px); height: auto; display: block; }
.hero h1 { font-size: 46px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { display: grid; gap: 8px; }
  .hero-card { padding: 22px; }
  .section { padding: 72px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .about-grid { gap: 35px; }
  .about-media { min-height: 360px; }
  .about-points { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 220px; }
  .gallery-item, .gallery-large, .gallery-wide { grid-column: span 12; grid-row: span 1; }
  .contact-grid { gap: 34px; }
  .contact-panel { padding: 10px 20px; }
  .whatsapp-float { right: 14px; bottom: 14px; padding: 14px; }
  .whatsapp-float span { display: none; }
}


.photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}
.badge-real {
  background: rgba(37, 211, 102, .92);
  color: #071a0f;
}
.badge-web {
  background: rgba(7, 21, 37, .84);
  color: #fff;
}
.service-photo-grid-rich {
  grid-template-columns: repeat(4, 1fr);
}
.service-photo-grid-rich .featured-photo {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 430px;
}
.service-photo-grid-rich .service-photo:not(.featured-photo) {
  min-height: 205px;
}

/* Galeria organizada por serviço */
.service-photo-link {
  margin-top: auto;
  padding-top: 18px;
  color: #0e679d;
  font-size: 13px;
  font-weight: 850;
}
.service-gallery-block {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}
.service-gallery-block:first-of-type { border-top: 0; padding-top: 0; }
.gallery-category-head {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 22px;
}
.gallery-category-head h3 {
  margin: 5px 0 0;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.gallery-category-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.gallery-category-kicker {
  color: #146ea2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}
.service-photo-grid {
  display: grid;
  gap: 16px;
}
.service-photo-grid-3 { grid-template-columns: 1.25fr 1fr 1fr; }
.service-photo-grid-1 { grid-template-columns: 1fr; }
.service-photo {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin: 0;
  border-radius: 22px;
  background: #dce6ec;
  box-shadow: 0 12px 34px rgba(15,35,53,.08);
}
.service-photo.featured-photo { min-height: 430px; }
.service-photo.wide-feature { min-height: 430px; }
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .45s ease;
}
.service-photo:hover img { transform: scale(1.035); }
.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 48%, rgba(3,12,20,.82));
}
.service-photo figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 2px;
  color: #fff;
}
.service-photo figcaption strong { font-size: 18px; }
.service-photo figcaption span { font-size: 13px; color: #d4e1e8; }

@media (max-width: 960px) {
  .gallery-category-head { grid-template-columns: 1fr; gap: 10px; }
  .service-photo-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-photo-grid-3 .featured-photo { grid-column: span 2; }
  .service-photo-grid-rich { grid-template-columns: repeat(2, 1fr); }
  .service-photo-grid-rich .featured-photo { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 640px) {
  .service-photo-grid-3 { grid-template-columns: 1fr; }
  .service-photo-grid-3 .featured-photo { grid-column: auto; }
  .service-photo-grid-rich { grid-template-columns: 1fr; }
  .service-photo-grid-rich .featured-photo { grid-column: auto; }
  .service-photo, .service-photo.featured-photo, .service-photo.wide-feature, .service-photo-grid-rich .service-photo:not(.featured-photo) { min-height: 330px; }
}


/* Página de portfólio */
.portfolio-hero {
  padding: 150px 0 82px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(5,15,27,.96), rgba(8,35,58,.88)),
    url('assets/galeria_real/foto-10-rede-sprinkler-garagem.jpg') center/cover no-repeat;
}
.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 70px;
  align-items: center;
}
.portfolio-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}
.portfolio-hero p {
  max-width: 720px;
  margin: 24px 0 30px;
  color: #c6d4df;
  font-size: 18px;
}
.portfolio-hero-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(6,20,35,.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 60px rgba(0,0,0,.22);
}
.portfolio-hero-card img { width: 100%; height: auto; }
.portfolio-hero-card p { margin: 18px 0 0; color: #a9becf; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.portfolio-index { background: #fff; border-bottom: 1px solid var(--line); }
.portfolio-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.portfolio-index-grid a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  transition: background .2s;
}
.portfolio-index-grid a:last-child { border-right: 0; }
.portfolio-index-grid a:hover { background: var(--surface); }
.portfolio-index-grid strong { font-size: 13px; color: #146ea2; letter-spacing: .08em; }
.portfolio-index-grid span { font-weight: 850; }
.portfolio-section { overflow: hidden; }
.portfolio-alt { background: var(--surface); }
.portfolio-section-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 30px;
}
.portfolio-section-head h2 {
  margin: 6px 0 0;
  max-width: 760px;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1;
  letter-spacing: -.045em;
}
.portfolio-section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 270px;
  gap: 16px;
}
.portfolio-card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: #dce6ec;
  box-shadow: 0 14px 34px rgba(15,35,53,.09);
}
.portfolio-card-wide { grid-column: span 8; }
.portfolio-card-tall { grid-row: span 2; }
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.portfolio-card:hover img { transform: scale(1.035); }
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(3,12,20,.84));
}
.portfolio-card figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  color: #fff;
}
.portfolio-card figcaption strong { font-size: 18px; }
.portfolio-card figcaption span { font-size: 13px; color: #d4e1e8; }
.portfolio-service-cta {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
}
.portfolio-alt .portfolio-service-cta { background: #fff; }
.portfolio-service-cta p { margin: 0; color: #4f5e69; font-weight: 700; }
.portfolio-final-cta { padding: 78px 0; color: #fff; background: linear-gradient(130deg, #071525, #0a2a44); }
.portfolio-final-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.portfolio-final-grid h2 { margin: 0; max-width: 760px; font-size: clamp(36px, 4vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.portfolio-final-grid p { margin: 14px 0 0; color: #b5c6d1; }

@media (max-width: 960px) {
  .portfolio-hero-grid, .portfolio-section-head { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-hero-card { max-width: 620px; }
  .portfolio-index-grid { grid-template-columns: 1fr; }
  .portfolio-index-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .portfolio-index-grid a:last-child { border-bottom: 0; }
  .portfolio-card, .portfolio-card-wide { grid-column: span 6; }
  .portfolio-card-tall { grid-row: span 1; }
  .portfolio-final-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portfolio-hero { padding: 125px 0 62px; }
  .portfolio-hero h1 { font-size: 46px; }
  .portfolio-masonry { grid-auto-rows: 310px; }
  .portfolio-card, .portfolio-card-wide { grid-column: span 12; grid-row: span 1; }
  .portfolio-service-cta { align-items: stretch; flex-direction: column; }
  .portfolio-service-cta .btn { width: 100%; }
}

/* =========================================================
   ACABAMENTO PREMIUM + MICROINTERAÇÕES
   ========================================================= */
:root {
  --premium-shadow: 0 30px 80px rgba(4, 20, 34, .16);
  --premium-shadow-soft: 0 18px 48px rgba(4, 20, 34, .10);
  --glass-line: rgba(255,255,255,.16);
}

body {
  background:
    radial-gradient(circle at 10% 12%, rgba(105,201,230,.055), transparent 26rem),
    #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, min-height .35s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 17, 30, .97);
  border-bottom-color: rgba(105,201,230,.16);
  box-shadow: 0 16px 46px rgba(0,0,0,.22);
}
.brand-logo {
  transition: transform .35s ease, filter .35s ease;
}
.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.018);
  filter: drop-shadow(0 10px 24px rgba(105,201,230,.2));
}

.nav-cta {
  background: linear-gradient(135deg, #25d366 0%, #55e58a 100%);
  box-shadow: 0 10px 26px rgba(37,211,102,.20);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(37,211,102,.30);
  filter: saturate(1.05);
}

.hero,
.portfolio-hero {
  isolation: isolate;
}
.hero::before,
.portfolio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 28%, rgba(105,201,230,.17), transparent 22%),
    radial-gradient(circle at 22% 82%, rgba(37,211,102,.07), transparent 24%);
  animation: premiumGlow 9s ease-in-out infinite alternate;
}
.portfolio-hero { position: relative; overflow: hidden; }
.portfolio-hero-grid { position: relative; z-index: 2; }
@keyframes premiumGlow {
  from { opacity: .65; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}

.hero-logo,
.portfolio-hero-card img {
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.22));
}
.hero-card,
.portfolio-hero-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(14,44,68,.78), rgba(7,24,41,.72));
  box-shadow: 0 35px 85px rgba(0,0,0,.28);
}
.hero-card::before,
.portfolio-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.09), transparent 30%, transparent 70%, rgba(105,201,230,.07));
}

.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(7,21,37,.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -42%;
  width: 34%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: rotate(18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 112%; }
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(7,21,37,.16);
}
.btn-primary {
  background: linear-gradient(135deg, #25d366, #55e58a);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 32px rgba(37,211,102,.23);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2bdf70, #6aec99);
  box-shadow: 0 20px 42px rgba(37,211,102,.31);
}
.btn-dark {
  background: linear-gradient(135deg, #071525, #123652);
  border-color: rgba(105,201,230,.13);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(105,201,230,.42);
}

.service-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(199,215,225,.72);
  box-shadow: 0 14px 42px rgba(20,45,63,.055);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #1c70b7, #69c9e6, #25d366);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .3s ease, transform .3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--premium-shadow);
  border-color: rgba(105,201,230,.50);
}
.service-card:hover::before { opacity: 1; transform: scaleX(1); }
.service-card:hover .icon-box { transform: translateY(-2px) rotate(-2deg) scale(1.06); }
.icon-box {
  background: linear-gradient(145deg, #eef8fd, #dff2fb);
  box-shadow: inset 0 0 0 1px rgba(28,112,183,.08), 0 10px 22px rgba(28,112,183,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:nth-child(4) .icon-box {
  color: #c33832;
  background: linear-gradient(145deg, #fff3f1, #ffe4df);
  box-shadow: inset 0 0 0 1px rgba(195,56,50,.08), 0 10px 22px rgba(195,56,50,.07);
}
.service-card:nth-child(5) .icon-box {
  color: #147a74;
  background: linear-gradient(145deg, #ecfbf8, #dcf4ef);
}

.about-media,
.brand-panel,
.contact-panel,
.portfolio-service-cta {
  box-shadow: var(--premium-shadow-soft);
}
.brand-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(105,201,230,.22);
}
.brand-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,201,230,.18), transparent 68%);
  pointer-events: none;
}
.about-points div {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.about-points div:hover {
  transform: translateY(-4px);
  border-color: rgba(28,112,183,.25);
  box-shadow: 0 16px 30px rgba(7,21,37,.08);
}

.service-photo,
.portfolio-card {
  border: 1px solid rgba(255,255,255,.5);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-photo:hover,
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(7,21,37,.19);
}
.service-photo img,
.portfolio-card img {
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.service-photo:hover img,
.portfolio-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}
.photo-badge {
  box-shadow: 0 8px 20px rgba(0,0,0,.13);
}

.portfolio-index {
  position: relative;
  z-index: 8;
  box-shadow: 0 12px 30px rgba(7,21,37,.04);
}
.portfolio-index-grid a {
  position: relative;
  overflow: hidden;
  transition: background .25s ease, transform .25s ease;
}
.portfolio-index-grid a::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  transform: scaleX(0);
  background: linear-gradient(90deg, #1c70b7, #69c9e6, #25d366);
  transition: transform .3s ease;
}
.portfolio-index-grid a:hover { transform: translateY(-2px); }
.portfolio-index-grid a:hover::before { transform: scaleX(1); }

.contact,
.portfolio-final-cta {
  position: relative;
  overflow: hidden;
}
.contact::before,
.portfolio-final-cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -240px;
  top: -260px;
  border-radius: 50%;
  border: 1px solid rgba(105,201,230,.11);
  box-shadow: 0 0 0 75px rgba(105,201,230,.025), 0 0 0 150px rgba(105,201,230,.018);
  pointer-events: none;
}
.contact-grid,
.portfolio-final-grid { position: relative; z-index: 2; }

/* WhatsApp animado: pulso contínuo e discreto */
.whatsapp-float {
  isolation: isolate;
  background: linear-gradient(135deg, #20c85a, #31df70);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 42px rgba(19, 111, 51, .32), 0 0 0 0 rgba(37,211,102,.30);
  animation: whatsappFloat 3.2s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 2px solid rgba(37,211,102,.40);
  border-radius: 999px;
  opacity: 0;
  animation: whatsappPulse 2.8s ease-out infinite;
}
.whatsapp-float::after { animation-delay: 1.35s; }
.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.035);
  filter: saturate(1.08);
  box-shadow: 0 24px 54px rgba(19,111,51,.42);
  animation-play-state: paused;
}
.whatsapp-float .icon-whatsapp {
  animation: whatsappIcon 2.4s ease-in-out infinite;
}
@keyframes whatsappFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes whatsappPulse {
  0% { transform: scale(.96); opacity: .55; }
  65%, 100% { transform: scale(1.30); opacity: 0; }
}
@keyframes whatsappIcon {
  0%, 82%, 100% { transform: rotate(0) scale(1); }
  88% { transform: rotate(-8deg) scale(1.08); }
  94% { transform: rotate(8deg) scale(1.08); }
}

/* Entrada suave de conteúdo quando o JavaScript está ativo */
.js .reveal-premium {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1);
}
.js .reveal-premium.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-premium.reveal-delay-1 { transition-delay: .08s; }
.js .reveal-premium.reveal-delay-2 { transition-delay: .16s; }
.js .reveal-premium.reveal-delay-3 { transition-delay: .24s; }

@media (max-width: 640px) {
  .whatsapp-float { box-shadow: 0 14px 34px rgba(19,111,51,.32); }
  .service-card:hover, .service-photo:hover, .portfolio-card:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal-premium { opacity: 1; transform: none; }
}

/* Identidade visual — Papel timbrado Versão 2 */
.brand {
  min-width: 190px;
  padding: 5px 9px;
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.28);
}
.brand-logo {
  width: 176px;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  filter: none;
}
.brand:hover .brand-logo {
  filter: none;
  transform: translateY(-1px) scale(1.015);
}
.nav-wrap { min-height: 102px; }
.main-nav > a:not(.nav-cta) { padding-top: 38px; padding-bottom: 38px; }
.main-nav > a:not(.nav-cta)::after { bottom: 29px; }
.hero-logo-wrap {
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 22px 55px rgba(0,0,0,.22);
}
.hero-logo { width: min(100%, 390px); height: auto; filter: none; }
.brand-panel { background: linear-gradient(145deg, #ffffff, #f7f7f7); }
.section-logo { width: min(100%, 520px); margin: 0 auto; height: auto; }
.footer-logo {
  width: 240px;
  height: auto;
  max-height: none;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.portfolio-hero-card img {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  filter: none;
}
@media (max-width: 960px) {
  .nav-wrap { min-height: 88px; }
  .brand { min-width: 160px; }
  .brand-logo { width: 150px; max-height: 75px; }
  .main-nav { top: 88px; }
  .main-nav > a:not(.nav-cta) { padding: 14px 12px; }
}
@media (max-width: 640px) {
  .nav-wrap { min-height: 78px; }
  .brand { min-width: 0; padding: 4px 7px; border-radius: 11px; }
  .brand-logo { width: 128px; max-height: 64px; }
  .main-nav { top: 78px; }
  .hero { padding-top: 145px; }
  .portfolio-hero { padding-top: 145px; }
  .hero-logo-wrap { padding: 9px 11px; border-radius: 16px; }
  .hero-logo { width: min(100%, 330px); }
  .footer-logo { width: min(240px, 100%); }
}
