:root {
  --nav-bg: #606e5a;
  --nav-text: #f8f4ec;
  --nav-shadow: 0 10px 26px rgba(24, 30, 24, 0.16);
  --nav-h-top: 84px;
  --nav-h-scrolled: 60px;
  --max-width: 1100px;
  --underline-h: 4px;
  --underline-gap: 10px;
  --bp: 720px;

  --green: #606e5a;
  --green-soft: #e1e5da;
  --green-line: rgba(96, 110, 90, 0.12);

  --accent: #b79d76;
  --accent-soft: #d2c3a8;

  --text-main: #54564d;
  --text-soft: #72746b;
  --text-heading: #46483f;
  --text-title: #62645b;

  --footer-bg: #e2e4da;
  --footer-text: #5b5d54;
  --footer-line: rgba(96, 110, 90, 0.08);

  --section-light: #f1f3ed;
  --card-bg: #f7f8f2;
}

body {
  background-color: #eef0e8;
  color: #54564d;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  margin-block-start: 0.5rem;
  margin-block-end: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-block-start: 0;
  margin-block-end: 0.9rem;
}

h2 {
  color: var(--text-heading);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  padding: 0;
  letter-spacing: 0.04em;
}

#gallery .section-inner {
  text-align: center;
}

main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 0;
  line-height: 1.6;
}

section {
  padding: 80px 0;
  border-bottom: none;
  scroll-margin-top: 0;
}

#home.hero-video {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-bottom: none;
  padding: 0;
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #1d2a22;
}

#home.hero-video .bg-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#home.hero-video .bg-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

#home.hero-video .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(17, 27, 21, 0.18) 0%,
    rgba(17, 27, 21, 0.22) 30%,
    rgba(17, 27, 21, 0.38) 100%
  );
}

#gallery.fullwidth-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--section-light);
  padding: 90px 0;
}

#gallery .section-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

#gallery h2 {
  margin-bottom: 18px;
  color: var(--nav-bg);
}

#gallery p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-soft);
  line-height: 1.85;
}

#about {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-image: url("../images/backgrounds/about-section.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  padding: clamp(44px, 7vh, 88px) 0;
  position: relative;
  display: flex;
  align-items: center;
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 29, 22, 0.18);
}

#about .section-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-card {
  width: min(640px, calc(100% - 24px));
  background: rgba(247, 248, 242, 0.97);
  color: var(--text-main);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 4vw, 42px) clamp(26px, 4vw, 34px);
  box-shadow: 0 18px 50px rgba(32, 26, 20, 0.16);
  border: 1px solid rgba(96, 110, 90, 0.08);
  text-align: left;
  transition: padding 0.25s ease;
}

.about-card.expanded {
  padding-top: clamp(24px, 3vw, 34px);
  padding-bottom: clamp(28px, 4vw, 36px);
}

.about-card h2 {
  text-align: center;
  margin-bottom: 18px;
}

.about-image {
  width: 100%;
  margin: 0 0 18px 0;
}

.about-copy {
  max-height: 4.95em;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-main);
}

.about-copy.expanded {
  max-height: min(42vh, 420px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
}

.about-copy.expanded::-webkit-scrollbar {
  width: 10px;
}

.about-copy.expanded::-webkit-scrollbar-track {
  background: rgba(96, 110, 90, 0.08);
  border-radius: 999px;
}

.about-copy.expanded::-webkit-scrollbar-thumb {
  background: rgba(96, 110, 90, 0.4);
  border-radius: 999px;
  border: 2px solid rgba(248, 244, 236, 0.7);
}

.about-toggle-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.about-toggle {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--green);
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.about-toggle:hover {
  background: var(--nav-bg);
  color: #f8f4ec;
  border-color: var(--nav-bg);
}

.about-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

#services.services-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #F1F3ED;
  padding: 0;
}

.services-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  padding: 42px 0 44px;
}

#services .services-inner h2 {
  text-align: center;
  margin: 0;
  color: var(--text-heading);
}

.services-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(520px, 62vh, 760px);
  background-image: url("../images/IMG_1077.jpeg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.services-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(248, 244, 236, 0.34) 0%, rgba(248, 244, 236, 0.2) 40%, rgba(248, 244, 236, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

.services-grid {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 62vh, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 62px) 0;
  gap: 18px;
  align-content: center;
  align-items: stretch;
}

.service-item {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: visible;
}

.service-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  min-height: clamp(218px, 23vw, 260px);
  padding: 28px 30px;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: rgba(247, 248, 242, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(33, 29, 24, 0.1);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-link::before {
  content: none;
}

.service-link::after {
  content: none;
}

.service-icon {
  width: 72px;
  height: 72px;
  color: #1e3b2c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  overflow: hidden;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-icon-image--medal {
  transform: scale(0.84);
  transform-origin: center;
}

.service-icon-image--sell {
  transform: scale(1.16);
  transform-origin: center;
}

.service-icon-image--deal {
  transform: scale(1.02);
  transform-origin: center;
}

.service-content {
  width: 100%;
  max-width: none;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-title {
  color: var(--green);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(1.7rem, 1.9vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 14px 0;
  text-wrap: balance;
}

.service-desc {
  margin: 0;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
  max-width: 34ch;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.service-item:hover .service-link,
.service-item:focus-within .service-link {
  transform: translateY(-4px);
  background: rgba(247, 248, 242, 0.82);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 22px 48px rgba(33, 29, 24, 0.14);
}

.service-item:hover .service-cta,
.service-item:focus-within .service-cta {
  color: #a68756;
}

.service-link:focus-visible {
  outline: 2px solid rgba(96, 110, 90, 0.45);
  outline-offset: 3px;
}

#horses.horses-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--section-light);
  padding: 52px 0;
}

.horses-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

#horses .horses-inner h2 {
  text-align: center;
  margin: 0;
}

.horses-intro {
  max-width: 760px;
  margin: 28px auto 40px;
  color: var(--text-soft);
  text-align: center;
}

.horses-subheading {
  margin: 56px 0 24px;
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-title);
}

.horses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.horse-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.horse-card-link--static {
  cursor: default;
}

.horse-card-link:hover,
.horse-card-link:active {
  color: inherit;
}

.horse-card {
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: 1px solid rgba(96, 110, 90, 0.1);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  height: 100%;
}

.horse-card-link:hover .horse-card,
.horse-card-link:focus-visible .horse-card {
  box-shadow: 0 12px 28px rgba(46, 40, 30, 0.08);
  border-color: rgba(183, 155, 108, 0.28);
  transform: translateY(-2px);
}

.horse-card-link--static:hover .horse-card,
.horse-card-link--static:focus-visible .horse-card {
  box-shadow: none;
  border-color: rgba(96, 110, 90, 0.1);
  transform: none;
}

.horse-card-link:focus-visible {
  outline: none;
}

.horse-card-link:focus-visible .horse-card {
  box-shadow: 0 12px 28px rgba(46, 40, 30, 0.1);
}

.horse-image-wrap {
  position: relative;
  overflow: hidden;
}

.horse-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.horse-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 15, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
  pointer-events: none;
}

.horse-overlay-logo {
  width: 50%;
  height: auto;
  opacity: 0.65;
}

.horse-card-link:hover .horse-image-overlay,
.horse-card-link:focus-visible .horse-image-overlay {
  opacity: 1;
}

.horse-card-link--static .horse-image-overlay {
  display: none;
}

.horse-content {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  text-align: center;
}

.horse-content h3 {
  margin: 0 0 14px 0;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-title);
}

.horse-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.horse-meta li {
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 400;
}

.horse-meta li:last-child {
  margin-bottom: 0;
}

.sponsors-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 52px 0;
  background: #606e5a;
  border-top: 1px solid rgba(96, 110, 90, 0.08);
  border-bottom: 1px solid rgba(96, 110, 90, 0.06);
}

.sponsors-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.sponsors-title {
  text-align: center;
  margin: 0 0 28px 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #F1F3ED;
  font-family: "Barlow Semi Condensed", sans-serif;
  letter-spacing: 0.04em;
  padding: 0;
}

.sponsors-title::after {
  content: none;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.sponsor-card {
  min-height: 132px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
}

.sponsor-card:focus-visible {
  outline: 2px solid rgba(96, 110, 90, 0.35);
  outline-offset: 3px;
}

.sponsor-logo {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.sponsor-logo--treeclix {
  max-width: 220px;
}

.sponsor-logo--empire {
  max-width: 240px;
  height: 78px;
}

.sponsor-logo--paardwinst {
  max-width: 240px;
}

@media (max-width: 1024px) {
  #home.hero-video {
    min-height: 420px;
  }

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

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

@media (max-width: 980px) {
  .services-inner {
    padding: 38px 0 40px;
  }

  .services-banner {
    min-height: 620px;
    background-position: center top;
  }

  .services-grid {
    min-height: 620px;
    grid-template-columns: repeat(2, 1fr);
    width: min(860px, calc(100% - 32px));
    gap: 16px;
    padding: 28px 0 34px;
  }

  .service-link {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 214px;
    gap: 16px;
    padding: 24px;
  }

  .service-icon {
    width: 62px;
    height: 62px;
    margin-top: 4px;
  }

  .service-title {
    font-size: clamp(1.5rem, 2vw, 1.9rem);
  }

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

@media (max-width: 767px) {
  #home.hero-video {
    min-height: 180px;
  }

  #about {
    background-attachment: scroll;
    min-height: 100svh;
    padding: 28px 0;
  }

  #about .section-inner {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .about-card {
    width: 100%;
    padding: 18px 18px 22px;
  }

  .about-card.expanded {
    padding-top: 20px;
    padding-bottom: 24px;
    position: relative;
  }

  .about-card h2 {
    margin-bottom: 14px;
  }

  .about-image {
    margin-bottom: 16px;
  }

  .about-copy.expanded {
    max-height: min(38vh, 320px);
    padding-right: 10px;
    padding-bottom: 26px;
    border-right: 1px solid rgba(96, 110, 90, 0.1);
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  }


  .about-toggle-wrap {
    margin-top: 16px;
  }

  .services-inner {
    width: min(var(--max-width), calc(100% - 32px));
    padding: 58px 0 34px;
  }

  .services-banner {
    min-height: auto;
    background-image: url("../images/mobile/services-section-bg.jpeg");
    background-position: center top;
  }

  .services-banner::before {
    background: rgba(248, 244, 236, 0.3);
  }

  .services-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    width: min(var(--max-width), calc(100% - 32px));
    gap: 14px;
    padding: 20px 0 28px;
  }

  .service-link {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 190px;
    gap: 14px;
    padding: 22px 20px;
    border-radius: 0;
  }

  .service-link::before {
    content: none;
  }

  .service-link::after {
    content: none;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    margin-top: 2px;
  }

  .service-content {
    max-width: 100%;
  }

  .service-title {
    font-size: 1.5rem;
    line-height: 1.02;
  }

  .service-desc {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .service-cta {
    margin-top: 14px;
    font-size: 0.92rem;
  }

  .sponsors-banner {
    padding: 42px 0;
  }

  .sponsor-card {
    min-height: 112px;
    padding: 20px;
  }

  .sponsor-logo {
    height: 56px;
  }

  #horses.horses-section {
    padding: 70px 0;
  }

  .horses-inner {
    width: min(var(--max-width), calc(100% - 44px));
  }

  .horses-intro {
    margin: 24px auto 32px;
  }

  .horses-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .horse-content {
    padding: 20px 18px 22px;
  }

  .horse-image-overlay {
    display: none;
  }
}
