/* =========================================================
   GiraVida — Folha de estilos
   Paleta baseada no website original:
   azul royal #5271FF · laranja #FFBD59 · azul links #4A7BDB
   ========================================================= */

:root {
  --blue: #5271ff;
  --blue-dark: #3a55d6;
  --blue-link: #4a7bdb;
  --blue-soft: #eef2ff;
  --orange: #ffbd59;
  --orange-dark: #f2a43a;
  --orange-soft: #fff5e6;
  --ink: #1d1d1f;
  --text: #33343a;
  --muted: #6b6f7b;
  --line: #dbe4f7;
  --bg: #ffffff;
  --bg-alt: #f9f9f9;
  --white: #ffffff;
  --success: #1f9d61;
  --error: #d64545;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(40, 60, 140, .08);
  --shadow-lg: 0 20px 50px rgba(40, 60, 140, .16);
  --header-h: 84px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section__head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; }
.section__intro { color: var(--muted); }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  padding: 4px 14px; border-radius: 999px; background: var(--blue-soft);
}
.eyebrow--light { color: var(--ink); background: var(--orange); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 500; font-size: 1.05rem; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(82, 113, 255, .35); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--small { padding: 10px 22px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--whatsapp { background: #25d366; color: #fff; margin-top: 8px; }
.btn--whatsapp:hover { background: #1eb956; color: #fff; }
.btn--whatsapp svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  transition: box-shadow .3s, height .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; color: var(--blue-link); }
.logo img { width: 48px; height: 48px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; font-size: 1.1rem; font-weight: 500; color: var(--blue-link); padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--cta { color: var(--blue); }
.nav__social { display: flex; gap: 18px; }
.nav__social a { color: var(--blue-link); display: grid; place-items: center; }
.nav__social svg { width: 26px; height: 26px; fill: currentColor; }
.nav__social a:hover { color: var(--orange-dark); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--blue-link); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 40px) 0 70px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }

.slider { position: relative; min-height: 300px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(30px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.hero__kicker { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 400; color: var(--ink); margin-bottom: .2em; }
.hero__title {
  font-family: "Bebas Neue", "Jost", sans-serif; font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.6rem); line-height: .95; letter-spacing: .01em;
  text-transform: uppercase; color: #000; margin-bottom: .25em;
}
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }

.slider__controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.slider__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .12); color: var(--white); display: grid; place-items: center;
  transition: background .2s;
}
.slider__arrow:hover { background: var(--blue); }
.slider__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.slider__dots { display: flex; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; background: #c7c7c7; transition: background .3s, width .3s; }
.dot.is-active { background: var(--blue); width: 34px; border-radius: 8px; }

.hero__visual { position: relative; aspect-ratio: 1.55 / 1; width: 100%; }
.hero__shape { position: absolute; inset: 0; }
.hero__shape--orange { background: var(--orange); clip-path: polygon(10% 0, 100% 0, 100% 100%, 10% 100%, 0 50%); }
.hero__shape--blue { background: var(--blue); clip-path: polygon(25% 0, 100% 0, 100% 100%, 25% 100%, 13% 50%); }
.hero__photo {
  position: absolute; top: 50%; right: 8%; transform: translateY(-50%);
  width: 58%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, .5);
  animation: float 6s ease-in-out infinite;
}
.hero__badge { position: absolute; right: 2%; bottom: 3%; width: 13%; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 10px)); } }

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.about__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.about__facts li {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--bg-alt);
  border-left: 5px solid var(--orange);
}
.about__facts li:nth-child(2) { border-left-color: var(--blue); }
.about__num { font-size: 2rem; font-weight: 700; color: var(--blue); min-width: 84px; line-height: 1; }
.about__facts li span:last-child { font-size: 1rem; color: var(--muted); line-height: 1.4; }

/* ---------- Citação ---------- */
.quote { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 44px 0; text-align: center; }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--blue-link); margin-bottom: .3em; }
.quote cite { color: var(--blue-link); font-size: 1.15rem; }

/* ---------- Tabs (Empresas / Colaboradores) ---------- */
.for-whom { background: var(--bg-alt); }
.tabs { max-width: 1000px; margin: 0 auto; }
.tabs__list {
  display: flex; justify-content: center; gap: 6px; margin: 0 auto 36px; padding: 6px;
  width: fit-content; background: var(--white); border-radius: 999px; box-shadow: var(--shadow);
}
.tabs__btn {
  border: 0; background: transparent; padding: 12px 28px; border-radius: 999px;
  font-weight: 500; color: var(--muted); transition: background .3s, color .3s;
}
.tabs__btn.is-active { background: var(--blue); color: var(--white); }
.tabs__panel { animation: fadeUp .5s var(--ease); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.benefits li {
  display: flex; gap: 18px; padding: 28px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.benefits__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark); font-size: 1.1rem;
}
.benefits h3 { font-size: 1.2rem; margin-bottom: .3em; }
.benefits p { margin: 0; font-size: 1rem; color: var(--muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  padding: 32px 26px; border-radius: var(--radius); background: var(--white);
  border: 1px solid #eef0f6; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__icon--blue { background: var(--blue-soft); color: var(--blue); }
.card__icon--orange { background: var(--orange-soft); color: var(--orange-dark); }
.card h3 { font-size: 1.3rem; font-weight: 500; color: var(--blue-link); }
.card p { font-size: 1rem; color: var(--muted); flex: 1; }
.card__more {
  align-self: flex-start; border: 0; background: none; padding: 0;
  color: var(--blue); font-weight: 600; font-size: .98rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.card__more::after { content: "+"; font-size: 1.2rem; transition: transform .3s; }
.card__more[aria-expanded="true"]::after { transform: rotate(45deg); }
.card__details {
  list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease), margin .4s;
}
.card.is-open .card__details { margin-top: 14px; }
.card__details li { position: relative; padding-left: 20px; font-size: .95rem; line-height: 1.5; margin-bottom: 8px; }
.card__details li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Processo ---------- */
.process { background: linear-gradient(180deg, var(--blue-soft), var(--white)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 18px); opacity: .4;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--blue); color: var(--white); font-size: 1.5rem; font-weight: 600;
  box-shadow: 0 0 0 8px var(--white), 0 8px 20px rgba(82, 113, 255, .35);
}
.step:nth-child(even) .step__n { background: var(--orange); color: var(--ink); box-shadow: 0 0 0 8px var(--white), 0 8px 20px rgba(255, 189, 89, .45); }
.step h3 { font-size: 1.25rem; }
.step p { font-size: 1rem; color: var(--muted); }

/* ---------- Equipa ---------- */
.team { background: var(--bg-alt); }
.team__grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.team__photo { position: sticky; top: calc(var(--header-h) + 30px); }
.team__photo img { width: 100%; aspect-ratio: 16 / 15; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.team__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius); background: var(--orange);
}
.team__role { font-weight: 600; color: var(--ink); margin-top: -.4em; }
.team__list { list-style: none; margin: 0 0 24px; padding: 0; }
.team__list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid #ececec; font-size: 1.05rem; line-height: 1.55; }
.team__list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue); }
.team__list.is-collapsed li:nth-child(n+7) { display: none; }

/* ---------- Contactos / Formulário ---------- */
.contact { background: var(--blue); color: rgba(255, 255, 255, .92); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -200px;
  background: var(--orange); opacity: .18; clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%);
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact .section__title { color: var(--white); }
.contact__list { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; }
.contact__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.contact__list small { display: block; font-size: .85rem; opacity: .8; letter-spacing: .04em; }
.contact__list a { color: var(--white); font-size: 1.25rem; font-weight: 500; }
.contact__list a:hover { color: var(--orange); }

.form { background: var(--white); color: var(--text); border-radius: 22px; padding: 40px; box-shadow: 0 30px 60px rgba(10, 20, 80, .25); }
.form__title { font-size: 1.6rem; font-weight: 600; margin-bottom: 20px; }
.form__type { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.form__type label { flex: 1; min-width: 160px; }
.form__type input { position: absolute; opacity: 0; pointer-events: none; }
.form__type span {
  display: block; text-align: center; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); font-weight: 500; font-size: 1rem; color: var(--muted); cursor: pointer; transition: all .2s;
}
.form__type input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.form__type input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { position: relative; margin-bottom: 18px; display: flex; flex-direction: column; }
.field.is-hidden { display: none; }
.field label { font-size: .92rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d9dce5; border-radius: var(--radius-sm); background: #fbfcff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(82, 113, 255, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { font-size: .85rem; color: var(--error); min-height: 0; line-height: 1.4; margin-top: 4px; }
.field__error:empty { display: none; }
.field__counter { position: absolute; right: 10px; top: 4px; font-size: .78rem; color: var(--muted); }

.field--check { margin: 6px 0 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; color: var(--muted) !important; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--blue); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn__spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { margin-top: 16px; font-size: .98rem; line-height: 1.5; border-radius: var(--radius-sm); }
.form__status:empty { display: none; }
.form__status.is-success { padding: 14px 16px; background: #e8f7ef; color: var(--success); }
.form__status.is-error { padding: 14px 16px; background: #fdecec; color: var(--error); }
.form__status a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ---------- Rodapé ---------- */
.footer { background: #14193a; color: rgba(255, 255, 255, .7); padding: 40px 0; font-size: .95rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: rgba(255, 255, 255, .85); }
.footer a:hover { color: var(--orange); }
.logo--footer { color: var(--white); font-size: 1.2rem; }
.logo--footer img { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 3px; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.to-top:hover { color: var(--ink); background: var(--orange-dark); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav__list { gap: 22px; }
  .nav { gap: 24px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .logo img { width: 42px; height: 42px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 24px; background: var(--white);
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 16px 4px; font-size: 1.3rem; border-bottom: 1px solid #eee; }
  .nav__link::after { display: none; }
  .nav__social { margin-top: 28px; justify-content: center; gap: 28px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 0 auto; order: -1; }
  .slider { min-height: 0; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .team__grid { grid-template-columns: 1fr; gap: 48px; }
  .team__photo { position: relative; top: 0; max-width: 300px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .section__head { margin-bottom: 40px; }
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero__actions .btn { flex: 1; }
  .cards, .benefits { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tabs__list { width: 100%; }
  .tabs__btn { flex: 1; padding: 12px 10px; font-size: .95rem; }
  .form { padding: 26px 18px; border-radius: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .logo span { font-size: 1.2rem; }
}

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