/* ============================================================
   Instituto Abib — Design System Lavieen
   Paleta: dourado champanhe sobre off-white quente
   Tipografia: Playfair Display + Inter
   ============================================================ */

/* -- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #b8942a;
  --gold-light: #d4af5a;
  --gold-deep:  #8a6d1e;
  --ink:        #1a1610;
  --cream:      #faf8f4;
  --cream-deep: #f0ebe0;
  --card-bg:    #ffffff;
  --muted:      #7a7060;
  --border:     #e8e0d0;
  --radius:     14px;
  --grad-gold:  linear-gradient(120deg, #8a6d1e 0%, #b8942a 45%, #d4af5a 100%);
  --grad-hero:  radial-gradient(ellipse 70% 60% at 20% 20%, rgba(212,175,90,.45) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 90% 10%, rgba(184,148,42,.3) 0%, transparent 70%),
                linear-gradient(180deg, #faf8f2 0%, #f5f0e6 100%);
  --shadow-sm:  0 4px 18px rgba(0,0,0,.07);
  --shadow-lg:  0 24px 60px -20px rgba(0,0,0,.22);
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -.015em;
  line-height: 1.15;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* -- Utilities -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 5rem; }

.eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .5rem;
}

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--grad-gold);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 9999px;
  padding: .9rem 2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(184,148,42,.3);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(184,148,42,.4);
  filter: brightness(1.05);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.5px solid rgba(138,109,30,.4);
  border-radius: 9999px;
  padding: .9rem 2rem;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.btn-outline-gold:hover {
  border-color: var(--gold-deep);
  background: rgba(184,148,42,.08);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,148,42,.4);
}

.card-dark {
  background: linear-gradient(135deg, #1a1610, #2a2418);
  color: var(--cream);
  border-color: rgba(184,148,42,.3);
}

.hairline {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  margin-block: 1.5rem;
}

/* -- Navigation ------------------------------------------- */
#nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,248,244,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

#nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-deep); }

.nav-cta { padding: .6rem 1.4rem; font-size: .75rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: .5rem;
  border-bottom: 1px solid var(--border);
}

/* -- Hero ------------------------------------------------- */
#hero {
  background: var(--grad-hero);
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

#hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

#hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-top: 1.25rem; }
#hero h1 em { font-style: normal; }
#hero .hero-sub {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}
.hero-tags span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(138,109,30,.35);
  border-radius: 9999px;
  padding: .35rem 1rem;
  background: rgba(255,255,255,.6);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.hero-stats .stat-icon {
  color: var(--gold-deep);
  width: 20px;
  height: 20px;
}
.hero-stats .stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: .35rem;
}
.hero-stats .stat-lbl {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -2.5rem;
  border-radius: 50%;
  background: rgba(184,148,42,.18);
  filter: blur(40px);
  pointer-events: none;
}
.hero-img-wrap img {
  position: relative;
  max-height: 560px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(184,148,42,.25);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  background: var(--ink);
  padding: .75rem;
}

/* -- Grid Cards ------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

/* -- Section Alternating bg ------------------------------- */
.bg-cream  { background: var(--cream); }
.bg-deep   { background: var(--cream-deep); }
.bg-hero   { background: var(--grad-hero); }
.bg-dark   { background: linear-gradient(135deg, var(--ink), #2a2418); color: var(--cream); }

/* -- Module cards ----------------------------------------- */
.mod-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
}
.mod-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  line-height: 1;
  padding-top: .1rem;
}
.mod-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.mod-card p  { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* -- Protocol cards --------------------------------------- */
.proto-card {
  border: 1px solid var(--border);
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.proto-card:hover {
  border-color: rgba(184,148,42,.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.proto-card h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1rem; }
.proto-card p  { font-size: .88rem; color: var(--muted); margin-top: .5rem; line-height: 1.6; }

/* -- Plans ------------------------------------------------ */
.plan-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.featured {
  background: var(--grad-hero);
  border-color: rgba(184,148,42,.4);
  box-shadow: var(--shadow-lg);
  margin-top: -1rem;
  margin-bottom: -1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.plan-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-gold);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: .4rem 1.1rem;
  white-space: nowrap;
}

.plan-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; }
.plan-tagline { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 1.25rem;
  line-height: 1;
}
.plan-price.gradient { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.plan-price small { font-size: 1rem; font-weight: 600; -webkit-text-fill-color: inherit; }
.plan-price span  { font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan-note { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.plan-features { flex: 1; margin-top: 1.75rem; display: flex; flex-direction: column; gap: .7rem; }
.plan-features li { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; }
.plan-features .check { color: var(--gold-deep); flex-shrink: 0; margin-top: .1rem; }
.plan-card .btn-gold,
.plan-card .btn-outline-gold { margin-top: 1.75rem; text-align: center; justify-content: center; }

/* -- Testimonials ----------------------------------------- */
.test-card { padding: 2rem; }
.test-quote { font-size: 3rem; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.test-card blockquote { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-top: .5rem; }
.test-card .author-name { font-weight: 700; font-size: .9rem; margin-top: 1.25rem; }
.test-card .author-role { font-size: .78rem; color: var(--muted); }

/* -- FAQ -------------------------------------------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.4rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  transition: background .2s;
}
.faq-btn:hover { background: rgba(184,148,42,.04); }
.faq-btn .faq-icon {
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform .3s ease;
  font-size: 1.2rem;
}
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-body { display: none; padding: 0 1.5rem 1.5rem; font-size: .9rem; color: var(--muted); line-height: 1.7; }
.faq-body.open { display: block; }

/* -- Footer ----------------------------------------------- */
#footer {
  background: var(--ink);
  color: rgba(255,255,255,.45);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
#footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  font-size: .78rem;
}
#footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
}

/* -- CTA Final -------------------------------------------- */
#cta-final { text-align: center; }
#cta-final h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
#cta-final p { color: var(--muted); max-width: 48ch; margin: 1.25rem auto 0; }
#cta-final .btn-gold { margin-top: 2.5rem; font-size: .9rem; padding: 1rem 2.5rem; }

/* -- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  #hero .hero-grid { grid-template-columns: 1fr; text-align: center; }
  #hero .hero-sub, .hero-tags, .hero-ctas, .hero-stats { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-img-wrap { order: -1; }
  .hero-img-wrap img { max-height: 340px; }
  .plan-card.featured { margin-top: 0; margin-bottom: 0; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding-block: 3rem; }
  #footer .footer-inner { flex-direction: column; }
}
