/* AR NUTRA LTDA — arnutra.digital */

:root {
  --paper:   #e8eae6;
  --surface: #f4f5f2;
  --ink:     #17211c;
  --ink-2:   #2c3a33;
  --muted:   #6d7a72;
  --hair:    #c9cec7;
  --accent:  #6b2434;
  --measure: 66ch;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.78vw, 2rem);
  --step-3:  clamp(1.95rem, 1.62rem + 1.62vw, 2.95rem);
  --step-4:  clamp(2.5rem, 1.78rem + 3.55vw, 4.75rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: var(--step-0);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .grotesk {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 5vw, 3.5rem);
}

section { padding-block: clamp(3.5rem, 8vw, 7rem); }

/* ---------- topo ---------- */

.masthead {
  border-bottom: 1px solid var(--hair);
  padding-block: 1.15rem;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.10em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
}
.wordmark:hover { text-decoration: none; }
.wordmark .thin { font-weight: 400; letter-spacing: 0.16em; color: var(--muted); }

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  font-family: Archivo, sans-serif;
  font-size: var(--step--1);
  font-weight: 500;
}
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- herói ---------- */

.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero .lede {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
}

.rule-accent {
  width: 4.5rem;
  height: 3px;
  background: var(--accent);
  margin-top: 2.2rem;
}

/* bloco de identidade jurídica */
.registry {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  font-size: var(--step--1);
  line-height: 1.5;
}
.registry dl { margin: 0; }
.registry div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--hair);
}
.registry dt { color: var(--muted); margin: 0; }
.registry dd { margin: 0; color: var(--ink); }

/* ---------- serviços ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 { font-size: var(--step-3); max-width: 13ch; }
.section-head p { color: var(--ink-2); margin: 0; }

.services { display: grid; gap: 0; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 5vw, 4rem);
  padding-block: clamp(1.6rem, 3vw, 2.3rem);
  border-bottom: 1px solid var(--hair);
}
.service:last-child { border-bottom: 0; }
.service h3 { font-size: var(--step-1); font-weight: 600; max-width: 18ch; }
.service p { color: var(--ink-2); margin: 0; }

/* ---------- método (sequência real) ---------- */

.method { background: var(--ink); color: var(--paper); }
.method h2 { color: var(--paper); }
.method .section-head { border-bottom-color: #3b4a42; }
.method .section-head p { color: #b6c0b8; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
}
.step {
  padding: 1.6rem clamp(1rem, 2.5vw, 1.8rem) 1.8rem;
  border-left: 1px solid #3b4a42;
}
.step:first-child { border-left: 0; padding-left: 0; }
.step-n {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #d98a99;
  display: block;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: var(--step-1); color: var(--paper); font-weight: 600; margin-bottom: 0.6rem; }
.step p { color: #b6c0b8; font-size: var(--step--1); line-height: 1.55; margin: 0; }

/* ---------- plataformas / âmbito ---------- */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.scope-grid h3 { font-size: var(--step-0); font-weight: 700; margin-bottom: 0.7rem; }
.scope-grid ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.scope-grid li { margin-bottom: 0.35rem; }

/* ---------- contato ---------- */

.contact { background: var(--surface); border-block: 1px solid var(--hair); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact h2 { font-size: var(--step-3); max-width: 12ch; margin-bottom: 1.2rem; }
.contact .lede { color: var(--ink-2); }

.contact-list { border-top: 2px solid var(--ink); }
.contact-list div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--hair);
  font-size: var(--step--1);
}
.contact-list dt { color: var(--muted); margin: 0; }
.contact-list dd { margin: 0; }
.contact-list address { font-style: normal; }

/* ---------- rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: #b6c0b8;
  padding-block: clamp(2.8rem, 6vw, 4rem) 2rem;
  font-size: var(--step--1);
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 3.5rem);
  padding-bottom: 2.2rem;
  border-bottom: 1px solid #3b4a42;
}
.site-footer .wordmark { color: var(--paper); font-size: 1.05rem; text-decoration: none; }
.site-footer .wordmark:hover { color: #fff; text-decoration: none; }
.site-footer .wordmark .thin { color: #8b978f; }
.site-footer h3 {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.9rem;
}
.site-footer address { font-style: normal; margin-top: 1rem; max-width: 30ch; }
.site-footer a { color: #e8eae6; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }

.legal-bar {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  color: #8b978f;
}
.legal-bar p { margin: 0; max-width: none; }

/* ---------- páginas de texto legal ---------- */

.doc { padding-block: clamp(3rem, 7vw, 5rem); }
.doc h1 { font-size: var(--step-3); margin-bottom: 0.8rem; }
.doc .updated { color: var(--muted); font-size: var(--step--1); margin-bottom: 2.5rem; }
.doc h2 {
  font-size: var(--step-1);
  font-weight: 700;
  margin-top: 2.6rem;
  margin-bottom: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}
.doc ul { max-width: var(--measure); color: var(--ink-2); padding-left: 1.2rem; }
.doc li { margin-bottom: 0.45rem; }
.doc p { color: var(--ink-2); }

/* ---------- responsivo ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .section-head,
  .service,
  .contact-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .section-head { align-items: start; }
  .hero h1 { max-width: 18ch; }
  .step { border-left: 0; border-top: 1px solid #3b4a42; padding-left: 0; padding-right: 0; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .registry div,
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

/* ---------- entrada única, no carregamento ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .rule-accent, .hero .registry {
    animation: rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }
  .hero .lede      { animation-delay: 0.08s; }
  .hero .rule-accent { animation-delay: 0.14s; }
  .hero .registry  { animation-delay: 0.2s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.9rem); }
  to   { opacity: 1; transform: none; }
}
