/* ==========================================================================
   Fernandez Foods — Landing Page B2B
   Mobile first. Sem frameworks.
   ========================================================================== */

:root {
  /* Cores */
  --bg: #0a0a0b;
  --bg-2: #111214;
  --graphite: #17181b;
  --graphite-2: #1d1e22;
  --line: #2a2b30;
  --text: #f4f3f0;
  --muted: #a7a8ad;
  --soft: #c9c9cd;
  --red: #fb3627;          /* vermelho da logo — destaques e ícones */
  --red-strong: #e0281b;   /* botões */
  --red-deep: #c21f15;
  --whats: #0f7a43;        /* verde WhatsApp escurecido (contraste AA) */
  --whats-hover: #0c663a;
  --error: #ff8a80;

  /* Tipografia */
  --f-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);           /* ~30–31px mobile · 48px desktop */
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);       /* 24–26px mobile · 34px desktop */
  --fs-h3: clamp(1.0625rem, 1rem + 0.35vw, 1.375rem);     /* 17–18px · 22px */
  --fs-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); /* 15–16px · 17px */

  /* Espaçamento */
  --pad-x: 20px;
  --section-y: 48px;
  --radius: 10px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --pad-x: 5%; --section-y: 64px; --header-h: 76px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #111;
  padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (min-width: 1400px) { .container { padding-inline: 40px; } }

.icon { width: 1.2em; height: 1.2em; flex: none; }
.accent { color: var(--red); }
.br-desk { display: none; }
@media (min-width: 900px) { .br-desk { display: inline; } }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.2;
  margin-bottom: 8px;
}
@media (min-width: 768px) { .eyebrow { font-size: 1.25rem; } }

.h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  overflow-wrap: break-word;
}
.h1 { font-size: var(--fs-h1); line-height: 0.98; }
.h2 { font-size: var(--fs-h2); line-height: 1; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.05; letter-spacing: 0.03em; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 24px; max-width: 760px; }
.section__text { margin-top: 8px; color: var(--soft); }
@media (min-width: 768px) { .section__head { margin-bottom: 28px; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.1875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 1rem; letter-spacing: 0.05em; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.3125rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--red-strong); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--whats { background: var(--whats); color: #fff; }
.btn--whats:hover { background: var(--whats-hover); }

/* ---------- Header (sobre a foto do hero) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  background: rgba(10, 10, 11, 0.94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo { display: block; flex: none; }
.header__logo img { height: 42px; width: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.6)); }
.header__nav { display: none; }

@media (min-width: 900px) {
  .header__logo img { height: 54px; }
  .header__nav { display: flex; gap: 30px; margin-left: auto; margin-right: 16px; }
  .header__nav a {
    font-family: var(--f-display);
    font-size: 1.125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    padding-block: 8px;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
    transition: color .2s ease;
  }
  .header__nav a:hover { color: var(--red); }
  .header .btn--sm { min-height: 46px; padding: 10px 20px; font-size: 1.125rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: relative;
  display: block;
  height: clamp(230px, 62vw, 340px);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
/* escurece o topo (header) e funde a base no fundo preto */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,.75) 0%, rgba(10,10,11,0) 32%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,.6) 22%, rgba(10,10,11,0) 50%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }
.hero__copy { margin-top: -14px; padding-bottom: 28px; }
.hero__text { margin-top: 12px; color: var(--soft); font-size: 1rem; max-width: 46ch; }
.hero__cta { margin-top: 18px; width: 100%; }

.hero__perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 20px;
}
.hero__perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--soft);
  min-width: 0;
}
.hero__perks .icon { width: 24px; height: 24px; color: var(--red); }

@media (min-width: 560px) {
  .hero__cta { width: auto; }
}

@media (min-width: 900px) {
  .hero {
    min-height: 560px;
    padding-top: var(--header-h);
    display: flex;
    align-items: center;
  }
  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(60%, 860px);
    height: auto;
  }
  .hero__media img { object-position: 50% 58%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(10,10,11,.88) 14%, rgba(10,10,11,.35) 38%, rgba(10,10,11,0) 60%),
      linear-gradient(180deg, rgba(10,10,11,.65) 0%, rgba(10,10,11,0) 22%),
      linear-gradient(0deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,0) 22%);
  }
  .hero__inner { width: 100%; }
  .hero__copy { margin-top: 0; padding-block: 40px 52px; max-width: 640px; }
  .hero__text { font-size: 1.125rem; margin-top: 16px; }
  .hero__cta { margin-top: 26px; }
  .hero__perks {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 0;
    margin-top: 28px;
  }
  .hero__perks li { padding-inline: 14px; border-left: 1px solid rgba(255,255,255,.18); max-width: 150px; }
  .hero__perks li:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 1200px) {
  .hero { min-height: 600px; }
}

/* ---------- Diferenciais ---------- */
.diffs {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.diffs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 4px;
}
.diff {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 14px 20px 0;
  min-width: 0;
}
.diff:nth-child(2n) { padding-left: 16px; padding-right: 0; border-left: 1px solid var(--line); }
.diff:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.diff__icon { width: 30px; height: 30px; color: var(--red); flex: none; }
.diff__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.diff p { margin-top: 6px; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

@media (min-width: 900px) {
  .diffs__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 28px; }
  .diff {
    flex-direction: row;
    gap: 16px;
    padding: 4px 24px !important;
    border-bottom: 0 !important;
    border-left: 1px solid var(--line);
  }
  .diff:first-child { border-left: 0; padding-left: 0 !important; }
  .diff__icon { width: 38px; height: 38px; }
  .diff__title { font-size: 1.375rem; }
  .diff p { font-size: 0.9375rem; }
}

/* ---------- Vídeos (carrossel) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 4px; }

.vcard {
  flex: 0 0 78%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 600px) { .vcard { flex-basis: calc((100% - 14px) / 2); } }
@media (min-width: 960px) {
  .carousel { max-width: 1000px; margin-inline: auto; }
  .videos .section__head { margin-inline: auto; text-align: center; }
  .carousel__track { gap: 20px; }
  .vcard { flex-basis: calc((100% - 40px) / 3); }
}

.vcard__media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
}
.vcard__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.vcard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red-strong);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transition: transform .2s ease, background-color .2s ease;
}
.vcard__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.vcard__play:hover { transform: scale(1.06); background: var(--red-deep); }
.vcard.is-started .vcard__play { display: none; }

.vcard__body { padding: 14px 16px 18px; }
.vcard__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.vcard__title span { color: var(--red); margin-right: 4px; }
.vcard__body p { margin-top: 6px; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 960px) {
  .vcard__title { font-size: 1.25rem; }
  .vcard__body p { font-size: 0.9375rem; }
}

.carousel__arrow {
  display: none;
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(23,24,27,.92);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.carousel__arrow:hover { background: var(--red-strong); border-color: var(--red-strong); }
.carousel__arrow:disabled { opacity: .35; cursor: default; background: rgba(23,24,27,.92); border-color: var(--line); }
.carousel__arrow--prev { left: -8px; }
.carousel__arrow--next { right: -8px; }
@media (min-width: 768px) {
  .carousel__arrow:not([hidden]) { display: grid; }
}
@media (min-width: 1100px) {
  .carousel__arrow--prev { left: -60px; }
  .carousel__arrow--next { right: -60px; }
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
}
.carousel__dots[hidden] { display: none; }
.carousel__dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a4b51;
  transition: background-color .2s ease, transform .2s ease;
}
.carousel__dot[aria-current="true"]::before { background: var(--red); transform: scale(1.15); }

/* ---------- Armazenamento refrigerado ---------- */
.cold {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cold__media {
  position: relative;
  width: 100%;
  height: clamp(360px, 110vw, 480px);
  margin: 0;
  overflow: hidden;
}
.cold__media picture,
.cold__media img {
  display: block;
  width: 100%;
  height: 100%;
}
.cold__media img {
  object-fit: cover;
  object-position: 50% 86%; /* mantém luz, botões e visor dentro do quadro */
}
/* funde a base da foto no fundo escuro */
.cold__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,.35) 7%, rgba(10,10,11,0) 16%);
  pointer-events: none;
}
.cold__inner { position: relative; z-index: 1; }
.cold__copy { padding-block: 4px 40px; }
.cold__points { display: grid; gap: 12px; margin-top: 20px; }
.cold__points li { display: flex; align-items: center; gap: 12px; font-weight: 500; line-height: 1.3; }
.cold__points .icon { width: 28px; height: 28px; color: var(--red); }

@media (min-width: 900px) {
  .cold { min-height: clamp(580px, 36vw, 720px); display: flex; align-items: center; }
  .cold__media {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    height: auto;
  }
  .cold__media img { object-position: 50% 72%; }
  .cold__media::after {
    background:
      linear-gradient(270deg, var(--bg) 0%, rgba(10,10,11,.6) 10%, rgba(10,10,11,0) 32%),
      linear-gradient(180deg, rgba(10,10,11,.35) 0%, rgba(10,10,11,0) 14%, rgba(10,10,11,0) 86%, rgba(10,10,11,.45) 100%);
  }
  .cold__inner { width: 100%; }
  .cold__copy {
    margin-left: auto;
    width: 50%;
    max-width: 560px;
    padding-block: 56px;
  }
  .cold__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
  .cold__points li { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.9375rem; }
  .cold__points .icon { width: 32px; height: 32px; }
}

/* ---------- Como funciona ---------- */
.steps { display: grid; gap: 10px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  flex: none;
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 0.9;
  color: var(--red);
  min-width: 34px;
}
.step p { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .step { flex-direction: column; gap: 10px; padding: 22px; }
  .step__num { font-size: 2.5rem; }
}

/* ---------- Formulário ---------- */
.quote__wrap { max-width: 860px; }
.quote .section__head { margin-inline: auto; text-align: center; }

.form {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red-strong);
  border-radius: 12px;
  padding: 20px 16px;
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) { .form { padding: 28px; gap: 16px; } }

.form__grid { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }

.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 16px; /* evita zoom automático no iOS */
  background: #0d0d0f;
  border: 1.5px solid #393a40;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #7d7e84; }
.field input:hover { border-color: #55565d; }
.field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(251, 54, 39, 0.25);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.875rem; font-weight: 500; }
.field__error:empty { display: none; }

.form .btn--whats { font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }

.form__summary {
  background: rgba(255, 138, 128, 0.08);
  border: 1px solid rgba(255, 138, 128, 0.5);
  color: var(--error);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.form__privacy { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); text-align: center; }
.form__privacy a { color: var(--text); }
.form__status { font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }

/* ---------- FAQ ---------- */
.faq__wrap { max-width: 860px; }
.faq__title { margin-bottom: 14px; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__h { font: inherit; }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.acc__btn .icon { color: var(--red); transition: transform .25s ease; }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc__panel { padding: 0 32px 16px 0; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 768px) { .acc__btn { font-size: 1.0625rem; } }

/* ---------- Footer ---------- */
.footer {
  background: #070708;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.footer__inner { display: grid; gap: 20px; }
.footer__brand img { width: 130px; height: auto; }
.footer__brand p { margin-top: 10px; color: var(--muted); max-width: 42ch; }
.footer__links { display: grid; align-content: start; }
.footer__links a,
.footer__addr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.footer__links a:hover { color: var(--red); }
.footer__links .icon { color: var(--red); }
.footer__bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #85868c;
  font-size: 0.8125rem;
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__links { justify-items: end; }
}

/* ---------- WhatsApp flutuante ---------- */
.float-wa {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--whats);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.float-wa .icon { width: 26px; height: 26px; }
.float-wa:hover { background: var(--whats-hover); }
.float-wa.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 768px) {
  .float-wa { right: 24px; bottom: 24px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
