/* Montserrat alojada no próprio site (sem pedidos ao Google: RGPD) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../assets/fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../assets/fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   Montiel Group — estilos
   Identidade: Manual de Marca Montiel v0.1
   Verde #37811E · Preto #151815 · Branco · Fundo suave #F3F6F0 · Montserrat
   Base partilhada com os sites da Montiel Facility Services e Business Solutions.
   ========================================================= */

:root {
  --green: #37811E;
  --green-700: #2b6617;
  --green-300: #7fbf64;
  --ink: #151815;
  --ink-2: #2a2f2a;
  --text: #2e332e;
  --muted: #5d655d;
  --line: #e2e7de;
  --soft: #F3F6F0;
  --white: #FFFFFF;
  --red: #c4472f;
  --gold: #d6b25e;
  --gold-700: #a9822f;

  --ease: cubic-bezier(.22,.8,.24,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --container: 1160px;
  --gutter: 24px;
  --header: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.ico { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.18em; }

.container {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-weight: 600; font-size: 14.5px; letter-spacing: .02em; text-decoration: none; border-radius: 999px; border: 0;
  padding: 15px 30px; line-height: 1.2; white-space: nowrap;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #e7c878, var(--gold) 45%, var(--gold-700)); color: #1b1607; }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---------- Tipografia auxiliar ---------- */
.kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 16px;
}
.kicker.light { color: var(--green-300); }
.hl { color: var(--green); font-style: normal; }

/* ---------- Reveal ---------- */
.reveal { transform: translateY(18px); transition: transform .9s var(--ease); }
.reveal.is-in { transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 20px; }
.brand img { width: 136px; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav > a { text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: .04em; color: var(--ink-2); position: relative; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: var(--green); transition: right .3s var(--ease); }
.nav > a:hover::after { right: 0; }
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lang-opt { padding: 2px 4px; color: #a7aea6; cursor: default; }
.lang-opt.is-on { color: var(--ink); }
a.lang-opt { color: #6f776e; cursor: pointer; text-decoration: none; }
a.lang-opt:hover { color: var(--ink); }
.lang-opt + .lang-opt::before { content: "/"; margin-right: 6px; color: var(--line); }

/* =========================================================
   ABERTURA
   ========================================================= */
.hero { min-height: min(calc(88vh - var(--header)), 720px); display: flex; align-items: center; padding: 96px 0; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Logótipo: o nome revela-se e a barra verde do E desenha-se */
.logo-anim {
  position: relative; width: min(500px, 80vw); aspect-ratio: 1000 / 184;
  clip-path: inset(0 100% 0 0); animation: logoIn 1.2s var(--ease) .2s forwards;
}
.logo-anim img { position: absolute; inset: 0; width: 100%; height: 100%; }
.la-final { opacity: 0; animation: showNow 0s linear 2s forwards; }
.la-bar {
  position: absolute; left: 78.19%; top: 42.39%; width: 6.7%; height: 15.82%;
  background: var(--green); border-radius: 0 9% 9% 0 / 0 20% 20% 0;
  transform: scaleX(0); transform-origin: left center;
  animation: barIn .7s var(--spring) 1.2s forwards;
}
.rule { width: 48px; height: 2px; background: var(--green); margin: 48px 0 36px; transform: scaleX(0); animation: barIn .8s var(--ease) 1.6s forwards; }
@keyframes logoIn { to { clip-path: inset(0 0 0 0); } }
@keyframes barIn { to { transform: scaleX(1); } }
@keyframes showNow { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-title {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; max-width: 760px;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.8s forwards;
}
.hero-sub {
  margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); line-height: 2.2;
  opacity: 0; animation: fadeUp 1s var(--ease) 2s forwards;
}
.hero-sub span { color: #a0a89f; font-weight: 500; }

/* =========================================================
   ÁREAS · só as logos
   ========================================================= */
.areas { padding: 0 0 140px; }
.areas .section-head { text-align: center; margin-bottom: 8px; }
.logo-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-tile {
  position: relative; display: grid; place-items: center; height: 260px; padding: 40px 36px 56px; text-decoration: none;
  transition: background .4s var(--ease);
}
.logo-tile + .logo-tile { border-left: 1px solid var(--line); }
.logo-tile img { height: 52px; width: auto; max-width: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.logo-tile img.l-business { height: 68px; }
.tile-more {
  position: absolute; left: 0; right: 0; bottom: 28px; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green-700);
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.logo-tile:hover, .logo-tile:focus-visible { background: var(--soft); }
.logo-tile:hover img { transform: scale(1.03); }
.logo-tile:hover .tile-more, .logo-tile:focus-visible .tile-more { opacity: 1; transform: none; }

/* Rodrigues & Cardoso: identidade própria (preto e dourado) */
.tile-rc { background: #000; }
.tile-rc img { height: 84px; }
.tile-rc .tile-more { color: var(--gold); }
.logo-tile.tile-rc:hover, .logo-tile.tile-rc:focus-visible { background: #080808; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--ink); padding: 130px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.contact-copy h2 { color: #fff; font-size: clamp(30px, 3.8vw, 46px); font-weight: 600; }
.contact-copy .hl { color: var(--green-300); }
.contact-copy > p { color: #a9b3a7; font-size: 17px; margin: 22px 0 30px; max-width: 440px; }
.c-mail { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 16.5px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 5px; transition: border-color .25s; }
.c-mail .ico { color: var(--green-300); }
.c-mail:hover { border-color: var(--green-300); }

.quote { display: grid; gap: 22px; }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.q-field { display: grid; gap: 4px; }
.q-field span { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8f9a8d; }
.q-field select, .q-field input, .q-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22);
  border-radius: 0; padding: 10px 0 12px; transition: border-color .25s; resize: vertical;
}
.q-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a9b3a7' stroke-width='2' stroke-linecap='round' d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 28px; }
.q-field select option { color: var(--ink); }
.q-field select:focus, .q-field input:focus, .q-field textarea:focus { outline: none; border-bottom-color: var(--green-300); }
.q-field.invalid select, .q-field.invalid input, .q-field.invalid textarea { border-bottom-color: #e2765f; }
.q-error { font-size: 13.5px; color: #e2765f; font-weight: 500; }
.q-error:empty { display: none; }
.quote .btn { margin-top: 10px; }

/* =========================================================
   PÁGINAS DAS ÁREAS (Sobre)
   ========================================================= */
.about-top { background: var(--soft); padding: 36px 0 88px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .25s; }
.back:hover { color: var(--green-700); }
.back .ico { transition: transform .3s var(--ease); }
.back:hover .ico { transform: translateX(-3px); }
.about-logo { display: flex; justify-content: center; margin-top: 64px; }
.about-logo img { height: 88px; width: auto; animation: fadeUp 1s var(--ease) .1s both; }
.about-logo img.l-business { height: 112px; }
.top-rc { background: #000; }
.top-rc .back { color: #8f8f8f; }
.top-rc .back:hover { color: var(--gold); }
.top-rc .about-logo img { height: 140px; }

.about { padding: 110px 0 120px; }
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 110px; align-items: start; }
.about-mark { width: 72px; height: 72px; margin-bottom: 30px; display: grid; place-items: center; }
.about-mark img { width: 100%; height: 100%; object-fit: contain; }
.mark-rc { width: 96px; height: 76px; padding: 10px 12px; background: #000; border-radius: 14px; }
.about-copy h1 { font-size: clamp(30px, 3.6vw, 44px); }
.about-lead { font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.5; margin: 22px 0 26px; }
.about-copy > p:not(.about-lead) { color: var(--muted); margin-bottom: 16px; max-width: 560px; }
.about-copy .btn { margin-top: 22px; }
.about-copy > * { animation: fadeUp .9s var(--ease) both; }
.about-copy > :nth-child(2) { animation-delay: .08s; }
.about-copy > :nth-child(3) { animation-delay: .16s; }
.about-copy > :nth-child(n+4) { animation-delay: .24s; }
.side-h { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.hair-list { list-style: none; padding: 0; margin: 0 0 48px; }
.hair-list li { padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.hair-list li.more { color: var(--green-700); font-weight: 600; }
.side-p { color: var(--muted); }

.others { border-top: 1px solid var(--line); padding: 44px 0; }
.others-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 44px; }
.others .kicker { margin: 0; color: var(--muted); }
.others a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.others a .ico { color: var(--green); transition: transform .3s var(--ease); }
.others a:hover .ico { transform: translateX(4px); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; padding-top: 52px; padding-bottom: 40px; }
.f-left { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 44px; }
.f-left img { width: 120px; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.f-links a, .f-mail { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .25s; }
.f-links a:hover, .f-mail:hover { color: var(--green-700); }
.f-right { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.socials { display: flex; gap: 6px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .25s, color .25s; }
.socials a:hover { background: var(--green); color: #fff; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; padding-bottom: 26px; font-size: 12.5px; color: var(--muted); }
.footer-inner + .f-bottom { border-top: 1px solid var(--line); }
.f-bottom a { color: var(--muted); text-decoration: none; }
.f-bottom a:hover { color: var(--green-700); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 980px) {
  :root { --gutter: 20px; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 760px) {
  :root { --header: 68px; }
  body { font-size: 16px; }
  .brand img { width: 118px; }
  .nav { gap: 22px; }
  .hero { min-height: 0; padding: 88px 0 96px; }
  .rule { margin: 40px 0 30px; }
  .areas { padding-bottom: 96px; }
  .logo-row { grid-template-columns: 1fr; }
  .logo-tile { height: 200px; }
  .logo-tile + .logo-tile { border-left: 0; border-top: 1px solid var(--line); }
  .tile-more { opacity: 1; transform: none; bottom: 22px; }
  .contact { padding: 96px 0; }
  .q-row { grid-template-columns: 1fr; }
  .about-top { padding-bottom: 64px; }
  .about-logo { margin-top: 48px; }
  .about-logo img { height: 64px; }
  .about-logo img.l-business { height: 84px; }
  .top-rc .about-logo img { height: 104px; }
  .about { padding: 72px 0 88px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .f-left { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .nav .lang { display: none; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { transform: none; }
  .logo-anim { clip-path: none; }
  .la-final { opacity: 1; }
  .la-bar, .rule { transform: none; }
  .hero-title, .hero-sub { opacity: 1; }
}

/* Só para leitores de ecrã e motores de pesquisa */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ Página de privacidade e informação legal ============ */
.legal { padding: 48px 0 96px; }
.legal .container { max-width: 760px; }
.legal .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.legal .crumbs a { color: inherit; text-decoration: none; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; color: var(--ink); margin: 0 0 28px; }
.legal h2 { font-size: 19px; color: var(--ink); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); }
.legal .legal-date { margin-top: 40px; font-size: 14px; color: var(--muted); }
