/* Astro Soluções — site institucional
   Duas famílias: Archivo (texto) e Fraunces (títulos), servidas daqui.
   Os subconjuntos vietnamita e cirílico do export original foram deixados de
   fora: o site é só em português. */

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #18306F;
  --ink-deep: #0F2050;
  --blue: #24409A;
  --paper: #FBFAF7;
  --paper-blue: #EDF0FA;
  --line: #DDDEE6;
  --line-soft: #E4E8F2;
  --text: #3A3E48;
  --text-input: #23262E;
  --muted: #6C7280;
  --mint: #7FE0C9;
  --nav-link: #DCE3F7;
  --footer-name: #C7D0EC;
  --footer-legal: #8A9AC4;
  --success: #0D7268;
  --error: #B23A2E;

  /* Sotaque por vertical — só muda a atmosfera dos cartões e da pílula activa */
  --accent: #2A4BB0;
  --card-bg: rgba(78, 124, 240, 0.07);
  --card-line: #D3DDF8;
  --card-title: #2A4BB0;
}

[data-vertical="hair"] {
  --accent: #12806A;
  --card-bg: rgba(13, 114, 104, 0.06);
  --card-line: #C6E6DF;
  --card-title: #09564E;
}

[data-vertical="tennis"] {
  --accent: #B8511F;
  --card-bg: rgba(168, 68, 46, 0.06);
  --card-line: #F0D6C9;
  --card-title: #A8442E;
}

*, *::before, *::after { box-sizing: border-box; }

/* O `display` das regras abaixo ganharia ao [hidden] do browser, e os painéis
   escondidos apareceriam todos ao mesmo tempo. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, blockquote, figure { margin: 0; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.display {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* A malha ténue que atravessa o herói e o contacto */
.grid-bg { position: relative; overflow: hidden; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 250, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 250, 247, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.grid-bg > * { position: relative; }

/* ---------- Navegação ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 2.2rem;
  background: var(--ink);
}

.nav__brand { display: flex; align-items: center; gap: 0.9rem; }
.nav__mark { flex: none; color: var(--paper); stroke: currentColor; }

.nav__name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }

.nav__links a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nav-link);
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover { background: var(--blue); color: #FFF; }

/* ---------- Herói ---------- */

.hero { background: var(--ink); padding: 7rem 2rem; }

.hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.hero__title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero__rule { width: 64px; height: 3px; border-radius: 999px; background: var(--mint); }

.hero p {
  max-width: 50ch;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--paper-blue);
}
.hero p + p { margin-top: 0.4rem; }

/* ---------- Rota ---------- */

.rota { background: var(--paper); padding: 5.5rem 2rem 6rem; }

.rota__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.rota__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.4rem;
  align-items: end;
}

.rota__head h2 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.98;
}

.rota__lead { max-width: 46ch; font-size: 1.12rem; line-height: 1.65; }

.verticals { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.vertical {
  flex: 1 1 190px;
  min-width: 0;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFF;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.vertical[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.8rem;
  align-items: start;
  padding: 2.4rem;
  background: #FFF;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
}

.panel { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }

.feature {
  padding: 1.2rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  min-width: 0;
}

.feature h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--card-title);
}

.feature p { margin-top: 5px; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }

.showcase__phone { min-width: 0; display: flex; justify-content: center; }

.phone {
  width: min(340px, 100%);
  flex: none;
  padding: 9px;
  background: #080D18;
  border: 1px solid #243252;
  border-radius: 46px;
  box-shadow: 0 26px 60px rgba(9, 12, 27, 0.32);
}

.phone__screen {
  border-radius: 38px;
  overflow: hidden;
  background: #0C1424;
  aspect-ratio: 322 / 632;
}

.phone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Clientes ---------- */

.clients {
  background: var(--paper-blue);
  padding: 5rem 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.clients__title { font-size: clamp(1.7rem, 3.4vw, 2.2rem); max-width: 26ch; }

.clients__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.clients__bar { position: relative; background: var(--line); border-bottom: 1px solid var(--line); }

.clients__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFF;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(24, 48, 111, 0.14);
}
.clients__arrow:hover { background: var(--paper-blue); }
.clients__arrow--prev { left: 8px; }
.clients__arrow--next { right: 8px; }

.clients__scroller {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1px;
  background: var(--line);
}
.clients__scroller.is-overflowing { padding: 0 46px; }

.client {
  flex: 1 1 250px;
  min-width: 250px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem;
  text-align: left;
  background: var(--paper);
  border-bottom: 3px solid transparent;
  transition: background 0.15s;
}
.client:hover { background: #FFF; }
.client[aria-selected="true"] { background: #FFF; border-bottom-color: var(--blue); }

.client img {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFF;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.client[aria-selected="true"] img { opacity: 1; }

.client__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.client__name { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.client__sector { font-size: 0.76rem; color: var(--muted); }

.quote {
  padding: 2.8rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.quote__who { display: flex; align-items: center; gap: 0.8rem; }

.quote__who img {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFF;
}

.quote__who > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quote__who a { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.quote__who a:hover { color: var(--blue); }
.quote__sector { font-size: 0.78rem; color: var(--muted); }

.quote blockquote {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.36;
  color: var(--ink);
  max-width: 38ch;
  text-wrap: pretty;
}

/* ---------- Contacto ---------- */

.contact { background: var(--ink); padding: 5.5rem 2rem; }

.contact__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact__head { display: flex; flex-direction: column; gap: 1.2rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.contact__head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  color: var(--paper);
  max-width: 20ch;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFF;
  color: var(--text-input);
}
.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }

.field__error { font-size: 0.8rem; font-weight: 600; color: var(--error); }

/* Campo-armadilha: fora de vista para gente, preenchível por robôs */
.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button {
  margin-top: 0.4rem;
  padding: 0.9rem 1.6rem;
  background: var(--blue);
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  transition: background 0.15s;
}
.button:hover { background: var(--ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.form__note { font-size: 0.9rem; font-weight: 600; color: var(--success); }
.form__note[data-state="error"] { color: var(--error); }

/* ---------- Rodapé ---------- */

.footer {
  background: var(--ink-deep);
  padding: 2.2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__mark { color: var(--footer-name); stroke: currentColor; flex: none; }

.footer__name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--footer-name);
  margin-right: auto;
  margin-left: -0.4rem;
}

.footer__legal { font-size: 0.82rem; color: var(--footer-legal); }

/* ---------- Telemóvel ---------- */

@media (max-width: 759px) {
  .nav { padding: 1.1rem 1.2rem; }
  .hero { padding: 4.5rem 1.2rem; }
  .rota { padding: 4rem 1.2rem 4.5rem; }
  .clients { padding: 3.5rem 1.2rem; }
  .contact { padding: 4rem 1.2rem; }
  .footer { padding: 2rem 1.2rem; }

  .showcase { padding: 1.4rem; }

  /* O telemóvel primeiro: mostra-se o produto antes de o descrever */
  .showcase__phone { order: -1; }

  /* Só os retratos cabem — o nome e o sector ficam no painel de baixo */
  .client { flex: 1 1 96px; min-width: 96px; padding: 0.9rem 0.6rem; justify-content: center; }
  .client__text { display: none; }

  .quote { padding: 1.8rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clients__scroller { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
