/* CNHS public website — subtle, modern motion. Disabled for users who prefer reduced motion. */

@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow-drift { 0% { transform: translate(-10%, -10%) scale(1); } 50% { transform: translate(10%, 6%) scale(1.15); } 100% { transform: translate(-10%, -10%) scale(1); } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Hero entrance and ambience */
.hero::before {
    content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; right: -10%; top: -30%;
    background: radial-gradient(circle, rgba(212, 160, 23, .18), transparent 65%); border-radius: 50%;
    animation: glow-drift 18s ease-in-out infinite; pointer-events: none;
}
.hero__logo { animation: pop-in .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero__visual { animation: float 7s ease-in-out 1s infinite; }
.hero__eyebrow, .hero h1, .hero__address, .hero__tagline, .hero__actions { animation: rise-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero__eyebrow { animation-delay: .15s; }
.hero h1 { animation-delay: .25s; }
.hero__address { animation-delay: .35s; }
.hero__tagline { animation-delay: .45s; }
.hero__actions { animation-delay: .55s; }
.hero h1 {
    background: linear-gradient(100deg, #fff 40%, #f6e7b0 50%, #fff 60%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; animation: rise-in .8s cubic-bezier(.2, .8, .2, 1) .25s both, shine 6s linear 1.5s infinite;
}

/* Header gets compact with a shadow once the page scrolls */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header__inner { transition: min-height .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); background-color: var(--brand-deep); }
.site-header.is-scrolled .site-header__inner { min-height: 58px; }
.site-nav a { transition: background-color .2s ease, color .2s ease; }

/* Buttons */
.button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.button:active { transform: translateY(0); }

/* Cards: lift and photo zoom */
.card { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(122, 11, 16, .16); }
.card__media { overflow: hidden; }
.card__media img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__media img { transform: scale(1.06); }

/* Section titles get an animated gold underline */
.section__head h2 { position: relative; padding-bottom: 8px; }
.section__head h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px; background: var(--gold);
    transition: width .8s cubic-bezier(.2, .8, .2, 1) .1s;
}
.section__head.is-visible h2::after, .no-js .section__head h2::after { width: 56px; }

/* Scroll reveal (only when JavaScript is available, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Detail page photos */
.detail__hero img, .gallery img { transition: transform .5s ease; }
.detail__hero:hover img { transform: scale(1.02); }
.gallery a { overflow: hidden; border-radius: 10px; display: block; }
.gallery a:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero h1 { -webkit-text-fill-color: #fff; background: none; }
    .section__head h2::after { width: 56px; }
}
