/* =================================================================
   HIRGO — Health International Recruitment GO
   style.css
   Conceito visual: azul-marinho clínico (confiança) que encontra o
   horizonte dourado do Golfo (oportunidade). Elemento-assinatura:
   o arco de "voo" Lisboa → Dubai, que liga profissionais além-fronteiras.
   ================================================================= */

/* -----------------------------------------------------------------
   1. TOKENS DE DESIGN
   ----------------------------------------------------------------- */
:root {
  /* Cores — marca */
  --navy-900: #0B1E3B;
  --navy-800: #0E2340;
  --navy-700: #17335C;
  --navy-600: #244a7d;

  --teal-600: #0F7A73;   /* teal escuro — texto/links sobre claro */
  --teal-500: #22A39A;   /* teal marca — ícones/acentos */
  --teal-400: #37C2B6;   /* teal claro — sobre escuro */

  --gold-600: #B08A34;
  --gold-500: #C9A24B;   /* dourado-horizonte (assinatura) */
  --gold-400: #E0BF74;

  /* Neutros */
  --paper:   #F7F8FB;
  --paper-2: #EDF1F7;
  --white:   #FFFFFF;
  --ink:     #0E2340;
  --muted:   #5B667E;
  --muted-2: #8791A5;
  --line:    rgba(14, 35, 64, 0.10);
  --line-light: rgba(255, 255, 255, 0.14);

  /* Tipografia */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala fluida */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(1.95rem, 1.65rem + 1.5vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.6rem);

  /* Espaçamento e forma */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 30, 59, 0.06), 0 6px 18px rgba(11, 30, 59, 0.06);
  --shadow-md: 0 10px 40px rgba(11, 30, 59, 0.10);
  --shadow-gold: 0 12px 30px rgba(201, 162, 75, 0.28);

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -----------------------------------------------------------------
   2. RESET / BASE
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* compensa o cabeçalho fixo no scroll-to-anchor */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a { color: var(--teal-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--navy-700); }

img, svg { display: block; max-width: 100%; }

ul { list-style: none; margin: 0; padding: 0; }

/* Foco visível e consistente (acessibilidade) */
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Link de salto */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* -----------------------------------------------------------------
   3. LAYOUT UTIL
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }

.section--soft { background: var(--paper); }

.section--dark {
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(201, 162, 75, 0.14), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, 0.86);
}
.section--dark .section__title { color: #fff; }

/* Cabeçalho de secção */
.section__head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__title { font-size: var(--step-3); }
.section__lead {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--muted);
  line-height: 1.5;
}
.section__lead--light { color: rgba(255, 255, 255, 0.72); }

/* Eyebrow (rótulo) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal-500);
}
.eyebrow--light { color: var(--gold-400); }
.eyebrow--light::before { background: var(--gold-400); }

/* -----------------------------------------------------------------
   4. BOTÕES
   ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--teal-600); --btn-fg: #fff; box-shadow: 0 10px 24px rgba(15, 122, 115, 0.28); }
.btn--primary:hover { --btn-bg: var(--teal-500); color: #fff; box-shadow: 0 14px 30px rgba(15, 122, 115, 0.34); }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn--gold:hover { --btn-bg: var(--gold-400); color: var(--navy-900); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }

.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

/* -----------------------------------------------------------------
   5. CABEÇALHO / NAV
   ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 30, 59, 0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

/* Marca */
.brand { display: inline-flex; align-items: center; color: var(--navy-800); }
.brand__logo {
  display: block;
  height: 40px;          /* largura calculada a partir do rácio nativo 528:157 */
  width: auto;
  transition: transform var(--t-fast, 0.2s) ease, opacity var(--t-fast, 0.2s) ease;
}
.brand:hover .brand__logo { transform: translateY(-1px); }

/* Logótipo no rodapé (fundo escuro): convertido para branco */
.footer__logo {
  display: block;
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Navegação */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--navy-700);
  border-radius: 8px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--navy-900); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy-900); }

.header__actions { display: flex; align-items: center; gap: 0.7rem; }

/* Alternador de idioma */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--navy-700);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-toggle:hover { border-color: var(--teal-500); }
.lang-toggle__other, .lang-toggle__sep { color: var(--muted-2); }
.lang-toggle.is-en .lang-toggle__current { color: var(--muted-2); }
.lang-toggle.is-en .lang-toggle__other { color: var(--navy-700); }

/* Botão menu mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--navy-800);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------------
   6. HERO
   ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 12vh, 8rem) clamp(4rem, 9vh, 6rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 60% at 20% 15%, rgba(34, 163, 154, 0.22), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 30%, var(--navy-900) 62%, #10294f 100%);
}
/* Brilho dourado do "horizonte" na base */
.hero__glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -30%;
  height: 70%;
  background: radial-gradient(60% 100% at 65% 100%, rgba(224, 191, 116, 0.35), transparent 70%);
  filter: blur(6px);
}
.hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: clamp(120px, 22vh, 220px);
  color: rgba(11, 30, 59, 0.55);
  opacity: 0.9;
}
/* Arco de voo (assinatura) */
.flightpath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.flightpath__line {
  stroke-dasharray: 6 10;
  stroke-dashoffset: 0;
}
.flightpath__dot { fill: var(--teal-400); }
.flightpath__dot--end { fill: var(--gold-400); }
.flightpath__plane { opacity: 0; }

/* Conteúdo do hero */
.hero__inner { position: relative; max-width: 780px; }
.hero__title {
  font-size: var(--step-4);
  font-weight: 800;
  color: #fff;
  max-width: 16ch;
  margin-bottom: 1.3rem;
}
.hero__subtitle {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Faixa de estatísticas */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: clamp(2.6rem, 6vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-light);
  max-width: 660px;
}
.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero__stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.35;
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll-dot {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--gold-400);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* -----------------------------------------------------------------
   7. CARTÕES (Porquê HIRGO)
   ----------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.card {
  position: relative;
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(var(--teal-500), var(--gold-500));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::before { transform: scaleY(1); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  color: var(--teal-600);
  background: rgba(34, 163, 154, 0.1);
  border-radius: 14px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card__text { color: var(--muted); font-size: var(--step-0); }

/* -----------------------------------------------------------------
   8. EMIRADOS (vantagens + mercado)
   ----------------------------------------------------------------- */
.uae {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.uae__benefits { display: grid; gap: 1.6rem; }
.uae__benefit { display: flex; gap: 1.1rem; }
.uae__benefit-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  color: var(--gold-400);
  background: rgba(224, 191, 116, 0.12);
  border: 1px solid rgba(224, 191, 116, 0.2);
  border-radius: 12px;
}
.uae__benefit-icon svg { width: 22px; height: 22px; }
.uae__benefit-title { font-size: var(--step-1); color: #fff; margin-bottom: 0.25rem; }
.uae__benefit-text { color: rgba(255, 255, 255, 0.72); font-size: var(--step-0); }
.uae__benefit-text em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: var(--step--1);
  color: var(--gold-400);
  opacity: 0.85;
}

/* Painéis de mercado */
.market { display: grid; gap: 1.2rem; position: sticky; top: 96px; }
.market__card {
  padding: 1.7rem 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.market__head { margin-bottom: 1.1rem; }
.market__flag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy-900);
  background: var(--teal-400);
  border-radius: 6px;
  margin-bottom: 0.7rem;
}
.market__flag--gold { background: var(--gold-400); }
.market__country { font-size: var(--step-2); color: #fff; }
.market__note {
  margin-top: 0.25rem;
  font-size: var(--step--1);
  font-style: italic;
  color: var(--gold-400);
}
.market__stats { display: grid; gap: 0.75rem; margin: 0 0 1rem; }
.market__stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-light);
}
.market__stats dt { color: rgba(255, 255, 255, 0.66); font-size: var(--step--1); margin: 0; }
.market__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.market__proj { font-size: var(--step--1); color: rgba(255, 255, 255, 0.6); line-height: 1.45; }

.uae__cta { margin-top: clamp(2.4rem, 5vw, 3.4rem); text-align: center; }

/* -----------------------------------------------------------------
   9. TIMELINE (Como funciona)
   ----------------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.2rem);
  padding-left: 3.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 25px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--teal-500), var(--gold-500));
  opacity: 0.35;
}
.timeline__step { position: relative; }
.timeline__num {
  position: absolute;
  left: -3.4rem;
  top: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-800);
  background: var(--white);
  border: 2px solid var(--teal-500);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.timeline__title { font-size: var(--step-1); margin-bottom: 0.3rem; }
.timeline__text { color: var(--muted); max-width: 56ch; }

/* -----------------------------------------------------------------
   10. VALORES + EQUIPA (Confiança)
   ----------------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.value {
  padding: 1.6rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--teal-500);
}
.value:nth-child(2) { border-top-color: var(--gold-500); }
.value:nth-child(3) { border-top-color: var(--navy-700); }
.value__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.value__text { color: var(--muted); }

.team { margin-top: clamp(2.6rem, 5vw, 3.6rem); }
.team__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.4rem;
}
.team__grid { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.member { display: flex; align-items: center; gap: 1rem; margin: 0; }
.member__photo {
  width: 66px; height: 66px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(140deg, var(--navy-700), var(--teal-600));
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px rgba(15,122,115,0.35);
  flex: 0 0 auto;
}
.member figcaption { display: flex; flex-direction: column; }
.member__name { font-weight: 700; color: var(--ink); }
.member__role { font-size: var(--step--1); color: var(--muted); }

/* -----------------------------------------------------------------
   11. TESTEMUNHOS
   ----------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.testimonial {
  position: relative;
  margin: 0;
  padding: 2.2rem 1.8rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section--soft .testimonial { background: var(--white); }
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem; left: 1.2rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.5;
}
.testimonial__quote {
  margin: 0 0 1.2rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
}
.testimonial__author { display: flex; flex-direction: column; }
.testimonial__name { font-weight: 700; }
.testimonial__meta { font-size: var(--step--1); color: var(--muted); }

/* -----------------------------------------------------------------
   12. FAQ / ACORDEÃO
   ----------------------------------------------------------------- */
.accordion { display: grid; gap: 0.7rem; }
.accordion__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion__heading { margin: 0; }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
}
.accordion__icon {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 2px;
  background: var(--teal-600);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0); }
.accordion__panel { padding: 0 1.3rem 1.25rem; color: var(--muted); }
.accordion__panel em { color: var(--teal-600); font-style: normal; }

/* -----------------------------------------------------------------
   13. CONTACTO / FORMULÁRIO
   ----------------------------------------------------------------- */
.section--contact { position: relative; }
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__intro { padding-top: 0.5rem; }
.contact__list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 0.9rem; }
.contact__list a { color: #fff; font-weight: 600; }
.contact__list a:hover { color: var(--gold-400); }
.contact__list span[data-i18n] { color: rgba(255,255,255,0.86); }
.contact__ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-light);
  border-radius: 12px;
}
.contact__ico svg { width: 20px; height: 20px; }

/* Cartão do formulário */
.form {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field__label { font-weight: 700; font-size: var(--step--1); margin-bottom: 0.4rem; color: var(--navy-800); }
.field__input {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field__input::placeholder { color: var(--muted-2); }
.field__input:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 163, 154, 0.14);
}
.field__input--select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235B667E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field__input--area { resize: vertical; min-height: 110px; }

/* Erros de validação */
.field__error {
  display: none;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: #C0392B;
}
.field.has-error .field__input { border-color: #C0392B; background: #fff5f4; }
.field.has-error .field__error { display: block; }
.field__error--gdpr { margin: -0.4rem 0 0.8rem 2rem; }
.field__error--gdpr.is-visible { display: block; }

/* Checkbox RGPD */
.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  margin: 0.4rem 0 0.9rem;
  cursor: pointer;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.4;
}
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.checkbox__box::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.checkbox input:checked + .checkbox__box { background: var(--teal-600); border-color: var(--teal-600); }
.checkbox input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__box { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.checkbox a { color: var(--teal-600); text-decoration: underline; }

.form__success {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(34, 163, 154, 0.1);
  border: 1px solid var(--teal-500);
  border-radius: var(--radius-sm);
  color: var(--teal-600);
  font-weight: 600;
}
.form__error {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(200, 60, 60, 0.10);
  border: 1px solid #d05a5a;
  border-radius: var(--radius-sm);
  color: #e88a8a;
  font-weight: 600;
}

/* -----------------------------------------------------------------
   14. FOOTER
   ----------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__mission { margin-top: 0.8rem; max-width: 26ch; color: rgba(255,255,255,0.6); }
.footer__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 1rem;
}
.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: #fff; }
.footer__nav li, .footer__contact li { margin-bottom: 0.55rem; }
.footer__social-links { display: flex; gap: 0.7rem; margin-bottom: 1.4rem; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.social:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.lang-toggle--footer { color: rgba(255,255,255,0.8); border-color: var(--line-light); }
.lang-toggle--footer .lang-toggle__other, .lang-toggle--footer .lang-toggle__sep { color: rgba(255,255,255,0.45); }
.lang-toggle--footer.is-en .lang-toggle__current { color: rgba(255,255,255,0.45); }
.lang-toggle--footer.is-en .lang-toggle__other { color: rgba(255,255,255,0.9); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.6rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.5);
}

/* -----------------------------------------------------------------
   15. ANIMAÇÕES DE SCROLL (reveal)
   ----------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Efeito escalonado dentro de grelhas */
.cards .reveal.is-visible,
.testimonials .reveal.is-visible,
.values .reveal.is-visible { transition-delay: var(--reveal-delay, 0ms); }

/* -----------------------------------------------------------------
   16. RESPONSIVIDADE
   ----------------------------------------------------------------- */
@media (max-width: 980px) {
  .uae { grid-template-columns: 1fr; }
  .market { position: static; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .header__inner { min-height: 64px; }
  .brand__logo { height: 34px; }

  /* Nav mobile em painel deslizante */
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 30, 59, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.3s var(--ease), visibility 0s 0.35s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem var(--gutter) 1.2rem; }
  .nav__link { padding: 0.9rem 0.5rem; font-size: var(--step-1); border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }

  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero__stat-num { font-size: 2rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .btn { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------
   17. PREFERÊNCIAS DO UTILIZADOR
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flightpath__line { stroke-dashoffset: 0 !important; }
}

/* Impressão simples */
@media print {
  .site-header, .hero__scroll, .nav-toggle, .footer__social { display: none; }
  .section--dark, .footer { background: #fff; color: #000; }
}
