/* ==========================================================================
   mountech — site institucional
   Identidade visual: Ana Borges Brands (2024)
   ========================================================================== */

@font-face {
  font-family: "Apfel Grotezk";
  src: url("../fonts/ApfelGrotezk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("../fonts/ApfelGrotezk-Mittel.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("../fonts/ApfelGrotezk-Fett.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-Variable.woff2") format("woff2-variations"),
       url("../fonts/InterTight-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Paleta oficial */
  --navy: #1D212D;      /* 02 */
  --navy-2: #2E3242;    /* 01 */
  --lime: #B5CD38;      /* 03 */
  --lime-2: #A6BD35;    /* 05 */
  --bege: #EAE7DC;      /* 04 */

  --ink: var(--navy);
  --paper: var(--bege);
  --line-dark: rgba(234, 231, 220, .14);
  --line-light: rgba(29, 33, 45, .14);

  --font-display: "Apfel Grotezk", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--bege);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--lime); }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Tipografia ------------------------------------------------------------- */
.display { font-size: clamp(3rem, 9vw, 7.25rem); font-weight: 500; line-height: .95; letter-spacing: -.035em; }
.display-sm { font-size: clamp(2.5rem, 6.5vw, 5rem); font-weight: 500; line-height: .98; letter-spacing: -.03em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 18ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; opacity: .88; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}
.kicker::before {
  content: ""; width: 14px; height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 55% 0, 0 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-dark); border-radius: 99px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px); background: rgba(29, 33, 45, .35);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(181, 205, 56, .25); }

/* Botões ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 99px;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--bege); }
.btn-ghost { border: 1px solid rgba(234, 231, 220, .4); color: var(--bege); }
.btn-ghost:hover { border-color: var(--bege); background: rgba(234, 231, 220, .08); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(29, 33, 45, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; z-index: 2; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; opacity: .82; transition: opacity .2s; position: relative; }
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav { margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }

/* Seletor de idioma */
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-dark); border-radius: 99px;
  background: rgba(29, 33, 45, .35); backdrop-filter: blur(6px);
}
.lang-switch button {
  min-width: 38px; padding: 7px 10px; border: 0; border-radius: 99px;
  background: transparent; color: var(--bege);
  font: 600 .78rem/1 var(--font-body); letter-spacing: .08em;
  cursor: pointer; opacity: .7; transition: background-color .2s, color .2s, opacity .2s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: var(--bege); color: var(--navy); opacity: 1; }

/* Enquanto o i18n.js não troca os textos, a página fica invisível (ver i18n-boot.js) */
.i18n-pending body { visibility: hidden; }

.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%;
    background: transparent; cursor: pointer; position: relative; z-index: 2;
  }
  .menu-toggle .bar { display: block; width: 18px; height: 1.6px; background: var(--bege); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4.3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4.3px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--navy);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { font: 500 2rem/1 var(--font-display); opacity: 1; }
  .nav.is-open { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(72px, 12vh, 140px);
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(29, 33, 45, .55) 0%, rgba(29, 33, 45, .15) 35%, rgba(29, 33, 45, .92) 100%),
    linear-gradient(90deg, rgba(29, 33, 45, .7) 0%, rgba(29, 33, 45, 0) 65%);
}
.hero-onda {
  position: absolute; z-index: -1;
  right: -8vw; top: 12vh;
  width: min(58vw, 720px); height: min(58vw, 720px);
  color: var(--lime); opacity: .9;
  /* Só move: a opacidade fica com a regra acima (e com a versão mobile), não com a animação */
  animation: slideUp 1.4s var(--ease) .2s both;
}
.hero-inner { position: relative; }
.hero .display { margin-bottom: 28px; animation: rise 1s var(--ease) .1s both; }
.hero .eyebrow { animation: rise 1s var(--ease) both; }
.hero .lead { animation: rise 1s var(--ease) .2s both; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: rise 1s var(--ease) .3s both; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 1.5px solid rgba(234, 231, 220, .5); border-radius: 20px; translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--bege); translate: -50% 0; animation: cue 1.8s ease-in-out infinite; }

@keyframes heroZoom { to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(60px); } to { transform: none; } }
@keyframes cue { 0%, 100% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 720px) {
  /* No mobile o grafismo fica atrás do título: vira marca d'água bege para não apagar o "innovation." em verde */
  .hero-onda { right: -30vw; top: 14vh; width: 90vw; height: 90vw; color: var(--bege); opacity: .14; }
  .scroll-cue { display: none; }
}

/* Seções ----------------------------------------------------------------- */
.section { padding-block: clamp(80px, 12vw, 150px); position: relative; }
.section.bege { background: var(--bege); color: var(--navy); }
.section.navy { background: var(--navy); color: var(--bege); }
.section.lime { background: var(--lime); color: var(--navy); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-sub { max-width: 58ch; margin-top: 20px; font-size: 1.1rem; opacity: .8; }
.navy .kicker, .contact .kicker { color: var(--lime); }

/* Sobre */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-text .h2 { margin-bottom: 32px; max-width: 20ch; }
.about-text p:not(.kicker):not(.cta-line) { max-width: 56ch; opacity: .85; }
.cta-line { font: 500 1.35rem/1.3 var(--font-display); margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--lime-2); }
.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.tile { display: grid; place-items: center; border-radius: var(--radius-lg); }
.tile-navy { position: absolute; left: -36px; bottom: -36px; width: 140px; height: 140px; background: var(--navy); color: var(--lime); }
.tile svg { width: 56px; height: 56px; }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(80px, 10vw, 130px); }
.mvv-card { padding: 32px; border: 1px solid var(--line-light); border-radius: var(--radius-lg); transition: background-color .3s, border-color .3s; }
.mvv-card:hover { background: rgba(29, 33, 45, .04); border-color: rgba(29, 33, 45, .3); }
.mvv-num { display: block; margin-bottom: 48px; font: 500 .9rem/1 var(--font-display); color: var(--lime-2); }
.mvv-card h3 { font-size: 1.6rem; margin-bottom: 14px; }
.mvv-card p { margin: 0; opacity: .8; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .tile-navy { left: auto; right: -12px; bottom: -24px; width: 110px; height: 110px; }
  .mvv { grid-template-columns: 1fr; }
}

/* Serviços */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column;
  min-height: 340px; padding: 32px 28px;
  background: var(--navy-2); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .35s var(--ease), background-color .35s, color .35s;
}
.service::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px;
  background: currentColor; opacity: .05;
  clip-path: path("M140 28.6V5.4c0-3-2.6-5.4-5.7-5-30.7 3.4-49.2 21.6-64.3 42.3C47.7 71.7 31.8 105.9 0 111.2v23.2c0 3 2.6 5.4 5.7 5 30.7-3.4 49.2-21.6 64.3-42.3C92.3 69 108.2 34.4 140 28.6Z");
  transition: opacity .35s, transform .5s var(--ease);
}
.service:hover { transform: translateY(-6px); background: var(--lime); color: var(--navy); }
.service:hover::after { opacity: .15; transform: rotate(-8deg) scale(1.2); }
.service-icon { width: 40px; height: 40px; color: var(--lime); margin-bottom: auto; transition: color .35s; }
.service:hover .service-icon { color: var(--navy); }
.service h3 { font-size: 1.45rem; margin: 48px 0 14px; }
.service p { margin: 0; font-size: .97rem; opacity: .78; }

@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* Faixa */
.band { position: relative; height: clamp(420px, 70vh, 720px); overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.band img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29, 33, 45, .8), rgba(29, 33, 45, .1) 70%); }
.band-title { margin: 0; font: 500 clamp(2.4rem, 6vw, 4.75rem)/1 var(--font-display); letter-spacing: -.03em; }

/* Como trabalhamos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.step { padding: 32px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-light); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 28px; border-radius: 50%; background: var(--navy); color: var(--lime); font: 500 .9rem/1 var(--font-display); }
.step h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step p { opacity: .8; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 24px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line-light); margin-top: 28px; }
}

.concept {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(64px, 8vw, 110px); padding: clamp(28px, 4vw, 48px);
  background: var(--navy); color: var(--bege); border-radius: var(--radius-lg);
}
.concept-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; min-width: 0; }
.concept-glyph { width: 64px; height: 64px; margin-bottom: 14px; color: var(--bege); }
.concept-glyph svg { width: 100%; height: 100%; }
.concept-glyph path { fill: none; stroke: currentColor; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.concept-glyph path.fill { fill: currentColor; stroke: none; }
.concept-item.is-final .concept-glyph { color: var(--lime); }
.concept-item.is-final .concept-glyph path { fill: currentColor; stroke: none; }
.concept-item strong { font: 500 1.2rem/1.1 var(--font-display); }
.concept-item span { font-size: .88rem; opacity: .7; max-width: 22ch; }
.concept-op { font: 400 2rem/1 var(--font-display); color: var(--lime); }

@media (max-width: 900px) {
  .concept { flex-wrap: wrap; justify-content: flex-start; }
  .concept-item { flex: 1 1 40%; }
  .concept-op { display: none; }
}

/* Valores */
.values-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.values-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.values-intro .h2 { margin-bottom: 24px; }
.values-intro p:not(.kicker) { max-width: 40ch; opacity: .85; }
.values { list-style: none; margin: 0; padding: 0; }
.values li { display: flex; gap: 22px; padding: 28px 0; border-top: 1px solid rgba(29, 33, 45, .22); }
.values li:last-child { border-bottom: 1px solid rgba(29, 33, 45, .22); }
.val-mark { width: 22px; height: 22px; margin-top: 6px; background: var(--navy); clip-path: polygon(0 0, 55% 0, 0 70%); transition: transform .4s var(--ease); }
.values li:hover .val-mark { transform: rotate(90deg); }
.values h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.values p { margin: 0; opacity: .8; }

@media (max-width: 900px) {
  .values-wrap { grid-template-columns: 1fr; }
  .values-intro { position: static; }
}

/* Para quem */
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.split-media::before {
  content: ""; position: absolute; left: -24px; top: -24px; width: 110px; height: 110px; z-index: 1;
  background: var(--lime); border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.split-text .h2 { margin-bottom: 24px; }
.split-text p:not(.kicker) { opacity: .85; max-width: 50ch; }
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: baseline; }
.checks li::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: var(--lime); clip-path: polygon(0 0, 55% 0, 0 70%); translate: 0 1px; }

@media (max-width: 900px) {
  .split-inner { grid-template-columns: 1fr; }
  .split-media::before { left: -8px; top: -8px; width: 72px; height: 72px; }
}

/* Contato */
.contact { background: var(--navy); overflow: hidden; isolation: isolate; }
.contact .pattern {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/patterns/chevron-azul.webp") center / 900px auto repeat;
  opacity: .9;
  mask-image: linear-gradient(90deg, transparent 20%, #000 90%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%);
}
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.contact-copy .display-sm { margin-bottom: 28px; }
.contact-copy p:not(.kicker) { max-width: 44ch; opacity: .85; font-size: 1.1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; border-radius: var(--radius-lg);
  background: rgba(46, 50, 66, .85); backdrop-filter: blur(8px);
  text-decoration: none; font: 500 1.1rem/1.2 var(--font-display);
  border: 1px solid var(--line-dark);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
  overflow-wrap: anywhere;
}
.contact-list a:hover { background: var(--lime); color: var(--navy); transform: translateX(6px); }
.contact-list svg { width: 28px; height: 28px; color: var(--lime); transition: color .3s; }
.contact-list a:hover svg { color: var(--navy); }
.contact-list small { display: block; margin-bottom: 4px; font: 500 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .6; }

@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); border-top: 1px solid var(--line-dark); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; }
.footer-logo { width: 240px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.footer-nav a { text-decoration: none; opacity: .75; font-size: .95rem; }
.footer-nav a:hover { opacity: 1; color: var(--lime); }
.footer-meta { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .85rem; opacity: .55; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* Revelação ao rolar ------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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