/* ============================================
   heysecabeza.com.br — sistema de design
   Paleta: cream quente + vinho profundo + latão
   Tipografia: Fraunces (display) + Inter (corpo)
   ============================================ */

:root {
  --bg: #FBF7F1;
  --bg-panel: #F2E9DC;
  --ink: #241A1D;
  --ink-soft: #57474A;
  --wine: #3B141F;
  --wine-deep: #2A0E17;
  --brass: #A9793C;
  --brass-light: #C79A5C;
  --line: #E2D6C4;
  --cream: #FBF7F1;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 720px;
  --max-w-wide: 980px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--wine);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open {
    max-height: 320px;
  }
  .nav-links a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 760px) {
  .hero {
    padding: 56px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brass);
  font-weight: 600;
  margin: 0 0 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 500;
  color: var(--wine);
  margin: 0 0 24px;
  max-width: 14ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s ease 0.1s forwards;
}

.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 36px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s ease 0.3s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--wine);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--wine-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--wine);
  border: 1px solid var(--wine);
}

.btn-ghost:hover {
  background: var(--wine);
  color: var(--cream);
}

.hero-image {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--bg-panel), var(--line));
  border-radius: 4px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-social {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
}

.hero-social a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.hero-social a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

/* ---------- Trajetória (stats) ---------- */

.stats {
  background: var(--wine);
  color: var(--cream);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass-light);
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: rgba(251, 247, 241, 0.75);
  line-height: 1.4;
}

/* ---------- Section shell ---------- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-panel);
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 500;
  color: var(--wine);
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 20ch;
}

.section p {
  color: var(--ink-soft);
  max-width: 58ch;
}

.section p + p {
  margin-top: 16px;
}

/* two-column with image */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 1;
  }
}

.split-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--line), var(--bg-panel));
  border-radius: 4px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media-wide {
  aspect-ratio: 1536 / 727;
}

/* ---------- Na prática (destaque com borda irregular) ---------- */

.practice {
  position: relative;
  background: var(--wine);
  color: var(--cream);
  padding: 88px 0;
  overflow: hidden;
}

.practice::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--bg);
  clip-path: polygon(
    0% 100%, 4% 20%, 9% 90%, 14% 10%, 19% 80%, 24% 0%, 29% 70%,
    34% 30%, 39% 100%, 44% 10%, 49% 90%, 54% 20%, 59% 80%,
    64% 0%, 69% 70%, 74% 30%, 79% 100%, 84% 10%, 89% 90%,
    94% 20%, 100% 100%, 100% 0%, 0% 0%
  );
}

.practice h2 {
  color: var(--cream);
}

.practice p {
  color: rgba(251, 247, 241, 0.82);
}

.practice-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.practice .btn-primary {
  background: var(--brass);
  color: var(--wine-deep);
}

.practice .btn-primary:hover {
  background: var(--brass-light);
}

.practice .btn-ghost {
  border-color: rgba(251, 247, 241, 0.5);
  color: var(--cream);
}

.practice .btn-ghost:hover {
  background: rgba(251, 247, 241, 0.12);
  color: var(--cream);
}

/* ---------- 4 caminhos ---------- */

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}

@media (max-width: 640px) {
  .paths {
    grid-template-columns: 1fr;
  }
}

.path-card {
  background: var(--bg);
  padding: 36px 32px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: background 0.2s ease;
}

.path-card:hover {
  background: var(--bg-panel);
}

.path-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--brass);
  display: block;
  margin-bottom: 12px;
}

.path-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--wine);
}

.path-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Guia ---------- */

.guide {
  text-align: left;
  background: var(--bg-panel);
}

.guide-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  max-width: 480px;
}

input[type="email"] {
  flex: 1 1 220px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
}

.guide-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Contato ---------- */

.contact-cta {
  margin-top: 28px;
}

.contact-alt {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.contact-alt a {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

/* ---------- Footer ---------- */

footer {
  padding: 48px 0 64px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

footer .pronounce {
  font-family: var(--serif);
  color: var(--wine);
  font-size: 16px;
  margin-bottom: 8px;
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

footer a:hover {
  color: var(--wine);
}
