/* ===== theme structure: corners / hero layouts / caps / toggles / new components ===== */
.btn, .input, .select, .textarea, .chip { border-radius: var(--radius); }
.frame, .panel, .pillar, .breed-chip, .modal, .note-banner, .stat, .service { border-radius: var(--radius); }
.frame, .card-img, .promo-sheets .ps { overflow: hidden; }
.card-img { border-radius: calc(var(--radius) * .6); }
.flank > span, .flank > h2, .flank > h3, .pillar h3, .breed-chip b, .site-footer h4 { text-transform: var(--caps, uppercase); }
[data-mode="light"] .hero-mark { display: none; }
.foot-bottom { border-top: 1px solid rgba(var(--rn-gold-rgb), .2); color: var(--rn-band-text); }

/* day / night toggle (lives in the dark header band) */
.theme-toggle { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(var(--rn-gold-rgb), .4); color: var(--rn-band-gold); border-radius: var(--radius); margin-left: 6px; cursor: pointer; transition: .2s; flex: none; }
.theme-toggle:hover { background: rgba(var(--rn-gold-rgb), .18); color: var(--rn-band-hi); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; }
.theme-toggle .sun { display: none; }
[data-mode="dark"] .theme-toggle .sun { display: block; }
[data-mode="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 1040px) { .theme-toggle { margin: 14px 0 0; width: 100%; } .theme-toggle::after { content: attr(data-label); margin-left: 10px; font-family: var(--font-tag); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; } }

/* hero: centred headline above the photo */
[data-hero="center"] .hero .wrap { grid-template-columns: 1fr; text-align: center; }
[data-hero="center"] .hero .cta { justify-content: center; }
[data-hero="center"] .hero p.lead { margin-left: auto; margin-right: auto; }
[data-hero="center"] .hero-card { max-width: 880px; margin: 0 auto; width: 100%; }
/* hero: full-bleed photo behind the headline */
[data-hero="full"] .hero { min-height: min(86vh, 700px); display: flex; align-items: center; }
[data-hero="full"] .hero .wrap { grid-template-columns: 1fr; position: static; width: 100%; }
[data-hero="full"] .hero .hero-card { position: absolute; inset: 0; z-index: 0; }
[data-hero="full"] .hero .hero-card .frame { position: absolute; inset: 0; aspect-ratio: auto !important; border: 0; box-shadow: none; border-radius: 0; }
[data-hero="full"] .hero .hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--rn-band-bg-rgb), .93) 0%, rgba(var(--rn-band-bg-rgb), .72) 42%, rgba(var(--rn-band-bg-rgb), .12) 100%); pointer-events: none; z-index: 1; }
[data-hero="full"] .hero .wrap > div:first-child { position: relative; z-index: 2; max-width: 620px; }
[data-hero="full"] .hero .wrap > div:first-child .tag-line { color: var(--rn-band-gold); }
[data-hero="full"] .hero h1 { background: linear-gradient(180deg, var(--rn-band-hi), var(--rn-band-gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
[data-hero="full"] .hero p.lead { color: var(--rn-band-text); }
[data-hero="full"] .hero .btn:not(.solid) { color: var(--rn-band-hi); border-color: var(--rn-band-gold); }
[data-hero="full"] .hero .hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; }
[data-hero="full"] .hero .hero-cap { z-index: 2; left: auto; right: 0; max-width: 46%; background: transparent; flex-direction: column; align-items: flex-end; padding: 0 28px 52px; text-align: right; }
@media (max-width: 900px) { [data-hero="full"] .hero .hero-cap { display: none; } [data-hero="full"] .hero .hero-card::after { background: rgba(var(--rn-band-bg-rgb), .8); } }

/* hours / socials / services / CTA band / gallery */
.hours { display: grid; gap: 2px; margin-top: 4px; font-size: .98rem; }
.hours div { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; border-bottom: 1px dashed var(--rn-line-soft); }
.hours div span:last-child { color: var(--rn-muted); }
.hours div.today { color: var(--rn-champagne); font-weight: 700; }
.hours div.today span:last-child { color: var(--rn-champagne); }
.site-footer .hours div { border-color: rgba(var(--rn-gold-rgb), .2); } .site-footer .hours div span:last-child { color: var(--rn-band-text); } .site-footer .hours div.today { color: var(--rn-band-hi); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--rn-gold-rgb), .45); border-radius: var(--radius); color: var(--rn-frame-gold); transition: .2s; }
.socials a:hover { background: rgba(var(--rn-gold-rgb), .18); color: var(--rn-champagne); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; stroke: currentColor; }
.site-footer .socials a { color: var(--rn-band-gold); } .site-footer .socials a:hover { color: var(--rn-band-hi); }
.cta-band { background: var(--rn-slate); border-top: 1px solid var(--rn-line-soft); border-bottom: 1px solid var(--rn-line-soft); text-align: center; padding: clamp(40px, 6vw, 70px) 0; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--rn-muted); max-width: 56ch; margin: 0 auto 24px; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { padding: 28px 22px; border: 1px solid var(--rn-line-soft); background: var(--rn-charcoal); }
.service svg { width: 40px; height: 40px; stroke: var(--rn-frame-gold); margin-bottom: 12px; }
.service h3 { font-family: var(--font-display); text-transform: var(--caps, uppercase); letter-spacing: .1em; color: var(--rn-champagne); font-weight: 500; font-size: 1rem; margin-bottom: 8px; }
.service p { color: var(--rn-muted); font-size: .98rem; }
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .services { grid-template-columns: 1fr; } }
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; position: relative; border: 2px solid var(--rn-frame-gold); border-radius: calc(var(--radius) * .6); overflow: hidden; background: #000; cursor: zoom-in; }
.masonry figure img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); color: #F0D8B4; font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; opacity: 0; transition: .25s; }
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { opacity: 1; }
@media (hover: none) { .masonry figcaption { opacity: 1; } }
.lightbox .cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #F0D8B4; font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 0 16px; }
.lightbox .cap a { color: #F0D8B4; text-decoration: underline; margin-left: 12px; font-family: var(--font-tag); font-size: .8rem; letter-spacing: .12em; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0 30px; }
.chips-row button { border: 1px solid var(--rn-line); background: transparent; color: var(--rn-ivory); padding: 8px 16px; border-radius: 40px; font-family: var(--font-tag); letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }
.chips-row button:hover { border-color: var(--rn-frame-gold); }
.chips-row button.on { background: var(--rn-frame-gold); color: var(--rn-on-gold); border-color: var(--rn-frame-gold); font-weight: 600; }

[data-hero] .hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

body { overflow-x: clip; }

.actions .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.actions .three .btn { padding: 9px 6px; font-size: .72rem; letter-spacing: .08em; }

/* keep horses' heads in frame when a photo is cropped to a wide or tall box */
.hero-slide img, .card-img img, .gallery-main img { object-position: 50% 28%; }
[data-hero="full"] .hero .hero-slide img { object-position: 50% 22%; }
.masonry figure img { object-position: 50% 25%; }

/* phones: the "full-bleed" hero would bury the photo under a dark overlay, so show the photo framed above the text instead */
@media (max-width: 900px) {
  [data-hero="full"] .hero { display: block; min-height: 0; }
  [data-hero="full"] .hero .wrap { grid-template-columns: 1fr; position: relative; }
  [data-hero="full"] .hero .hero-card { position: relative; inset: auto; width: 100%; }
  [data-hero="full"] .hero .hero-card .frame { position: relative; inset: auto; aspect-ratio: 4 / 3 !important; border: 3px solid var(--rn-frame-gold); box-shadow: var(--rn-shadow); border-radius: var(--radius); }
  [data-hero="full"] .hero .hero-card::after { display: none; }
  [data-hero="full"] .hero .wrap > div:first-child { max-width: none; }
  [data-hero="full"] .hero .wrap > div:first-child .tag-line { color: var(--rn-antique-gold); }
  [data-hero="full"] .hero h1 { background: var(--rn-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  [data-hero="full"] .hero p.lead { color: var(--rn-text-soft); }
  [data-hero="full"] .hero .btn:not(.solid) { color: var(--rn-champagne); border-color: var(--rn-frame-gold); }
  [data-hero="full"] .hero .hero-dots { position: static; margin-top: 16px; }
  [data-hero="full"] .hero .hero-cap { display: flex; position: absolute; left: 0; right: 0; bottom: 0; max-width: none; flex-direction: row; align-items: flex-end; text-align: left; padding: 36px 16px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); z-index: 2; }
}
