/* ══════════════════════════════════════
   Plessis Équipassion — Global Styles
   ══════════════════════════════════════ */

:root {
  --color-primary: #2c3e2d;
  --color-accent: #c9a84c;
  --color-accent-dark: #a8882e;
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ece6;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 3rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.navbar--transparent {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.navbar--transparent.navbar--scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.navbar--transparent .navbar__logo {
  color: var(--color-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.navbar--transparent.navbar--scrolled .navbar__logo {
  color: var(--color-primary);
  text-shadow: none;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.navbar--transparent .navbar__links a {
  color: var(--color-white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.navbar--transparent.navbar--scrolled .navbar__links a {
  color: var(--color-text);
  text-shadow: none;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__links a.active {
  color: var(--color-accent);
}

.navbar--transparent .navbar__links a.active {
  color: var(--color-accent);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.navbar--transparent .navbar__hamburger span {
  background: var(--color-white);
}

.navbar--transparent.navbar--scrolled .navbar__hamburger span {
  background: var(--color-text);
}

/* ── Hero Carousel ── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-white);
  z-index: 2;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

.hero__slide.active ~ .hero__content .hero__tagline,
.hero__tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.hero__dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.hero__scroll {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Commons ── */

.section {
  padding: 5rem 2rem;
}

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

.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Presentation (photo + texte) ── */

.presentation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.presentation__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.presentation__image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.presentation__text {
  padding: 1rem 0;
}

.presentation__text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
}

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

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

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

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

.btn--full {
  width: 100%;
}

/* ── Featured Horses ── */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.featured-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.featured-card__img {
  height: 280px;
  overflow: hidden;
}

.featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-card:hover .featured-card__img img {
  transform: scale(1.05);
}

.featured-card__body {
  padding: 1.5rem;
}

.featured-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.featured-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.featured-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.featured-card__link:hover {
  color: var(--color-accent-dark);
}

/* ── Horses Grid (Nos Chevaux page) ── */

.horses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.horse-thumb {
  text-align: center;
  transition: transform 0.3s;
}

.horse-thumb:hover {
  transform: translateY(-4px);
}

.horse-thumb__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.horse-thumb:hover .horse-thumb__img {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.horse-thumb__name {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Horse Detail ── */

.horse-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.horse-gallery {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.horse-gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.horse-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.horse-gallery__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.horse-gallery__thumb.active,
.horse-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--color-accent);
}

.horse-info__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.horse-info__tagline {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.horse-info__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.horse-info__table tr {
  border-bottom: 1px solid var(--color-bg-alt);
}

.horse-info__table td {
  padding: 0.85rem 0;
  font-size: 0.95rem;
}

.horse-info__table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
}

.horse-info__table td:last-child {
  color: var(--color-text-light);
}

.horse-info__description h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.horse-info__description p {
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* ── Installation Page ── */

.video-hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero__placeholder {
  position: absolute;
  inset: 0;
  background: var(--color-dark);
}

.video-hero__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.video-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.video-hero__content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.video-hero__content p {
  font-size: 1.1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  margin: 0 auto;
}

.video-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid var(--color-white);
  color: var(--color-white);
  font-size: 2rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.video-play-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story--reverse {
  direction: rtl;
}

.story--reverse > * {
  direction: ltr;
}

.story__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.story__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.story__text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.story__text p {
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.story__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-accent-dark);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

.team-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--color-white);
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.team-card__photo--zoom .team-card__img {
  transform: scale(1.3);
  object-position: center 40%;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grille 8 membres : 3 + 3 + 2 centrés via flexbox */
.team-grid--8 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.team-grid--8 .team-card {
  width: calc((100% - 4rem) / 3);   /* 3 par ligne avec 2 gaps */
}

/* ── Contact Page ── */

.contact-page {
  max-width: 800px;
}

.contact__heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact__quote {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 10px;
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.7;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info__label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-form {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-map {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-style: italic;
}

/* ── Footer ── */

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 2rem;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.6rem;
}

.footer__list a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer__bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer__legal a {
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--color-accent);
}

/* ── Page Header ── */

.page-header {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  text-align: center;
  background: var(--color-bg-alt);
}

.page-header--image {
  position: relative;
  padding: 0;
  margin-top: var(--nav-height);
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
}

.page-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-header__bg--contact {
  object-position: center 42%;
}

.page-header--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.page-header__content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
}

.page-header--image .section__label {
  color: var(--color-accent);
}

.page-header--image .page-header__title {
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.page-header--image .page-header__subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
}

/* ── Disciplines Grid ── */

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.discipline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.3s;
}

.discipline-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.discipline-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.discipline-item__icon svg {
  width: 28px;
  height: 28px;
}

.discipline-item__icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discipline-item__name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Installation Features ── */

.install-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.install-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.install-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.install-feature__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.install-feature__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

/* ── Legal Pages ── */

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-bg-alt);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-accent-dark);
}

.legal-content__date {
  margin-top: 3rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-bg-alt);
}

/* ── Smooth Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children for grids */
.featured-card.reveal,
.horse-thumb.reveal,
.team-card.reveal,
.install-feature.reveal,
.discipline-item.reveal,
.gallery-grid img.reveal,
.contact-info__item.reveal {
  transition-delay: 0s;
}

.featured-card.reveal:nth-child(2),
.horse-thumb.reveal:nth-child(2),
.team-card.reveal:nth-child(2),
.install-feature.reveal:nth-child(2),
.discipline-item.reveal:nth-child(2),
.gallery-grid img.reveal:nth-child(2),
.contact-info__item.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.featured-card.reveal:nth-child(3),
.horse-thumb.reveal:nth-child(3),
.team-card.reveal:nth-child(3),
.install-feature.reveal:nth-child(3),
.discipline-item.reveal:nth-child(3),
.gallery-grid img.reveal:nth-child(3),
.contact-info__item.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.featured-card.reveal:nth-child(4),
.horse-thumb.reveal:nth-child(4),
.team-card.reveal:nth-child(4),
.install-feature.reveal:nth-child(4),
.discipline-item.reveal:nth-child(4),
.gallery-grid img.reveal:nth-child(4),
.contact-info__item.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.featured-card.reveal:nth-child(n+5),
.horse-thumb.reveal:nth-child(n+5),
.team-card.reveal:nth-child(n+5),
.install-feature.reveal:nth-child(n+5),
.discipline-item.reveal:nth-child(n+5),
.gallery-grid img.reveal:nth-child(n+5) {
  transition-delay: 0.4s;
}

/* Slide from left for images in story sections */
.story__image.reveal {
  transform: translateX(-40px);
}

.story--reverse .story__image.reveal {
  transform: translateX(40px);
}

.story__image.reveal--visible {
  transform: translateX(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .horses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .presentation,
  .story,
  .horse-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info__grid {
    grid-template-columns: 1fr;
  }

  .story--reverse {
    direction: ltr;
  }

  .horse-gallery {
    position: static;
  }

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

  .team-grid--8 .team-card {
    width: calc((100% - 2rem) / 2);
  }

  .disciplines-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 0 1.5rem;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__links a {
    color: var(--color-text) !important;
    text-shadow: none !important;
  }

  .navbar__hamburger {
    display: flex;
  }

  .section {
    padding: 3rem 1.5rem;
  }

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

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

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

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

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .team-grid--8 .team-card {
    width: 100%;
  }

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

  .install-features {
    grid-template-columns: 1fr;
  }
}

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

  .hero__content {
    padding: 0 1rem;
  }

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