/* ==========================================================================
   Agrisol — site institucional
   Identidade nova: Comfortaa + ciano (#00C6FF) / verde (#069B50) / navy (#00469A)
   ========================================================================== */

/* ---------- Fontes (self-host, woff2 latino) ---------- */
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #00469a;
  --navy-noite: #062a57;
  --ciano: #00c6ff;
  --ciano-esc: #0091c6;
  --verde: #069b50;
  --verde-esc: #05833f;
  --verde-texto: #057a3e;   /* verde legível como texto pequeno sobre fundo claro */
  --fundo: #f4f7fa;
  --fundo-tint: #eaf6fd;    /* leve tom ciano */
  --tinta: #0d2438;
  --texto-suave: #5b7085;
  --branco: #ffffff;
  --linha: #e5ebf1;
  --whatsapp: #0e7a40;

  --font-titulo: "Comfortaa", "Segoe UI", system-ui, sans-serif;
  --font-corpo: "Comfortaa", "Segoe UI", system-ui, sans-serif;

  --container: 68rem;
  --radius: 0.9rem;
  --shadow: 0 1px 2px rgba(13, 36, 56, 0.05), 0 10px 30px rgba(13, 36, 56, 0.06);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-corpo);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-titulo);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--ciano-esc); }

:focus-visible {
  outline: 3px solid var(--ciano);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 198, 255, 0.25);
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--branco);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .icon { width: 1.25em; height: 1.25em; flex: none; }

.btn--primary { background: var(--verde); color: var(--branco); }
.btn--primary:hover { background: var(--verde-esc); }

/* CTA de destaque: ciano vibrante com texto navy */
.btn--gold { background: var(--ciano); color: var(--navy); }
.btn--gold:hover { background: #2fd2ff; }

.btn--whatsapp { background: var(--whatsapp); color: var(--branco); }
.btn--whatsapp:hover { background: #0c6836; }

.btn--lg { font-size: 1.1rem; padding: 1rem 2rem; }
.btn--sm { font-size: 0.9rem; padding: 0.55rem 1.1rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--navy), #00408d);
  color: var(--branco);
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(6, 42, 87, 0.35); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--branco);
  text-decoration: none;
  margin-right: auto;
}
.header__logo { height: 2.25rem; width: auto; }

.header__nav { display: flex; gap: 1.25rem; }
.header__nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.header__nav a:hover,
.header__nav a:focus-visible { color: var(--branco); border-bottom-color: var(--ciano); }

@media (max-width: 47.9rem) {
  .header__nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(55rem 30rem at 82% -15%, rgba(0, 198, 255, 0.28), transparent 60%),
    radial-gradient(45rem 28rem at 8% 120%, rgba(6, 155, 80, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-noite) 100%);
  color: var(--branco);
  text-align: center;
  padding: 5.5rem 0 6rem;
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  max-width: 22ch;
  margin-inline: auto;
}
.hero__sub {
  color: #cfe0f2;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 46ch;
  margin: 1rem auto 2rem;
}
.hero__micro {
  color: var(--ciano);
  font-size: 0.95rem;
  margin: 1.25rem 0 0;
}

/* ---------- Seções ---------- */
.section { padding: 4.75rem 0; }
.section--tint { background: var(--fundo-tint); }
.section--dark {
  background:
    radial-gradient(40rem 24rem at 90% 10%, rgba(0, 198, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-noite));
  color: var(--branco);
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
}
.section__title--light { color: var(--branco); }

.section__lead {
  color: var(--texto-suave);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.section--dark .section__lead { color: #cfe0f2; }

.section__cta { margin-top: 2.5rem; text-align: center; }

/* ---------- Cards das frentes ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ciano) 45%, var(--linha));
  box-shadow: 0 6px 14px rgba(13, 36, 56, 0.06), 0 18px 40px rgba(13, 36, 56, 0.08);
}
.card__icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  padding: 0.6rem;
  border-radius: 0.7rem;
  background: var(--fundo-tint);
  color: var(--ciano-esc);
  margin-bottom: 1rem;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.card p { margin: 0; color: var(--texto-suave); font-size: 0.98rem; }

/* ---------- Serviços em destaque ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
.service {
  display: flex;
  gap: 1rem;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.service__num {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--verde);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.service__title { font-size: 1.08rem; font-weight: 700; color: var(--navy); }
.service p { margin: 0; color: var(--texto-suave); font-size: 0.98rem; }

/* ---------- Quem somos ---------- */
.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.member {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.member__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ciano), var(--verde));
  color: var(--branco);
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
}
.member__name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.15em; }
.member__role {
  color: var(--verde-texto);
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9em;
}
.member__bio { margin: 0; color: var(--texto-suave); font-size: 0.98rem; }

/* ---------- Propósito ---------- */
.proposito {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}
.proposito__card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-left: 4px solid var(--ciano);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.proposito__label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ciano-esc);
  margin-bottom: 0.6em;
}
.proposito__card p { margin: 0; color: var(--tinta); font-size: 1.05rem; }

.valores { margin-top: 2.5rem; text-align: center; }
.valores__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verde-texto);
  margin-bottom: 1.25em;
}
.valores__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.valor {
  background: var(--branco);
  border: 1px solid var(--linha);
  color: var(--navy);
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
}

/* ---------- Case ---------- */
.case__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}
.case__highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 198, 255, 0.08);
  border: 1px solid rgba(0, 198, 255, 0.35);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
}
.case__number {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 4rem);
  color: var(--ciano);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.case__label { color: #cfe0f2; margin-top: 0.5rem; }
.case__text { color: #cfe0f2; max-width: 56ch; margin-bottom: 1.75rem; }

@media (max-width: 47.9rem) {
  .case__inner { grid-template-columns: 1fr; gap: 2rem; }
  .case__highlight { padding: 2rem; }
}

/* ---------- Contato ---------- */
.contato__inner { text-align: center; }
.contato__inner .section__lead { margin-inline: auto; }
.contato__email { margin: 1.5rem 0 0; color: var(--texto-suave); }
.contato__email a {
  font-weight: 600;
  display: inline-block;
  padding: 0.5rem 0.25rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-noite);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2.5rem;
  font-size: 0.95rem;
}
.footer__inner { text-align: center; }
.footer__logo { height: 2rem; width: auto; margin: 0 auto 1rem; }

@media (max-width: 47.9rem) {
  .footer { padding-bottom: 6rem; }
}
.footer__line { margin: 0.2em 0; }
.footer__line strong { color: var(--branco); }
.footer__copy { margin-top: 1.25rem; font-size: 0.85rem; opacity: 0.7; }

/* ---------- Botão flutuante WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--branco);
  box-shadow: 0 4px 16px rgba(6, 42, 87, 0.35);
  transition: transform 0.15s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 1.9rem; height: 1.9rem; }

/* ==========================================================================
   Refinamentos de design (v2) — camada de acabamento
   ========================================================================== */

/* Botões: profundidade e leve gradiente */
.btn { box-shadow: 0 1px 2px rgba(6, 42, 87, 0.12); }
.btn--primary,
.btn--whatsapp { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)); }
.btn--gold {
  background: linear-gradient(135deg, #2fd2ff, var(--ciano));
  box-shadow: 0 8px 24px rgba(0, 198, 255, 0.35);
}
.btn--gold:hover { box-shadow: 0 12px 30px rgba(0, 198, 255, 0.45); }
.btn--lg { box-shadow: 0 10px 26px rgba(6, 42, 87, 0.18); }

/* Eyebrow (kicker) acima dos títulos */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ciano-esc);
  margin: 0 0 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ciano), var(--verde));
}
.section--dark .eyebrow { color: var(--ciano); }
.section--dark .eyebrow::before { background: var(--ciano); }

/* Hero: badge + textura pontilhada sutil */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 28%, #000, transparent 75%);
          mask-image: radial-gradient(60% 60% at 50% 28%, #000, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #eaf6fd;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.hero__badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ciano);
  box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.25);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.hero__link {
  color: #cfe0f2;
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.hero__link:hover { color: #fff; border-bottom-color: var(--ciano); }

/* Header translúcido com blur ao rolar */
.header.is-scrolled {
  background: rgba(4, 42, 87, 0.82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

/* Cards de serviço: barra de acento no topo + número em gradiente */
.service {
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--ciano), var(--verde));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ciano) 45%, var(--linha));
  box-shadow: 0 6px 14px rgba(13, 36, 56, 0.06), 0 18px 40px rgba(13, 36, 56, 0.09);
}
.service:hover::before { transform: scaleX(1); }
.service__num {
  color: transparent;
  background: linear-gradient(135deg, var(--verde), var(--ciano-esc));
  -webkit-background-clip: text;
          background-clip: text;
}

/* Valores: chips reagem ao hover */
.valor { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.valor:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ciano) 50%, var(--linha));
  box-shadow: var(--shadow);
}

/* Case: brilho no destaque */
.case__highlight {
  position: relative;
  background: radial-gradient(120% 120% at 30% 20%, rgba(0, 198, 255, 0.18), rgba(0, 198, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(0, 198, 255, 0.35), 0 20px 50px rgba(0, 0, 0, 0.25);
}
.case__number { text-shadow: 0 0 30px rgba(0, 198, 255, 0.45); }

/* Contato: painel de destaque */
.contato-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--fundo-tint));
  border: 1px solid var(--linha);
  border-radius: calc(var(--radius) + 0.4rem);
  box-shadow: 0 20px 50px rgba(13, 36, 56, 0.08);
  padding: 3.25rem 1.5rem;
}
.contato-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ciano), var(--verde));
}

/* Scroll reveal — só quando há movimento permitido (JS adiciona .reveal) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--reveal-i, 0) * 70ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}
