/* ==========================================================================
   Orchid Springs Village — public site styles
   ========================================================================== */

:root {
  --plum: #2B0F3A;
  --plum-2: #451B5C;
  --orchid: #B8327F;
  --orchid-2: #D9479A;
  --violet: #8B4FD1;
  --tint: #E8D7F1;
  --peach: #E9A6CB;
  --sky: #7FD3E8;
  --cream: #FBF6F0;
  --mist: #F3E9F6;
  --line: rgba(43, 15, 58, .12);
  --text: #2B0F3A;
  --muted: #6B5874;
  --white: #fff;
  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 18px 50px -18px rgba(43, 15, 58, .35);
  --shadow-sm: 0 6px 20px -8px rgba(43, 15, 58, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --head: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--cream); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--orchid); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--head); line-height: 1.05; letter-spacing: -.005em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons & chips ---------- */
.btn { --bg: var(--plum); --fg: #fff; display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--orchid), var(--violet)); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(0) scale(.97); }
.btn .i { transition: transform .35s var(--spring); }
.btn:hover .i { transform: translateX(4px) rotate(-8deg); }
.btn-tint { --bg: var(--tint); --fg: var(--plum); }
.btn-tint::before { background: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); }
.btn-ghost::before { background: var(--plum); }
.btn-ghost:hover { color: #fff; }
.btn-light { --bg: rgba(255,255,255,.14); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-sm { padding: .65em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--orchid); margin-bottom: 1.1em; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .38em .85em; border-radius: 999px; background: var(--mist); color: var(--plum-2); font-size: .82rem; font-weight: 700; }
.chip.tint { background: var(--tint); color: var(--plum); }
.chip.peach { background: #FBE3F0; color: #8D1E5C; }
.chip.sky { background: #D8F2F9; color: #0D5466; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 100; transition: transform .45s var(--ease); }
.site-header.hide { transform: translateY(-130%); }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 20px; border-radius: 999px; background: rgba(251, 246, 240, .78); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-sm); border: 1px solid rgba(43,15,58,.08); }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font: 700 1.15rem/1 var(--head); letter-spacing: -.005em; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform .8s var(--spring); }
.brand:hover .brand-mark { transform: rotate(144deg) scale(1.08); }
.brand small { display: block; font: 600 .68rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: .6em .95em; border-radius: 999px; color: var(--plum); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; transition: background .25s, color .25s; }
.nav-links a:hover { background: var(--mist); }
.nav-links a[aria-current="page"] { background: var(--plum); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .35s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: grid; }
  .nav .btn-portal { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .nav .btn-portal span { display: none; }
  .nav-open .btn-portal { visibility: hidden; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: var(--plum);
    clip-path: circle(0 at calc(100% - 46px) 40px); transition: clip-path .7s var(--ease); }
  .nav-open .nav-links { clip-path: circle(150% at calc(100% - 46px) 40px); }
  .nav-links a { color: #fff; font: 700 clamp(1.8rem, 7vw, 2.6rem)/1.2 var(--head); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); }
  .nav-open .nav-links a { opacity: 1; transform: none; }
  .nav-open .nav-links li:nth-child(2) a { transition-delay: .05s; } .nav-open .nav-links li:nth-child(3) a { transition-delay: .1s; }
  .nav-open .nav-links li:nth-child(4) a { transition-delay: .15s; } .nav-open .nav-links li:nth-child(5) a { transition-delay: .2s; }
  .nav-open .nav-links li:nth-child(6) a { transition-delay: .25s; } .nav-open .nav-links li:nth-child(7) a { transition-delay: .3s; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent; color: var(--tint); }
  .nav-open .brand { color: #fff; position: relative; z-index: 1; }
  .nav-open .brand small { color: rgba(255,255,255,.6); }
  .nav-open .nav { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; }
  .nav-open .nav-toggle { background: var(--tint); color: var(--plum); }
  body.nav-open { overflow: hidden; }
}

/* ---------- loader (home only) ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--plum); color: #fff; transition: clip-path 1s var(--ease) .1s, visibility 0s 1.2s;
  clip-path: inset(0 0 0 0 round 0); }
.loader.done { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); visibility: hidden; }
.loader-inner { display: grid; justify-items: center; text-align: center; }
.loader-bloom { width: 190px; height: 190px; overflow: visible; }
/* each part grows out of the flower's heart; rotation lives on the parent <g>, so it is never overridden */
.loader-bloom .part { transform-box: view-box; transform-origin: 60px 60px; transform: scale(0) rotate(-24deg); opacity: 0; animation: unfurl .9s var(--spring) forwards; }
.loader-bloom .column { transform-box: view-box; transform-origin: 60px 62px; transform: scale(0); animation: pop .55s var(--spring) 1.05s forwards; }
.loader-bloom .flower { transform-box: view-box; transform-origin: 60px 64px; animation: sway 3.2s ease-in-out 1.5s infinite; }
.loader-bloom .glow { transform-box: view-box; transform-origin: 60px 60px; transform: scale(.4); opacity: 0; animation: glow 2.4s ease-in-out .6s infinite; }
.loader-bloom .spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: spark 1.8s ease-in-out infinite; }
.loader-word { margin-top: 14px; font: 700 1.35rem/1.2 var(--head); letter-spacing: -.01em; display: flex; white-space: nowrap; overflow: hidden; padding: 2px 4px 4px; }
.loader-word span { display: inline-block; opacity: 0; transform: translateY(105%); animation: rise .6s var(--ease) forwards; }
.loader-bar { width: 170px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); margin: 18px auto 0; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tint), var(--orchid-2)); border-radius: inherit; transition: width .4s var(--ease); }
@keyframes unfurl { 0% { transform: scale(0) rotate(-24deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.03); } }
@keyframes glow { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1); opacity: .9; } }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.3) translateY(4px); } 50% { opacity: 1; transform: scale(1.2) translateY(-4px); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }
body.loading { overflow: hidden; }

/* ---------- home hero: text + photo collage, always one screen tall ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; max-height: 1000px; display: flex; align-items: center; padding: 92px 0 28px; overflow: hidden;
  background: radial-gradient(circle at 88% 18%, #F6DCEB 0, transparent 42%), radial-gradient(circle at 6% 92%, #EADDF6 0, transparent 38%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: .6em; font: 600 .8rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--orchid); margin: 0 0 clamp(10px, 2.2vh, 20px); }
.hero h1 { font-weight: 700; font-size: clamp(2.1rem, min(4.6vw, 7.6vh), 4.6rem); line-height: .98; margin-bottom: clamp(10px, 2.2vh, 22px); }
.hero h1 em { color: var(--orchid); font-style: italic; font-weight: 700; }
.hero-lead { font-size: clamp(1rem, min(1.45vw, 2.3vh), 1.2rem); color: var(--muted); max-width: 33em; margin: 0; }
.hero .hero-actions { margin-top: clamp(16px, 3.4vh, 30px); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 36px; padding: clamp(14px, 2.8vh, 24px) 0 0; margin: clamp(18px, 3.8vh, 38px) 0 0; border-top: 1px dashed var(--line); }
.hero-facts b { display: block; font: 700 clamp(1.25rem, 2.8vh, 1.7rem)/1.1 Arial, Helvetica, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--plum); }
.hero-facts span { font-size: .86rem; color: var(--muted); }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 600px; height: min(calc(100svh - 150px), 620px); }
.hero-art .shot { position: absolute; overflow: hidden; background: var(--mist); box-shadow: var(--shadow); }
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.hero-art .shot:hover img { transform: scale(1.01); }
.shot-a { inset: 0 16% 20% 0; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; animation: morph 14s ease-in-out infinite; }
.shot-b { width: 48%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 30px; border: 8px solid var(--cream); rotate: 4deg; }
.shot-c { width: 28%; aspect-ratio: 1; right: 4%; top: 2%; border-radius: 50%; border: 6px solid var(--cream); }
@keyframes morph { 50% { border-radius: 58% 42% 52% 48% / 44% 58% 42% 56%; } }
/* entrance: plays as soon as the loader lifts; content is visible without JavaScript */
.js .hero-copy > *, .js .hero-art > * { opacity: 0; animation: hero-in 1s var(--ease) forwards; animation-play-state: paused; }
.js .hero-copy > * { transform: translateY(24px); }
.js .hero-art > * { transform: scale(.9); }
.js body:not(.loading) .hero-copy > *, .js body:not(.loading) .hero-art > * { animation-play-state: running; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .22s; } .hero-copy > :nth-child(4) { animation-delay: .34s; } .hero-copy > :nth-child(5) { animation-delay: .46s; }
.hero-art > :nth-child(1) { animation-delay: .15s; } .hero-art > :nth-child(2) { animation-delay: .35s; } .hero-art > :nth-child(3) { animation-delay: .5s; }
.js .hero-art .shot-a { animation: hero-in 1s var(--ease) .15s forwards, morph 14s ease-in-out 1.2s infinite; animation-play-state: paused; }
.js body:not(.loading) .hero-art .shot-a { animation-play-state: running; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
.banner-scroll { position: absolute; left: 50%; bottom: clamp(10px, 2.4vh, 26px); translate: -50% 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--line); background: rgba(255,255,255,.6); animation: nudge 2.4s ease-in-out infinite; }
.banner-scroll:hover { background: #fff; }
@keyframes nudge { 50% { transform: translateY(6px); } }
/* tablets and phones: photo strip on top, text below, still one screen */
@media (max-width: 960px) {
  .hero { align-items: flex-start; padding-top: 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(14px, 2.6vh, 26px); }
  .hero-art { order: -1; justify-self: stretch; max-width: none; height: clamp(150px, 30svh, 340px); }
  .shot-a { inset: 0 30% 0 0; border-radius: 26px; animation: none; }
  .js .hero-art .shot-a { animation: hero-in 1s var(--ease) .15s forwards; animation-play-state: paused; }
  .shot-b { width: auto; height: 78%; right: 0; bottom: 0; rotate: 3deg; border-width: 6px; }
  .shot-c { width: auto; height: 46%; right: 20%; top: -2%; border-width: 5px; }
  .hero h1 { font-size: clamp(1.9rem, min(7.4vw, 5.4vh), 3rem); }
  .banner-scroll { display: none; }
}
@media (max-width: 960px) and (max-height: 760px) { .hero-facts { display: none; } }
@media (max-width: 600px) {
  .hero-art { height: clamp(140px, 26svh, 260px); }
  .hero .hero-actions .btn-ghost { display: none; }   /* the document portal stays one tap away in the header */
  .hero-lead { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 20px; }
  .hero-facts b { font-size: 1.2rem; } .hero-facts span { font-size: .76rem; }
}
@media (max-width: 960px) and (max-height: 620px) { .hero-lead { display: none; } .hero-art { height: 24svh; } }
@media (min-width: 961px) and (max-height: 640px) { .hero-facts { display: none; } .hero-art { height: calc(100svh - 120px); } }
@media (max-height: 460px) { .hero { min-height: 0; } .hero-art { display: none; } .hero-grid { grid-template-columns: 1fr; } .hero-lead, .hero-facts { display: none; } .hero h1 { font-size: clamp(2rem, 12vh, 3rem); } }

/* ---------- events carousel ---------- */
.carousel-nav { display: flex; align-items: center; gap: 8px; }
.carousel { overflow: hidden; margin: 0 -6px; padding: 6px; }
.carousel-track { display: flex; gap: 20px; transition: transform .7s var(--ease); will-change: transform; }
.carousel-track > * { flex: 0 0 calc((100% - 40px) / 3); }
@media (max-width: 960px) { .carousel-track > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 620px) { .carousel-track > * { flex-basis: 100%; } }
.ev-slide { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none; min-height: 230px; transition: transform .45s var(--spring), box-shadow .45s var(--ease); }
.ev-slide:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ev-slide-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-slide .ev-date { width: 62px; height: 66px; border-radius: 16px; }
.ev-slide h3 { margin: 4px 0 0; font-size: 1.45rem; line-height: 1.15; }
.ev-slide .meta { display: grid; gap: 4px; color: var(--muted); font-size: .92rem; }
.ev-slide .meta span { display: flex; align-items: center; gap: 7px; }
.ev-slide p { margin: 0; color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Home "What's coming up": compact band, Arial headings */
.events-band.section { padding: clamp(32px, 5vh, 60px) 0; }
.events-band .section-head { margin-bottom: clamp(16px, 2.5vh, 28px); }
.events-band h2, .events-band .ev-slide h3 { font-family: Arial, Helvetica, sans-serif; letter-spacing: -.01em; }
.events-band h2 { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.events-band .ev-slide { min-height: 0; padding: 18px 20px; gap: 8px; }
.events-band .ev-slide .ev-date { width: 52px; height: 54px; border-radius: 14px; }
.events-band .ev-slide h3 { font-size: 1.15rem; font-weight: 700; margin: 2px 0 0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(110px, 16vh, 150px) 0 clamp(30px, 6vh, 70px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); max-width: 24ch; }
.page-hero p { max-width: 40em; color: var(--muted); font-size: 1.15rem; }
.page-hero .crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumbs a { color: inherit; }
.page-hero-img { margin-top: clamp(24px, 4vh, 46px); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; max-height: 42vh; width: 100%; box-shadow: var(--shadow); }
.page-hero-img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 8vh, 110px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 30px; margin-bottom: clamp(22px, 4.5vh, 50px); flex-wrap: wrap; }
.section-head h2 { max-width: 26ch; margin: 0; }
.section-head > div:first-child { flex: 1 1 24em; min-width: 0; }
.section-head p { max-width: 30em; color: var(--muted); margin: 0; }
.bg-mist { background: var(--mist); }
.bg-plum { background: var(--plum); color: #fff; }
.bg-plum .eyebrow { color: var(--tint); }
.bg-plum .section-head p, .bg-plum .muted { color: rgba(255,255,255,.72); }
.muted { color: var(--muted); }

/* ---------- split / story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-wide { grid-template-columns: 1.4fr 1fr; }
.split > * { min-width: 0; }
.stack-img { position: relative; aspect-ratio: auto; height: min(70vh, 600px); }
.stack-img img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.stack-img img:first-child { inset: 0 22% 14% 0; width: 78%; height: 86%; }
.stack-img img:last-child { width: 55%; height: 48%; right: 0; bottom: 0; border: 7px solid var(--cream); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/15px no-repeat; }

/* ---------- cards (news, events, board, docs) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line); position: relative; transition: transform .45s var(--spring), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.card .body { color: var(--muted); font-size: .97rem; white-space: pre-line; }
.card.pinned { box-shadow: inset 0 0 0 2px var(--orchid); }
.date-badge { flex: none; width: 66px; border-radius: 16px; overflow: hidden; text-align: center; background: var(--mist); font-family: var(--head); }
.date-badge b { display: block; background: var(--orchid); color: #fff; font-size: .72rem; letter-spacing: .12em; padding: 5px 0; text-transform: uppercase; }
.date-badge span { display: block; font-size: 1.7rem; font-weight: 800; padding: 6px 0 8px; line-height: 1; }
.event-row { display: flex; gap: 18px; align-items: flex-start; }
.empty { text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty .i { width: 40px; height: 40px; color: var(--orchid); margin: 0 auto 10px; }
.skeleton { background: linear-gradient(90deg, #efe6f2 25%, #f8f2fa 50%, #efe6f2 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); min-height: 140px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- gallery ---------- */
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--mist); }
.masonry img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; }
.masonry figure:hover img { transform: scale(1.06); filter: saturate(1.2); }
.masonry figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.92); font-size: .88rem; font-weight: 600;
  transform: translateY(calc(100% + 14px)); transition: transform .45s var(--spring); }
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(23, 6, 32, .94); display: grid; place-items: center; padding: 60px 16px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox img { max-height: 80vh; max-width: min(1200px, 100%); border-radius: 18px; transform: scale(.94); transition: transform .5s var(--spring); }
.lightbox.open img { transform: none; }
.lightbox p { color: #fff; text-align: center; margin-top: 14px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.lightbox button:hover { background: var(--orchid); transform: scale(1.1); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 24px; font: 700 1rem/1.4 var(--head); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--orchid); font-size: 1.4rem; transition: transform .4s var(--spring), background .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--tint); color: var(--plum); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); white-space: pre-line; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: var(--radius-lg); padding: clamp(30px, 4.5vw, 56px); background: linear-gradient(100deg, rgba(36,10,50,.94) 0%, rgba(52,17,72,.82) 45%, rgba(74,30,98,.45) 100%), url("../img/photos/building-panorama.webp") center 55% / cover no-repeat; color: #fff; overflow: hidden; isolation: isolate; }
.cta h2 { max-width: 24ch; }
.cta p { max-width: 34em; color: rgba(255,255,255,.88); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: #fff; font: inherit; color: var(--text);
  box-shadow: 0 0 0 1px var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 5px rgba(139,79,209,.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #D33F49; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: .95rem; display: none; }
.notice.show { display: block; animation: pop-in .45s var(--spring); }
.notice.ok { background: #F1E6F7; color: #5B2A78; }
.notice.err { background: #FDE3E6; color: #9A1B2A; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.panel { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }

/* ---------- contact / info list ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.6); transition: transform .4s var(--spring), background .3s; }
.info-list li:hover { transform: translateX(6px); background: #fff; }
.info-list .ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--tint); color: var(--plum); display: grid; place-items: center; }
.info-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.bg-plum .info-list li { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff; }
.bg-plum .info-list li:hover { background: rgba(255,255,255,.13); }
.bg-plum .info-list b { color: var(--tint); }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); filter: saturate(.85) hue-rotate(-8deg); }

/* ---------- portal ---------- */
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--plum); display: grid; place-items: center; font: 700 1.1rem var(--head); }

/* ---------- board ---------- */
.board-card { text-align: center; }
.board-card .photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: linear-gradient(135deg, var(--orchid), var(--violet)); display: grid; place-items: center; color: #fff; font: 700 2.2rem var(--head);
  transition: transform .5s var(--spring), border-radius .5s var(--ease); }
.board-card:hover .photo { transform: rotate(-6deg) scale(1.05); border-radius: 38%; }
.board-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.board-card .role { color: var(--orchid); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }

/* ---------- calendar ---------- */
:root { --ev-management: #3B2A6B; --ev-service: #5B6478; --ev-social: #B8327F; --ev-landscaping: #4767A8; --ev-meeting: #7A4BC2; }
.events-layout { width: min(1440px, 100% - 32px); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.events-layout > * { min-width: 0; }
.ev-side { background: #fff; border-radius: var(--radius-lg); padding: 24px 18px 18px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.ev-side-head { padding: 0 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ev-side-head h3 { margin: 8px 0 0; font-size: 1.35rem; }
.ev-side-list { display: grid; gap: 6px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.ev-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: background .2s, transform .3s var(--spring); }
.ev-row:hover { background: var(--cream); transform: translateX(4px); }
.ev-date { flex: none; width: 50px; height: 54px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--evc, var(--orchid)); color: #fff; line-height: 1; }
.ev-date b { font: 700 1.3rem/1 var(--head); }
.ev-date small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .85; margin-top: 3px; }
.ev-txt { flex: 1; min-width: 0; }
.ev-txt b { display: block; font-size: .97rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-txt small { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--evc, var(--orchid)); }
.ev-slide.management { --evc: var(--ev-management); } .ev-slide.service { --evc: var(--ev-service); } .ev-slide.social { --evc: var(--ev-social); } .ev-slide.landscaping { --evc: var(--ev-landscaping); } .ev-slide.meeting { --evc: var(--ev-meeting); }
.ev-row.management { --evc: var(--ev-management); } .ev-row.service { --evc: var(--ev-service); } .ev-row.social { --evc: var(--ev-social); } .ev-row.landscaping { --evc: var(--ev-landscaping); } .ev-row.meeting { --evc: var(--ev-meeting); }
@media (max-width: 1180px) { .events-layout { grid-template-columns: 1fr; } .ev-side { position: static; } .ev-side-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.cal-card { overflow: hidden; background: #fff; border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 30px); box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-head h3 { margin: 0; min-width: 190px; text-align: center; font-size: 1.6rem; }
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; display: grid; place-items: center; color: var(--plum); transition: transform .3s var(--spring), background .2s; }
.icon-btn:hover { background: var(--tint); transform: scale(1.08); }
.cal-scroll { overflow-x: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-scroll .cal { min-width: 640px; }   /* only scrolls inside its wrapper; never pushes the page wider */
.cal .dow { text-align: center; font: 800 .74rem/1 var(--body); color: #fff; text-transform: uppercase; letter-spacing: .14em; padding: 14px 0; background: var(--plum); border-right: 1px solid rgba(255,255,255,.12); }
.cal .dow:last-of-type { border-right: 0; }
.cal .day { min-height: 118px; padding: 8px 7px; background: #fff; font-size: .85rem; border-right: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: background .25s; }
.cal .day:nth-child(7n + 7) { border-right: 0; }
.cal .day:hover { background: #FDFAFE; }
.cal .day.out { background: #F5EFF7; color: #A595AD; }
.cal .day.today { background: #F7EEF6; box-shadow: inset 0 0 0 2px var(--orchid); }
.cal .day .n { font-weight: 800; font-size: .82rem; margin: 0 0 2px 2px; }
.ev { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; padding: 5px 8px; border-radius: 8px; font: 700 .74rem/1.25 var(--body); color: #fff; background: var(--evc, var(--ev-social));
  border-left: 3px solid rgba(0,0,0,.22); overflow: hidden; transition: transform .25s var(--spring), filter .2s; }
.ev:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.08); }
.ev small { display: block; font-weight: 800; opacity: .85; font-size: .68rem; letter-spacing: .02em; }
.ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.management, .ev-pill.management, .lg.management { --evc: var(--ev-management); }
.ev.service, .ev-pill.service, .lg.service { --evc: var(--ev-service); }
.ev.social, .ev-pill.social, .lg.social { --evc: var(--ev-social); }
.ev.landscaping, .ev-pill.landscaping, .lg.landscaping { --evc: var(--ev-landscaping); }
.ev.meeting, .ev-pill.meeting, .lg.meeting { --evc: var(--ev-meeting); }
.ev-pill { display: inline-flex; align-items: center; gap: 6px; padding: .35em .85em; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #fff; background: var(--evc, var(--ev-social)); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .86rem; margin-top: 16px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: var(--evc); }
.ev-dialog { border: 0; max-width: 560px; width: calc(100% - 32px); padding: 32px; }
.ev-dialog::backdrop { background: rgba(43, 15, 58, .55); backdrop-filter: blur(4px); }
.ev-card-row { cursor: pointer; }

/* ---------- modal (sign-in popup, viewer) ---------- */
.modal { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(32, 10, 44, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--cream); border-radius: 30px; padding: 34px clamp(20px, 4vw, 36px) 28px;
  box-shadow: 0 40px 90px -30px rgba(43,15,58,.6); opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .35s, transform .5s var(--spring); }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--plum); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--spring), background .2s; z-index: 2; }
.modal-close:hover { background: var(--tint); transform: rotate(90deg); }
.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head h3 { font-size: 1.7rem; margin: 12px 0 4px; }
.modal-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.modal-mark { width: 58px; height: 58px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--orchid), var(--violet)); box-shadow: 0 12px 30px -10px rgba(184,50,127,.6); animation: pop .6s var(--spring); }
.modal-mark .i { width: 26px; height: 26px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 18px; background: var(--mist); margin-bottom: 22px; }
.auth-tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 12px; font: 700 1rem var(--body); color: var(--muted); cursor: pointer; border-radius: 14px; transition: color .3s; }
.auth-tabs button[aria-selected="true"] { color: var(--plum); }
.auth-tabs-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--spring); }
.auth-tabs[data-on="register"] .auth-tabs-pill { transform: translateX(100%); }
.auth-tabs[data-on="forgot"] .auth-tabs-pill { opacity: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover { color: var(--orchid); background: var(--mist); }
.form-aux { display: flex; justify-content: flex-end; margin-top: -6px; }
.text-btn { border: 0; background: none; padding: 0; font: 700 .92rem var(--body); color: var(--orchid); cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-btn:hover { color: var(--violet); }
.btn-block { width: 100%; justify-content: center; padding: 1.05em 1.5em; }
.auth-foot { text-align: center; color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
body.no-scroll { overflow: hidden; }
.viewer-card { width: min(1100px, 100%); height: calc(100vh - 32px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.viewer-head { display: flex; align-items: center; gap: 10px; padding: 14px 70px 14px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.viewer-head b { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-head .modal-close { top: 9px; }
.viewer-body { flex: 1; background: #3a2a44; }
.viewer-body iframe, .viewer-body img { width: 100%; height: 100%; border: 0; object-fit: contain; display: block; }
.viewer-body .empty { margin: 40px; background: #fff; }
@media (max-width: 560px) { .viewer-head .btn span, .viewer-head #viewerOpen { display: none; } }

/* ---------- document library ---------- */
.gate-ic { flex: none; width: 52px; height: 52px; border-radius: 20px; display: grid; place-items: center; background: var(--tint); color: var(--plum); margin-bottom: 20px; }
.gate-ic .i { width: 28px; height: 28px; }
.docs-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 34px; align-items: start; }
.docs-layout > * { min-width: 0; }
.docs-side { position: sticky; top: 100px; }
.kicker { font: 800 .74rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px 4px; }
.docs-cats { display: grid; gap: 6px; }
.docs-cats button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; padding: 13px 14px; border-radius: 16px; background: transparent; color: var(--plum); font: 700 .98rem var(--body); cursor: pointer; transition: background .25s, color .25s, transform .3s var(--spring); }
.docs-cats button:hover { background: #fff; transform: translateX(4px); }
.docs-cats button .ci { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mist); color: var(--orchid); }
.docs-cats button .nm { flex: 1; }
.docs-cats button .ct { flex: none; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--mist); font-size: .8rem; }
.docs-cats button[aria-current="true"] { background: var(--plum); color: #fff; box-shadow: var(--shadow-sm); }
.docs-cats button[aria-current="true"] .ci { background: rgba(255,255,255,.12); color: var(--tint); }
.docs-cats button[aria-current="true"] .ct { background: rgba(255,255,255,.16); }
.docs-search { position: relative; margin-bottom: 18px; }
.docs-search .i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.docs-search input { width: 100%; padding: 18px 20px 18px 54px; border-radius: 20px; border: 0; background: #fff; font: inherit; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.docs-search input:focus { outline: none; box-shadow: 0 0 0 2px var(--violet), 0 0 0 7px rgba(139,79,209,.14); }
.docs-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.docs-subtabs button { border: 0; padding: .7em 1.15em; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 700 .92rem var(--body); color: var(--plum); cursor: pointer; transition: all .25s var(--ease); }
.docs-subtabs button:hover { transform: translateY(-2px); }
.docs-subtabs button.active { background: var(--orchid); color: #fff; box-shadow: 0 8px 20px -8px rgba(184,50,127,.6); }
.docs-count { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.docs-list { display: grid; gap: 12px; }
.doc { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 22px; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--spring), box-shadow .35s; animation: rise-in .6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.doc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.doc .ext { position: relative; flex: none; width: 58px; height: 74px; border-radius: 10px 18px 10px 10px; display: grid; place-items: center; font: 700 .74rem var(--head); text-transform: uppercase; background: var(--mist); color: var(--orchid); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.doc .ext.thumb { background: #fff; }
.doc .ext img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc .ext em { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; text-align: center; font-style: normal; font-size: .64rem; color: #fff; background: var(--orchid); }
.doc .ext.pdf { color: #B4232F; background: #FDE3E6; } .doc .ext.xlsx, .doc .ext.xls, .doc .ext.csv { background: #EDE3F4; color: #4A1F6B; } .doc .ext.docx, .doc .ext.doc { background: #DDE9FB; color: #1E4FA3; }
.doc-meta { min-width: 0; flex: 1; }
.doc-meta b { display: block; font: 700 1.08rem/1.3 var(--head); letter-spacing: -.01em; margin-bottom: 4px; }
.doc-meta span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.doc .arrow { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--plum); transition: background .25s, transform .35s var(--spring); }
.doc:hover .arrow { background: var(--tint); transform: translateX(4px); }
.docs-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 22px; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 18px; }
  .docs-side { position: static; }
  .docs-cats { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .docs-cats button { flex: none; width: auto; }
  .docs-cats button .ci { display: none; }
}
@media (max-width: 560px) { .doc { gap: 12px; padding: 14px; } .doc .arrow { display: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: rgba(255,255,255,.75); padding: 90px 0 30px; margin-top: 40px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s, padding .3s var(--ease); }
.site-footer a:hover { color: var(--tint); padding-left: 4px; }
.foot-big { font: 700 clamp(3rem, 12vw, 10rem)/.85 var(--head); letter-spacing: -.005em; color: rgba(255,255,255,.06); margin-top: 60px; white-space: nowrap; text-align: center; user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.site-footer .brand { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transform: translateY(100px) rotate(-90deg); transition: transform .5s var(--spring); }
.to-top.show { transform: none; }
.to-top:hover { transform: translateY(-4px) scale(1.06); background: var(--orchid); }

/* ---------- reveal animations ---------- */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="zoom"] { transform: scale(.88); }
.js [data-reveal].in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-words .w > span { display: inline-block; }
.js .split-words .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--base, 0ms)); }
.js .split-words.in .w > span { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .stack-img { max-width: none; height: clamp(220px, 34vh, 360px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .page-hero-img { aspect-ratio: 4/3; }
  .nav { padding-left: 14px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .js [data-reveal], .split-words .w > span, .js .split-words .w > span { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .to-top, .loader { display: none !important; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero { background: linear-gradient(180deg, #F4ECF5 0%, var(--cream) 100%); }
.icon-btn:disabled { opacity: .4; pointer-events: none; }
.cta .eyebrow { color: var(--tint); }

/* ---------- amenities (about page) ---------- */
.amenities { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 48px); align-items: stretch; }
.amenity-photo { margin: 0; min-height: 260px; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.amenity-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.amenity-photo:hover img { transform: scale(1.04); }
.amenity-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); font-weight: 600; font-size: .9rem; }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amenity-list li { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--spring), box-shadow .3s; }
.amenity-list li:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.amenity-list .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--orchid); }
.amenity-list b { display: block; font: 600 1.15rem/1.2 var(--head); margin-bottom: 4px; }
.amenity-list div { color: var(--muted); font-size: .94rem; }
@media (max-width: 960px) { .amenities { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .amenity-list { grid-template-columns: 1fr; } }
.home-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .home-docs { grid-template-columns: 1fr; } }

/* home: About us fits one screen */
#about { padding: clamp(40px, 7vh, 90px) 0; }
#about .split { align-items: center; }
#about .stack-img { aspect-ratio: auto; height: min(74vh, 620px); }
#about h2 { font-size: clamp(1.65rem, min(2.8vw, 4.6vh), 2.6rem); }
#about .muted { margin-bottom: .8em; }
#about .checks { gap: 8px; margin-top: 16px; }
#about .btn { margin-top: 22px !important; }
@media (max-width: 960px) { #about { padding: 28px 0; } #about .split { gap: 22px; } #about .stack-img { height: clamp(200px, 26vh, 300px); max-width: none; } }
@media (max-width: 600px) { #about .stack-img { display: none; } #about .muted + .muted { display: none; } #about h2 { font-size: 1.4rem; } }   /* phones: text only so the section fits one screen */

/* home: gallery preview grid (6 photos, 4 on phones) */
.home-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--mist); }
.home-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.home-gallery figure:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .home-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .home-gallery figure:nth-child(n+5) { display: none; } }
@media (max-width: 380px) { #about h2 { font-size: 1.35rem; } #about .checks li { font-size: .9rem; line-height: 1.45; } #about .checks { gap: 6px; } #about .muted { font-size: .95rem; line-height: 1.55; } }

/* sections that only hold a call-to-action box need little vertical space */
.cta-section { padding: clamp(28px, 4vw, 56px) 0; }
.cta h2 { margin-bottom: .35em; }

/* document portal: notice shown to visitors who are not signed in */
.portal-signin { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 28px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.portal-signin .gate-ic { margin: 0; background: var(--mist); color: var(--orchid); }
.portal-signin > div:nth-child(2) { flex: 1 1 320px; color: var(--muted); }
.portal-signin b { color: var(--plum); }
.portal-signin .hero-actions { margin: 0; }
.docs-locked { padding: 34px 20px; text-align: center; border: 2px dashed var(--line); border-radius: 22px; color: var(--muted); }
.docs-locked .gate-ic { margin: 0 auto 12px; background: var(--mist); color: var(--orchid); }
.docs-locked .hero-actions { justify-content: center; margin-top: 16px; }

/* header account menu (signed in) */
.acct { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 12px); z-index: 120; min-width: 230px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); display: grid; gap: 2px; animation: pop-in .3s var(--spring); }
.acct-menu[hidden] { display: none; }
.acct-who { margin: 4px 10px 8px; font-size: .82rem; color: var(--muted); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font: 600 .95rem var(--body); color: var(--plum); text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--mist); }
.acct-menu [data-logout] { color: var(--orchid); }

/* every section fits one screen on laptops and desktops */
.home-gallery figure { aspect-ratio: auto; height: clamp(150px, calc((100vh - 300px) / 2), 320px); }
.cal .day { min-height: clamp(62px, calc((100vh - 330px) / 6), 118px); }
.policy { columns: 2 340px; column-gap: 48px; }
.policy h3 { break-after: avoid; }
.policy p { break-inside: avoid; }
@media (max-height: 950px) {
  .cal .ev { padding: 3px 6px; display: flex; gap: 5px; align-items: baseline; }
  .cal .ev small { display: inline; flex: none; }
  .info-list { gap: 10px; }
  .info-list li { padding: 13px 16px; }
  .panel { padding: clamp(20px, 3.4vh, 44px); }
  .form { gap: 12px; }
  .field textarea { min-height: 110px; }
  .map { min-height: 300px; }
}
.ev-more { border: 0; background: none; padding: 1px 6px; text-align: left; font: 700 .72rem var(--body); color: var(--orchid); cursor: pointer; border-radius: 6px; }
.ev-more:hover { background: var(--mist); }
.cal .day { position: relative; }
.cal .day .ev-more { position: absolute; top: 5px; right: 4px; }   /* sits beside the date, adds no height */
@media (max-height: 950px) {
  .cal .day { padding: 5px; gap: 3px; }
  .cal .day .n { line-height: 1.2; margin: 0 0 1px 2px; }
  .cal-card { padding: clamp(14px, 2.4vh, 30px); }
  .cal-head { margin-bottom: 10px; }
  .cal .dow { padding: 10px 0; }
  .legend { margin-top: 10px; }
}
@media (max-height: 800px) { .doc { padding: 11px 16px; gap: 14px; } .doc .ext { width: 48px; height: 60px; } .docs-search input { padding-top: 14px; padding-bottom: 14px; } .portal-signin { padding: 14px 18px; margin-bottom: 20px; } }
@media (max-height: 800px) { .docs-cats { gap: 3px; } .docs-cats button { padding: 8px 12px; } .docs-cats button .ci { width: 30px; height: 30px; } }
