/* ============================================================
   LEVIOSA · Site institucional
   Design tokens + componentes compartilhados
============================================================ */

:root{
  /* Paleta (idêntica ao folder + apresentação) */
  --paper: #F5F1E8;
  --paper-soft: #FAF7F0;
  --ink: #1E3E30;
  --ink-soft: #2A5040;
  --sage: #7A9885;
  --terracotta: #B87254;
  --sand: #E4DBC7;
  --sand-soft: #EFE7D5;

  --muted: color-mix(in oklab, var(--ink) 55%, var(--paper) 45%);
  --faint: color-mix(in oklab, var(--ink) 35%, var(--paper) 65%);
  --hairline: color-mix(in oklab, var(--ink) 12%, transparent);
  --hairline-strong: color-mix(in oklab, var(--ink) 25%, transparent);

  /* Type */
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;

  /* Space */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 10vw, 128px);
  --section-y-sm: clamp(48px, 8vw, 96px);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }
button{ font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
a{ color: inherit; text-decoration: none; }
input, textarea, select{ font: inherit; color: inherit; }

/* ============================================================
   LAYOUT
============================================================ */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section{ position: relative; }
.section{ padding: var(--section-y) 0; }
.section-sm{ padding: var(--section-y-sm) 0; }

.bg-paper{ background: var(--paper); }
.bg-paper-soft{ background: var(--paper-soft); }
.bg-sand{ background: var(--sand); }
.bg-sand-soft{ background: var(--sand-soft); }
.bg-ink{ background: var(--ink); color: var(--paper); }
.bg-ink .muted, .bg-ink .body-copy{ color: color-mix(in oklab, var(--paper) 75%, var(--ink) 25%); }
.bg-ink .kicker{ color: color-mix(in oklab, var(--sage) 80%, var(--paper) 20%); }

/* ============================================================
   TYPOGRAPHY
============================================================ */
.kicker{
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.kicker.no-rule::before{ display: none; }
.kicker.terracotta{ color: var(--terracotta); }

.display-xl{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.display-lg{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.display-md{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.display-sm{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  margin: 0;
}
.display-xs{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
  margin: 0;
}

em, .italic{
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

.lead{
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}

.body-copy{
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1em;
  max-width: 68ch;
  text-wrap: pretty;
}
.body-copy.muted{ color: var(--muted); }
.body-copy.sm{ font-size: 14px; line-height: 1.55; }

.overline{
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

.rule{
  height: 1px;
  background: var(--hairline-strong);
  border: none;
  margin: 0;
}
.rule.on-dark{ background: color-mix(in oklab, var(--paper) 25%, transparent); }
.rule-short{ width: 40px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  border-radius: 0;
}
.btn::after{
  content: "→";
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}
.btn:hover::after{ transform: translateX(4px); }

.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{
  background: var(--ink-soft);
}

.btn-secondary{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover{
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost{
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  letter-spacing: 0.2em;
}
.btn-ghost::after{ margin-left: 4px; }
.btn-ghost{ border-bottom: 1px solid var(--hairline-strong); }
.btn-ghost:hover{ border-bottom-color: var(--terracotta); color: var(--terracotta); }

.bg-ink .btn-primary{ background: var(--paper); color: var(--ink); }
.bg-ink .btn-primary:hover{ background: var(--sand); }
.bg-ink .btn-secondary{ color: var(--paper); border-color: var(--paper); }
.bg-ink .btn-secondary:hover{ background: var(--paper); color: var(--ink); }

/* ============================================================
   HEADER
============================================================ */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s var(--ease);
}
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled::before{ opacity: 1; }
.site-header.is-hidden{ transform: translateY(-100%); }

.header-inner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.header-brand img{
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.header-brand .wordmark{
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.header-brand .kind{
  display: block;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}

.header-nav{
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-nav a{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.header-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header-nav a:hover,
.header-nav a[aria-current="page"]{ color: var(--terracotta); }
.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after{ transform: scaleX(1); }

.header-cta{ display: none; }

.burger{
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 110;
  position: relative;
}
.burger span{
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: all 0.3s var(--ease);
}
.burger span::before,
.burger span::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.burger span::before{ top: -7px; }
.burger span::after{ top: 7px; }
.burger.is-open span{ background: transparent; }
.burger.is-open span::before{ top: 0; transform: rotate(45deg); }
.burger.is-open span::after{ top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 100%;             /* off-screen à direita, sem transform */
  width: 100%;
  background: var(--paper);
  z-index: 105;
  display: flex;
  flex-direction: column;
  padding: 88px var(--gutter) 40px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: left 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-nav.is-open{
  left: 0;
  visibility: visible;
  opacity: 1;
  transition: left 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0s;
}
.mobile-nav a{
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  padding: 16px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mobile-nav a::after{
  content: "→";
  font-size: 20px;
  color: var(--terracotta);
}
.mobile-nav a[aria-current="page"]{ color: var(--terracotta); }
.mobile-nav .mobile-nav-foot{
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.mobile-nav .mobile-nav-foot strong{
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

@media (max-width: 900px){
  .header-nav{ display: none; }
  .burger{ display: inline-flex; }
}
@media (min-width: 901px){
  .mobile-nav{ display: none; }
  .header-cta{ display: inline-flex; }
  .header-cta.btn{ padding: 12px 22px; font-size: 11px; }
}

/* Prevent body scroll when mobile-nav open */
body.nav-open{ overflow: hidden; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer{
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-grid > *:first-child{ grid-column: 1 / -1; }
}
@media (max-width: 500px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 320px;
}
.footer-brand-mark{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-mark img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer-brand-mark .wordmark{
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
}
.footer-brand-mark .kind{
  display: block;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--sage) 80%, var(--paper) 20%);
  margin-top: 4px;
}
.footer-brand p{
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  margin: 0;
}
.footer-col h5{
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--sage) 80%, var(--paper) 20%);
  margin: 0 0 20px;
}
.footer-col ul{ list-style: none; padding: 0; margin: 0; }
.footer-col li{ margin-bottom: 12px; }
.footer-col a{
  font-size: 14px;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover{ color: var(--terracotta); }
.footer-col p{
  font-size: 14px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  margin: 0 0 8px;
}
.footer-col .val-big{
  font-family: var(--display);
  font-size: 22px;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  display: block;
}
.footer-bottom{
  border-top: 1px solid color-mix(in oklab, var(--paper) 20%, transparent);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
}

/* ============================================================
   FLOATING WHATSAPP
============================================================ */
.wa-fab{
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-fab:hover{
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0,0,0,0.2);
}
.wa-fab svg{ width: 30px; height: 30px; }
.wa-fab .tooltip{
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.wa-fab:hover .tooltip{ opacity: 1; }

/* ============================================================
   IMAGE PLACEHOLDERS (elegant diagonal stripes)
============================================================ */
.img-ph{
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      var(--sand) 0 8px,
      color-mix(in oklab, var(--sand) 92%, var(--ink) 8%) 8px 16px
    );
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.img-ph::before{
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed color-mix(in oklab, var(--ink) 25%, transparent);
  pointer-events: none;
}
.img-ph .label{
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ink) 55%, var(--sand) 45%);
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  padding: 4px 10px;
  position: relative;
  z-index: 1;
}

.img-ph.ratio-4-3{ aspect-ratio: 4 / 3; }
.img-ph.ratio-3-4{ aspect-ratio: 3 / 4; }
.img-ph.ratio-1-1{ aspect-ratio: 1 / 1; }
.img-ph.ratio-16-9{ aspect-ratio: 16 / 9; }
.img-ph.ratio-4-5{ aspect-ratio: 4 / 5; }

/* ============================================================
   ANIMATIONS (scroll reveal)
============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1{ transition-delay: 0.1s; }
.reveal-delay-2{ transition-delay: 0.2s; }
.reveal-delay-3{ transition-delay: 0.3s; }
.reveal-delay-4{ transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* ============================================================
   FORMS
============================================================ */
.form{
  display: grid;
  gap: 24px;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px){
  .form-row{ grid-template-columns: 1fr; }
}
.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label{
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.field input,
.field textarea,
.field select{
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 12px 0;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-bottom-color: var(--terracotta);
}
.field textarea{ resize: vertical; min-height: 100px; font-family: var(--body); font-size: 15px; line-height: 1.55; padding: 12px 0; }
.field input::placeholder,
.field textarea::placeholder{
  color: var(--faint);
  font-family: var(--display);
  font-style: italic;
}
.field textarea::placeholder{ font-family: var(--body); font-style: normal; }
.form-success,
.form-error{
  padding: 32px;
  background: var(--sand);
  border-left: 3px solid var(--terracotta);
  display: none;
}
.form-error{
  background: color-mix(in oklab, var(--terracotta) 12%, var(--paper) 88%);
  border-left-color: var(--terracotta);
}
.form-success h4,
.form-error h4{
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 500;
}
.form-success p,
.form-error p{ margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.form.is-submitted{ display: none; }
.form.is-submitted + .form-success{ display: block; }
.form.is-error + .form-success + .form-error{ display: block; }
.form.is-error{ /* keep form visible on error so user can retry */ }

/* ============================================================
   HELPERS
============================================================ */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mt-1{ margin-top: 8px; }
.mt-2{ margin-top: 16px; }
.mt-3{ margin-top: 24px; }
.mt-4{ margin-top: 32px; }
.mt-6{ margin-top: 48px; }
.mt-8{ margin-top: 64px; }
.mb-0{ margin-bottom: 0; }
.mb-2{ margin-bottom: 16px; }
.mb-4{ margin-bottom: 32px; }
.mb-6{ margin-bottom: 48px; }

.grid{ display: grid; gap: 32px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.flex{ display: flex; }
.flex-col{ flex-direction: column; }
.items-center{ align-items: center; }
.items-baseline{ align-items: baseline; }
.justify-between{ justify-content: space-between; }
.gap-2{ gap: 16px; }
.gap-3{ gap: 24px; }
.gap-4{ gap: 32px; }
.gap-6{ gap: 48px; }

.max-w-prose{ max-width: 68ch; }
.max-w-lead{ max-width: 40ch; }

/* Skip to main */
.skip-link{
  position: absolute;
  top: -40px;
  left: 8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  z-index: 200;
  font-size: 13px;
}
.skip-link:focus{ top: 8px; }

/* Page hero (used across pages) */
.page-hero{
  padding: 160px 0 80px;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.page-hero .breadcrumb{
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.page-hero .breadcrumb a{ color: inherit; transition: color 0.25s var(--ease); }
.page-hero .breadcrumb a:hover{ color: var(--terracotta); }
.page-hero .breadcrumb span:not(:last-child)::after{
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  background: currentColor;
  margin-left: 12px;
  vertical-align: middle;
}
