/* Buttons */
.btn-brand,
.btn-ghost,
.btn-whatsapp,
.btn-whatsapp-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  border: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn-brand {
  background: var(--teal);
  color: var(--white);
}

.btn-brand:hover,
.btn-brand:focus-visible {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-brand:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid rgba(14, 107, 124, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(14, 107, 124, 0.08);
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn-brand--light {
  background: var(--gold-btn);
  color: var(--ink);
}

.btn-brand--light:hover,
.btn-brand--light:focus-visible {
  background: var(--gold-btn-hover);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: var(--whatsapp-deep);
  color: var(--white);
}

.btn-whatsapp-ghost {
  background: transparent;
  color: var(--whatsapp-deep);
  border: 1.5px solid rgba(18, 140, 126, 0.45);
  padding-inline: 1.1rem;
}

.btn-whatsapp-ghost:hover,
.btn-whatsapp-ghost:focus-visible {
  background: rgba(18, 140, 126, 0.08);
  color: var(--whatsapp-deep);
}

/* Navbar */
.site-navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1030;
  min-height: var(--nav-h);
  padding-block: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(10, 79, 92, 0.06);
}

.site-navbar .nav-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: calc(var(--nav-h) - 0.7rem);
}

.site-navbar .navbar-brand {
  padding: 0;
  margin: 0;
  line-height: 0;
  flex-shrink: 0;
  order: 1;
}

.site-navbar .navbar-toggler {
  order: 2;
  margin-inline-start: auto;
  border: none;
  color: var(--teal);
  padding: 0.35rem;
  min-width: 44px;
  min-height: 44px;
}

.site-navbar .navbar-collapse {
  order: 4;
  flex-basis: 100%;
}

.site-navbar .nav-cta-desktop {
  order: 3;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .site-navbar .nav-shell {
    flex-wrap: nowrap;
  }

  .site-navbar .navbar-toggler {
    display: none;
  }

  .site-navbar .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    order: 2;
    align-items: center;
  }

  .site-navbar .nav-cta-desktop {
    order: 3;
    margin-inline-start: 0.5rem;
  }

  /* Ease crowding on tablet / small desktop while keeping design tokens */
  .site-navbar .navbar-nav {
    gap: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .site-navbar .navbar-nav {
    gap: 1rem;
  }
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.brand-logo--header {
  height: 78px;
}

.brand-logo--footer {
  height: 96px;
  margin-bottom: 1rem;
}

.brand-logo--contact {
  height: 80px;
  margin-bottom: 1.25rem;
}

@media (max-width: 575.98px) {
  .brand-logo--header {
    height: 66px;
  }

  .brand-logo--footer {
    height: 80px;
  }
}

.site-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0 !important;
  min-height: 44px;
  position: relative;
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--teal);
}

.site-navbar .nav-link.active::after,
.site-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.site-navbar .navbar-toggler:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .site-navbar .nav-link {
    display: flex;
    width: 100%;
    padding: 0.7rem 0 !important;
    min-height: 48px;
  }

  .site-navbar .nav-link::after {
    display: none;
  }
}

/* Features */
.feature-item {
  padding: 0.25rem 0.15rem;
}

.feature-item .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--teal-soft);
  color: var(--teal);
}

.feature-item .icon.gold {
  background: rgba(245, 166, 35, 0.18);
  color: var(--gold-deep);
}

.feature-item .icon .material-symbols-outlined {
  font-size: 28px;
}

.feature-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--teal-deep);
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Stages */
.stage-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stage-card:hover,
.stage-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(14, 107, 124, 0.28);
}

.stage-card .stage-image {
  height: 200px;
  overflow: hidden;
}

.stage-card .stage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.stage-card:hover .stage-image img,
.stage-card:focus-visible .stage-image img {
  transform: scale(1.05);
}

.stage-card .stage-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.stage-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--teal-deep);
}

.stage-card p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  flex: 1;
}

.stage-card .stage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #9a6300;
  font-weight: 700;
  font-size: 0.95rem;
  transition: gap 0.25s var(--ease);
}

.stage-card:hover .stage-link,
.stage-card:focus-visible .stage-link {
  gap: 0.65rem;
}

/* Subjects */
.subject-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  min-height: 44px;
  transition: background 0.25s var(--ease);
}

.subject-item:hover,
.subject-item:focus-visible {
  background: rgba(14, 107, 124, 0.06);
}

.subject-item .subject-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal);
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.subject-item .subject-icon .material-symbols-outlined {
  font-size: 30px;
}

.subject-item:hover .subject-icon,
.subject-item:focus-visible .subject-icon,
.subject-item.is-active .subject-icon {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.subject-item > span:last-child {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Journey */
.journey-step {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem 1.4rem;
}

.journey-step .step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.journey-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1.4;
}

.journey-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.section-cta p {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-deep);
}

.section-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Testimonials */
.testimonial {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
}

.testimonial .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.testimonial .who {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.testimonial-name {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  font-style: normal;
  color: var(--ink);
  line-height: 1.4;
}

.testimonial small {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.testimonial .stars {
  color: var(--gold-deep);
  display: flex;
  flex-shrink: 0;
  gap: 1px;
}

.testimonial .stars .material-symbols-outlined {
  font-size: 18px;
}

.testimonial .quote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* FAQ */
.faq-wrap {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.faq-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-item .faq-header {
  width: 100%;
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  text-align: start;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--teal-deep);
  min-height: 52px;
}

.faq-item .faq-header:hover,
.faq-item .faq-header:focus-visible {
  background: rgba(14, 107, 124, 0.04);
}

.faq-item .faq-icon {
  color: var(--teal);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* Progressive enhancement: collapse only after FAQ JS inits (not via html.js alone) */
#faq.faq-enhanced .faq-item:not(.open) .faq-body {
  display: none;
}

.faq-item .faq-body[hidden] {
  display: none !important;
}

/* Forms */
.contact-form-wrap .form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.45rem;
}

.contact-form-wrap .form-control,
.contact-form-wrap .form-select-brand {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-form-wrap select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230e6b7c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-inline-end: 1rem;
  padding-inline-start: 2.5rem;
}

.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select-brand:focus {
  background: var(--white);
  border-color: rgba(14, 107, 124, 0.4);
  box-shadow: 0 0 0 3px rgba(14, 107, 124, 0.14);
  outline: none;
}

.form-privacy {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact-form-wrap .btn-submit {
  width: 100%;
  margin-top: 0.15rem;
}

.btn-submit-alt {
  width: 100%;
  margin-top: 0.65rem;
}

.form-note {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-note.is-success {
  display: block;
  background: rgba(14, 107, 124, 0.1);
  color: var(--teal-deep);
}

.form-note.is-error {
  display: block;
  background: rgba(180, 40, 40, 0.08);
  color: #8a1f1f;
}

.form-note:focus {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.contact-form-wrap .form-control[aria-invalid="true"],
.contact-form-wrap .form-select-brand[aria-invalid="true"] {
  border-color: rgba(138, 31, 31, 0.45);
  box-shadow: 0 0 0 3px rgba(138, 31, 31, 0.12);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #e9f3f5 0%, #dcecee 100%);
  border-top: 1px solid var(--line);
}

.site-footer .footer-inner {
  padding-block: 3.5rem 2.25rem;
}

.site-footer p,
.site-footer a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal);
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal-deep);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.65rem;
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.82rem !important;
}

.footer-copy {
  border-top: 1px solid var(--line);
  padding-block: 1.35rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(10, 79, 92, 0.08);
}

.mobile-cta .btn {
  flex: 1;
  padding-block: 0.7rem;
}

@media (max-width: 991.98px) {
  .mobile-cta:not([hidden]) {
    display: flex;
  }
}
