/* =========================================================
   REFRI ICE — style.css
   Base: design tokens, reset, tipografia, layout e botões
   ========================================================= */

/* ---------- Google Fonts ----------
   Display: Saira   -> letras retas e arredondadas, mesma família visual do logo
   Corpo:   Figtree -> leitura confortável em textos e formulários
------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@500;600;700&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  /* ---- Paleta (extraída do logo) ---- */
  --navy-950: #041133;
  --navy-900: #06184e;   /* azul-marinho do logo */
  --navy-800: #0c2a6b;
  --navy-700: #173a85;

  --sky-600: #0b7fc4;    /* azul para textos/links sobre branco (contraste AA) */
  --sky-500: #28aaeb;    /* azul-claro do logo — cor da marca */
  --sky-300: #8fd3f6;
  --sky-100: #dff2fd;
  --ice-50: #f3f9fe;     /* fundo gelado */
  --white: #ffffff;

  --ink: #0b1a33;        /* títulos */
  --text: #3d4d66;       /* corpo */
  --muted: #62728a;      /* legendas */
  --line: #d9e5ef;

  --wa: #25d366;         /* WhatsApp */
  --wa-dark: #128c4a;
  --success: #15803d;
  --danger: #c2410c;

  /* ---- Tipografia ---- */
  --font-display: 'Saira', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;

  /* ---- Layout ---- */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(6, 24, 78, 0.06), 0 4px 14px -6px rgba(6, 24, 78, 0.12);
  --shadow-md: 0 24px 48px -24px rgba(6, 24, 78, 0.28);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 104px;
}

.section--ice {
  background: var(--ice-50);
}

.section--flush-top {
  padding-top: 0;
}

.section--navy {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-600);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--sky-500);
}

.section--navy .eyebrow {
  color: var(--sky-300);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-heading--center {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 1.08rem;
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.section--navy .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.text-accent {
  color: var(--sky-500);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--navy-900);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-700);
  box-shadow: 0 14px 28px -14px rgba(6, 24, 78, 0.6);
}

.btn--sky {
  background: var(--sky-500);
  color: var(--navy-950);
}

.btn--sky:hover {
  background: var(--sky-300);
  box-shadow: 0 14px 28px -14px rgba(40, 170, 235, 0.7);
}

.btn--whatsapp {
  background: var(--wa);
  color: #06301a;
}

.btn--whatsapp:hover {
  background: #3ee07b;
  box-shadow: 0 14px 28px -14px rgba(37, 211, 102, 0.7);
}

.btn--outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.btn--outline:hover {
  border-color: var(--navy-900);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--sky-600);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Revelar ao rolar (só com JS ativo) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo base ---------- */
@media (max-width: 960px) {
  .section {
    padding-block: 80px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
  }

  .section {
    padding-block: 64px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}
