﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: clip;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.field-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Cloudflare Turnstile: fora do ecrã mas com caixa renderizável (invisível) — sem impacto visual */
.sw-turnstile-host {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
.hero-img,
.logo-img,
.s-about-media img,
.s-recruit-bg,
.legal-modal-logo {
  -webkit-user-drag: none;
  user-select: none;
}
body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}
a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}
:root {
  --black: #0e0e0e;
  --white: #ffffff;
  --grey: #f2f2f2;
  --muted: #777777;
  --accent: #ff751f;
  --form-control-h: 46px;
  --hdr-h: 84px;
  --wrap: min(1280px, 92vw);
}
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 200; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); padding: 0 clamp(1.5rem, 4vw, 3.5rem); transition: background 0.3s ease, border-bottom 0.3s ease; position: relative; }
.site-header.scrolled .hdr-inner { background: rgba(14,14,14,0.97); border-bottom: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: calc(var(--hdr-h) * 0.58);
  width: auto;
  aspect-ratio: 312 / 150;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.logo em { font-style: normal; color: var(--accent); }
.main-nav {
  position: fixed;
  top: 0;
  right: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 100vw;
  height: var(--hdr-h);
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav a { font-size: clamp(0.84rem, 1.25vw, 0.95rem); font-weight: 600; color: rgba(255,255,255,0.75); text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 4px; position: relative; z-index: 101; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; transform-origin: center; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }
.btn { display: inline-flex; align-items: center; padding: 0.85rem 1.6rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--accent); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,117,31,0.16); border-color: rgba(255,117,31,0.7); color: var(--white); }
.btn-hero { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.38); }
.btn-hero:hover { background: rgba(255,117,31,0.12); border-color: rgba(255,117,31,0.65); color: var(--white); transform: translateY(-2px); }
.label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; display: block; }
.label-dark { color: var(--accent); }
.section { overflow: hidden; }
main, section {
  max-width: 100%;
}
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background-image: url("assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,10,18,0.82) 0%, rgba(10,10,18,0.62) 50%, rgba(10,10,18,0.35) 100%); }
.hero-icon { position: absolute; bottom: 8%; right: 6%; width: clamp(110px, 12vw, 180px); opacity: 0.9; z-index: 2; pointer-events: none; animation: heroIconFloat 6s ease-in-out infinite; }
@keyframes heroIconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-body { position: absolute; bottom: clamp(6rem, 14vh, 10rem); left: clamp(1.5rem, 6vw, 6rem); right: clamp(1.5rem, 6vw, 6rem); z-index: 2; display: flex; flex-direction: column; max-width: min(700px, 90vw); gap: 1.1rem; }
.hero-body h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 4.5vw, 4.4rem); font-weight: 700; line-height: 1.0; letter-spacing: -0.02em; color: var(--white); }
.hero-body h1 .dot { color: var(--accent); }
.hero-lead { font-size: clamp(0.88rem, 1.05vw, 0.98rem); color: rgba(255,255,255,0.68); max-width: 44ch; line-height: 1.65; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll-mouse { width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,0.45); border-radius: 14px; display: inline-flex; justify-content: center; padding-top: 7px; }
.hero-scroll-wheel { width: 3px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.65); animation: scrollWheel 1.4s ease-in-out infinite; }
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 0.9; }
  70% { transform: translateY(10px); opacity: 0.15; }
  100% { transform: translateY(0); opacity: 0.9; }
}
.stats-band { background: var(--black); border-bottom: 1px solid rgba(255,255,255,0.06); }
.stats-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3.5rem); display: flex; align-items: stretch; }
.stat-item { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; padding: 2rem 0; }
.stat-sep { width: 1px; background: rgba(255,255,255,0.1); margin: 1.2rem 2.5rem; flex-shrink: 0; }
.stat-num { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 700; color: var(--white); line-height: 1; }
.stat-num em { font-style: normal; color: var(--accent); font-size: 0.62em; }
.stat-label { font-size: 0.67rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.38); }
.s-about { background: var(--white); }
.s-about-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.s-about-text h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 4.5vw, 4.2rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.025em; color: var(--black); margin-bottom: 1.5rem; }
.s-about-text p { font-size: 0.97rem; color: #555; max-width: 46ch; line-height: 1.78; margin-bottom: 1rem; }
.s-about-text .btn { margin-top: 1rem; }
.s-about-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.75rem; }
.s-about-img { aspect-ratio: 3/4; overflow: hidden; }
.s-about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s ease; }
.s-about-img:hover img { transform: scale(1.04); }
.s-about-img-2 { aspect-ratio: 3/4; overflow: hidden; margin-top: 3rem; }
.s-about-img-2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s ease; }
.s-about-img-2:hover img { transform: scale(1.04); }
.ticker { overflow: hidden; background: var(--accent); padding: 0.8rem 0; }
.ticker-inner { display: inline-flex; align-items: center; gap: 2.2rem; white-space: nowrap; animation: tickerScroll 22s linear infinite; }
.ticker-inner span { font-family: "Space Grotesk", sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.tick-dot { opacity: 0.5; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.s-why { background: var(--black); position: relative; overflow: hidden; }
.s-why::before { content: ""; position: absolute; top: -80px; right: -80px; width: 420px; height: 420px; border: 1px solid rgba(255,117,31,0.07); border-radius: 50%; pointer-events: none; }
.s-why::after { content: ""; position: absolute; bottom: -100px; left: -100px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none; }
.s-why-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 4vw, 3.5rem); position: relative; z-index: 1; }
.s-why-header { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 5vw, 5rem); }
.s-why-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 4.5vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; color: var(--white); }
.s-why-sub { font-size: 0.95rem; color: rgba(255,255,255,0.5); line-height: 1.72; max-width: 44ch; }
.s-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); border-top: 1px solid rgba(255,255,255,0.1); padding-top: clamp(2.5rem, 4vw, 4rem); }
.why-item { display: flex; flex-direction: column; gap: 0.8rem; }
.why-num { font-family: "Space Grotesk", sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.why-item h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--white); }
.why-item p { font-size: 0.88rem; color: rgba(255,255,255,0.48); line-height: 1.72; }
.s-services { background: var(--black); }
.s-services-header { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 4vw, 3.5rem) 2.5rem; text-align: right; }
.s-services-header h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 4.5vw, 4.2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 0.95; color: var(--white); margin-bottom: 1rem; }
.s-services-sub { font-size: 0.97rem; color: rgba(255,255,255,0.45); max-width: 52ch; margin-left: auto; }
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); }
.svc-card {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  cursor: pointer;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Betão: foto vertical — encaixa no cartão com foco no jorro */
.svc-card--betao {
  background-position: center 38%;
  background-size: cover;
}
.svc-card:hover { transform: scale(1.02); }
/* overlay base — sempre visível */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,18,0.88) 0%, rgba(10,10,18,0.28) 55%, transparent 100%);
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
/* overlay hover — escurece suavemente */
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,10,18,0.72);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.svc-card:hover::before { opacity: 0; }
.svc-card:hover::after { opacity: 1; }
.svc-card-front, .svc-card-back {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.svc-card-back {
  opacity: 0;
  transform: translateY(14px);
  justify-content: center;
  gap: 0.85rem;
}
.svc-card:hover .svc-card-front { opacity: 0; transform: translateY(-10px); }
.svc-card:hover .svc-card-back { opacity: 1; transform: translateY(0); }
/* touch active state mirrors hover */
.svc-card.active::before { opacity: 0; }
.svc-card.active::after { opacity: 1; }
.svc-card.active .svc-card-front { opacity: 0; transform: translateY(-10px); }
.svc-card.active .svc-card-back { opacity: 1; transform: translateY(0); }
.svc-card-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 700; color: var(--white); line-height: 1.1; }
.svc-card-back h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--white); }
.svc-card-back p { font-size: 0.88rem; color: rgba(255,255,255,0.62); line-height: 1.7; max-width: 32ch; }
.btn-svc-orcamento {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(255,117,31,0.4);
  padding: 0.45rem 0.9rem;
  margin-top: 0.4rem;
  align-self: flex-start;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.btn-svc-orcamento:hover { background: rgba(255,117,31,0.18); border-color: var(--accent); color: var(--white); }
.s-faq { background: var(--white); }
.s-faq-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.s-faq-header { position: sticky; top: calc(var(--hdr-h) + 2rem); }
.s-faq-header h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 0.95; color: var(--black); }
.s-faq-intro { font-size: 0.95rem; color: rgba(0,0,0,0.55); line-height: 1.65; max-width: 42ch; margin-top: 1rem; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-item:first-child { border-top: 1px solid #e8e8e8; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.4rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s, transform 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s;
}
.faq-icon::before { width: 8px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 8px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-q[aria-expanded="true"] .faq-icon { border-color: var(--accent); transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-a.open { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-a.open .faq-a-inner { padding-bottom: 1.3rem; }
.faq-a p { font-size: 0.94rem; color: #555; line-height: 1.76; max-width: 58ch; }
.faq-a p + p { margin-top: 0.75rem; }
.faq-a ul { margin: 0.65rem 0 0.75rem 1.15rem; padding: 0; max-width: 58ch; }
.faq-a li { font-size: 0.94rem; color: #555; line-height: 1.76; margin-bottom: 0.35rem; }
.faq-a li:last-child { margin-bottom: 0; }
.s-recruit { background: var(--black); position: relative; overflow: hidden; }
.s-recruit-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; filter: saturate(0); }
.s-recruit-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,14,14,0.98) 45%, rgba(14,14,14,0.55) 100%); }
.s-recruit-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.s-recruit-inner h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 4.5vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; color: var(--white); }
.s-recruit-right { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.s-recruit-right > p { font-size: 0.98rem; color: rgba(255,255,255,0.52); line-height: 1.75; max-width: 42ch; }
.recruit-points { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.recruit-points li { font-size: 0.86rem; color: rgba(255,255,255,0.62); padding-left: 1.2rem; position: relative; }
.recruit-points li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.s-contact { background: var(--white); }
.s-contact-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.s-contact-info h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 700; letter-spacing: -0.025em; line-height: 0.95; color: var(--black); margin-bottom: 2rem; }
.contact-intro { font-size: 0.95rem; color: #565656; line-height: 1.75; max-width: 48ch; margin-bottom: 1.4rem; }
.contact-list { list-style: none; display: grid; gap: 0.75rem; }
.contact-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.26rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e9e9e9;
  background: #fcfcfc;
}
.contact-list-label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.contact-list-value {
  font-size: 0.93rem;
  color: #222;
  font-weight: 600;
  line-height: 1.5;
}
.contact-list-link {
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.contact-list-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
}
.contact-external-link {
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.contact-list-link,
.contact-external-link,
.ftr-col a,
.ftr-col span,
.form-gdpr,
.field-hint {
  overflow-wrap: anywhere;
}
/* ---- FORMS ---- */
.req { color: var(--accent); font-weight: 700; }

.s-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-top: 3px solid var(--accent);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}
.form-intro { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 0.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: #888;
}
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Phone input wrapper - full width with compact country selector */
.phone-input-wrapper {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.phone-country-selector {
  position: relative;
  flex-shrink: 0;
}

.phone-country-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 92px;
  height: var(--form-control-h);
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  padding: 0 0.8rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.country-dial {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.country-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid #666;
  border-bottom: 1.7px solid #666;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.phone-country-btn.is-open .country-arrow {
  transform: rotate(-135deg) translateY(-1px);
}

.phone-country-btn:hover {
  border-color: #d0d0d0;
  background: #fff;
}

.phone-country-btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,117,31,0.1);
}

/* Dropdown */
.phone-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  width: min(280px, calc(100vw - 2rem));
  margin-top: 0.4rem;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  max-height: 320px;
}

.phone-country-dropdown[hidden] {
  display: none !important;
}

.phone-search {
  padding: 0.8rem;
  border: none;
  border-bottom: 1px solid #efefef;
  border-radius: 6px 6px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  background: #fafafa;
  outline: none;
  transition: background 0.2s;
}

.phone-search:focus {
  background: #ffffff;
  border-bottom-color: var(--accent);
}

.phone-search::placeholder {
  color: #bbb;
}

.phone-country-list {
  flex: 1;
  overflow-y: auto;
  max-height: 260px;
}

.phone-country-item {
  padding: 0.75rem 0.9rem;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.phone-country-item:hover {
  background: #f5f5f5;
}

.phone-country-item.active {
  background: rgba(255,117,31,0.1);
  color: var(--accent);
  font-weight: 600;
}

.phone-country-item:disabled,
.phone-country-item.hidden {
  display: none;
}

/* Phone input field - full width */
.phone-input-wrapper input[type="tel"] {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 0.9rem;
  min-height: var(--form-control-h);
  height: var(--form-control-h);
  line-height: 1.2;
  font-family: "Inter", sans-serif;
  font-size: 0.93rem;
  color: var(--black);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper input[type="tel"]:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,117,31,0.1);
}

.phone-input-wrapper input[type="tel"]::placeholder {
  color: #bbb;
}

/* Unified modern input style */
.field input:not([type="file"]),
.field textarea,
.field select {
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 0.9rem;
  min-height: var(--form-control-h);
  height: var(--form-control-h);
  line-height: 1.2;
  font-family: "Inter", sans-serif;
  font-size: 0.93rem;
  color: var(--black);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.field input,
.field select,
.field textarea,
.btn,
.btn-form-submit {
  min-width: 0;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,117,31,0.1);
}
.field input::placeholder,
.field textarea::placeholder { color: #bbb; }
.field textarea {
  min-height: 120px;
  height: auto;
  padding: 0.72rem 0.9rem;
  line-height: 1.5;
}
.field input[type="date"] { cursor: pointer; }

/* File upload zone */
.file-upload-area {
  position: relative;
  border: 1.5px dashed #d0d0d0;
  border-radius: 6px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.file-upload-area:hover,
.file-upload-area:focus-within {
  border-color: var(--accent);
  background: #fff9f5;
}
.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  z-index: 2;
}
.file-upload-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.2rem 1rem;
  text-align: center;
  pointer-events: none;
  color: #999;
}
.file-upload-hint svg { opacity: 0.55; }
.file-upload-hint span { font-size: 0.87rem; font-weight: 500; color: #666; }
.file-upload-hint small { font-size: 0.72rem; color: #bbb; }

.file-upload-meta {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.file-upload-empty {
  font-size: 0.74rem;
  color: #9a9a9a;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  border: 1px solid #ececec;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.36rem 0.28rem 0.62rem;
}

.file-chip-name {
  font-size: 0.74rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.file-chip-remove {
  border: 0;
  background: #f1f1f1;
  color: #666;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  line-height: 18px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}

.file-chip-remove:hover {
  background: #ffd9c2;
  color: #9d3f00;
}

.field-hint { display: block; font-size: 0.69rem; color: #aaa; margin-top: 0.35rem; }

/* Form extra (collapsible) */
.form-extra {
  border: 1.5px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  padding: 0.9rem 1.1rem 1.1rem;
}
.form-extra-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-extra.is-open .form-extra-body { grid-template-rows: 1fr; }
.form-extra-body-inner { overflow: hidden; }
.form-extra-body-inner > .field,
.form-extra-body-inner > .field-group { margin-top: 0.9rem; }
.form-extra summary {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.form-extra summary::-webkit-details-marker { display: none; }
.form-extra summary::after {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid #aaa;
  border-bottom: 2px solid #aaa;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-extra[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.form-extra[open] summary { margin-bottom: 0.5rem; }

/* Form bottom row */
.form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.form-gdpr {
  font-size: 0.72rem;
  color: #aaa;
  line-height: 1.5;
  max-width: 320px;
}
.form-gdpr a { color: #888; text-decoration: underline; }

/* Primary submit button (form) */
.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.78rem 1.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,117,31,0.22);
}
.btn-form-submit:hover {
  background: #e8661a;
  box-shadow: 0 6px 20px rgba(255,117,31,0.32);
  transform: translateY(-1px);
}
.btn-form-submit:active { transform: translateY(0); }
.btn-form-submit svg { flex-shrink: 0; }

/* ---- MODAL ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.modal-panel {
  position: relative;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: #ffffff;
  padding: 2rem clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
}

.main-nav-close {
  display: none;
}

.form-grid > *,
.field-group > *,
.s-about-wrap > *,
.s-why-header > *,
.s-why-grid > *,
.s-faq-inner > *,
.s-recruit-inner > *,
.s-contact-wrap > *,
.ftr-top > * {
  min-width: 0;
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--black); }

/* Modal simple header (no logo) */
.modal-simple-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #ededed;
  margin-bottom: 1.5rem;
}
.modal-panel h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1;
  margin: 0;
}
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-grid { margin-bottom: 0; }
.modal-footer-row { margin-top: 0.5rem; }
/* ---- FOOTER ---- */
.site-footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.07); overflow: hidden; }

/* top columns row */
.ftr-top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.2rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.ftr-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.1rem;
  text-align: center;
}
.ftr-col { display: flex; flex-direction: column; gap: 0.55rem; align-items: center; text-align: center; }
.ftr-col a, .ftr-col span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.ftr-col a:hover { color: var(--white); }
.ftr-col a[href^="mailto:"]:hover,
.ftr-col a[href^="tel:"]:hover { text-decoration: underline; text-underline-offset: 3px; }

/* newsletter */
.ftr-newsletter { display: flex; flex-direction: column; gap: 0.9rem; justify-content: flex-end; }
.ftr-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.ftr-social-link svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s; }
.ftr-social-link:hover svg { opacity: 1; }
.ftr-social-soon { opacity: 0.45; cursor: default; pointer-events: none; }
.ftr-form { display: flex; gap: 0; }
.ftr-form input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  border-radius: 4px 0 0 4px;
  transition: border-color 0.2s, background 0.2s;
}
.ftr-form input::placeholder { color: rgba(255,255,255,0.28); }
.ftr-form input:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.09); }
.ftr-form button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 0 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s, border-color 0.2s;
}
.ftr-form button:hover { background: var(--accent); border-color: var(--accent); }

/* large discreet wordmark */
.ftr-wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 16vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.055);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(1.2rem, 4vw, 2rem);
  box-sizing: border-box;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* bottom bar */
.ftr-bottom {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem clamp(1.2rem, 4vw, 2rem);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
}
.ftr-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.25); margin: 0; }
.ftr-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.ftr-legal-links a { font-size: 0.75rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.ftr-legal-links a:hover { color: rgba(255,255,255,0.6); }

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(14,14,14,0.82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 210;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: rgba(255,117,31,0.92);
  border-color: rgba(255,117,31,0.92);
}

.btn.is-loading {
  opacity: 0.78;
  pointer-events: none;
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.72s ease, transform 0.72s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =====================
   BREAKPOINT: LARGE LAPTOP
   ===================== */
@media (max-width: 1200px) {
  .hdr-inner {
    padding: 0 1.2rem;
  }

  .main-nav {
    right: 1.2rem;
    gap: 1.25rem;
  }

  .main-nav a {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
  }

  .hero-body {
    max-width: min(760px, 92vw);
  }

  .s-about-wrap,
  .s-why-inner,
  .s-services-header,
  .s-faq-inner,
  .s-contact-wrap,
  .s-recruit-inner,
  .ftr-top,
  .ftr-bottom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* =====================
   BREAKPOINT: SMALL LAPTOP
   ===================== */
@media (max-width: 1100px) {
  .hero-body h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  }

  .s-about-wrap,
  .s-faq-inner,
  .s-contact-wrap {
    gap: clamp(2rem, 5vw, 3.2rem);
  }
}

/* =====================
   BREAKPOINT: TABLET
   ===================== */
@media (max-width: 1024px) {
  :root {
    --hdr-h: 78px;
    --form-control-h: 47px;
  }

  .hdr-inner {
    padding: 0 1.2rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 140;
  }

  .menu-toggle.open {
    position: fixed;
    top: 1.2rem;
    right: 1.15rem;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    right: 0;
    top: 0;
    height: 100dvh;
    z-index: 102;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    clip-path: circle(0% at calc(100% - 2.5rem) 42px);
    transition: clip-path 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow-y: auto;
    padding: 6rem 1.2rem 2rem;
  }

  .main-nav.open {
    clip-path: circle(200% at calc(100% - 2.5rem) 42px);
    pointer-events: auto;
  }

  .main-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.05rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
  }

  .main-nav a {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.45rem, 4.4vw, 2.15rem);
    font-weight: 700;
    color: rgba(255,255,255,0.32);
    letter-spacing: -0.01em;
    padding: 0.72rem 1rem;
    min-height: 44px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.38s ease, transform 0.38s ease, color 0.2s;
    text-align: center;
    text-decoration: none;
  }

  .main-nav.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.open a:nth-of-type(1) { transition-delay: 0.12s; }
  .main-nav.open a:nth-of-type(2) { transition-delay: 0.18s; }
  .main-nav.open a:nth-of-type(3) { transition-delay: 0.24s; }
  .main-nav.open a:nth-of-type(4) { transition-delay: 0.30s; }
  .main-nav.open a:nth-of-type(5) { transition-delay: 0.36s; }

  .hero {
    min-height: 620px;
    background-position: center 32%;
  }

  .hero-body {
    max-width: min(760px, 88vw);
    bottom: clamp(5rem, 12vh, 8rem);
    left: 1.4rem;
    right: 1.4rem;
    gap: 0.95rem;
  }

  .hero-body h1 {
    font-size: clamp(2.1rem, 6.7vw, 3.4rem);
  }

  .hero-lead {
    font-size: clamp(0.93rem, 2.15vw, 1rem);
    max-width: 40ch;
  }

  .hero-scroll {
    bottom: 1.2rem;
  }

  .hero-icon {
    width: clamp(98px, 18vw, 146px);
    right: 1.2rem;
    bottom: 4.2rem;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .stat-sep {
    display: none;
  }

  .stat-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
  }

  .stat-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .s-about-wrap,
  .s-why-inner,
  .s-services-header,
  .s-faq-inner,
  .s-contact-wrap,
  .s-recruit-inner {
    padding-top: clamp(3.6rem, 7vw, 5rem);
    padding-bottom: clamp(3.6rem, 7vw, 5rem);
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .s-services-header {
    text-align: left;
  }

  .s-services-sub {
    margin-left: 0;
  }

  .contact-list-item,
  .s-contact-form,
  .modal-panel,
  .form-extra {
    border-radius: 8px;
  }

  /* structure */
  .s-recruit-inner, .s-contact-wrap { grid-template-columns: 1fr; }
  .s-about-wrap { grid-template-columns: 1fr; }
  .s-about-media { grid-template-columns: 1fr 1fr; }
  .s-about-img-2 { margin-top: 0; }
  .s-why-grid { grid-template-columns: 1fr 1fr; }
  .s-why-header { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { min-width: 40%; }
  .s-faq-inner { grid-template-columns: 1fr; }
  .s-faq-header { position: static; }
  .s-contact-wrap { gap: 3rem; }
  .s-recruit-inner { gap: 2.5rem; }
  /* services: 2×2 só em tablet (não em telemóvel estreito) */
  .svc-cards { grid-template-columns: 1fr 1fr; gap: 0; }
  .svc-card { aspect-ratio: 4/5; cursor: pointer; }
  .svc-card--betao { background-position: center 40%; background-size: cover; }
  .svc-card-title { font-size: 1.2rem; }
  .svc-card-back h3 { font-size: 1.15rem; }
  .svc-card-back p { font-size: 0.88rem; max-width: 40ch; }
  /* form */
  .form-grid { grid-template-columns: 1fr; }
  .field-group { grid-template-columns: 1fr; }
  .phone-group { grid-template-columns: 1fr; }
  .form-footer-row { flex-direction: column; align-items: stretch; }
  .form-gdpr { max-width: 100%; }
  .btn-form-submit { width: 100%; justify-content: center; }

  .btn,
  .btn-form-submit,
  .btn-svc-orcamento,
  .faq-q,
  .modal-close,
  .to-top {
    min-height: 44px;
  }

  .file-chip {
    max-width: 100%;
  }
  /* modal */
  .modal { padding: 1rem; }
  .modal-panel {
    width: min(660px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 1.35rem 1.2rem;
  }
  .modal-form .field-group { grid-template-columns: 1fr; }

  .ftr-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.2rem;
  }

  .ftr-wordmark {
    font-size: clamp(3.4rem, 14vw, 7.5rem);
  }

  .ftr-col {
    gap: 0.42rem;
  }

  .to-top { display: inline-flex; }
}

/* =====================
   BREAKPOINT: TABLET LANDSCAPE
   ===================== */
@media (max-width: 960px) {
  .hero {
    min-height: 600px;
  }

  .hero-body {
    max-width: min(720px, 92vw);
  }

  .hero-body h1 {
    font-size: clamp(2.05rem, 7vw, 3.25rem);
  }

  .hero-lead {
    max-width: 35ch;
  }

  .s-services-header h2,
  .s-why-title,
  .s-about-text h2,
  .s-faq-header h2,
  .s-contact-info h2,
  .s-recruit-inner h2 {
    font-size: clamp(2rem, 5.5vw, 3rem);
  }
}

/* Telemóvel: serviços sempre em coluna única (evita 2×2 apertado) */
@media (max-width: 600px) {
  .svc-cards {
    grid-template-columns: 1fr;
  }

  .svc-card {
    aspect-ratio: 16 / 9;
    max-height: 210px;
  }
}

/* =====================
   BREAKPOINT: MID TABLET / LARGE MOBILE
   ===================== */
@media (max-width: 900px) {
  :root {
    --hdr-h: 74px;
  }

  .hero {
    min-height: 640px;
    background-position: center 34%;
  }

  .hero-body {
    max-width: min(760px, 92vw);
    bottom: clamp(4.5rem, 11vh, 7rem);
    left: 1.05rem;
    right: 1.05rem;
    gap: 0.72rem;
  }

  .hero-body h1 {
    font-size: clamp(2.3rem, 8.1vw, 3.7rem);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: clamp(0.94rem, 2.85vw, 1.02rem);
    max-width: 36ch;
  }

  .main-nav {
    padding-top: 5.8rem;
  }

  .main-nav a {
    font-size: clamp(1.6rem, 7vw, 2.35rem);
  }

  .stats-inner {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
  }

  .stat-sep {
    display: none;
  }

  .stat-item {
    min-width: 0;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .s-about-wrap,
  .s-why-inner,
  .s-services-header,
  .s-faq-inner,
  .s-contact-wrap,
  .s-recruit-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .s-services-header {
    padding-bottom: 1.6rem;
  }

  .svc-cards {
    grid-template-columns: 1fr;
  }

  .svc-card {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }

  .svc-card-front,
  .svc-card-back {
    padding: 1.15rem 1rem;
  }

  .svc-card-title {
    font-size: 1.05rem;
  }

  .svc-card-back h3 {
    font-size: 1rem;
  }

  .svc-card-back p {
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: none;
  }

  .s-contact-form {
    padding: 1rem;
  }

  .modal {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
  }

  .ftr-top {
    grid-template-columns: 1fr;
  }
}

/* =====================
   BREAKPOINT: TABLET PORTRAIT
   ===================== */
@media (max-width: 820px) {
  .hero {
    min-height: 580px;
    background-position: center 36%;
  }

  .hero-body {
    bottom: clamp(4rem, 10vh, 6rem);
    left: 0.95rem;
    right: 0.95rem;
  }

  .hero-body h1 {
    font-size: clamp(1.95rem, 7.7vw, 3rem);
  }

  .hero-lead {
    font-size: clamp(0.9rem, 3vw, 0.98rem);
  }

  .stat-num {
    font-size: clamp(1.7rem, 6.2vw, 2.25rem);
  }

  .modal-panel {
    padding: 1rem;
  }
}

/* =====================
   BREAKPOINT: MOBILE
   ===================== */
@media (max-width: 768px) {

  :root {
    --hdr-h: 74px;
    --form-control-h: 48px;
  }

  .section {
    overflow-x: clip;
  }

  /* -- FULLSCREEN NAV OVERLAY -- */
  .menu-toggle {
    display: flex;
    z-index: 140;
  }

  .menu-toggle.open {
    position: fixed;
    top: 1.35rem;
    right: 1.25rem;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    height: 100dvh;
    right: 0;
    top: 0;
    z-index: 102;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    clip-path: circle(0% at calc(100% - 2.6rem) 42px);
    transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow-y: auto;
    padding: 6.5rem 1.1rem 2rem;
  }
  /* large watermark behind nav links — only visible when open */
  .main-nav.open {
    clip-path: circle(200% at calc(100% - 2.6rem) 42px);
    pointer-events: auto;
  }

  .main-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.05rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
  }

  .main-nav a {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 8vw, 2.6rem);
    font-weight: 700;
    color: rgba(255,255,255,0.28);
    letter-spacing: -0.02em;
    padding: 0.75rem 1rem;
    min-height: 44px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.45s ease, transform 0.45s ease, color 0.2s;
    text-align: center;
    position: relative;
    z-index: 1;
    text-decoration: none;
  }
  .main-nav a:hover,
  .main-nav a.active { color: var(--white); }
  .main-nav a.active::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 0.6rem;
    vertical-align: middle;
  }
  .main-nav.open a { opacity: 1; transform: translateY(0); }
  .main-nav.open a:nth-of-type(1) { transition-delay: 0.18s; }
  .main-nav.open a:nth-of-type(2) { transition-delay: 0.26s; }
  .main-nav.open a:nth-of-type(3) { transition-delay: 0.34s; }
  .main-nav.open a:nth-of-type(4) { transition-delay: 0.42s; }
  .main-nav.open a:nth-of-type(5) { transition-delay: 0.50s; }

  /* -- HERO -- */
  .hero {
    height: 100dvh;
    min-height: 520px;
    background-position: center 38%;
  }
  .hero-body {
    max-width: 100%;
    bottom: clamp(3.5rem, 9vh, 5.5rem);
    left: 1rem;
    right: 1rem;
    gap: 0.8rem;
  }
  .hero-body h1 {
    font-size: clamp(1.75rem, 10vw, 2.85rem);
    line-height: 1.02;
    max-width: 13ch;
  }
  .hero-lead {
    font-size: clamp(0.9rem, 3.4vw, 1rem);
    max-width: 34ch;
  }
  .hero-icon {
    width: clamp(90px, 28vw, 130px);
    right: 1rem;
    bottom: 5.4rem;
  }
  .hero-scroll {
    bottom: 1rem;
  }

  /* -- STATS -- */
  .stats-inner { flex-direction: column; }
  .stat-sep { width: 100%; height: 1px; margin: 0; }
  .stat-item { padding: 1.1rem 0; min-width: unset; }

  /* -- ABOUT -- */
  .s-about-media { grid-template-columns: 1fr; }
  .s-about-img-2 { display: none; }

  /* -- WHY -- */
  .s-why-grid { grid-template-columns: 1fr; }
  .s-why-header { grid-template-columns: 1fr; }

  /* -- SERVICES -- */
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
  .svc-card--betao { background-position: center 42%; background-size: cover; }
  /* on touch, always show title visible; tap reveals back */
  .svc-card-back { cursor: pointer; }

  /* -- FAQ -- */
  .s-faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .s-faq-header { position: static; }

  /* -- CONTACT -- */
  .s-contact-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-group { grid-template-columns: 1fr; }
  .phone-group { grid-template-columns: 1fr; }

  .s-contact-form,
  .modal-form {
    gap: 0.95rem;
  }

  .s-contact-form {
    padding: 1rem;
  }

  .phone-input-wrapper {
    flex-direction: column;
    gap: 0.55rem;
  }

  .phone-country-selector,
  .phone-country-btn,
  .phone-input-wrapper input[type="tel"] {
    width: 100%;
  }

  .phone-country-btn {
    justify-content: space-between;
  }

  .phone-country-dropdown {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
  }

  .file-chip-name {
    max-width: min(58vw, 260px);
  }

  .field label,
  .label,
  .stat-label,
  .why-num,
  .ftr-heading {
    font-size: clamp(0.66rem, 2.4vw, 0.75rem);
  }

  .s-about-text p,
  .s-why-sub,
  .s-services-sub,
  .faq-a p,
  .contact-intro,
  .s-recruit-right > p,
  .form-intro {
    font-size: clamp(0.9rem, 3.5vw, 0.98rem);
  }

  /* -- CAREERS -- */
  .s-recruit-inner { grid-template-columns: 1fr; }

  /* -- MODAL -- */
  .modal {
    align-items: flex-end;
    padding: 0.75rem;
  }
  .modal-panel {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
  }

  .modal-close {
    top: 0.4rem;
    right: 0.5rem;
  }
  .modal-form .field-group { grid-template-columns: 1fr; }

  /* -- FOOTER -- */
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-wordmark {
    font-size: clamp(2.4rem, 14vw, 5.2rem);
    letter-spacing: -0.02em;
    padding-inline: 0.85rem;
  }
  .to-top {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 40px;
    height: 40px;
  }
}

/* =====================
   BREAKPOINT: SMALL MOBILE
   ===================== */
@media (max-width: 480px) {
  .hdr-inner {
    padding: 0 0.9rem;
  }

  .main-nav {
    padding-top: 5.7rem;
  }

  .ftr-top { grid-template-columns: 1fr; text-align: center; }
  .svc-card {
    aspect-ratio: 2 / 1;
    max-height: 200px;
  }

  .stat-num { font-size: 2rem; }
  .s-about-text h2,
  .s-why-title,
  .s-services-header h2,
  .s-faq-header h2,
  .s-contact-info h2,
  .s-recruit-inner h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }

  .hero {
    min-height: 500px;
    background-position: center 37%;
  }

  .hero-body {
    bottom: clamp(3rem, 8vh, 5rem);
    left: 0.9rem;
    right: 0.9rem;
  }

  .btn,
  .btn-form-submit,
  .btn-svc-orcamento,
  .faq-q,
  .modal-close,
  .to-top {
    min-height: 44px;
  }

  .s-about-wrap,
  .s-why-inner,
  .s-services-header,
  .s-faq-inner,
  .s-contact-wrap,
  .s-recruit-inner,
  .ftr-top,
  .ftr-bottom {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

@media (max-width: 430px) {
  .main-nav {
    padding-top: 5.2rem;
  }

  .main-nav a {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .hero-icon {
    width: clamp(82px, 26vw, 106px);
    bottom: 4.8rem;
  }

  .hero-body h1 {
    font-size: clamp(1.7rem, 9.3vw, 2.5rem);
  }

  .ftr-wordmark {
    font-size: clamp(2rem, 12.2vw, 3.3rem);
    letter-spacing: -0.014em;
    padding-inline: 0.65rem;
  }
}

@media (max-width: 390px) {
  .main-nav a {
    font-size: clamp(1.55rem, 8.5vw, 2.2rem);
  }

  .hero-lead {
    max-width: 30ch;
  }

  .hero {
    min-height: 490px;
  }

  .phone-country-dropdown {
    width: min(100%, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }
}

@media (max-width: 360px) {
  .hero-body h1 {
    font-size: clamp(1.56rem, 8.8vw, 2.15rem);
  }

  .hero-lead {
    font-size: 0.88rem;
  }

  .btn-form-submit {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: 470px;
  }

  .main-nav a {
    font-size: clamp(1.45rem, 8.2vw, 2rem);
  }

  .ftr-wordmark {
    font-size: clamp(1.78rem, 11.2vw, 2.7rem);
    letter-spacing: -0.01em;
  }
}

/* =====================
   BREAKPOINT: EXTRA SMALL DEVICES
   ===================== */
@media (max-width: 320px) {
  .hdr-inner {
    padding: 0 0.7rem;
  }

  .hero-body {
    bottom: 2.5rem;
    left: 0.7rem;
    right: 0.7rem;
  }

  .hero-body h1 {
    font-size: clamp(1.35rem, 8.2vw, 1.85rem);
  }

  .hero-lead {
    font-size: 0.84rem;
  }

  .s-about-wrap,
  .s-why-inner,
  .s-services-header,
  .s-faq-inner,
  .s-contact-wrap,
  .s-recruit-inner,
  .ftr-top,
  .ftr-bottom {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

/* =====================
   BREAKPOINT: SHORT VIEWPORT HEIGHTS
   ===================== */
@media (max-height: 820px) and (max-width: 1024px) {
  .hero {
    min-height: 520px;
  }

  .hero-body {
    bottom: 2.4rem;
  }

  .hero-scroll {
    bottom: 0.75rem;
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .hero {
    min-height: 460px;
  }

  .hero-body {
    bottom: 2rem;
  }

  .hero-body h1 {
    font-size: clamp(1.5rem, 7vw, 2.4rem);
  }

  .hero-lead {
    font-size: clamp(0.84rem, 2.6vw, 0.95rem);
  }
}

@media (min-width: 1025px) {
  .to-top { display: none; }
}

/* =====================
   TOUCH / HOVER:NONE
   ===================== */
@media (hover: none) {
  /* neutralise CSS :hover on touch so only .active class controls the flip */
  .svc-card:hover { transform: none; }
  .svc-card:hover::before { opacity: 1; }
  .svc-card:hover::after { opacity: 0; }
  .svc-card:hover .svc-card-front { opacity: 1; transform: none; }
  .svc-card:hover .svc-card-back { opacity: 0; transform: translateY(14px); }

  /* ensure active card always wins on touch devices */
  .svc-card.active::before { opacity: 0; }
  .svc-card.active::after { opacity: 1; }
  .svc-card.active .svc-card-front { opacity: 0; transform: translateY(-10px); }
  .svc-card.active .svc-card-back { opacity: 1; transform: translateY(0); }
}

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: #fff;
  padding: 1.5rem;
  font-size: 0.9rem;
  z-index: 1000;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 180px;
  overflow-y: auto;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: min(1280px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-banner-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.cookie-link:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-reject,
.btn-cookie-accept {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--accent);
}

.btn-cookie-reject:hover {
  background: rgba(255, 117, 31, 0.1);
}

.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
}

.btn-cookie-accept:hover {
  background: #e85a0f;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
    gap: 0.75rem;
  }

  .btn-cookie-reject,
  .btn-cookie-accept {
    flex: 1;
  }
}

@media (max-height: 750px) {
  .cookie-banner {
    max-height: 220px;
    padding: 1rem;
  }

  .cookie-banner-text {
    font-size: 0.8rem;
  }
}

/* =====================
   LEGAL MODALS
   ===================== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.legal-modal.show {
  opacity: 1;
  visibility: visible;
}

.legal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.legal-modal-content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  max-width: min(900px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.legal-modal-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  padding: 1rem;
  transition: color 0.2s;
  z-index: 10;
  line-height: 1;
}

.legal-modal-close:hover {
  color: var(--black);
}

.legal-modal-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.legal-modal-logo {
  width: 180px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.legal-modal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0;
  color: var(--black);
  font-weight: 700;
}

.legal-modal-header .legal-update {
  font-size: 0.85rem;
  color: #999;
  margin: 0.5rem 0 0 0;
}

.legal-modal-body {
  padding: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.legal-modal-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--black);
}

.legal-modal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.2rem 0 0.75rem;
  color: #444;
}

.legal-modal-body p {
  margin: 0.75rem 0;
}

.legal-modal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-modal-body a:hover {
  color: #c45a10;
}

.legal-modal-body ul,
.legal-modal-body ol {
  margin: 1rem 0 1rem 1.5rem;
}

.legal-modal-body li {
  margin: 0.5rem 0;
}

.legal-cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-cookie-table tr {
  border-bottom: 1px solid #eee;
}

.legal-cookie-table tr:first-child {
  background: #f9f9f9;
  font-weight: 600;
}

.legal-cookie-table td {
  padding: 0.75rem;
  text-align: left;
}

.legal-cookie-table tr:nth-child(even) {
  background: #fafafa;
}

.ftr-legal-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 0;
}

.ftr-legal-btn:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .legal-modal {
    align-items: flex-end;
    padding: 0;
  }

  .legal-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: 14px 14px 0 0;
    margin: 0;
  }

  .legal-modal-header {
    padding: 1.1rem 1rem 0.85rem;
  }

  .legal-modal-logo {
    width: clamp(100px, 28vw, 130px);
    height: auto;
    aspect-ratio: 312 / 154;
    margin-bottom: 0.6rem;
  }

  .legal-modal-header h1 {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    line-height: 1.15;
  }

  .legal-modal-header .legal-update {
    font-size: 0.78rem;
    margin-top: 0.35rem;
  }

  .legal-modal-body {
    padding: 0.85rem 1rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .legal-modal-body h2 {
    font-size: 1rem;
    margin: 1rem 0 0.55rem;
  }

  .legal-modal-body h3 {
    font-size: 0.95rem;
    margin: 0.85rem 0 0.5rem;
  }

  .legal-modal-body ul,
  .legal-modal-body ol {
    margin: 0.65rem 0 0.65rem 1.15rem;
  }

  .legal-modal-close {
    padding: 0.65rem 0.85rem;
    font-size: 1.45rem;
  }
}
