/* MC Assessoria MM — visual identity */
:root {
  --ink: #10264c;
  --forest: #17356f;
  --forest-2: #214985;
  --moss: #315b9a;
  --brass: #244b89;
  --brass-2: #8ba9d9;
  --brass-soft: #eaf0fa;
  --cream: #f4f6fa;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #e2e8f1;
  --line-dark: #ffffff1f;
  --text: #202a3a;
  --muted: #69778b;
  --success: #3d7a4c;
  --danger: #a5483a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px #10264c0d;
  --shadow: 0 20px 50px -18px #10264c26;
  --shadow-lg: 0 40px 90px -30px #10264c40;
  --display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.eyebrow.plain::before { display: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
.section-title { font-size: clamp(30px, 3.7vw, 46px); margin-top: 14px; }
.section-title em { font-style: italic; color: var(--brass); font-weight: 500; }
.lead { color: var(--muted); font-size: 15px; max-width: 520px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 14px 26px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-brass { background: var(--brass); color: var(--white); }
.btn-brass:hover { background: var(--moss); color: var(--white); box-shadow: 0 12px 30px -10px #244b8999; }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--moss); box-shadow: 0 12px 30px -12px #17356f99; }
.btn-ghost { background: transparent; color: var(--white); border-color: #ffffff55; }
.btn-ghost:hover { background: #ffffff14; border-color: #ffffffaa; }
.btn-line { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-line:hover { border-color: var(--forest); }
.btn-soft { background: var(--cream); color: var(--forest); }
.btn-soft:hover { background: var(--brass-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--moss); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--brass); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  transition: background .35s, box-shadow .35s, color .35s;
  background: #fffffff2;
  color: var(--forest);
}
.header.solid { background: #fffffff2; backdrop-filter: blur(14px); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand-logo { display: block; width: 84px; height: auto; aspect-ratio: 1135 / 705; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.brandmark {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: .02em;
}
.brand-text { font-weight: 800; font-size: 14px; letter-spacing: .14em; line-height: 1.2; }
.brand-text small { display: block; font-weight: 600; font-size: 9.5px; letter-spacing: .26em; opacity: .65; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 13.5px; font-weight: 600; }
.nav > a { position: relative; opacity: .88; }
.nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav > a:hover { opacity: 1; }
.nav > a:hover::after { transform: scaleX(1); }
.header:not(.solid) .btn-account { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-account { background: var(--forest); color: var(--white); padding: 11px 20px; }
.menu-btn { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Hero */
.hero {
  position: relative; min-height: max(680px, 94vh);
  display: flex; align-items: center;
  color: var(--text); overflow: hidden; background: #fff;
}
.hero-bg {
  position: absolute; inset: 112px 24px 52px 55%; border-radius: 22px;
  background: url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=2200&q=85') center 40% / cover;
  box-shadow: 0 24px 70px -34px #10264c55;
}
.hero::after { content: none; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; padding: 132px 0 48px; }
.hero h1 { font-size: clamp(36px, 4.1vw, 50px); font-weight: 700; max-width: 560px; margin: 18px 0 20px; line-height: 1.12; color: var(--text); }
.hero .eyebrow { color: var(--forest); }
.hero h1 em { color: var(--text); font-style: normal; }
.hero p { font-size: 15px; color: var(--muted); max-width: 500px; margin: 0; }
.hero .btn-ghost { color: var(--forest); border-color: #17356f40; background: #ffffff; }
.hero .btn-ghost:hover { background: var(--brass-soft); border-color: var(--forest); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 48px; border-top: 1px solid var(--line); max-width: 640px;
}
.hero-stats div { padding: 22px 26px 0 0; }
.hero-stats div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--forest); line-height: 1; }
.hero-stats span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.reveal { opacity: 0; transform: translateY(12px); animation: rise .42s var(--ease) forwards; }
.reveal.d1 { animation-delay: .04s; } .reveal.d2 { animation-delay: .08s; } .reveal.d3 { animation-delay: .12s; } .reveal.d4 { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }
body.motion-ready .motion-item { opacity: 0; transform: translateY(8px); transition: opacity .24s var(--ease), transform .24s var(--ease); }
body.motion-ready .motion-item.motion-visible { opacity: 1; transform: none; }
.steps .step:nth-child(2) { transition-delay: .06s; }
.steps .step:nth-child(3) { transition-delay: .12s; }
.steps .step:nth-child(4) { transition-delay: .18s; }

/* Sections */
.section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; }
.section-head .lead { margin: 0; }

/* Filters */
.filters {
  display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(150px, 1fr)) repeat(2, minmax(120px, .8fr)) auto;
  gap: 10px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.control { position: relative; }
.control svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.control input, .control select {
  width: 100%; height: 48px; border: 1px solid transparent; background: var(--cream);
  border-radius: 12px; padding: 0 16px; font-size: 13.5px; outline: none; transition: border-color .2s, background .2s;
  appearance: none;
}
.control select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7369' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 38px; }
.control.has-icon input { padding-left: 44px; }
.control input:focus, .control select:focus { border-color: var(--brass); background-color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .2s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.active { background: var(--forest); border-color: var(--forest); color: var(--white); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 22px; font-size: 13px; color: var(--muted); }

/* Horse cards */
.horse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.horse-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.horse-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.horse-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.horse-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.horse-card:hover .horse-photo img { transform: scale(1.06); }
.horse-photo::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, #10264c99, transparent); pointer-events: none; }
.horse-photo:has(.no-photo)::after { display: none; }
.badge {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fffffff0; color: var(--forest); backdrop-filter: blur(6px);
  padding: 7px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.badge.live { background: var(--forest); color: var(--white); }
.badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7fd394; box-shadow: 0 0 0 0 #7fd39480; animation: pulse 1.8s infinite; }
.badge.closed { background: #e9e5dc; color: var(--muted); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px #7fd39400; } 100% { box-shadow: 0 0 0 0 #7fd39400; } }
.media-count { position: absolute; z-index: 2; right: 14px; bottom: 12px; display: flex; gap: 6px; }
.media-count span { display: inline-flex; align-items: center; gap: 5px; background: #10264ca6; color: var(--white); border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(6px); }
.media-count svg { width: 13px; height: 13px; }
.horse-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.horse-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.horse-body h3 { font-size: 27px; margin: 8px 0 10px; }
.horse-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.horse-meta span { display: inline-flex; align-items: center; gap: 6px; }
.horse-meta svg { width: 14px; height: 14px; }
.horse-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 20px; }
.price small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.price strong { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--forest); line-height: 1.1; }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: .3s var(--ease); flex: none; }
.arrow-btn svg { width: 18px; height: 18px; }
.horse-card:hover .arrow-btn { background: var(--brass); border-color: var(--brass); color: var(--white); transform: rotate(-45deg); }

/* Photo placeholder */
.no-photo {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  background: radial-gradient(circle at 50% 40%, #fffdf8, var(--cream) 70%); color: var(--muted); font-size: 13px;
}
.no-photo .brandmark { width: 64px; height: 64px; font-size: 28px; opacity: .8; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #e9eef6 25%, #f4f6fa 50%, #e9eef6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; aspect-ratio: 4 / 4.4; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white); }
.empty h3 { font-size: 28px; color: var(--text); margin-bottom: 8px; }
.notice { background: var(--brass-soft); color: #244b89; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; line-height: 1.55; }
.notice.preview { margin-bottom: 22px; }

/* About */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-card {
  position: absolute; right: -30px; bottom: 40px; background: var(--forest); color: var(--white);
  border-radius: 18px; padding: 24px 28px; box-shadow: var(--shadow-lg); max-width: 250px;
}
.about-card strong { display: block; font-family: var(--display); font-size: 46px; color: var(--brass-2); line-height: 1; font-weight: 500; }
.about-card span { font-size: 13px; color: #cdd5cb; }
.pillars { display: grid; gap: 22px; margin-top: 34px; }
.pillar { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.pillar i { width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brass); }
.pillar i svg { width: 22px; height: 22px; }
.pillar h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; letter-spacing: 0; margin: 4px 0 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: 14px; }

/* How it works */
.how { background: #fff; color: var(--text); position: relative; overflow: hidden; }
.how::before { content: 'MC'; position: absolute; right: -40px; top: -80px; font-family: var(--display); font-size: 460px; line-height: 1; color: #17356f08; pointer-events: none; }
.how .lead { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 26px; border: 1px solid #e2e8f1; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px -24px #10264c55; transition: transform .32s var(--ease), box-shadow .32s, border-color .32s; }
.step::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 3px 0 0 3px; background: #315b9a; opacity: .4; transition: opacity .25s; }
.step:hover { background: #fff; border-color: #a9bddc; transform: translateY(-5px); box-shadow: 0 18px 34px -24px #10264c66; }
.step:hover::before { opacity: 1; }
.step b { font-family: var(--display); font-size: 46px; font-weight: 800; color: #315b9a; line-height: 1; }
.step h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; margin: 18px 0 8px; letter-spacing: 0; color: var(--forest); }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Events */
.event-list { display: grid; gap: 22px; }
.event-card {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: 360px;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.event-img { background: var(--cream); position: relative; min-height: 260px; }
.event-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card.featured-event { border-color: #dfe6f1; box-shadow: 0 18px 55px -38px #10264c66; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.event-card.featured-event:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -36px #10264c66; }
.featured-event .event-img { display: grid; place-items: center; background: #392f22; overflow: hidden; }
.featured-event .event-img img { position: static; display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; transition: transform .7s var(--ease); }
.featured-event:hover .event-img img { transform: scale(1.025); }
.featured-event .event-copy { padding: clamp(28px, 4vw, 54px); }
.featured-event .event-copy h3 { color: var(--forest); }
.featured-event .event-meta { margin: 2px 0 24px; }
.event-copy { padding: 50px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.event-copy h3 { font-size: clamp(28px, 3vw, 36px); margin: 14px 0 12px; }
.event-copy p { color: var(--muted); margin: 0 0 22px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.event-meta span { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--forest); }
.event-meta svg { width: 15px; height: 15px; color: var(--brass); }

/* CTA */
.cta { padding: 0 0 110px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; color: var(--white);
  padding: 70px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: #fafaf8; color: var(--text); border: 1px solid var(--line);
}
.cta-box h2 { font-size: clamp(30px, 3.5vw, 44px); max-width: 620px; margin-top: 14px; }
.cta-box p { color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.cta-box .eyebrow { color: var(--forest); }

/* Footer */
.footer { background: var(--ink); color: #c6cdc4; padding: 80px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer .brand { color: var(--white); margin-bottom: 20px; }
.footer p { margin: 0; color: #9aa59a; max-width: 340px; }
.footer h4 { color: var(--white); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 6px 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a:hover { color: var(--brass-2); }
.copyright { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: 12.5px; color: #7e897f; }

.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 35;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white);
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px #25d36699; transition: transform .3s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: #10264ca6; backdrop-filter: blur(6px); }
.modal.show { display: flex; animation: fade .25s ease; }
.modal-box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--paper); border-radius: 22px; padding: 40px; box-shadow: var(--shadow-lg);
  animation: pop .35s var(--ease);
}
.modal-box.wide { width: min(820px, 100%); }
.modal-box h2 { font-size: 38px; margin: 12px 0 8px; }
.modal-box > p, .modal-sub { color: var(--muted); margin: 0 0 6px; font-size: 14.5px; }
.close-btn { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); display: grid; place-items: center; transition: .2s; z-index: 3; }
.close-btn:hover { background: var(--brass-soft); transform: rotate(90deg); }
.close-btn svg { width: 18px; height: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full, .form > .btn, .form > .notice, .form > .form-actions { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: #4d574f; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 12px;
  padding: 13px 15px; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 4px #244b891f; }
.field textarea { min-height: 110px; resize: vertical; }
.field small, .hint { font-size: 12px; color: var(--muted); }
.field .error { color: var(--danger); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; }
.divider-text { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.quick-bids { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-bids button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; }
.quick-bids button:hover { border-color: var(--brass); color: var(--brass); }
.bid-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 4px; }
.bid-summary div { background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.bid-summary small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.bid-summary strong { font-family: var(--display); font-size: 28px; color: var(--forest); }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Photo manager (admin) */
.photo-manager { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .cover-tag { position: absolute; left: 6px; top: 6px; background: var(--brass); color: var(--white); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; }
.photo-slot .slot-actions { position: absolute; inset: auto 6px 6px; display: flex; gap: 5px; justify-content: flex-end; }
.photo-slot .slot-actions button { border: 0; background: #10264ccc; color: var(--white); border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; }
.photo-slot .slot-actions button:hover { background: var(--forest); }
.photo-add { display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 1; border: 1.5px dashed #c4d0e2; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; padding: 8px; transition: .2s; }
.photo-add:hover { border-color: var(--brass); color: var(--brass); background: #244b890d; }
.photo-add svg { width: 22px; height: 22px; }
.video-preview { display: flex; gap: 12px; align-items: center; margin-top: 8px; padding: 10px; background: var(--cream); border-radius: 12px; font-size: 13px; }
.video-preview img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }

/* Horse detail page */
.detail { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; display: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-box, .admin-main { overscroll-behavior: contain; }
.header { padding-top: env(safe-area-inset-top); }
body.locked .whatsapp-fab { display: none; }
.detail.show { display: block; animation: fade .3s ease; }
.detail-top { position: sticky; top: 0; z-index: 5; background: #ffffffee; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.detail-top .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; font-weight: 700; font-size: 14px; color: var(--forest); padding: 8px 0; }
.back-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.back-btn:hover svg { transform: translateX(-4px); }
.detail-top-actions { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; transition: .2s; }
.icon-btn:hover { border-color: var(--forest); }
.icon-btn svg { width: 18px; height: 18px; }
.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr); grid-template-rows: auto 1fr;
  grid-template-areas: "gallery info" "video info"; column-gap: 56px; padding: 40px 0 90px; align-items: start;
}
.gallery-wrap { grid-area: gallery; min-width: 0; }
.detail-info { grid-area: info; }
.detail-layout .video-block { grid-area: video; min-width: 0; }
.filter-toggle { display: none; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--cream); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; animation: fade .35s ease; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #ffffffe6; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .2s; }
.gallery-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav.prev { left: 16px; } .gallery-nav.next { right: 16px; }
.gallery-counter { position: absolute; right: 16px; bottom: 16px; background: #10264cb3; color: var(--white); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb { flex: none; width: 96px; aspect-ratio: 4/3; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--cream); opacity: .65; transition: .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--brass); opacity: 1; }
.video-block { margin-top: 44px; }
.video-block h2 { font-size: 32px; margin: 10px 0 18px; }
.yt-lite { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--ease); }
.yt-lite:hover img { opacity: .95; transform: scale(1.03); }
.yt-lite .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--brass); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 12px #244b8940; transition: .3s var(--ease); }
.yt-lite:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.yt-lite .play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; display: block; background: #000; }
.yt-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--moss); }
.yt-link:hover { color: var(--brass); }
.yt-link svg { width: 14px; height: 14px; }
.detail-info { position: sticky; top: 104px; }
.detail-info h1 { font-size: clamp(40px, 4.4vw, 62px); margin: 14px 0 12px; }
.detail-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.detail-loc svg { width: 17px; height: 17px; color: var(--brass); }
.price-card { margin: 28px 0; padding: 26px; border-radius: 18px; background: var(--forest); color: var(--white); position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid #244b8940; }
.price-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-card small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9b5a8; }
.price-card strong { display: block; font-family: var(--display); font-size: 50px; font-weight: 500; color: var(--brass-2); line-height: 1.05; margin: 6px 0 4px; }
.price-card .hint { color: #a9b5a8; font-size: 13px; }
.price-card .btn { margin-top: 20px; position: relative; z-index: 1; }
.price-card .badge { position: static; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.spec-grid div { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.spec-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-grid span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.spec-grid b { font-size: 15px; }
.detail-desc { margin-top: 30px; }
.detail-desc h3 { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.detail-desc p { color: #4f5850; white-space: pre-line; margin: 0; font-size: 15.5px; line-height: 1.75; }
.detail-contact { display: flex; gap: 10px; margin-top: 26px; }
.detail-contact .btn { flex: 1; }
.mobile-bar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: #10264cf5; display: none; align-items: center; justify-content: center; }
.lightbox.show { display: flex; animation: fade .25s; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 8px; }
.lightbox .gallery-nav { background: #ffffff1a; color: var(--white); }
.lightbox .gallery-nav:hover { background: #ffffff33; }
.lightbox .close-btn { background: #ffffff1a; color: var(--white); }
.lightbox .gallery-counter { bottom: 24px; right: 50%; transform: translateX(50%); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--forest); color: var(--white); padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: .35s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* Account */
.account-head { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--forest); color: var(--brass-2); display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 600; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #eaf0fa; color: #244b89; }
.pill.ok { background: #e2efe4; color: var(--success); }
.pill.no { background: #f5e3df; color: var(--danger); }
.pill.muted { background: #eef1f6; color: var(--muted); }

/* Admin */
.admin { position: fixed; inset: 0; z-index: 70; background: #f4f6fa; display: none; overflow: hidden; }
.admin.show { display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: var(--forest); color: #cdd6cc; padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar .brand { color: var(--white); padding: 0 10px 26px; }
.sidebar .brand-logo { width: 150px; padding: 4px; }
.side-label { font-size: 10px; font-weight: 800; letter-spacing: .2em; color: #9aafd0; padding: 18px 12px 8px; }
.side-btn { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; text-align: left; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: inherit; transition: .2s; }
.side-btn svg { width: 18px; height: 18px; opacity: .8; }
.side-btn:hover { background: #ffffff0d; color: var(--white); }
.side-btn.active { background: #ffffff14; color: var(--white); box-shadow: inset 3px 0 var(--brass); }
.side-btn .count { margin-left: auto; background: var(--brass); color: var(--white); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.sidebar .spacer { flex: 1; }
.admin-main { overflow-y: auto; padding: 44px clamp(20px, 4vw, 56px) 80px; }
.admin-main-in { max-width: 1200px; margin: 0 auto; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.admin-head h1 { font-size: 46px; }
.admin-head p { color: var(--muted); margin: 6px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat strong { display: block; font-family: var(--display); font-size: 46px; font-weight: 500; line-height: 1.1; margin-top: 6px; color: var(--forest); }
.panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.site-editor { display: grid; gap: 18px; }
.site-editor-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.site-editor-card h2 { font: 800 16px var(--sans); margin: 0 0 6px; color: var(--forest); }
.site-editor-card > p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.site-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-fields .field { min-width: 0; }
.site-fields .site-field-wide { grid-column: 1 / -1; }
.site-fields .field span { font-size: 12px; font-weight: 700; color: #4d574f; }
.site-fields input, .site-fields textarea { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 13px 15px; font: 14px var(--sans); outline: none; }
.site-fields input:focus, .site-fields textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 4px #244b891f; }
.site-fields textarea { resize: vertical; min-height: 88px; }
.site-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-image-field { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.site-image-field strong, .site-image-field small { display: block; }
.site-image-field strong { font-size: 13px; }
.site-image-field small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.site-image-field img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 9px; background: var(--cream); }
.site-image-field .btn { grid-column: 1 / -1; justify-self: start; }
.site-save-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding: 4px 2px; }
.site-save-row span { font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 22px; background: #f7f9fc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f7f9fc; }
.table .sub { color: var(--muted); font-size: 12.5px; }
.cell-horse { display: flex; align-items: center; gap: 14px; }
.cell-horse .thumb-sm { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--cream); flex: none; }
.cell-horse .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.cell-horse .thumb-sm .no-photo { font-size: 0; gap: 0; }
.cell-horse .thumb-sm .no-photo .brandmark { width: 26px; height: 26px; font-size: 11px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.row-actions button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; color: var(--forest); transition: .2s; }
.row-actions button:hover { border-color: var(--forest); }
.row-actions button.ok { background: var(--forest); color: var(--white); border-color: var(--forest); }
.row-actions button.danger:hover { border-color: var(--danger); color: var(--danger); }
.admin-mobile-top { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .control:first-child { grid-column: 1 / -1; }
  .horse-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 50px; }
  .about-card { right: 16px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "info" "video"; row-gap: 32px; }
  .detail-layout .video-block { margin-top: 8px; }
  .detail-info { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--text); padding: 10px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-6px); opacity: 0; pointer-events: none; transition: .18s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav > a::after { display: none; }
  .nav .btn-account { margin-top: 16px; background: var(--forest) !important; color: var(--white) !important; }
  .header.menu-open { background: var(--paper); color: var(--text); }
  .header.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .header.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 80px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 4 / 3; }
  .event-card { grid-template-columns: 1fr; }
  .event-copy { padding: 34px 28px; }
  .featured-event .event-img { min-height: 0; }
  .featured-event .event-img img { width: min(100%, 440px); max-height: 560px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 50px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .admin.show { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { flex-direction: row; padding: 10px; gap: 6px; overflow-x: auto; }
  .sidebar .brand, .side-label, .sidebar .spacer { display: none; }
  .side-btn { width: auto; white-space: nowrap; padding: 10px 14px; }
  .side-btn.active { box-shadow: inset 0 -2px var(--brass); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { width: calc(100% - 32px); }
  .header-in { height: 70px; }
  .nav { inset: 70px 0 auto; }
  .brand-logo { width: 72px; padding: 2px; }
  .hero { min-height: 0; display: block; padding-bottom: 256px; }
  .hero-bg { inset: auto 16px 16px; height: 224px; background-position: 68% center; border-radius: 16px; }
  .hero-content { padding: 42px 0 24px; }
  .hero h1 { font-size: clamp(32px, 8.3vw, 38px); max-width: 100%; margin: 14px 0 16px; line-height: 1.14; }
  .hero p { font-size: 14px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: 34px; }
  .hero-stats div { padding: 14px 8px 0 0; }
  .hero-stats div + div { padding-left: 12px; }
  .hero-stats strong { font-size: 26px; }
  .hero-stats span { font-size: 11px; line-height: 1.35; display: block; margin-top: 4px; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; padding: 8px; }
  .filters .control:first-child { grid-column: auto; }
  .filters .control:not(:first-child), #clearFilters { display: none; }
  .filters.open .control, .filters.open #clearFilters { display: block; grid-column: 1 / -1; }
  .filters.open #clearFilters { display: inline-flex; }
  .filter-toggle { display: inline-flex; height: 48px; padding: 0 18px; }
  .control input, .control select, .field input, .field select, .field textarea { font-size: 16px; }
  .horse-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .about-card { position: relative; right: auto; bottom: auto; margin: -50px 16px 0; }
  .event-copy h3 { font-size: 28px; }
  .cta { padding-bottom: 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 22px 22px 0 0; padding: 30px 20px calc(26px + env(safe-area-inset-bottom)); max-height: 92vh; max-height: 92dvh; }
  .bid-summary strong { font-size: 24px; }
  .detail-info h1 { font-size: 40px; }
  .price-card strong { font-size: 42px; }
  .video-block h2 { font-size: 26px; }
  .yt-lite, .yt-frame { border-radius: 14px; }
  .whatsapp-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .modal-box h2 { font-size: 32px; padding-right: 40px; }
  .form { grid-template-columns: 1fr; }
  .photo-manager { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { padding: 0 0 110px; }
  .detail .gallery-wrap { margin: 0 -16px; }
  .gallery-main { border-radius: 0; }
  .thumbs { padding: 0 16px 4px; }
  .thumb { width: 74px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .price-card .btn { display: none; }
  .mobile-bar {
    display: flex; position: fixed; inset: auto 0 0; z-index: 6; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px #10264c33;
  }
  .mobile-bar strong { font-family: var(--display); font-size: 26px; color: var(--forest); display: block; line-height: 1; }
  .mobile-bar small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .lightbox img { max-width: 100vw; max-height: 80vh; border-radius: 0; }
  .lightbox .gallery-nav.prev { left: 8px; } .lightbox .gallery-nav.next { right: 8px; }
  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .admin-head h1 { font-size: 36px; }
  .site-editor-card { padding: 18px; }
  .site-images, .site-fields { grid-template-columns: 1fr; }
  .site-fields .site-field-wide { grid-column: auto; }
  .site-save-row .btn { width: 100%; justify-content: center; }
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 36px; }
  .table th, .table td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
