/* ============================================================
   FEIJOEIRO MÁGICO — design system
   Palette: botanical green + warm cream + coral + soft pink
   Type: Bricolage Grotesque (display) + Nunito (body)
   ============================================================ */

:root {
  /* Brand */
  --green-900: #1F3A22;
  --green-800: #2A5230;
  --green-700: #3F7F39;
  --green-600: #5BA053;
  --green-500: #7BB661;
  --green-200: #C8DEB4;
  --green-100: #E4EFD6;

  /* Neutrals */
  --cream-50:  #FBF7EC;
  --cream-100: #F4ECD6;
  --cream-200: #E9E2CC;
  --cream-300: #D9CFB1;

  /* Accents */
  --coral:   #F39B83;
  --coral-d: #D97A5F;
  --honey:   #F7CB6B;
  --pink:    #E36DA6;
  --pink-d:  #B8467F;
  --sky:     #C6DDE8;
  --earth:   #8A5A3B;

  /* Tokens */
  --bg:        var(--cream-50);
  --fg:        var(--green-900);
  --muted:     #5E6856;
  --line:      #E5DEC8;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm:  0 2px 6px rgba(35,55,30,.06), 0 1px 2px rgba(35,55,30,.04);
  --shadow:     0 12px 30px -12px rgba(35,55,30,.18), 0 2px 6px rgba(35,55,30,.06);
  --shadow-lg:  0 30px 60px -20px rgba(35,55,30,.28), 0 8px 20px -10px rgba(35,55,30,.12);

  --container: 1240px;

  --font-display: "Bricolage Grotesque", "Nunito", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, sans-serif;
}

/* -------- base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--green-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700; }

p { margin: 0 0 1em; text-wrap: pretty; }

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

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-800);
  color: var(--cream-50);
  box-shadow: 0 6px 20px -6px rgba(42,82,48,.5), inset 0 -2px 0 rgba(0,0,0,.12);
}
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(42,82,48,.55); }
.btn-ghost {
  background: transparent;
  color: var(--green-900);
  border-color: var(--green-800);
}
.btn-ghost:hover { background: var(--green-800); color: var(--cream-50); }
.btn-cream {
  background: var(--cream-50);
  color: var(--green-900);
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.25);
}
.btn-cream:hover { transform: translateY(-2px); background: #fff; }
.btn-link {
  padding: 6px 0;
  background: transparent;
  color: var(--green-800);
  font-weight: 700;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
}
.btn-link:hover { color: var(--coral-d); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; justify-content: center; }

/* -------- header -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,236,.78);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(251,247,236,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 18px -10px rgba(35,55,30,.18);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.05));
  transition: transform .25s ease;
}
.brand-logo:hover { transform: translateY(-1px) rotate(-1deg); }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.primary-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--green-900);
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--coral);
  transform: translateX(-50%) scale(0);
  transition: transform .25s ease;
}
.primary-nav a:hover { color: var(--green-700); background: var(--green-100); }
.primary-nav a:hover::after { transform: translateX(-50%) scale(1); }

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

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--green-800);
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--green-900); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--cream-50);
}
.mobile-nav a {
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}
.mobile-nav a:hover { background: var(--green-100); }
.mobile-nav .btn { margin-top: 6px; justify-content: center; }
.mobile-nav.is-open { display: flex; }

/* -------- hero -------- */
.hero { position: relative; overflow: hidden; padding: 60px 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, #F4ECD6 0%, #FBF7EC 60%, #FBF7EC 100%);
}
.hero-hill { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; opacity: .9; }
.hero-sun {
  position: absolute; top: 60px; right: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,203,107,.55), rgba(247,203,107,0) 70%);
  filter: blur(8px);
}
.leaf { position: absolute; display: block; background-repeat: no-repeat; background-position: center; background-size: contain; opacity: .55; }
.leaf--a { top: 80px;  left:  4%; width: 70px; height: 70px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M32 60 C 12 50, 8 28, 32 6 C 56 28, 52 50, 32 60 Z' fill='%237BB661'/><path d='M32 12 C 32 28, 32 44, 32 58' stroke='%232A5230' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  animation: floaty 9s ease-in-out infinite;
}
.leaf--b { top: 140px; right: 8%; width: 54px; height: 54px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M32 60 C 12 50, 8 28, 32 6 C 56 28, 52 50, 32 60 Z' fill='%235BA053'/></svg>");
  animation: floaty 11s -2s ease-in-out infinite;
}
.leaf--c { bottom: 120px; left: 12%; width: 46px; height: 46px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M32 60 C 12 50, 8 28, 32 6 C 56 28, 52 50, 32 60 Z' fill='%23C8DEB4'/></svg>");
  animation: floaty 13s -4s ease-in-out infinite;
}
.cloud { position: absolute; background: #fff; border-radius: 100px; opacity: .8; filter: blur(.5px); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 100px; }
.cloud--a { top: 110px; left: 30%; width: 80px; height: 22px; animation: drift 26s linear infinite; }
.cloud--a::before { width: 32px; height: 32px; top: -16px; left: 12px; }
.cloud--a::after  { width: 24px; height: 24px; top: -10px; right: 14px; }
.cloud--b { top: 200px; right: 26%; width: 60px; height: 18px; animation: drift 32s -8s linear infinite; opacity: .65; }
.cloud--b::before { width: 24px; height: 24px; top: -12px; left: 10px; }
.cloud--b::after  { width: 18px; height: 18px; top: -8px; right: 8px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--green-800);
  background: var(--green-100);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); }

.hero-title { color: var(--green-900); }
.hero-title em { color: var(--green-700); font-style: italic; font-family: var(--font-display); position: relative; white-space: nowrap; }
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 10px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 6 Q 50 0, 100 6 T 198 6' stroke='%23F39B83' stroke-width='4' fill='none' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}

.hero-lede { font-size: 1.12rem; color: var(--muted); max-width: 55ch; margin-top: 22px; }

.hero-actions { display: flex; gap: 14px; margin: 28px 0 36px; flex-wrap: wrap; }

.hero-meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 36px; flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 24px;
}
.hero-meta li { display: flex; flex-direction: column; min-width: 0; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--green-800); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.hero-meta span { font-size: .85rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* hero art */
.hero-art { position: relative; }
.hero-art-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 50% 40%, #C6DDE8 0%, #A9CBDA 60%, #93BED0 100%);
  border-radius: 50% 50% 46% 54% / 60% 56% 44% 40%;
  box-shadow: var(--shadow-lg), inset 0 -40px 60px rgba(0,0,0,.06);
  overflow: visible;
  animation: blob 16s ease-in-out infinite alternate;
}
@keyframes blob {
  0%   { border-radius: 50% 50% 46% 54% / 60% 56% 44% 40%; }
  50%  { border-radius: 44% 56% 58% 42% / 52% 64% 36% 48%; }
  100% { border-radius: 56% 44% 48% 52% / 64% 50% 50% 36%; }
}
.hero-bean {
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 110%;
  width: auto;
  max-width: 90%;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.18));
  animation: sway 7s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
}
.hero-badge--top {
  top: 4%; right: -8%;
  transform: rotate(3deg);
  animation: tilt 6s ease-in-out infinite alternate;
}
.hero-badge--top .emoji { font-size: 28px; background: var(--coral); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.hero-badge--top strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--green-900); }
.hero-badge--top small { color: var(--muted); font-size: .8rem; }

.hero-badge--bottom {
  bottom: 8%; left: -8%;
  transform: rotate(-3deg);
  animation: tilt2 7s ease-in-out infinite alternate;
}
.hero-badge--bottom .emoji { font-size: 28px; background: var(--green-100); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.hero-badge--bottom strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--green-900); }
.hero-badge--bottom small { color: var(--muted); font-size: .8rem; }

@keyframes tilt  { from { transform: rotate(3deg) translateY(0); } to { transform: rotate(2deg) translateY(-6px); } }
@keyframes tilt2 { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(-2deg) translateY(6px); } }

/* marquee */
.marquee {
  margin-top: 20px;
  background: var(--green-800);
  color: var(--cream-100);
  overflow: hidden;
  border-top: 1px solid var(--green-700);
  border-bottom: 1px solid var(--green-700);
}
.marquee-track {
  display: flex; gap: 28px;
  padding: 14px 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.marquee-track span { flex: 0 0 auto; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -------- generic sections -------- */
.section { padding: 110px 0; position: relative; }
.section--cream { background: var(--cream-100); }
.section--green {
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(123,182,97,.18), transparent 60%),
    var(--green-800);
  color: var(--cream-100);
}
.section--contact {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(243,155,131,.2), transparent 60%),
    var(--green-900);
  color: var(--cream-100);
}

.section-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  color: var(--green-700);
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  padding-left: 28px;
}
.section-eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 2px; background: var(--coral); border-radius: 2px;
}
.section-eyebrow.on-dark { color: var(--green-200); }
.section-eyebrow.on-dark::before { background: var(--honey); }
.section-eyebrow.on-castle { color: var(--honey); }
.section-eyebrow.on-castle::before { background: var(--honey); }

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.section-title.on-dark { color: var(--cream-50); }
.section-title.on-castle { color: var(--cream-50); }

.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.section-lede.on-dark { color: rgba(244,236,214,.85); }

.section-header { max-width: 720px; margin-bottom: 56px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header.center .section-eyebrow { padding-left: 0; }
.section-header.center .section-eyebrow::before { display: none; }

/* two-col institucional */
.two-col {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}
.col-narrow { position: sticky; top: 100px; }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.pillar {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; }

/* age cards (serviços) */
.age-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.age-card {
  background: var(--cream-50);
  color: var(--green-900);
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}
.age-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  opacity: .14;
  pointer-events: none;
}
.age-card::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .35;
}
.age-card:hover { transform: translateY(-6px); }
.age-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; position: relative; }
.age-tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--green-900); color: var(--cream-50);
  padding: 6px 12px; border-radius: 999px;
}
.age-range { font-size: .82rem; color: var(--green-800); font-weight: 700; position: relative; }
.age-card h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 10px; position: relative; }
.age-card > p { color: var(--muted); margin-bottom: 18px; position: relative; }
.age-list { list-style: none; margin: 0; padding: 0; position: relative; }
.age-list li {
  padding: 10px 0;
  border-top: 1px dashed rgba(42,82,48,.2);
  font-size: .94rem;
  display: flex; align-items: center; gap: 10px;
}
.age-list li::before {
  content: ""; flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-700);
}
.age-cta {
  position: relative;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--cream-50);
  font-weight: 700;
  font-size: .92rem;
  transition: transform .2s ease, background .2s ease, gap .2s ease;
}
.age-cta:hover { background: var(--green-700); transform: translateY(-2px); gap: 12px; }
.age-cta svg { transition: transform .2s ease; }
.age-cta:hover svg { transform: translateX(2px); }

/* split (privado) */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.check-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.check-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 1.02rem;
}
.check-list li:first-child { border-top: 0; }
.check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: grid; place-items: center;
  font-size: .85rem;
  font-weight: 800;
}

.split-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* área privada login */
.section--privado { background: var(--cream-100); }
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-width: 460px;
  margin-left: auto;
}
.login-card-top {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.login-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid; place-items: center;
}
.login-card-top h3 { font-size: 1.2rem; margin-bottom: 2px; }
.login-card-top p { color: var(--muted); font-size: .88rem; margin: 0; }
.login-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin: 12px 0 18px;
  font-size: .9rem;
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--green-700); }
.login-forgot { color: var(--green-800); font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.login-forgot:hover { color: var(--coral-d); }
.login-help { margin: 18px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.login-help a { color: var(--green-800); font-weight: 700; }
.login-msg { text-align: center; }

/* castle — dois edifícios */
.edifs {
  position: relative;
  display: grid;
  gap: 18px;
}
.edif {
  position: relative;
  display: flex; align-items: center; gap: 22px;
  background: rgba(244,236,214,.06);
  border: 1px solid rgba(244,236,214,.18);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.edif:hover { transform: translateX(4px); background: rgba(244,236,214,.1); border-color: rgba(247,203,107,.4); }
.edif-num {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--honey);
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.edif-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--honey); margin-bottom: 4px; }
.edif-body h3 { color: var(--cream-50); font-size: 1.2rem; margin-bottom: 4px; }
.edif-body p { margin: 0; color: rgba(244,236,214,.78); font-size: .98rem; font-weight: 600; }
.edif-illu { position: absolute; right: -40px; bottom: -40px; width: 220px; pointer-events: none; opacity: .55; }
.edif-illu img { width: 100%; filter: drop-shadow(0 18px 26px rgba(0,0,0,.5)); animation: sway 8s ease-in-out infinite; }

/* footer-link variant on castle bg */
.btn-link.on-castle { color: var(--honey); }
.btn-link.on-castle:hover { color: var(--cream-50); }

/* castle */
.section--castle {
  background:
    radial-gradient(70% 60% at 20% 0%, rgba(247,203,107,.25), transparent 60%),
    linear-gradient(180deg, #243F26 0%, #1F3A22 100%);
  color: var(--cream-100);
  overflow: hidden;
}
.castle-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px;
  align-items: center; position: relative;
}
.castle-copy .lede.on-castle { color: rgba(244,236,214,.85); max-width: 50ch; }
.castle-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.castle-tags span {
  background: rgba(244,236,214,.08);
  border: 1px solid rgba(244,236,214,.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
}

.castle-art { position: relative; }
.castle-img {
  width: 100%; max-width: 460px; margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.4));
  animation: sway 8s ease-in-out infinite;
}
.castle-floats { position: absolute; inset: 0; pointer-events: none; }
.float-tag {
  position: absolute;
  background: var(--cream-50);
  color: var(--green-900);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: var(--shadow);
}
.float-tag--1 { top: 8%; left: -2%; transform: rotate(-6deg); animation: tilt 5s ease-in-out infinite alternate; }
.float-tag--2 { top: 38%; right: -4%; transform: rotate(5deg); animation: tilt2 6s ease-in-out infinite alternate; }
.float-tag--3 { bottom: 8%; left: 6%; transform: rotate(-3deg); animation: tilt 7s -2s ease-in-out infinite alternate; }

/* testimonios */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 0;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi::before {
  content: "“"; position: absolute; top: 8px; left: 22px;
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1; color: var(--green-200);
}
.testi blockquote {
  margin: 30px 0 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 500;
}
.testi figcaption {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.testi figcaption strong { display: block; font-size: .95rem; }
.testi figcaption small { color: var(--muted); font-size: .82rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: .85rem;
  color: #fff;
}
.avatar--a { background: linear-gradient(135deg, var(--coral), var(--coral-d)); }
.avatar--b { background: linear-gradient(135deg, var(--green-600), var(--green-800)); }
.avatar--c { background: linear-gradient(135deg, var(--pink), var(--pink-d)); }

/* contact */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list li {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px dashed rgba(244,236,214,.2);
}
.contact-list li:first-child { border-top: 0; }
.ci-label { color: var(--green-200); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.ci-value { color: var(--cream-50); font-size: 1.08rem; font-weight: 600; }
a.ci-value:hover { color: var(--honey); }

.contact-form {
  background: var(--cream-50);
  color: var(--green-900);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 22px; font-size: .98rem; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--green-900);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(91,160,83,.18);
}
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--green-100);
  color: var(--green-900);
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
}

/* -------- footer -------- */
.site-footer {
  background: var(--green-900);
  color: var(--cream-100);
  padding: 80px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,236,214,.12);
}
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 26px;
}
.footer-logo {
  display: block;
  height: auto;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.3));
}
.footer-logo--assoc { max-height: 88px; max-width: 280px; }
.footer-logo--inf   { max-height: 78px; max-width: 240px; }
.footer-brand p { color: rgba(244,236,214,.7); font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-cols h4 { color: var(--honey); margin-bottom: 14px; font-size: .8rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(244,236,214,.78);
  font-weight: 500;
  transition: color .2s ease, transform .2s ease;
}
.footer-cols a:hover { color: var(--cream-50); transform: translateX(3px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px;
  padding-top: 26px;
  color: rgba(244,236,214,.55);
  font-size: .85rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(244,236,214,.7); }
.footer-bottom a:hover { color: var(--cream-50); }

/* -------- submenu -------- */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  list-style: none;
  margin: 8px 0 0 0;
  padding: 8px 0;
  z-index: 999;
}
.submenu li a {
  display: block;
  padding: 12px 18px;
  font-size: .95rem;
  color: var(--fg);
  transition: background .2s ease, color .2s ease;
}
.submenu li a:hover {
  background: var(--cream-100);
  color: var(--green-700);
}
.primary-nav > ul > li {
  position: relative;
}
.primary-nav > ul > li:hover .submenu {
  display: block;
}

/* -------- institution cards -------- */
.institution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.institution-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.institution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.institution-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--green-100);
  border-radius: 16px;
  margin-bottom: 20px;
}
.institution-icon {
  font-size: 32px;
  display: grid;
  place-items: center;
}
.institution-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--green-900);
}
.institution-card > p {
  color: var(--muted);
  flex: 1;
  margin-bottom: 20px;
  font-size: .98rem;
  line-height: 1.6;
}
.institution-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--cream-50);
  font-weight: 700;
  font-size: .92rem;
  transition: transform .2s ease, background .2s ease, gap .2s ease;
  width: fit-content;
}
.institution-cta:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  gap: 12px;
}
.institution-cta svg { transition: transform .2s ease; }
.institution-cta:hover svg { transform: translateX(2px); }

/* -------- page sections -------- */
.hero-page {
  background: var(--green-800);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}
.hero-page-inner { max-width: 700px; margin: 0 auto; }
.page-title {
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}
.page-lede {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,.95);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
  font-family: var(--font-body);
  line-height: 1.4;
}

/* -------- page content -------- */
.page-content {
  max-width: 820px;
  margin: 0 auto;
}

.content-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 2rem auto;
  padding: 2rem 0;
  text-align: center;
}

.content-logo {
  max-width: 450px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.image-wrapper-centered {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.page-image-centered {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px -12px rgba(35,55,30,.18);
}

@media (max-width: 768px) {
  .page-image-centered {
    max-width: 90%;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .content-logo {
    max-width: 330px;
  }

  .content-logo-wrapper {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
  }
}
.page-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.page-content h2:first-child {
  margin-top: 0;
}
.page-content h3 {
  color: var(--green-600);
  font-weight: 600;
  font-size: 1.15rem;
}
.page-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 400;
}
.page-content a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
}
.page-content a:hover {
  color: var(--green-700);
}

/* -------- content elements -------- */
.content-image {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin-left: 0;
  margin-right: auto;
}
.content-image img {
  width: 100%;
  height: auto;
  display: block;
}
.content-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 20px 0;
}
.content-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: #555;
  line-height: 1.7;
  margin-bottom: 8px;
}
.content-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
  font-size: 1.1rem;
}

/* -------- documents grid -------- */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.doc-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.doc-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.doc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--green-900);
  font-weight: 700;
  font-family: var(--font-display);
  white-space: normal;
}
.doc-card p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.doc-card .btn {
  margin: 0 auto;
}

/* -------- complaints book -------- */
.book-complaints {
  margin: 40px 0;
}
.complaint-card {
  background: linear-gradient(135deg, var(--cream-200), var(--cream-100));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.complaint-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.complaint-card h3 {
  color: var(--green-900);
  margin-bottom: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.complaint-card p {
  margin-bottom: 24px;
  color: #555;
  line-height: 1.6;
  font-family: var(--font-body);
}

/* -------- partners grid -------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.partner-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.partner-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .9rem;
}
.partner-card h3 {
  font-size: .95rem;
  margin-bottom: 8px;
  color: var(--green-900);
  font-weight: 700;
  font-family: var(--font-display);
  white-space: normal;
}
.partner-card p {
  font-size: .85rem;
  color: #555;
  margin-bottom: 14px;
  flex: 1;
  line-height: 1.5;
}
.partner-card .btn {
  align-self: center;
  font-size: .9rem;
  padding: 10px 16px;
}

/* -------- cta section -------- */
.cta-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--cream-200);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-section .btn {
  flex: 0 1 auto;
}

/* -------- social links -------- */
.social-links-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links-header .social-link {
  color: var(--green-900);
}

.social-links-header .social-link:hover {
  color: var(--green-700);
}

.social-text {
  text-align: center;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: var(--cream-50);
  font-weight: 600;
}

.social-links-footer {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
  align-items: center;
}

.social-link-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link-footer:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.social-logo {
  height: 48px;
  width: auto;
  display: block;
}

.social-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #1F3A22;
  transition: transform 0.2s;
}

.social-link:hover {
  transform: scale(1.1);
  color: #5BA053;
}

.social-icon {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .social-link {
    width: 28px;
    height: 28px;
  }

  .social-links-header {
    display: none;
  }
}

/* -------- reveal -------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .leaf, .cloud, .hero-bean, .hero-art-frame, .castle-img, .marquee-track, .art-sticker, .hero-badge { animation: none !important; }
}

/* -------- responsive -------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
  .hero-art-frame { max-width: 460px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .col-narrow { position: static; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-art { min-height: auto; }
  .login-card { margin-inline: auto; }
  .castle-inner { grid-template-columns: 1fr; gap: 40px; }
  .edif-illu { width: 160px; right: -20px; bottom: -30px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .age-grid { grid-template-columns: repeat(2, 1fr); }
  .institution-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-logos { flex-direction: row; gap: 14px 22px; }
  .footer-logo--assoc { max-height: 60px; }
  .footer-logo--inf   { max-height: 56px; }
}

@media (max-width: 760px) {
  .primary-nav, .header-cta .btn { display: none; }
  .submenu { display: none !important; }
  .menu-toggle { display: flex; }
  .header-inner { padding: 12px 18px; }
  .container { padding: 0 20px; }
  .hero { padding-top: 30px; }
  .hero-inner { padding: 20px 20px 50px; }
  .hero-meta { gap: 22px; }
  .hero-meta strong { font-size: 1.3rem; }
  .pillar-grid { grid-template-columns: 1fr; }
  .age-grid { grid-template-columns: 1fr; }
  .institution-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero-badge--top { right: 0; top: -16px; }
  .hero-badge--bottom { left: 0; bottom: -16px; }
  .art-sticker { left: auto; right: 4%; top: -20px; }
  .art-sticker svg { width: 90px; height: 90px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .contact-form { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-page { padding: 60px 0 40px; }
  .page-title { font-size: 2rem; }
  .page-lede { font-size: 1rem; }
  .documents-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { gap: 12px; }
  .footer-logos { gap: 14px 22px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .brand-logo { height: 48px; }
}
