/* ============================================
   Apoiar Equoterapia — Landing Page
   ============================================ */

:root {
  --blue: #0b3a6e;
  --blue-deep: #06284f;
  --blue-dark: #041f3d;
  --orange: #ee6b2b;
  --orange-hover: #d95a1d;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #dce2ea;
  --gray-500: #6b7a8d;
  --gray-700: #3d4a5c;
  --text: #1a2b3c;
  --shadow-sm: 0 4px 16px rgba(11, 58, 110, 0.08);
  --shadow-md: 0 8px 28px rgba(11, 58, 110, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 88px;
  --container: 1140px;
  --font: "Montserrat", system-ui, sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--muted {
  background: var(--gray-50);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 2.75rem;
  letter-spacing: -0.02em;
  position: relative;
}

.section__title--left {
  text-align: left;
  margin-bottom: 1.25rem;
}

.section__title--light {
  color: var(--white);
}

.section__underline {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}

.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(238, 107, 43, 0.35);
}

.btn--outline {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
}

.btn__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  margin-left: 0.15rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 1.25rem;
  transition: color var(--transition), gap var(--transition);
}

.link-more:hover {
  color: var(--orange);
  gap: 0.65rem;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
  height: var(--header-h);
}

.header.is-scrolled {
  box-shadow: 0 2px 20px rgba(11, 58, 110, 0.08);
  border-bottom-color: var(--gray-100);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.logo__badge {
  display: flex;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.logo__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo__img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo__img--header {
  height: 78px;
  width: auto;
  border-radius: 4px;
}

.logo__img--footer {
  height: 112px;
  width: auto;
  border-radius: 6px;
}

.logo__mark {
  width: 48px;
  height: 48px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--blue);
}

.logo__text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.logo__text small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.logo--light .logo__text {
  color: var(--white);
}

.logo--light .logo__text small {
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--orange);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(238, 107, 43, 0.06), transparent),
    linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero__features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(238, 107, 43, 0.12);
  color: var(--orange);
}

.hero__feature-icon svg {
  width: 22px;
  height: 22px;
}

.hero__features strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
}

.hero__features small {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-500);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero__image-wrap {
  position: relative;
  width: min(100%, 520px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 26%;
  pointer-events: none;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about__text {
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 34rem;
}

.about__media {
  display: flex;
  justify-content: center;
}

.about__image {
  width: min(100%, 420px);
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

/* ---------- Benefits ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-card__icon {
  width: 52px;
  height: 52px;
  color: var(--orange);
  margin-bottom: 1rem;
}

.benefit-card__icon svg {
  width: 100%;
  height: 100%;
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- Differentials ---------- */
.differentials__track-wrap {
  position: relative;
}

.differentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.diff-card {
  text-align: center;
}

.diff-card__media {
  position: relative;
  margin-bottom: 2rem;
}

.diff-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.diff-card__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(238, 107, 43, 0.4);
  border: 3px solid var(--white);
}

.diff-card__badge svg {
  width: 24px;
  height: 24px;
}

.diff-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0.5rem 0 0.6rem;
  padding-top: 0.75rem;
}

.diff-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  padding: 0 0.35rem;
}

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background var(--transition), transform var(--transition);
}

.carousel-dots button.is-active {
  background: var(--orange);
  transform: scale(1.15);
}

/* ---------- Indications ---------- */
.indications {
  background: var(--blue);
  padding: 4.5rem 0;
}

.indications__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.indications__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  color: var(--white);
}

.indications__icon {
  width: 56px;
  height: 56px;
  color: var(--white);
}

.indications__icon svg {
  width: 100%;
  height: 100%;
}

.indications__grid span:last-child {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-card__quote {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 0.7;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.testimonial-card > p {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.testimonial-card__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 700;
}

.testimonial-card__author small {
  font-size: 0.775rem;
  color: var(--gray-500);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--blue);
  overflow: hidden;
}

.cta-banner__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  min-height: 280px;
  padding-block: 2rem;
}

.cta-banner__content {
  padding: 1.5rem 0;
  color: var(--white);
}

.cta-banner__content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.cta-banner__media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.cta-banner__media img {
  width: min(100%, 300px);
  height: 280px;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}

.social-link:hover {
  background: var(--orange);
}

.footer__col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.15rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

.footer__list a:hover {
  color: var(--orange);
}

.link-map {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--orange) !important;
  font-weight: 600;
}

.link-map svg {
  color: var(--orange);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
}

.footer__bottom p {
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    gap: 1rem;
  }

  .nav__link {
    font-size: 0.8rem;
  }

  .benefits__grid,
  .differentials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 78px;
  }

  .logo__img--header {
    height: 66px;
  }

  .menu-toggle {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 12px 30px rgba(11, 58, 110, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__link::after {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__media {
    order: -1;
    justify-content: center;
  }

  .hero__image-wrap {
    width: min(100%, 420px);
    aspect-ratio: 5 / 4;
  }

  .hero__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__media {
    order: -1;
  }

  .about__image {
    width: min(100%, 360px);
    aspect-ratio: 4 / 4.5;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .cta-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 0 1.5rem;
  }

  .cta-banner__content {
    padding: 3rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-banner__content h2 {
    max-width: 28rem;
  }

  .cta-banner__media {
    justify-content: center;
  }

  .cta-banner__media img {
    height: 220px;
    width: min(100%, 280px);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.5rem 0;
  }

  .container {
    width: min(100% - 1.75rem, var(--container));
  }

  .hero {
    padding: 1.5rem 0 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  /* Differentials as horizontal carousel */
  .differentials__grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-inline: calc(-1 * (100vw - 100%) / 2);
    padding-inline: calc((100vw - 100%) / 2);
    scrollbar-width: none;
  }

  .differentials__grid::-webkit-scrollbar {
    display: none;
  }

  .diff-card {
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: center;
  }

  .carousel-dots {
    display: flex;
  }

  .indications__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }

  .indications__icon {
    width: 48px;
    height: 48px;
  }

  .indications__grid span:last-child {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero__features {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .logo__text small {
    letter-spacing: 0.06em;
  }

  .indications__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: fadeUp 0.7s ease both;
  }

  .hero__media {
    animation: fadeUp 0.7s ease 0.12s both;
  }

  .benefit-card,
  .diff-card,
  .testimonial-card {
    animation: fadeUp 0.55s ease both;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
