/* Táltos Paripa Lovarda - site styles. No external fonts or resources. */
:root {
  --bg: #faf6ef;
  --surface: #fffdf9;
  --sand: #f2e8d8;
  --line: #e6d8c2;
  --text: #2f241b;
  --muted: #6e5c4c;
  --brand: #8a4b20;
  --brand-dark: #6b3a1d;
  --accent: #3f6b3a;
  --footer: #2f241b;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(70, 45, 20, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid #e8a64a; outline-offset: 2px; }
h1, h2, h3, .h3 { font-family: var(--serif); line-height: 1.2; color: var(--brand-dark); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: 0 0 .6em; }
h3, .h3 { font-size: 1.3rem; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; color: var(--brand); }
.brand-holes circle { fill: var(--bg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav ul a:hover { background: var(--sand); color: var(--brand-dark); }
.site-nav ul a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { font-size: .8rem; font-weight: 600; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { border-color: var(--brand); color: var(--brand); }
.lang-switch a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.nav-toggle { display: none; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 10px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 18px; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); border-radius: 0 8px 8px 0; }
  .lang-switch a { font-size: .9rem; padding: 6px 12px; }
}

/* ---------- hero & page heads ---------- */
.hero, .page-head { position: relative; overflow: hidden; background: #3b2a1e; color: #fff; display: flex; align-items: flex-end; }
.hero { min-height: min(80vh, 660px); }
.page-head { min-height: clamp(240px, 38vh, 360px); }
.hero-img, .page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img { object-position: 68% 45%; }
.page-head-img { object-position: 50% 40%; }
.hero::after, .page-head::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 18, 8, .72) 0%, rgba(28, 18, 8, .38) 45%, rgba(28, 18, 8, 0) 78%),
    linear-gradient(0deg, rgba(28, 18, 8, .5) 0%, rgba(28, 18, 8, 0) 55%);
}
.hero-inner, .page-head-inner { position: relative; z-index: 1; padding-block: 56px 48px; }
.hero h1, .page-head h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero-text { max-width: 30ch; font-size: clamp(1.15rem, 2.2vw, 1.45rem); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.page-head .lead { max-width: 46ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.page-head-plain { min-height: 0; background: var(--sand); color: var(--text); }
.page-head-plain::after { display: none; }
.page-head-plain h1 { color: var(--brand-dark); text-shadow: none; }
.page-head-plain .lead { text-shadow: none; color: var(--muted); }
@media (max-width: 700px) {
  .hero { min-height: 72vh; }
  .hero::after, .page-head::after { background: linear-gradient(0deg, rgba(28, 18, 8, .82) 0%, rgba(28, 18, 8, .35) 55%, rgba(28, 18, 8, .1) 100%); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: 32px 64px; }
.section-alt { background: var(--sand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-reverse .split-img, .split-reverse .photo-pair { order: -1; }
.split-text > p, .split-text li { max-width: 62ch; }
.split-img { margin: 0; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-pair img:nth-child(2) { margin-top: 36px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-img, .photo-pair { order: -1; }
}

ul.ticks, .ticks-wrap ul { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li, .ticks-wrap ul li { position: relative; padding-left: 26px; margin: .45em 0; }
ul.ticks li::before, .ticks-wrap ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px;
  background: var(--brand); transform: rotate(45deg); border-radius: 2px;
}
.split-text ol { padding-left: 1.4em; }
.split-text ol li { margin: .3em 0; }

/* ---------- cards & panels ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 30px; }
.cards > .card { flex: 1 1 200px; max-width: 300px; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 0; }
.cards-2 > .card { max-width: none; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(70, 45, 20, .18); color: var(--text); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; }
.card-more { color: var(--brand); font-weight: 600; }
.columns-2, .columns-3 { display: grid; gap: 24px; }
.columns-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.columns-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.section-alt .columns-3 { margin-top: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.address { font-size: 1.1rem; }

.rating { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.rating-score { background: #003b95; color: #fff; font-weight: 700; font-size: 1.3rem; padding: 8px 11px; border-radius: 10px 10px 10px 0; }
.rating-text { color: var(--muted); }

/* ---------- photo strip, band ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.strip-4 { grid-template-columns: repeat(4, 1fr); }
.strip a { display: block; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s, opacity .2s; }
.strip a:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip-4 { grid-template-columns: repeat(2, 1fr); } }

.band { background: var(--brand-dark); color: #fbefe0; padding-block: 44px; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { margin: 0; }
.band-big { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: #fff; max-width: 40ch; }

/* ---------- gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gallery-item { display: block; overflow: hidden; border-radius: 10px; background: var(--sand); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.gallery-more { margin-top: 32px; }
.h1-year { color: var(--brand); }
.year-nav {
  position: sticky; top: 70px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.year-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
}
.year-nav a:hover { border-color: var(--brand); color: var(--brand); }
.year-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.year-count { font-size: .8rem; font-weight: 500; opacity: .75; }
.month-head { font-size: 1.35rem; margin: 30px 0 12px; scroll-margin-top: 140px; }
@media (max-width: 600px) {
  .year-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .year-nav::-webkit-scrollbar { display: none; }
  .year-nav a { flex: 0 0 auto; padding: 7px 13px; }
  .year-count { display: none; }
}

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 5, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; text-align: center; }
.lb-img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; margin: 0 auto; }
.lb-count { color: #cfc3b3; font-size: .9rem; margin-top: 10px; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- our horses ---------- */
.horses-count { color: var(--muted); margin-bottom: 28px; }
.horses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.horse { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--c); padding: 24px 16px 20px; text-align: center; }
.horse-pic {
  width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden;
  background: var(--c); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--c);
}
.horse-pic img { width: 100%; height: 100%; object-fit: cover; }
.horse-initial { font-family: var(--serif); font-size: 3.1rem; font-weight: 700; line-height: 1; }
.horse-name { font-size: 1.35rem; margin: 0 0 4px; }
.horse-meta { color: var(--muted); font-size: .92rem; margin: 0; }
.horse-meta::first-letter { text-transform: uppercase; }
@media (max-width: 520px) { .horses { grid-template-columns: repeat(2, 1fr); gap: 12px; } .horse-pic { width: 88px; height: 88px; } }

/* ---------- 404 ---------- */
.notfound-horse { width: 100%; max-width: 460px; height: auto; margin: 0 auto 8px; }
.notfound .bubble { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: #e9dfd0; padding-block: 44px 22px; font-size: .97rem; }
.site-footer a { color: #ffd9a8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .5em; }
.footer-head { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #c9b79f; margin-bottom: .6em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: #bfae96; font-size: .88rem; }
.footer-bottom a { color: #bfae96; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
