/* ====================================================================
   ACADEMIA CASA DOS AVÓS — Sistema Visual
   Direção: Editorial + Artesanal
   ==================================================================== */

:root {
  /* Paleta — Direção A: Editorial Quente (default)
     Harmonizada com o ocre-azeitona do logo (#806D33) */
  --paper: #F2EDE0;
  --paper-deep: #E8DFC9;
  --paper-soft: #FAF6EC;
  --ink: #2A2520;
  --ink-soft: #5C544A;
  --ink-muted: #8A8074;
  --wool: #806D33;       /* ocre azeitona — cor do logo */
  --wool-deep: #635520;  /* versão mais escura */
  --moss: #5A6850;       /* verde musgo */
  --rose: #B8794A;       /* terra quente como secundária */
  --line: rgba(42, 37, 32, 0.14);
  --line-strong: rgba(42, 37, 32, 0.32);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-script: 'Caveat', 'Brush Script MT', cursive;

  /* Layout */
  --max-w: 1280px;
  --gutter: 32px;
  --radius: 4px;
}

/* Direção B — Artesanal mais quente, com logo em destaque */
[data-direction="artesanal"] {
  --paper: #ECE2C8;
  --paper-deep: #DDCFA8;
  --paper-soft: #F5ECD4;
  --ink: #221C14;
  --ink-soft: #5A4D3E;
  --wool: #806D33;
  --wool-deep: #4F4218;
  --moss: #4F5E3D;
  --rose: #A65A2C;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
}

/* Espaço seguro no fundo em mobile para a pílula de acessibilidade flutuante */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* Subtle paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 121, 74, 0.03) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(90, 104, 80, 0.03) 0, transparent 40%);
  mix-blend-mode: multiply;
}

#app { position: relative; z-index: 1; }

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

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

/* === Typography === */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.serif { font-family: var(--font-serif); }
.sans  { font-family: var(--font-sans); }
.mono  { font-family: var(--font-mono); }
.script { font-family: var(--font-script); }

.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* === Container === */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === Header / Nav === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.brand__divider {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  opacity: 0.5;
}

.brand__sub-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__sub-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.3;
}

.brand__mark {
  width: 38px;
  height: 38px;
  position: relative;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav__item {
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  color: var(--ink-soft);
}

.nav__item:hover { color: var(--ink); }

.nav__item.is-active {
  color: var(--ink);
  background: color-mix(in oklab, var(--wool) 12%, transparent);
}

.nav__cta {
  margin-left: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav__cta:hover { transform: translateY(-1px); }

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper-soft);
}
.btn--primary:hover { background: var(--wool-deep); transform: translateY(-1px); }

.btn--wool {
  background: var(--wool);
  color: var(--paper-soft);
}
.btn--wool:hover { background: var(--wool-deep); }

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

.btn--lg { padding: 17px 30px; font-size: 15px; }

/* === Hero === */

.hero {
  padding: 64px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hero__eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--ink-soft);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0;
}

.hero__title .italic {
  font-style: italic;
  color: var(--wool-deep);
}

.hero__lede {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 28px 0 0;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-deep);
  border-radius: 2px;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* === Sections === */

.section {
  padding: 100px 0;
}

.section--tight { padding: 64px 0; }

.section--cream {
  background: var(--paper-soft);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink .eyebrow { color: var(--paper-deep); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}

.section__intro {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
}

/* === Placeholder image === */

.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-deep) 0px,
      var(--paper-deep) 14px,
      color-mix(in oklab, var(--paper-deep) 60%, var(--wool)) 14px,
      color-mix(in oklab, var(--paper-deep) 60%, var(--wool)) 15px
    );
  overflow: hidden;
  border-radius: 2px;
}

.placeholder__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  padding: 12px 18px;
  margin: auto;
  width: max-content;
  height: max-content;
  border-radius: 100px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* === Cards === */

.card {
  background: var(--paper-soft);
  padding: 28px;
  border-radius: 2px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--wool);
  box-shadow: 0 12px 30px -12px rgba(42, 37, 32, 0.18);
}

/* === Footer === */

.footer {
  background: var(--ink);
  color: var(--paper-deep);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper-deep) 60%, transparent);
  margin: 0 0 18px;
  font-weight: 500;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--paper-deep);
  margin-bottom: 8px;
  transition: color 0.2s;
  cursor: pointer;
}
.footer__col a:hover { color: var(--wool); }

.footer__brand-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.25;
  color: var(--paper);
  margin: 24px 0 0;
  max-width: 32ch;
}

.footer__bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper-deep) 50%, transparent);
}

/* === Form Controls === */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field__input,
.field__textarea,
.field__select {
  padding: 14px 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: none;
  border-color: var(--wool);
  background: var(--paper);
}

.field__textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
}

/* === Marquee / scrolling text === */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee__track {
  display: inline-block;
  animation: marquee 50s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  letter-spacing: -0.02em;
}

.marquee__track > span {
  margin: 0 30px;
  color: var(--ink);
}

.marquee__track > span:nth-child(even) {
  color: var(--wool);
  font-style: normal;
  font-family: var(--font-script);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Wool decoration (svg pattern) === */

.wool-line {
  height: 2px;
  background:
    radial-gradient(circle at center, var(--wool) 1px, transparent 1.2px) 0 0/8px 2px repeat-x;
  margin: 8px 0;
  opacity: 0.7;
}

/* === Responsive === */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .hamburger { display: flex; }
  .nav { display: none; }
  .brand__divider,
  .brand__sub-block { display: none; }

  .site-header__inner { padding: 12px var(--gutter); }

  .section { padding: 56px 0; }
  .hero  { padding: 28px 0 52px; }

  .hero__grid,
  .section__head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .marquee__track { font-size: 36px; }
  .marquee__track > span { margin: 0 14px; }
}

@media (max-width: 580px) {
  :root { --gutter: 16px; }
  .section { padding: 44px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer__grid > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .footer__brand-quote { text-align: center; }
  .footer__bottom { flex-direction: column; gap: 6px; align-items: center; text-align: center; }
  .marquee__track { font-size: 24px; }
  .marquee__track > span { margin: 0 10px; }
  .btn--lg { padding: 15px 22px; font-size: 14px; }
}

/* Page transitions */
.page-enter {
  animation: pageIn 0.5s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
