:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-soft: #4e4e4e;
  --color-border: #eaeaea;
  --color-accent: #5e9c59;
  --color-accent-dark: #3f5c44;
  --color-section: #fbfbfa;
  --radius: 14px;
  --shadow-soft: 0 18px 35px rgba(17, 17, 17, 0.06);
  --font-heading: "Playfair Display", serif;
  --font-body: "Roboto Flex", sans-serif;
  --container-max: 1160px;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(94, 156, 89, 0.55);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -42px;
  left: 12px;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.container {
  max-width: var(--container-max);
  padding-left: 1rem;
  padding-right: 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-top: 0;
}

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

.section {
  padding: 4.6rem 0;
}

.section-sm {
  padding: 3.4rem 0;
}

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

.section-heading {
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.site-navbar {
  padding: 0.75rem 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.site-navbar .container {
  gap: 0.75rem;
}

.site-navbar.navbar-scrolled {
  background: #fff;
  border-color: var(--color-border);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.navbar-brand-logo {
  width: auto;
  height: 56px;
  max-width: min(65vw, 260px);
  object-fit: contain;
}

.navbar-toggler {
  border: 1px solid #d7ddd7;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(94, 156, 89, 0.22);
}

.nav-link {
  font-weight: 500;
  color: #242424;
  padding: 0.5rem 0.8rem !important;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-accent-dark);
}

.hero-section {
  /* Troque o arquivo abaixo para alterar a imagem grande de fundo da hero */
  --hero-bg-image: url("../img/hero/hero-bg.jpg");
  position: relative;
  min-height: clamp(640px, 100svh, 980px);
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background-image: linear-gradient(72deg, rgba(255, 255, 255, 0.88) 12%, rgb(125 255 10 / 20%) 100%), var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  margin-bottom: 0.9rem;
  color: #161616;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.38rem);
  max-width: 620px;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions .btn {
  min-width: 168px;
}

.hero-scroll-wrap {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator {
  position: relative;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  color: #666;
  text-decoration: none;
}

.hero-scroll-text {
  width: 100%;
  height: 100%;
  animation: heroScrollSpin 11s linear infinite;
}

.hero-scroll-text text {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  fill: #6f6f6f;
}

.hero-scroll-arrow {
  position: absolute;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent-dark);
  transition: transform 0.25s ease, color 0.25s ease;
  animation: heroArrowDrift 2.8s ease-in-out infinite;
}

.hero-scroll-indicator:hover .hero-scroll-arrow,
.hero-scroll-indicator:focus-visible .hero-scroll-arrow {
  animation-play-state: paused;
  transform: translateY(4px);
  color: var(--color-accent);
}

@keyframes heroScrollSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroArrowDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.67rem 1.2rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-accent {
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: #111;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #111;
}

.btn-outline-soft {
  border: 1px solid var(--color-border);
  background: #fff;
  color: #1c1c1c;
}

.btn-outline-soft:hover,
.btn-outline-soft:focus {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.about-image {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

.mini-card,
.icon-card,
.horse-card,
.testimonial-card,
.contact-info-card,
.contact-aside,
.map-wrap,
.contact-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.3s ease;
}

.mini-card {
  height: 100%;
  padding: 1.2rem;
}

.mini-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.icon-card {
  height: 100%;
  padding: 1.35rem;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: var(--color-accent-dark);
}

.icon-card h3 {
  font-size: 1.3rem;
}

.horse-card {
  overflow: hidden;
  height: 100%;
}

.horse-card img {
  width: 100%;
  height: clamp(210px, 28vw, 240px);
  object-fit: cover;
  transition: transform 0.6s ease;
}

.horse-body {
  padding: 1rem 1rem 1.2rem;
}

.horse-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.lineage {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin-bottom: 0.7rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  display: block;
  border: 1px solid var(--color-border);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: clamp(150px, 34vw, 190px);
  object-fit: cover;
}

.testimonials-swiper {
  padding-bottom: 2.2rem;
}

.testimonial-card {
  height: 100%;
  padding: 1.6rem;
  position: relative;
}

.quote-mark {
  margin: 0;
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(94, 156, 89, 0.24);
  font-family: var(--font-heading);
}

.testimonial-card h3 {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.testimonial-card span {
  color: #666;
  font-size: 0.95rem;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background: var(--color-accent-dark);
}

.contact-info-card,
.contact-aside {
  padding: 1.5rem;
  height: 100%;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.info-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
  color: #474747;
}

.info-list li:last-child {
  border-bottom: 0;
}

.map-wrap {
  overflow: hidden;
  min-height: 300px;
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  min-height: 300px;
}

.contact-form {
  padding: 1.5rem;
}

.form-control,
.form-check-input {
  border-color: #d8d8d8;
}

.form-control:focus,
.form-check-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(94, 156, 89, 0.25);
}

.btn-send {
  min-width: 190px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.policy-title {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
  padding: 1.4rem 0 1.6rem;
}

.footer-brand {
  margin: 0;
  color: #1a1a1a;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.footer-copy {
  margin: 0.12rem 0 0;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: #222;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-accent-dark);
}

.footer-links svg {
  width: 21px;
  height: 21px;
  fill: #222;
  transition: fill 0.2s ease;
}

.footer-links a:hover svg {
  fill: var(--color-accent-dark);
}

@media (hover: hover) {
  .btn:hover,
  .btn:focus-visible {
    transform: translateY(-1px);
  }

  .mini-card:hover,
  .mini-card:focus-within,
  .icon-card:hover,
  .icon-card:focus-within,
  .horse-card:hover,
  .horse-card:focus-within,
  .testimonial-card:hover,
  .testimonial-card:focus-within,
  .contact-info-card:hover,
  .contact-aside:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(17, 17, 17, 0.09);
    border-color: #dce8dd;
  }

  .horse-card:hover img,
  .horse-card:focus-within img {
    transform: scale(1.03);
  }
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #1a1a1a;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.form-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(16px);
  min-width: min(92vw, 420px);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  color: #fff;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  z-index: 1090;
  transition: all 0.25s ease;
}

.form-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.form-toast.success {
  background: #1f6d42;
  border-color: #1f6d42;
}

.form-toast.error {
  background: #8b2b2b;
  border-color: #8b2b2b;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.6rem;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: 0 14px 26px rgba(17, 17, 17, 0.06);
    max-height: min(74vh, 520px);
    overflow-y: auto;
  }

  .nav-link {
    border-radius: 10px;
    padding: 0.65rem 0.8rem !important;
  }

  .navbar-nav {
    gap: 0.15rem;
  }

  .hero-section {
    padding: 6.8rem 0 3.4rem;
    min-height: clamp(600px, 100svh, 860px);
  }

  .section-heading {
    margin-bottom: 1.8rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .hero-section {
    min-height: auto;
    padding: 6.1rem 0 2.4rem;
  }

  .hero-scroll-wrap {
    display: none;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-section .container {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section-sm {
    padding: 2.8rem 0;
  }

  .navbar-brand-logo {
    height: 46px;
    max-width: 200px;
  }

  .hero-section {
    min-height: clamp(560px, 100svh, 780px);
    padding-top: 6.2rem;
  }

  .hero-content h1 {
    font-size: clamp(1.95rem, 10vw, 2.6rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    max-width: 34ch;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .hero-scroll-wrap {
    bottom: 0.8rem;
  }

  .hero-scroll-indicator {
    width: 88px;
    height: 88px;
  }

  .hero-scroll-text text {
    font-size: 8px;
    letter-spacing: 1.9px;
  }

  .about-image {
    min-height: 230px;
  }

  .horse-card img {
    height: 210px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 215px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 240px;
  }

  .contact-form,
  .contact-aside,
  .contact-info-card {
    padding: 1.2rem;
  }

  .btn-send {
    width: 100%;
    min-width: 0;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-section .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .hero-section {
    min-height: 530px;
  }

  .hero-scroll-wrap {
    display: none;
  }

  .testimonial-card {
    padding: 1.2rem;
  }
}

@media (min-width: 992px) {
  .section {
    padding: 6.6rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 2;
  }
}

@media (min-height: 900px) and (min-width: 992px) {
  .hero-section {
    min-height: 100svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-scroll-text {
    animation: none;
  }

  .hero-scroll-arrow {
    animation: none;
  }
}
