/*
Theme Name: PILAR - Programa Integral de Longevidade
Theme URI: https://pilar.restauraintegral.com
Author: Restaura Integral
Description: Tema WordPress para o Programa Integral de Longevidade, Acolhimento e Restauração (PILAR)
Version: 1.0.0
Text Domain: pilar
*/

:root {
  --bg: #f4efe6;
  --bg-alt: #ebe4d6;
  --ink: #2d2a23;
  --ink-soft: #5a5448;
  --muted: #8a8275;
  --line: #d8cdb8;
  --brand: #5a7a4e;
  --brand-dark: #3d5a34;
  --gold: #b8915a;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(32px, 4.5vw, 56px);
}

h3 {
  font-size: clamp(22px, 2.2vw, 32px);
}

h4 {
  font-size: clamp(18px, 1.6vw, 24px);
}

p {
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .35s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn--ghost:hover {
  background: var(--brand);
  color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background: #a07a44;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 12px;
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all .4s ease;
}

.nav.is-scrolled {
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  transition: color .4s;
}

.nav.is-scrolled .nav__logo {
  color: var(--ink);
}

.nav__logo-mark {
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.nav__logo-text {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.nav__logo-text small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--sans);
  opacity: 0.7;
  margin-top: -2px;
}

.nav__menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__menu a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
  opacity: 0.85;
  transition: all .3s;
}

.nav.is-scrolled .nav__menu a {
  color: var(--ink);
}

.nav__menu a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav__cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .nav__menu {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  padding: 140px 32px 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%), url('https://images.unsplash.com/photo-1444930694458-01babe71870e?w=2000&q=80') center/cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 300;
  line-height: 1;
  margin: 24px 0 32px;
  max-width: 900px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: #d4c9a8;
  font-weight: 300;
}

.reveal-line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
}

.reveal-line>span {
  display: block;
  transform: translateY(110%);
}

.hero__sub {
  max-width: 600px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(255, 255, 255, .88);
  font-weight: 300;
  line-height: 1.6;
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__ctas .btn--primary {
  background: var(--white);
  color: var(--ink);
}

.hero__ctas .btn--primary:hover {
  background: var(--gold);
  color: var(--white);
}

.hero__ctas .btn--ghost {
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

.hero__scroll p {
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(0.2);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Section shell */
section.block {
  padding: 120px 0;
  position: relative;
}

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

section.block--dark {
  background: var(--ink);
  color: var(--white);
}

section.block--dark p {
  color: rgba(255, 255, 255, .75);
}

section.block--brand {
  background: var(--brand);
  color: var(--white);
}

section.block--brand p {
  color: rgba(255, 255, 255, .85);
}

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
  display: inline-block;
}

.section-head h2 {
  margin-bottom: 20px;
}

.section-head h2 em {
  font-style: italic;
  color: var(--brand);
}

section.block--dark .section-head h2 em,
section.block--brand .section-head h2 em {
  color: #d4c9a8;
}

.section-head p {
  font-size: 17px;
  max-width: 600px;
}

/* Cosmovisão cards */
.cosmo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.cosmo-card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform .4s, box-shadow .4s;
}

.cosmo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.cosmo-card__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--brand);
  font-size: 24px;
}

.cosmo-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.cosmo-card p {
  font-size: 15px;
}

/* Stats / epidemiologia */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--brand);
  font-weight: 400;
  line-height: 1;
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Marco teórico pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.pillar {
  padding: 40px;
  background: var(--bg-alt);
  border-radius: 8px;
  border-top: 3px solid var(--brand);
}

.pillar h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 15px;
}

/* Objectives list */
.obj-list {
  display: grid;
  gap: 24px;
  max-width: 800px;
}

.obj-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.obj-item__num {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
  min-width: 50px;
  flex-shrink: 0;
}

.obj-item h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.obj-item p {
  font-size: 15px;
}

/* How it works — jornada */
.jornada__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.jornada-card {
  text-align: center;
  padding: 40px 28px;
}

.jornada-card__icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: var(--brand);
  font-size: 26px;
}

.jornada-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.jornada-card p {
  font-size: 15px;
}

/* DREV dimensions */
.drev__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .drev__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.drev-card {
  padding: 32px 24px;
  background: var(--white);
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--line);
}

.drev-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.drev-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.drev-card p {
  font-size: 14px;
}

/* Pilot results */
.pilot__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 800px) {
  .pilot__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pilot-stat {
  text-align: center;
}

.pilot-stat__num {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  color: #d4c9a8;
  font-weight: 400;
  line-height: 1;
}

.pilot-stat__label {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  margin-top: 8px;
}

/* Module cards */
.modulos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.mod-card {
  padding: 36px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform .4s, box-shadow .4s;
}

.mod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mod-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.mod-card__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  flex-shrink: 0;
}

.mod-card h3 {
  font-size: 20px;
}

.mod-card__weeks {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.mod-card p {
  font-size: 14px;
  margin-bottom: 16px;
}

.mod-card__link {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 4px;
  transition: gap .3s;
}

.mod-card__link:hover {
  opacity: 0.7;
}

/* Pricing table */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

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

.price-card {
  padding: 48px 40px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--line);
  text-align: center;
}

.price-card--featured {
  border-color: var(--brand);
  border-width: 2px;
}

.price-card__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.price-card__price {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--ink);
  margin-bottom: 8px;
}

.price-card__price small {
  font-size: 16px;
  color: var(--muted);
}

.price-card__note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.price-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.price-card ul li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 600;
  flex-shrink: 0;
}

/* Contact section */
.contato__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

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

.contato-card {
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  text-align: center;
  transition: all .4s;
}

.contato-card:hover {
  background: rgba(255, 255, 255, .04);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.contato-card .eyebrow {
  color: #d4c9a8;
  margin-bottom: 12px;
}

.contato-card h4 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 4px;
}

.contato-card p {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

/* Form */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border .3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: #1a1814;
  color: rgba(255, 255, 255, .6);
  padding: 48px 0 32px;
}

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

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

.footer__brand {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--sans);
  opacity: 0.6;
  margin-top: 4px;
}

.footer p {
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
}

.footer__col h5 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer__col a {
  display: block;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  padding: 4px 0;
  transition: color .3s;
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform .3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
}

.fade-in {
  opacity: 0;
}

.slide-left {
  opacity: 0;
  transform: translateX(-60px);
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.94);
}

.no-js .fade-up,
.no-js .fade-in,
.no-js .slide-left,
.no-js .slide-right,
.no-js .zoom-in {
  opacity: 1 !important;
  transform: none !important;
}

/* Module detail page */
.mod-detail {
  max-width: 800px;
  margin: 0 auto;
}

.mod-detail__head {
  text-align: center;
  margin-bottom: 60px;
}

.mod-detail__week {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.mod-detail__week-num {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--gold);
  min-width: 100px;
  flex-shrink: 0;
}

.mod-detail__week-content h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.mod-detail__week-content p {
  font-size: 15px;
}