/* =========================================================
   FRIZA GELO
   BASE.CSS
   Fundação visual e estrutural do site
========================================================= */


/* =========================================================
   1. TOKENS / DESIGN SYSTEM
========================================================= */

:root {

  /* =========================
     CORES DA MARCA
  ========================== */

  --color-navy: #0d3b66;
  --color-blue: #1f78d1;
  --color-blue-hover: #1767b6;
  --color-ice: #bfe8ff;

  --color-white: #ffffff;
  --color-black: #111827;


  /* =========================
     CORES FUNCIONAIS
  ========================== */

  --color-background: #ffffff;

  --color-surface: #f7fbfe;
  --color-surface-soft: #eef8fd;
  --color-surface-blue: #eaf6fd;

  --color-text: #0d3b66;
  --color-text-strong: #082a49;
  --color-text-muted: #617487;

  --color-border: #dceaf3;
  --color-border-strong: #c6dce9;

  --color-success: #16865c;
  --color-error: #c83e4d;
  --color-warning: #b7791f;


  /* =========================
     TIPOGRAFIA
  ========================== */

  --font-heading: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;


  /* =========================
     TAMANHOS DE TEXTO
  ========================== */

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;

  --heading-sm: clamp(1.5rem, 2vw, 2rem);
  --heading-md: clamp(2rem, 4vw, 3rem);
  --heading-lg: clamp(2.5rem, 5vw, 4.5rem);


  /* =========================
     ESPAÇAMENTO
  ========================== */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;


  /* =========================
     RAIO DE BORDA
  ========================== */

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;


  /* =========================
     SOMBRAS
  ========================== */

  --shadow-sm:
    0 1px 2px rgba(13, 59, 102, 0.05);

  --shadow-md:
    0 8px 24px rgba(13, 59, 102, 0.08);

  --shadow-lg:
    0 18px 50px rgba(13, 59, 102, 0.12);


  /* =========================
     LAYOUT
  ========================== */

  --container-width: 1200px;
  --container-padding: 32px;

  --section-padding-desktop: 96px;
  --section-padding-tablet: 72px;
  --section-padding-mobile: 56px;


  /* =========================
     TRANSIÇÕES
  ========================== */

  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;
  --transition-slow: 420ms ease;


  /* =========================
     Z-INDEX
  ========================== */

  --z-base: 1;
  --z-header: 50;
  --z-overlay: 100;
  --z-modal: 1000;
}


/* =========================================================
   2. RESET
========================================================= */

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


html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}


body {
  margin: 0;

  min-width: 320px;

  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);

  line-height: 1.6;

  color: var(--color-text);
  background: var(--color-background);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


body,
input,
button,
textarea,
select {
  font-family: var(--font-body);
}


h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}


ul,
ol {
  padding-left: 0;
}


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


button {
  border: 0;
}


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


img {
  height: auto;
}


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


button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   3. TIPOGRAFIA GLOBAL
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;

  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);

  line-height: 1.08;

  color: var(--color-text-strong);
}


h1 {
  font-size: var(--heading-lg);
  letter-spacing: -0.045em;
}


h2 {
  font-size: var(--heading-md);
  letter-spacing: -0.035em;
}


h3 {
  font-size: var(--heading-sm);
  letter-spacing: -0.025em;
}


p {
  margin-bottom: 0;
}


strong {
  font-weight: var(--font-weight-bold);
}


small {
  font-size: var(--text-sm);
}


/* =========================================================
   4. CONTAINER
========================================================= */

.container {
  width: min(
    calc(100% - (var(--container-padding) * 2)),
    var(--container-width)
  );

  margin-inline: auto;
}


/* =========================================================
   5. SEÇÕES
========================================================= */

.section {
  position: relative;

  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
}


.section-heading {
  margin-bottom: var(--space-12);
}


.section-heading h2 {
  max-width: 800px;
}


/* =========================================================
   6. SUPERFÍCIES
========================================================= */

.surface {
  background: var(--color-surface);
}


.surface-soft {
  background: var(--color-surface-soft);
}


.surface-blue {
  background: var(--color-surface-blue);
}


/* =========================================================
   7. TEXTO UTILITÁRIO
========================================================= */

.text-muted {
  color: var(--color-text-muted);
}


.text-center {
  text-align: center;
}


.text-left {
  text-align: left;
}


.text-right {
  text-align: right;
}


/* =========================================================
   8. VISIBILIDADE E ACESSIBILIDADE
========================================================= */

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   9. FOCO
========================================================= */

:focus-visible {
  outline: 3px solid rgba(31, 120, 209, 0.35);
  outline-offset: 3px;
}


/* =========================================================
   10. SELEÇÃO DE TEXTO
========================================================= */

::selection {
  color: var(--color-navy);
  background: var(--color-ice);
}


/* =========================================================
   11. SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 10px;
}


::-webkit-scrollbar-track {
  background: #f4f8fb;
}


::-webkit-scrollbar-thumb {
  background: #bfd4e3;
  border-radius: var(--radius-pill);
}


::-webkit-scrollbar-thumb:hover {
  background: #9fbfd4;
}


/* =========================================================
   12. PLACEHOLDERS DE IMAGEM
   Temporários enquanto os assets finais não entram
========================================================= */

.brand-placeholder,
.hero-logo-placeholder,
.footer-logo-placeholder,
.product-image-placeholder,
.step-icon-placeholder,
.trust-background-placeholder,
.service-map-placeholder {
  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;

  border: 1px dashed var(--color-border-strong);

  color: var(--color-text-muted);

  background:
    linear-gradient(
      135deg,
      rgba(191, 232, 255, 0.22),
      rgba(255, 255, 255, 0.9)
    );
}


.brand-placeholder {
  min-width: 140px;
  min-height: 48px;

  padding: var(--space-3) var(--space-4);

  border-radius: var(--radius-sm);

  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}


.hero-logo-placeholder {
  width: 180px;
  min-height: 64px;

  margin-bottom: var(--space-8);

  border-radius: var(--radius-md);

  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}


.footer-logo-placeholder {
  width: 180px;
  min-height: 64px;

  border-radius: var(--radius-md);

  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}


.product-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;

  border-radius: var(--radius-lg);

  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}


.step-icon-placeholder {
  width: 64px;
  height: 64px;

  border-radius: var(--radius-lg);

  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}


.trust-background-placeholder {
  width: 100%;
  min-height: 560px;

  border: 0;
  border-radius: 0;

  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}


.service-map-placeholder {
  width: 100%;
  min-height: 440px;

  border-radius: var(--radius-xl);

  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}


/* =========================================================
   13. ESTADOS GERAIS
========================================================= */

[hidden] {
  display: none !important;
}


.is-hidden {
  display: none !important;
}


.is-visible {
  display: block;
}


/* =========================================================
   14. LINKS
========================================================= */

a {
  transition:
    color var(--transition-fast),
    opacity var(--transition-fast);
}


a:hover {
  color: var(--color-blue);
}


/* =========================================================
   15. ELEMENTOS DE FORMULÁRIO - BASE
   O acabamento fica em components.css
========================================================= */

input,
textarea,
select {
  width: 100%;

  color: var(--color-text-strong);

  background: var(--color-white);

  border: 1px solid var(--color-border);

  border-radius: var(--radius-md);
}


input::placeholder,
textarea::placeholder {
  color: #8999a8;
}


textarea {
  resize: vertical;
}


/* =========================================================
   16. MOTION / ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   17. TABLET
========================================================= */

@media (max-width: 1024px) {

  :root {
    --container-padding: 24px;
  }


  .section {
    padding-top: var(--section-padding-tablet);
    padding-bottom: var(--section-padding-tablet);
  }

}


/* =========================================================
   18. MOBILE
========================================================= */

@media (max-width: 768px) {

  :root {
    --container-padding: 20px;
  }


  body {
    font-size: 0.975rem;
  }


  .section {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
  }


  .section-heading {
    margin-bottom: var(--space-8);
  }


  .hero-logo-placeholder {
    width: 150px;
    min-height: 56px;

    margin-bottom: var(--space-6);
  }


  .trust-background-placeholder {
    min-height: 500px;
  }


  .service-map-placeholder {
    min-height: 320px;
  }

}


/* =========================================================
   19. MOBILE PEQUENO
========================================================= */

@media (max-width: 480px) {

  :root {
    --container-padding: 16px;
  }


  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

}