/* ==========================================================================
   House of Ru — Equestrian & Wellness Club
   Single stylesheet. Ports the Claude Design system (tokens + components)
   into a static, framework-free site. Order: fonts → tokens → base → helpers
   → components → motion → responsive.
   ========================================================================== */

/* ---- Webfonts: Fraunces (display) + Hanken Grotesk (body/UI) ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Tokens — Color
   ========================================================================== */
:root {
  --sand:     #E7DBC3;
  --dune:     #DCCDB2;
  --bone:     #F6F0E6;
  --espresso: #2C2620;
  --clay:     #9A7755;
  --gold:     #B0894C;
  --olive:    #6E7152;
  --line:     rgba(44, 38, 32, 0.14);

  --gold-deep:  #97743B;
  --gold-soft:  #C7A871;
  --olive-deep: #585B40;
  --clay-soft:  #B9986F;
  --espresso-90: rgba(44, 38, 32, 0.90);
  --espresso-70: rgba(44, 38, 32, 0.70);
  --espresso-55: rgba(44, 38, 32, 0.55);
  --bone-72:     rgba(246, 240, 230, 0.72);
  --sand-0:      rgba(231, 219, 195, 0);

  --surface-page:    var(--sand);
  --surface-alt:     var(--dune);
  --surface-card:    var(--bone);
  --surface-input:   var(--bone);
  --surface-inverse: var(--espresso);

  --text-strong:        var(--espresso);
  --text-body:          #3A332B;
  --text-muted:         var(--clay);
  --text-on-dark:       var(--bone);
  --text-on-dark-muted: var(--bone-72);

  --accent:         var(--gold);
  --accent-hover:   var(--gold-deep);
  --accent-on-dark: var(--gold);
  --accent-2:       var(--olive);
  --link:           var(--espresso);
  --link-hover:     var(--olive);

  --border-hairline: var(--line);
  --border-strong:   rgba(44, 38, 32, 0.26);
  --divider-gold:    var(--gold);
  --focus-ring:      var(--gold);

  --positive: #6E7152;
  --critical: #9A4B36;
  --notice:   #B0894C;

  /* ---- Typography ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display: clamp(3.25rem, 5.4vw, 5.5rem);
  --fs-h1:      clamp(2.5rem, 3.6vw, 3rem);
  --fs-h2:      clamp(2rem, 2.8vw, 2.25rem);
  --fs-h3:      1.6rem;
  --fs-body-lg: 1.2rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-display: 1.08;
  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-body:    1.6;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;

  --ls-display:  -0.012em;
  --ls-tight:    -0.016em;
  --ls-normal:   0;
  --ls-eyebrow:  0.18em;
  --ls-wordmark: 0.28em;

  /* ---- Spacing / layout ---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;

  --section-y:    clamp(56px, 9vw, 128px);
  --gutter:       clamp(20px, 5vw, 64px);
  --maxw-content: 1200px;
  --maxw-wide:    1360px;
  --maxw-prose:   66ch;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(44, 38, 32, 0.08);
  --shadow-lift: 0 16px 40px rgba(44, 38, 32, 0.12);
  --shadow-card: 0 10px 30px rgba(44, 38, 32, 0.08);
  --ring-hair:   inset 0 0 0 1px var(--line);

  --border-hair: 1px solid var(--line);
  --rule-gold:   1px solid var(--gold);

  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.40, 0.00, 0.20, 1);
  --dur-1: 200ms; --dur-2: 400ms; --dur-3: 600ms; --dur-4: 700ms;
  --rise:  16px;
}

/* ==========================================================================
   Base reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: var(--link); text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
::selection { background: rgba(176, 137, 76, 0.26); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Root page wrapper from the original templates */
[data-ru-root] {
  --ru-nav-h: 80px;
  background: var(--sand);
  font-family: var(--font-body);
  color: var(--text-body);
  overflow-x: clip;        /* clips parallax overflow without breaking sticky nav */
}

/* ==========================================================================
   Helpers — eyebrow, badge, stats, tertiary link, inclusions list
   ========================================================================== */
.ru-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}
.ru-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  flex: none; opacity: .9;
}
.ru-eyebrow--bone  { color: var(--bone); }
.ru-eyebrow--olive { color: var(--olive); }
.ru-eyebrow--clay  { color: var(--clay); }
.ru-eyebrow--center { justify-content: center; }
.ru-eyebrow--center::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  flex: none; opacity: .9;
}

.ru-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  font-size: 11.5px;
  padding: 6px 12px;
}
.ru-badge--gold-soft  { background: rgba(176, 137, 76, 0.16); color: var(--gold-deep); }
.ru-badge--gold-solid { background: var(--gold); color: var(--espresso); }
.ru-badge--olive-soft { background: rgba(110, 113, 82, 0.16); color: var(--olive-deep); }

.ru-stat { display: flex; flex-direction: column; gap: 6px; }

.ru-link-tert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--espresso);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s var(--ease-out);
}
.ru-link-tert:hover { background-size: 100% 1.5px; }
.ru-link-tert--ondark {
  color: var(--bone);
  background-image: linear-gradient(var(--gold-soft), var(--gold-soft));
}

.ru-incl { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ru-incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-body); }
.ru-incl svg { flex: none; margin-top: 2px; }

/* Arena/facility image tiles (Activities grounds strip) */
.ru-tile img { transition: transform var(--dur-4) var(--ease-out); }
.ru-tile:hover img { transform: scale(1.05); }

/* ==========================================================================
   Component — Button (.hor-btn)
   ========================================================================== */
.hor-btn { font-family: var(--font-body); font-weight: var(--fw-semibold); line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--radius-pill); cursor: pointer;
  text-decoration: none; white-space: nowrap; -webkit-appearance: none; appearance: none;
  transition: background var(--dur-1) var(--ease-soft), color var(--dur-1) var(--ease-soft),
    border-color var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease-soft),
    box-shadow var(--dur-1) var(--ease-soft), background-size var(--dur-2) var(--ease-out); }
.hor-btn--sm { font-size: 13px; padding: 11px 20px; }
.hor-btn--md { font-size: 15px; padding: 16px 32px; }
.hor-btn--lg { font-size: 17px; padding: 19px 40px; }
.hor-btn--full { width: 100%; }
.hor-btn__icon { display: inline-flex; flex: none; }
.hor-btn__icon svg { width: 1.05em; height: 1.05em; display: block; }

.hor-btn--primary { background: var(--gold); color: var(--espresso); }
.hor-btn--primary:hover { background: var(--gold-deep); }
.hor-btn--primary:active { transform: translateY(1px); }

.hor-btn--secondary { background: transparent; color: var(--espresso); border-color: var(--border-strong); }
.hor-btn--secondary:hover { background: var(--dune); border-color: var(--espresso); }
.hor-btn--secondary:active { transform: translateY(1px); }

.hor-btn--tertiary { background: transparent; color: var(--espresso); border-radius: 0;
  padding: 4px 0 5px; gap: 8px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; }
.hor-btn--tertiary:hover { background-size: 100% 1.5px; }

.hor-btn--ondark.hor-btn--secondary { color: var(--bone); border-color: rgba(246,240,230,0.45); }
.hor-btn--ondark.hor-btn--secondary:hover { background: rgba(246,240,230,0.10); border-color: var(--bone); }
.hor-btn--ondark.hor-btn--tertiary { color: var(--bone); }

.hor-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hor-btn[aria-disabled="true"], .hor-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; background-size: 0% 1.5px; }

/* ==========================================================================
   Component — Field (.hor-field)
   ========================================================================== */
.hor-field { display: flex; flex-direction: column; gap: 7px; font-family: var(--font-body); }
.hor-field__label { font-size: 13px; font-weight: 600; color: var(--espresso); letter-spacing: 0.01em; }
.hor-field__req { color: var(--gold); margin-left: 3px; }
.hor-field__control { font-family: var(--font-body); font-size: 15px; color: var(--espresso); width: 100%;
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 13px 15px;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-1) var(--ease-soft), box-shadow var(--dur-1) var(--ease-soft); }
.hor-field__control::placeholder { color: var(--clay); opacity: 0.75; }
.hor-field__control:hover { border-color: var(--border-strong); }
.hor-field__control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,76,0.18); }
.hor-field__msg { font-size: 12.5px; color: var(--clay); line-height: 1.4; }
textarea.hor-field__control { resize: vertical; min-height: 96px; line-height: 1.55; }
select.hor-field__control { cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232C2620' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }

/* ==========================================================================
   Component — Card (.hor-card)
   ========================================================================== */
.hor-card { display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-soft);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
a.hor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
a.hor-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.hor-card__media { overflow: hidden; background: var(--dune); }
.hor-card__media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-4) var(--ease-out); }
a.hor-card:hover .hor-card__media img { transform: scale(1.03); }
.hor-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hor-card__title { font-family: var(--font-display); font-weight: var(--fw-regular);
  font-size: var(--fs-h3); line-height: 1.16; color: var(--text-strong); letter-spacing: var(--ls-tight); margin: 0; }
.hor-card__text { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0; }
.hor-card__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--espresso); width: fit-content;
  background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 1.5px;
  background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--dur-2) var(--ease-out); }
a.hor-card:hover .hor-card__link { background-size: 100% 1.5px; }
.hor-card__link svg { width: 15px; height: 15px; }

/* ==========================================================================
   Component — Navbar (.hor-nav) + mobile menu (.hor-menu)
   ========================================================================== */
.hor-nav { width: 100%; z-index: 50; transition: background var(--dur-2) var(--ease-soft), border-color var(--dur-2), box-shadow var(--dur-2); border-bottom: 1px solid transparent; }
.hor-nav--sticky { position: sticky; top: 0; }
.hor-nav--solid { background: var(--sand); border-bottom-color: var(--line); }
.hor-nav--glass { background: rgba(231,219,195,0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.hor-nav__inner { max-width: var(--maxw-wide); margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hor-nav__links { display: flex; align-items: center; gap: 30px; }
.hor-nav__link { font-family: var(--font-body); font-size: 13.5px; letter-spacing: 0.04em; color: var(--espresso); text-decoration: none; padding: 4px 0;
  background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1); }
.hor-nav__link:hover, .hor-nav__link--active { background-size: 100% 1.5px; }
.hor-nav__right { display: flex; align-items: center; gap: 22px; }
.hor-nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: inherit; }
.hor-nav__burger svg { width: 24px; height: 24px; display: block; }
.hor-menu { position: fixed; inset: 0; z-index: 60; background: var(--bone); display: none; flex-direction: column; padding: 24px var(--gutter) 48px; }
.hor-menu.is-open { display: flex; }
.hor-menu__top { display: flex; align-items: center; justify-content: space-between; }
.hor-menu__close { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--espresso); }
.hor-menu__close svg { width: 26px; height: 26px; display: block; }
.hor-menu__links { display: flex; flex-direction: column; gap: 4px; margin-top: auto; margin-bottom: auto; }
.hor-menu__link { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 9vw, 3rem); color: var(--espresso); text-decoration: none; letter-spacing: var(--ls-tight); padding: 6px 0; }
.hor-menu__link:hover { color: var(--gold-deep); }
@media (max-width: 900px) {
  .hor-nav__links, .hor-nav__cta-desktop { display: none; }
  .hor-nav__burger { display: inline-flex; }
}

/* ==========================================================================
   Component — Footer (.hor-footer)
   ========================================================================== */
.hor-footer { background: var(--espresso); color: var(--bone); padding: var(--space-9) var(--gutter) var(--space-6); }
.hor-footer__inner { max-width: var(--maxw-wide); margin: 0 auto; }
.hor-footer__memorial { text-align: center; padding-bottom: var(--space-8); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hor-footer__shoe { width: 30px; height: 30px; }
.hor-footer__memorial p { font-family: var(--font-display); font-style: italic; font-weight: var(--fw-light);
  font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.3; color: var(--gold-soft); margin: 0; letter-spacing: var(--ls-tight); max-width: 22ch; }
.hor-footer__rule { height: 1px; background: rgba(246,240,230,0.16); }
.hor-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding: var(--space-8) 0; }
.hor-footer__tag { color: var(--bone-72); font-size: 14px; line-height: 1.7; max-width: 30ch; margin: 18px 0 0; }
.hor-footer__col h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--gold); margin: 0 0 14px; font-weight: 600; }
.hor-footer__col a, .hor-footer__col p { display: block; color: var(--bone-72); text-decoration: none; font-size: 14px; line-height: 1.95; margin: 0; transition: color var(--dur-1) var(--ease-soft); }
.hor-footer__col a:hover { color: var(--bone); }
.hor-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; padding-top: var(--space-5); flex-wrap: wrap; }
.hor-footer__bottom, .hor-footer__bottom a { font-size: 12.5px; color: var(--bone-72); text-decoration: none; }
.hor-footer__bottom a:hover { color: var(--bone); }
.hor-footer__social { display: flex; gap: 20px; }
@media (max-width: 860px) { .hor-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .hor-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes ruWash { to { opacity: 1; } }
@keyframes ruFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Scroll-reveal targets start visible; site.js hides+animates them only when
   motion is allowed, so the page is fully readable without JS. */

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  /* Collapse all two-column split layouts to a single column on tablet/phone */
  .ru-split { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  :root {
    --fs-display: clamp(2.4rem, 10.5vw, 3rem);
    --fs-h2: clamp(1.7rem, 6.4vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-parallax] { transform: none !important; }
}
