:root {
  --ubz-green: #1a5c2e;
  --ubz-green-deep: #0f3d1e;
  --ubz-green-soft: #2a7340;
  --ubz-earth: #6b4a2e;
  --ubz-earth-soft: #8a6540;
  --ubz-amber: #c4923a;
  --ubz-amber-soft: #d4a84f;
  --ubz-silver: #c5c7c4;
  --ubz-ink: #1a1a18;
  --ubz-cream: #f3efe6;
  --ubz-paper: #faf8f4;
  --ubz-muted: #5c574e;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ubz-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 92, 46, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 146, 58, 0.07), transparent 50%),
    linear-gradient(180deg, var(--ubz-paper) 0%, #efe9dc 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ubz-green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ubz-green-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ubz-green-deep);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

.ubz-container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.ubz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 92, 46, 0.12);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ubz-header.is-scrolled {
  background: rgba(250, 248, 244, 0.96);
  box-shadow: 0 8px 24px rgba(26, 26, 24, 0.06);
}

.ubz-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.ubz-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.ubz-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.ubz-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ubz-logo__text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ubz-green-deep);
  letter-spacing: 0.04em;
}

.ubz-logo__text span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ubz-earth);
}

.ubz-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ubz-nav a {
  text-decoration: none;
  color: var(--ubz-ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.ubz-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--ubz-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.ubz-nav a:hover::after,
.ubz-nav .current-menu-item a::after { transform: scaleX(1); }

.ubz-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.ubz-nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ubz-green-deep);
  margin: 5px 0;
  transition: 0.25s var(--ease);
}

/* Hero */
.ubz-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--ubz-cream);
  overflow: hidden;
  isolation: isolate;
}

.ubz-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(15, 61, 30, 0.35) 0%, rgba(15, 61, 30, 0.72) 55%, rgba(10, 35, 18, 0.92) 100%),
    url("../img/hero-placeholder.svg") center / cover no-repeat,
    linear-gradient(135deg, #1a5c2e, #0f3d1e 50%, #6b4a2e);
}

.ubz-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: ubz-kenburns 28s var(--ease) infinite alternate;
}

@keyframes ubz-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.ubz-hero__content {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
  max-width: 38rem;
  animation: ubz-rise 1s var(--ease) both;
}

@keyframes ubz-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.ubz-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
  color: #f7f3ea;
}

.ubz-hero__brand small {
  display: block;
  font-size: 0.28em;
  letter-spacing: 0.35em;
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.ubz-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 1.5rem;
  color: var(--ubz-silver);
  max-width: 28ch;
}

.ubz-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ubz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ubz-btn:hover { transform: translateY(-1px); }

.ubz-btn--primary {
  background: var(--ubz-amber);
  color: #1a140a;
}

.ubz-btn--primary:hover {
  background: var(--ubz-amber-soft);
  color: #1a140a;
}

.ubz-btn--ghost {
  background: transparent;
  border-color: rgba(245, 240, 230, 0.45);
  color: #f5f0e6;
}

.ubz-btn--ghost:hover {
  border-color: #f5f0e6;
  color: #fff;
}

.ubz-btn--solid {
  background: var(--ubz-green);
  color: #f5f0e6;
}

.ubz-btn--solid:hover {
  background: var(--ubz-green-deep);
  color: #fff;
}

/* Sections */
.ubz-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.ubz-section--alt {
  background:
    linear-gradient(180deg, rgba(26, 92, 46, 0.05), rgba(26, 92, 46, 0.02)),
    var(--ubz-cream);
}

.ubz-section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ubz-earth);
  margin-bottom: 0.75rem;
}

.ubz-section__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  max-width: 18ch;
}

.ubz-section__lead {
  max-width: 42rem;
  color: var(--ubz-muted);
  font-size: 1.08rem;
}

.ubz-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0 2rem;
  color: var(--ubz-green);
  opacity: 0.55;
}

.ubz-divider::before,
.ubz-divider::after {
  content: "";
  height: 1px;
  width: min(8rem, 20vw);
  background: linear-gradient(90deg, transparent, var(--ubz-green), transparent);
}

.ubz-divider svg { width: 28px; height: 28px; }

/* Highlight strip */
.ubz-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.ubz-highlight {
  padding: 1.25rem 0.25rem;
  border-top: 1px solid rgba(26, 92, 46, 0.25);
}

.ubz-highlight h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.ubz-highlight p {
  margin: 0;
  color: var(--ubz-muted);
  font-size: 0.95rem;
}

/* Horse grid */
.ubz-horse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.ubz-horse {
  display: block;
  text-decoration: none;
  color: inherit;
  group: true;
}

.ubz-horse__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(160deg, #2a4a32, #1a2e20);
  margin-bottom: 0.9rem;
}

.ubz-horse__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.ubz-horse:hover .ubz-horse__media img { transform: scale(1.04); }

.ubz-horse h3 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.ubz-horse__meta {
  color: var(--ubz-muted);
  font-size: 0.92rem;
}

/* Page hero (inner) */
.ubz-page-hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(196, 146, 58, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(26, 92, 46, 0.08), transparent);
}

.ubz-page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.ubz-prose {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.ubz-prose h2 { margin-top: 2rem; font-size: 1.75rem; }

/* Contact */
.ubz-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.ubz-contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.ubz-contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(26, 92, 46, 0.12);
}

.ubz-contact-list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ubz-earth);
  margin-bottom: 0.2rem;
}

.ubz-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ubz-form input,
.ubz-form textarea,
.ubz-form select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(26, 92, 46, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  color: inherit;
}

.ubz-form textarea { min-height: 8rem; resize: vertical; }

.ubz-map {
  margin-top: 2rem;
  aspect-ratio: 16/9;
  background: #d9d2c4;
  overflow: hidden;
}

.ubz-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

/* Footer */
.ubz-footer {
  background: linear-gradient(180deg, var(--ubz-green-deep), #0a2414);
  color: var(--ubz-cream);
  padding: 3.5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.ubz-footer::before {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -20%;
  width: 280px;
  height: 280px;
  background: url("../img/logo-monogram.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.ubz-footer a { color: var(--ubz-silver); text-decoration: none; }
.ubz-footer a:hover { color: #fff; }

.ubz-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  position: relative;
}

.ubz-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ubz-footer__brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(1.2);
}

.ubz-footer h3 {
  color: #f5f0e6;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.ubz-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ubz-footer li { margin-bottom: 0.45rem; }

.ubz-seals {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.ubz-seals img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.9;
}

.ubz-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(197, 199, 196, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(243, 239, 230, 0.7);
  position: relative;
}

/* WhatsApp float */
.ubz-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease);
}

.ubz-whatsapp:hover { transform: scale(1.06); color: #fff; }
.ubz-whatsapp svg { width: 1.7rem; height: 1.7rem; }

/* Reveal on scroll */
.ubz-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.ubz-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Empty / placeholder horse */
.ubz-empty {
  padding: 2rem;
  border: 1px dashed rgba(26, 92, 46, 0.3);
  color: var(--ubz-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .ubz-highlights { grid-template-columns: repeat(2, 1fr); }
  .ubz-horse-grid { grid-template-columns: repeat(2, 1fr); }
  .ubz-contact-grid,
  .ubz-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ubz-nav-toggle { display: block; }
  .ubz-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(250, 248, 244, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(26, 92, 46, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s var(--ease);
  }
  .ubz-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .ubz-nav a { padding: 0.65rem 0; }
  .ubz-logo__text strong { font-size: 1.15rem; }
  .ubz-highlights,
  .ubz-horse-grid { grid-template-columns: 1fr; }
  .ubz-hero { min-height: 78svh; }
}
