/* ============================================================
   Legacy Stables — light visual refresh
   Same content, same pages, same photos. Modern presentation.
   ============================================================ */

:root {
  --paper:      #FAF7F1;
  --paper-deep: #F2ECE1;
  --card:       #FFFDF9;
  --ink:        #2A2622;
  --ink-soft:   #5D554C;
  --muted:      #8A8073;
  --brand:      #6B2A2A;
  --brand-deep: #4E1E1E;
  --gold:       #A8823F;
  --line:       #E4DACA;
  --line-soft:  #EFE8DA;
  --forest:     #2C2A24;
  --teal:       #016562;
  --teal-soft:  #1A7A76;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --radius: 5px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- header ---------- */

/* geometric accents — generic southwestern zigzags and diamonds, low opacity */
.pattern-band,
.site-header::after,
.site-footer::before,
.page-head::after {
  background-repeat: repeat-x;
  background-position: center;
  pointer-events: none;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0;
}
.site-header::after {
  content: "";
  display: block;
  height: 10px;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='10' viewBox='0 0 80 10' fill='none'%3E%3Cpath d='M0 7 L10 3 L20 7 L30 3 L40 7 L50 3 L60 7 L70 3 L80 7' stroke='%23016562' stroke-width='1' opacity='0.32'/%3E%3Cpath d='M0 7 L10 3 L20 7 L30 3 L40 7 L50 3 L60 7 L70 3 L80 7' stroke='%23A8823F' stroke-width='0.7' opacity='0.22' transform='translate(0,1.5)'/%3E%3C/svg%3E");
  background-size: 80px 10px;
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 8px;
}

.brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 3px;
  text-decoration: none; color: var(--ink);
}
.brand-logo {
  width: 220px; height: auto; display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-size: 1.42rem; font-weight: 600;
  letter-spacing: 0.01em; color: var(--brand-deep);
}
.brand-sub {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); margin: 0 0 0 6px;
}

.nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.nav a {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 500; color: var(--ink-soft); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--teal); font-weight: 600; margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.01em; color: var(--brand-deep); }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); color: var(--brand-deep); }
h3 { font-size: 1.05rem; color: var(--ink); }

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

.rule {
  width: 100%; height: 1px; background: var(--line-soft);
  border: 0; margin: 0;
}

/* ---------- hero ---------- */

.hero { padding: 64px 0 8px; }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 22px; }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center; padding-bottom: 56px;
}
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; border: 1px solid var(--line);
  padding: 7px; background: var(--card); box-shadow: 0 10px 26px -18px rgba(60, 40, 25, .5);
}
.hero-figure figcaption {
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 11px; text-align: right;
}

.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 8px; right: 2%;
  width: 180px; height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none'%3E%3Cg fill='%23016562' opacity='0.09'%3E%3Cpath d='M90 12 L102 24 L90 36 L78 24 Z'/%3E%3Cpath d='M66 36 L78 48 L66 60 L54 48 Z'/%3E%3Cpath d='M114 36 L126 48 L114 60 L102 48 Z'/%3E%3Cpath d='M90 60 L102 72 L90 84 L78 72 Z'/%3E%3Cpath d='M42 60 L54 72 L42 84 L30 72 Z'/%3E%3Cpath d='M138 60 L150 72 L138 84 L126 72 Z'/%3E%3Cpath d='M66 84 L78 96 L66 108 L54 96 Z'/%3E%3Cpath d='M114 84 L126 96 L114 108 L102 96 Z'/%3E%3Cpath d='M90 108 L102 120 L90 132 L78 120 Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

/* ---------- info card ---------- */

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 0 72px;
}
.fact { padding: 26px 28px 26px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.fact dt {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 8px;
}
.fact dd { margin: 0; font-family: var(--serif); font-size: 1.06rem; color: var(--ink); line-height: 1.45; }
.fact dd a { text-decoration: none; }
.fact dd a:hover { text-decoration: underline; }

/* ---------- sections ---------- */

.section { padding: 0 0 76px; }
.section-head { margin-bottom: 34px; }
.section-head h2 { margin-top: 6px; }
.section-intro { color: var(--ink-soft); margin: 14px 0 0; max-width: 60ch; }

.section + .section {
  position: relative;
  padding-top: 8px;
}
.section + .section::before {
  content: "";
  display: block;
  height: 8px;
  margin: 0 auto 36px;
  max-width: var(--wrap);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='8' viewBox='0 0 48 8' fill='none'%3E%3Cpath d='M8 1.5 L11 4.5 L8 7.5 L5 4.5 Z' fill='%23016562' opacity='0.28'/%3E%3Cpath d='M24 1.5 L27 4.5 L24 7.5 L21 4.5 Z' fill='%23A8823F' opacity='0.32'/%3E%3Cpath d='M40 1.5 L43 4.5 L40 7.5 L37 4.5 Z' fill='%23016562' opacity='0.28'/%3E%3C/svg%3E");
  background-size: 48px 8px;
  background-repeat: repeat-x;
  background-position: center;
  pointer-events: none;
}

/* ---------- feature grid (facilities) ---------- */

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.features li {
  background: var(--paper); padding: 26px 26px 26px 30px;
  position: relative; font-size: 1rem; color: var(--ink);
}
.features li::before {
  content: ""; position: absolute; left: 0; top: 32px;
  width: 3px; height: 16px; background: var(--gold);
}
.features li strong { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; display: block; margin-bottom: 3px; }
.features li span { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- fee table ---------- */

.fees {
  width: 100%; border-collapse: collapse; margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.fees caption { text-align: left; }
.fees th, .fees td { padding: 17px 16px 17px 0; text-align: left; border-bottom: 1px solid var(--line-soft); }
.fees thead th {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line);
}
.fees tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.fees td.price { text-align: right; white-space: nowrap; font-family: var(--serif); font-size: 1.16rem; color: var(--brand-deep); padding-right: 0; }
.fees td.price small { font-family: var(--sans); font-size: 0.74rem; color: var(--muted); display: block; letter-spacing: .04em; }
.fees tfoot td { border-bottom: 0; color: var(--muted); font-size: 0.85rem; padding-top: 14px; }

.included { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.included li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.included li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg);
}

.note {
  background: var(--paper-deep); border-left: 3px solid var(--gold);
  padding: 20px 24px; color: var(--ink-soft); font-size: 0.95rem;
  margin: 34px 0 0; max-width: 70ch;
}
.note strong { color: var(--ink); }

/* ---------- gallery ---------- */

.gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 26px; margin: 0; padding: 0; list-style: none;
  justify-content: start;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; border: 1px solid var(--line);
  padding: 6px; background: var(--card); box-shadow: 0 8px 20px -16px rgba(60, 40, 25, .55);
}
.gallery figcaption {
  font-size: 0.78rem; color: var(--muted); margin-top: 10px;
  letter-spacing: 0.04em;
}

.gallery-nav {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line-soft);
}

/* ---------- facility cards ---------- */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin: 0; padding: 0; list-style: none;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card img { width: 100%; height: 168px; object-fit: cover; border-bottom: 1px solid var(--line-soft); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--brand-deep); }
.card-desc { font-size: 0.88rem; color: var(--muted); }
.card-more {
  margin-top: auto; padding-top: 14px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); font-weight: 600;
}
.card:hover { transform: translateY(-3px); border-color: #D8CBB4; box-shadow: 0 14px 30px -20px rgba(60, 40, 25, .6); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-block { border-top: 1px solid var(--line); padding-top: 24px; }
.contact-block + .contact-block { margin-top: 34px; }
.contact-block dt {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 8px;
}
.contact-block dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; }
.contact-block dd a { text-decoration: none; }
.contact-block dd a:hover { text-decoration: underline; }

.map-frame {
  border: 1px solid var(--line); background: var(--card); padding: 8px;
  box-shadow: 0 10px 26px -20px rgba(60, 40, 25, .5);
}
.map-frame img { width: 100%; }

/* ---------- page header (interior pages) ---------- */

.page-head { padding: 58px 0 40px; border-bottom: 0; margin-bottom: 52px; position: relative; }
.page-head::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='8' viewBox='0 0 48 8' fill='none'%3E%3Cpath d='M8 1.5 L11 4.5 L8 7.5 L5 4.5 Z' fill='%23016562' opacity='0.28'/%3E%3Cpath d='M24 1.5 L27 4.5 L24 7.5 L21 4.5 Z' fill='%23A8823F' opacity='0.32'/%3E%3Cpath d='M40 1.5 L43 4.5 L40 7.5 L37 4.5 Z' fill='%23016562' opacity='0.28'/%3E%3C/svg%3E");
  background-size: 48px 8px;
  background-repeat: repeat-x;
  background-position: center;
}
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-top: 16px; }

.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted); text-decoration: none; margin-bottom: 20px; font-weight: 500;
}
.backlink:hover { color: var(--brand); }

/* ---------- cta ---------- */

.cta {
  background: var(--paper-deep); border: 1px solid var(--line);
  padding: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; color: var(--ink-soft); }

.btn {
  display: inline-block; background: var(--brand); color: #fff;
  text-decoration: none; padding: 14px 26px; border-radius: var(--radius);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  border: 1px solid var(--brand); transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest); color: #D9D2C6;
  padding: 70px 0 34px; margin-top: 20px;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='10' viewBox='0 0 80 10' fill='none'%3E%3Cpath d='M0 7 L10 3 L20 7 L30 3 L40 7 L50 3 L60 7 L70 3 L80 7' stroke='%237EB8B5' stroke-width='1' opacity='0.45'/%3E%3Cpath d='M0 7 L10 3 L20 7 L30 3 L40 7 L50 3 L60 7 L70 3 L80 7' stroke='%23C4A35A' stroke-width='0.7' opacity='0.28' transform='translate(0,1.5)'/%3E%3C/svg%3E");
  background-size: 80px 10px;
  background-repeat: repeat-x;
  background-position: center;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px; padding-bottom: 44px;
}
.site-footer h2 {
  color: #F3EDE2; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.17em; margin-bottom: 16px; font-family: var(--sans); font-weight: 600;
}
.site-footer p, .site-footer li { font-size: 0.92rem; line-height: 1.7; }
.site-footer a { color: #D9D2C6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand { display: block; margin-bottom: 14px; }
.footer-brand img { width: 200px; height: auto; display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.8rem; color: #9A9384;
}
.footer-bottom img { width: 74px; opacity: .85; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .brand-logo { width: 200px; }
  .footer-brand img { width: 176px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { max-width: 420px; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .features { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { min-height: 66px; gap: 10px; }
  .brand-logo { width: 168px; }
  .hero::before { width: 110px; height: 110px; opacity: 0.85; }
  .nav { gap: 18px; width: 100%; justify-content: space-between; padding-bottom: 4px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .hero { padding-top: 42px; }
  .page-head { padding: 38px 0 30px; margin-bottom: 36px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .fees td.price { font-size: 1.02rem; }
  .fees th, .fees td { padding: 14px 10px 14px 0; }
}

/* print */
@media print {
  .site-header, .site-footer, .cta, .nav { display: none; }
  body { background: #fff; font-size: 12pt; }
  a { color: #000; }
}
