/* ==========================================================================
   EquiYellow — Equestrian Yellow Pages
   Design system: Equai editorial palette (warm paper / forest / oxblood)
   fused with a Yellow-Pages gold identity.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --ink: #1a1815;
  --ink-soft: #3a3733;
  --paper: #f4f1e8;
  --paper-warm: #ece7d8;
  --paper-cool: #e8e4d7;
  --forest: #1f3d2e;
  --forest-deep: #142a1f;
  --forest-light: #2d5642;
  --oxblood: #8b3a1e;
  --oxblood-soft: #b5562f;
  --rule: rgba(26, 24, 21, 0.12);
  --rule-strong: rgba(26, 24, 21, 0.24);
  --moss: #4a5d3f;

  /* Yellow-Pages identity */
  --gold: #f2b705;
  --gold-deep: #d99e00;
  --gold-soft: #f7d268;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --maxw: 1400px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.55;
}
html, body { overflow-x: hidden; max-width: 100%; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Paper grain overlay */
body.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 9999;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }

.serif { font-family: var(--serif); font-weight: 300; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--paper); z-index: 100; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: 'SOFT' 0, 'opsz' 144;
  display: inline-flex;
  align-items: center;
}
.brand .y { color: var(--gold-deep); font-style: italic; }
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav { display: none; gap: 28px; font-size: 14px; }
.nav a:hover { opacity: 0.65; }
.nav-cta { display: none; align-items: center; gap: 22px; font-size: 14px; }
.nav-cta a:hover { opacity: 0.7; }
@media (min-width: 900px) {
  .nav, .nav-cta { display: flex; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 11px 22px; border: none; cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
  border-radius: 2px;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--forest); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { background: transparent; border: 1px solid var(--rule-strong); color: var(--ink); }
.btn-outline:hover { background: rgba(0,0,0,.05); }
.btn-lg { padding: 15px 30px; font-size: 15px; }

.hamburger { display: inline-flex; background: none; border: none; cursor: pointer; padding: 6px; }
@media (min-width: 900px) { .hamburger { display: none; } }

/* mobile menu */
.mobile-menu { display: none; border-top: 1px solid var(--rule); padding: 12px 0 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; font-family: var(--serif); font-size: 24px; padding: 10px 0; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.hero-inner { padding: 56px clamp(20px, 5vw, 72px) 64px; position: relative; z-index: 2; }
@media (min-width: 768px) { .hero-inner { padding: 84px clamp(20px, 5vw, 72px) 88px; } }
@media (min-width: 1024px) { .hero-inner { padding-right: 42%; } }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 6.5vw, 88px);
  margin: 18px 0 0;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--oxblood); font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.hero p.lede { margin: 22px 0 0; max-width: 46ch; font-size: 18px; color: var(--ink-soft); }
.hero-photo {
  position: absolute; right: clamp(20px, 5vw, 72px); top: 32px; bottom: 32px; width: 34%;
  background-size: cover; background-position: center;
  display: none; filter: saturate(0.96);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 36px 70px -44px rgba(26, 24, 21, .6);
}
.hero-photo::before { content: ''; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(26, 24, 21, .06); }
@media (min-width: 1024px) { .hero-photo { display: block; } }

/* ---------- Search bar ---------- */
.searchbar {
  margin-top: 34px; max-width: 760px;
  display: flex; flex-wrap: wrap; gap: 0;
  background: #fff; border: 1px solid var(--rule-strong);
  border-radius: 3px; box-shadow: 0 10px 30px -18px rgba(26,24,21,.4);
}
.searchbar .field { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; padding: 4px 16px; border-right: 1px solid var(--rule); }
.searchbar .field:nth-child(2) { border-right: none; }
.searchbar label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); display: block; }
.searchbar input, .searchbar select {
  width: 100%; border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 15px; color: var(--ink); padding: 8px 0;
}
.searchbar .icon { color: var(--gold-deep); flex-shrink: 0; }
.searchbar .go { border: none; background: var(--ink); color: var(--paper); padding: 0 28px; cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.searchbar .go:hover { background: var(--forest); }
@media (max-width: 620px) {
  .searchbar { flex-direction: column; }
  .searchbar .field { border-right: none; border-bottom: 1px solid var(--rule); }
  .searchbar .go { padding: 16px; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-weight: 300; font-variation-settings: 'opsz' 144, 'SOFT' 0; font-size: clamp(28px, 4vw, 44px); margin: 0; letter-spacing: -0.01em; }
.section-head .eyebrow { color: var(--oxblood); margin-bottom: 10px; }
.link-more { font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-more:hover { color: var(--gold-deep); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat {
  background: var(--paper); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: background .2s; min-height: 132px; justify-content: space-between;
}
.cat:hover { background: var(--paper-warm); }
.cat .cat-ico { width: 30px; height: 30px; color: var(--forest); }
.cat h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0; font-variation-settings: 'opsz' 144, 'SOFT' 0; }
.cat .count { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--forest); }

/* ---------- Listing cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--rule); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--rule-strong); }
.card .thumb { aspect-ratio: 16/10; background: var(--paper-warm); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.03); }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; padding: 4px 9px; background: var(--gold-soft); color: #6b4d0f; border-radius: 2px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0; line-height: 1.1; font-variation-settings: 'opsz' 144, 'SOFT' 0; }
.card .meta { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--forest); }
.card .desc { font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { color: var(--gold-deep); font-size: 14px; letter-spacing: 1px; }
.stars span { color: var(--ink-soft); font-family: var(--mono); font-size: 11px; margin-left: 6px; letter-spacing: 0; }

/* ---------- Directory layout ---------- */
.dir-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 0 72px; }
@media (min-width: 900px) { .dir-layout { grid-template-columns: 248px 1fr; } }
.filters { border: 1px solid var(--rule); background: var(--paper); padding: 22px; align-self: start; }
.filters h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 14px; color: var(--oxblood); }
.filters .fg + .fg { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 22px; }
/* Filters collapse into a tappable panel on mobile; always open on desktop */
.filters summary { display: none; }
.filters details > .fg:first-of-type { margin-top: 0; }
@media (max-width: 900px) {
  .filters summary {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; list-style: none;
    font-family: var(--mono); font-size: 12px; text-transform: uppercase;
    letter-spacing: .14em; color: var(--oxblood);
  }
  .filters summary::-webkit-details-marker { display: none; }
  .filters .fc { transition: transform .2s; }
  .filters details[open] summary .fc { transform: rotate(180deg); }
  .filters details[open] summary { margin-bottom: 18px; }
}
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.filter-opt input { accent-color: var(--forest); }
.dir-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.dir-head .count { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
.dir-search { display: flex; gap: 0; margin-bottom: 28px; border: 1px solid var(--rule-strong); background: #fff; border-radius: 3px; }
.dir-search input { flex: 1; border: none; outline: none; padding: 14px 16px; font-family: var(--sans); font-size: 15px; background: transparent; }
.dir-search button { border: none; background: var(--ink); color: var(--paper); padding: 0 24px; cursor: pointer; font-weight: 500; }
.dir-search button:hover { background: var(--forest); }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--rule-strong); }

/* ---------- Listing detail ---------- */
.detail-hero { aspect-ratio: 21/8; background: var(--paper-warm); overflow: hidden; border-bottom: 1px solid var(--rule); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 72px; }
@media (min-width: 900px) { .detail-layout { grid-template-columns: 1fr 320px; } }
.detail-main h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 54px); margin: 6px 0 4px; font-variation-settings: 'opsz' 144, 'SOFT' 20; letter-spacing: -0.01em; }
.detail-main .sub { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--forest); }
.detail-main h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 40px 0 14px; font-variation-settings: 'opsz' 144, 'SOFT' 0; }
.detail-main p { color: var(--ink-soft); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 13px; padding: 7px 14px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); }
.aside-card { border: 1px solid var(--rule-strong); background: var(--paper); padding: 24px; align-self: start; position: sticky; top: 96px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.contact-row:last-of-type { border-bottom: none; }
.contact-row .ico { color: var(--gold-deep); flex-shrink: 0; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.hours td:last-child { text-align: right; color: var(--ink-soft); font-family: var(--mono); font-size: 12px; }
.map { aspect-ratio: 3/2; background: var(--paper-warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%231f3d2e' stroke-opacity='0.1'/%3E%3C/svg%3E"); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--forest); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.review { border-top: 1px solid var(--rule); padding: 20px 0; }
.review .rname { font-weight: 500; }
.review .rtext { color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 680px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field-block label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; color: var(--ink-soft); }
.field-block input, .field-block select, .field-block textarea {
  width: 100%; border: 1px solid var(--rule-strong); background: #fff; padding: 13px 14px;
  font-family: var(--sans); font-size: 15px; border-radius: 2px; outline: none; color: var(--ink);
}
.field-block input:focus, .field-block select:focus, .field-block textarea:focus { border-color: var(--forest); }
.field-block textarea { resize: vertical; min-height: 120px; }
.span-2 { grid-column: 1 / -1; }
.form-note { background: var(--paper-warm); border-left: 3px solid var(--gold); padding: 16px 18px; font-size: 14px; color: var(--ink-soft); margin-bottom: 32px; }

/* ---------- Strip / CTA ---------- */
.strip { background: var(--forest); color: var(--paper); }
.strip-inner { padding: 64px clamp(20px, 5vw, 72px); display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 800px) { .strip-inner { grid-template-columns: 1.4fr 1fr; } }
.strip h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 48px); margin: 0; font-variation-settings: 'opsz' 144, 'SOFT' 20; line-height: 1.02; }
.strip p { color: rgba(244,241,232,.72); margin: 14px 0 0; max-width: 44ch; }

/* ---------- Region list ---------- */
.regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px 28px; }
@media (min-width: 700px) { .regions { grid-template-columns: repeat(4, 1fr); } }
.regions a { padding: 11px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; font-size: 15px; }
.regions a:hover { color: var(--gold-deep); }
.regions a span { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

/* ---------- Legal / prose ---------- */
.legal { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 56px); font-variation-settings: 'opsz' 144,'SOFT' 20; letter-spacing: -.01em; margin: 14px 0 0; line-height: 1; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 16px; letter-spacing: .04em; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; font-variation-settings: 'opsz' 144,'SOFT' 0; margin: 42px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal li { padding: 4px 0; }
.legal a.link-u { border-bottom: 1px solid currentColor; }
.legal .disclaimer { background: var(--paper-warm); border-left: 3px solid var(--gold); padding: 16px 18px; font-size: 14px; margin: 28px 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { border: 1px solid var(--rule); background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--gold); background: #fff; position: relative; box-shadow: 0 18px 40px -26px rgba(26,24,21,.5); }
.price-card .ribbon { position: absolute; top: -13px; left: 28px; background: var(--gold); color: var(--ink); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding: 5px 12px; border-radius: 2px; }
.price-card .plan { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--oxblood); }
.price-card .amt { font-family: var(--serif); font-weight: 300; font-size: 52px; font-variation-settings: 'opsz' 144,'SOFT' 0; line-height: 1; margin: 14px 0 2px; }
.price-card .amt small { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.price-card .plan-desc { color: var(--ink-soft); font-size: 14px; margin: 6px 0 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-card li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.price-card li svg { color: var(--forest); flex-shrink: 0; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 64px 0 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .brand { color: var(--paper); }
.site-footer .brand .y { color: var(--gold); }
.site-footer .col p.tag-line { color: rgba(244,241,232,.6); max-width: 34ch; margin: 14px 0 0; font-size: 14px; }
.site-footer .col h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: rgba(244,241,232,.5); margin: 0 0 14px; }
.site-footer .col a { display: block; color: rgba(244,241,232,.82); font-size: 14px; padding: 5px 0; }
.site-footer .col a:hover { color: var(--paper); }
.footer-base { border-top: 1px solid rgba(244,241,232,.15); margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-base p { font-family: var(--mono); font-size: 11px; color: rgba(244,241,232,.5); margin: 0; }

/* ==========================================================================
   Mobile refinements (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Prevent iOS auto-zoom on focus: inputs must be >= 16px */
  .searchbar input, .searchbar select,
  .field-block input, .field-block select, .field-block textarea,
  .dir-search input { font-size: 16px; }

  /* Tighter vertical rhythm */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .hero-inner { padding: 44px clamp(20px, 5vw, 72px) 52px; }
  .hero p.lede { font-size: 16px; margin-top: 18px; }
  .strip-inner { padding: 48px clamp(20px, 5vw, 72px); }

  /* Header: a touch more compact, keep brand + hamburger comfortable */
  .site-header .bar { padding: 14px clamp(20px, 5vw, 72px); }
  .brand { font-size: 23px; }
  .hamburger { padding: 8px; margin-right: -8px; }

  /* Mobile menu: roomier tap targets */
  .mobile-menu a { font-size: 22px; padding: 12px 0; }

  /* Search bar already stacks at 620px; make the submit clearly tappable */
  .searchbar .go { padding: 16px; font-size: 16px; }

  /* Listing detail: full-width-ish hero looks too letterboxed at 21/8 */
  .detail-hero { aspect-ratio: 16 / 10; }
  .detail-layout { gap: 28px; padding: 28px 0 56px; }
  /* Don't stick the contact card on small screens */
  .aside-card { position: static; }

  /* Directory: filter panel sits above results — keep it from dominating */
  .dir-layout { gap: 24px; padding: 28px 0 56px; }
  .dir-search input { padding: 14px; }

  /* Cards / categories spacing */
  .cards { gap: 18px; }
  .cat { min-height: 116px; padding: 22px 18px; }

  /* Pricing: featured card no longer needs the lift on a single column */
  .price-card.featured { box-shadow: none; }

  /* Gallery: 3 tiny thumbs are cramped — show 2 up */
  .gallery { grid-template-columns: repeat(2, 1fr); }

  /* Footer: stack into a single tidy column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 0; }
  .footer-base { margin-top: 40px; }
}

/* Small-phone safety (<= 380px): rein in the largest display type */
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .detail-main h1 { font-size: 32px; }
}

/* ==========================================================================
   UI POLISH PASS — refinements layered over the editorial base
   ========================================================================== */

/* Accessible keyboard focus everywhere */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, .card:focus-visible, .cat:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* ---------- Header: subtle elevation once scrolled ---------- */
.site-header { transition: box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -26px rgba(26, 24, 21, .55); border-bottom-color: var(--rule-strong); }
.nav a { position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--oxblood); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { opacity: 1; color: var(--oxblood); }

/* ---------- Buttons: tactile press + soft shadow ---------- */
.btn { border-radius: 3px; will-change: transform; }
.btn-dark:hover { box-shadow: 0 12px 24px -16px rgba(31, 61, 46, .7); }
.btn-gold:hover { box-shadow: 0 12px 24px -16px rgba(217, 158, 0, .8); }
.btn:active { transform: translateY(1px); }

/* ---------- Cards: gentle lift, crisper image, clearer affordance ---------- */
.card { border-radius: 5px; overflow: hidden; transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -30px rgba(26, 24, 21, .55); border-color: var(--rule-strong); }
.card .thumb img { transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.card h3 { transition: color .2s ease; }
.card:hover h3 { color: var(--forest); }
.tag { box-shadow: inset 0 0 0 1px rgba(107, 77, 15, .12); }

/* ---------- Category tiles: accent edge on hover ---------- */
.cat { position: relative; transition: background .2s ease; }
.cat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.cat:hover::before { transform: scaleY(1); }
.cat:hover .cat-ico { color: var(--oxblood); }
.cat .cat-ico { transition: color .2s ease; }

/* ---------- Search bar: lift + active-field highlight ---------- */
.searchbar { transition: box-shadow .25s ease, border-color .2s ease; }
.searchbar:focus-within { border-color: var(--forest); box-shadow: 0 16px 40px -22px rgba(26, 24, 21, .5); }
.searchbar .field { transition: background .2s ease; }
.searchbar .field:focus-within { background: rgba(31, 61, 46, .035); }
.searchbar .icon { transition: color .2s ease; }
.searchbar .field:focus-within .icon { color: var(--forest); }

/* ---------- Form fields: soft focus ring ---------- */
.field-block input, .field-block select, .field-block textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.field-block input:focus, .field-block select:focus, .field-block textarea:focus {
  box-shadow: 0 0 0 3px rgba(31, 61, 46, .12);
}
.dir-search { transition: border-color .2s ease, box-shadow .2s ease; }
.dir-search:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 61, 46, .1); }

/* ---------- Chips & filters ---------- */
.chip { transition: border-color .2s ease, background .2s ease, color .2s ease; }
.chip:hover { border-color: var(--forest); color: var(--forest); }
.filter-opt { transition: color .15s ease; border-radius: 3px; }
.filter-opt:hover { color: var(--forest); }

/* ---------- Region links: animated arrow ---------- */
.regions a { transition: color .2s ease, padding-left .2s ease; }
.regions a span::after { content: ' →'; opacity: 0; transition: opacity .2s ease; }
.regions a:hover { padding-left: 4px; }
.regions a:hover span::after { opacity: 1; }

/* ---------- Links / footer ---------- */
.link-more { transition: color .2s ease; }
.site-footer .col a { transition: color .2s ease, padding-left .2s ease; }
.site-footer .col a:hover { padding-left: 3px; }

/* ---------- Reviews & detail aside ---------- */
.aside-card { box-shadow: 0 18px 40px -34px rgba(26, 24, 21, .5); }
.contact-row .ico { transition: transform .2s ease; }
.contact-row:hover .ico { transform: translateX(2px); }

/* ---------- Scroll-reveal (no-JS safe: only active once body.reveal-ready) ---------- */
body.reveal-ready .reveal { opacity: 0; transform: translateY(14px); }
body.reveal-ready .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1); }
