:root {
  --navy: #122d49;
  --navy-deep: #0b2034;
  --ink: #172332;
  --cream: #f4f1e9;
  --paper: #fbfaf6;
  --sky: #b8d6dc;
  --gold: #d0aa5f;
  --orange: #e87b42;
  --line: rgba(18,45,73,.18);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: 82px; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 82px; padding: .45rem 4.5vw;
  display: grid; grid-template-columns: minmax(295px,355px) 1fr minmax(190px,245px); align-items: center; gap: 1.8rem;
  color: white; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.24); box-shadow: 0 4px 18px rgba(8,24,39,.12);
}
.brand-lockup { display: flex; align-items: center; gap: 1.25rem; }
.brand-lockup > span { width: 1px; height: 50px; flex: 0 0 1px; background: rgba(255,255,255,.35); }
.brand img { width: 215px; }
.five-park-logo { width: 80px; max-height: 58px; object-fit: contain; filter: invert(1) brightness(3); }
.header-title { grid-column: 2; margin: 0; text-align: center; text-transform: uppercase; letter-spacing: .035em; font-family: var(--serif); font-size: clamp(1.45rem,1.85vw,2.25rem); font-weight: 400; line-height: 1; }
.header-title span { display: block; margin-top: .35rem; color: var(--gold); font-family: var(--sans); font-size: .56rem; font-weight: 650; letter-spacing: .22em; }

.hero {
  min-height: 79vh; position: relative; display: flex; align-items: flex-end; overflow: hidden; color: white;
  background: url('/assets/fivepark-pool-sunset.jpg') center 56% / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,19,32,.48) 0%,rgba(5,19,32,.2) 48%,rgba(5,19,32,.02) 78%),linear-gradient(0deg,rgba(5,19,32,.28),transparent 58%); }
.hero-content { position: relative; z-index: 2; width: min(1050px,82vw); padding: 0 4.5vw 8vh; }
.eyebrow { margin: 0 0 1rem; color: var(--navy); text-transform: uppercase; letter-spacing: .21em; font-size: .68rem; font-weight: 650; }
.eyebrow.light { color: white; }
h1,h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
.hero h1 { margin: 0; font-size: clamp(4.4rem,7.5vw,8.8rem); line-height: .87; }
.hero h1 em { font-weight: 400; color: #d5e8eb; }
.hero-copy { width: min(610px,100%); margin: 1.7rem 0; font-size: 1.05rem; line-height: 1.62; }
.text-link { display: inline-flex; gap: 1.8rem; align-items: center; text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; padding-bottom: .48rem; border-bottom: 1px solid currentColor; }
.text-link span { font-size: 1rem; }
.qr-access { justify-self: end; display: flex; align-items: center; gap: .9rem; padding: 0; color: white; background: transparent; }
.qr-link { display: block; line-height: 0; }
.qr-placeholder { width: 62px; height: 62px; }
.qr-access span,.qr-access small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .53rem; }
.qr-access strong { display: block; margin: .28rem 0; color: var(--gold); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.qr-access small { color: #aebdc7; font-size: .48rem; }

.compact-section { padding: 6rem 4.5vw; position: relative; }
.section-label { position: absolute; left: 4.5vw; top: 6rem; width: 12rem; display: flex; justify-content: space-between; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--navy); }
.section-label span { color: var(--orange); font-size: .7rem; }
.section-label p { margin: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .61rem; }
.intro-copy,.calendar-head,.services-head { margin-left: 18vw; max-width: 1080px; }
.intro-copy h2,.calendar-head h2,.services-head h2,.digital h2,.rhythm-heading h2,.gallery-copy h2 { margin: 0 0 1.5rem; font-size: clamp(3.2rem,5.3vw,6.4rem); line-height: .93; }
.intro-copy .lead { max-width: 860px; margin: 0; font-family: var(--serif); font-size: clamp(1.3rem,1.9vw,1.9rem); line-height: 1.45; color: #37485a; }
.pillars { margin: 4rem 0 0 18vw; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars article { min-height: 160px; padding: 1.5rem 1.25rem 1.5rem 0; border-right: 1px solid var(--line); }
.pillars article + article { padding-left: 1.25rem; }
.pillars article:last-child { border-right: 0; }
.pillars span { color: var(--orange); font-family: var(--serif); font-size: 1.5rem; }
.pillars p { margin: 1.6rem 0 0; color: #5e6974; font-size: .82rem; line-height: 1.5; }

.rhythm-section { padding: 5rem 4.5vw; background: var(--navy); color: white; display: grid; grid-template-columns: .6fr 1.4fr; gap: 4vw; }
.rhythm-heading { align-self: center; }
.rhythm-heading h2 { font-size: clamp(3.4rem,4.5vw,5.7rem); }
.rhythm-heading > p:last-child { max-width: 440px; margin: 0; color: #c9d4db; line-height: 1.65; }
.rhythm-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.photo-card { position: relative; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; background-size: cover; background-position: center; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(6,20,33,.86),rgba(6,20,33,.06) 72%); }
.cafe-card { background-image: url('/assets/fivepark-cafe-flora.jpg'); }
.canopy-card { background-image: url('/assets/fivepark-terrace.jpg'); }
.wellness-card { background-image: url('/assets/fivepark-wellness.jpg'); }
.photo-card > div { position: relative; z-index: 1; padding: 1.6rem; }
.photo-card div > p { margin: 0 0 .7rem; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .6rem; }
.photo-card h3 { margin: 0 0 .7rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; }
.photo-card span { color: #e0e6e9; font-size: .78rem; line-height: 1.55; }

.calendar { background: var(--cream); }
.calendar-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 4rem; }
.calendar-head > p { max-width: 420px; margin: 0 0 1.7rem; color: #5c6770; line-height: 1.65; }
.calendar-controls { margin: 2.8rem 0 0 18vw; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.month-tabs { display: flex; gap: 2.5rem; }
.month-tabs button { cursor: pointer; border: 0; border-bottom: 3px solid transparent; padding: 0 0 .9rem; background: none; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: #68737c; }
.month-tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--orange); }
.filter-label { display: flex; gap: .8rem; align-items: center; padding-bottom: .75rem; color: #6b757e; text-transform: uppercase; letter-spacing: .13em; font-size: .61rem; }
.filter-label select { appearance: none; min-width: 175px; border: 0; padding: .2rem 1.3rem .2rem 0; color: var(--navy); background: transparent; font-weight: 650; }
.recurring-rhythm { margin: 1.4rem 0 0 18vw; padding: 1rem 1.2rem; display: flex; gap: 1.2rem; align-items: baseline; background: var(--navy); color: white; }
.recurring-rhythm strong { flex: 0 0 auto; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .63rem; }
.recurring-rhythm span { font-size: .78rem; line-height: 1.45; }
.event-list { margin: .8rem 0 0 18vw; }
.week-group { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); }
.week-date { padding: 1.5rem 1rem 1.5rem 0; }
.week-date p { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.week-date span { display: block; margin-top: .35rem; color: #778189; text-transform: uppercase; letter-spacing: .12em; font-size: .61rem; }
.week-events { border-left: 1px solid var(--line); }
.event-card { width: 100%; display: grid; grid-template-columns: 150px 1fr 28px; gap: 1.3rem; align-items: center; padding: 1.15rem 1.35rem; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; color: inherit; cursor: pointer; }
.event-card:hover,.event-card:focus-visible { background: rgba(255,255,255,.78); outline: 0; }
.event-time { color: var(--navy); font-family: var(--serif); font-size: 1rem; line-height: 1.45; }
.event-name strong { display: block; margin-bottom: .25rem; font-family: var(--serif); font-size: 1.28rem; font-weight: 400; }
.event-name small { color: #6d7780; text-transform: uppercase; letter-spacing: .11em; font-size: .61rem; }
.event-name em { display: block; max-width: 760px; margin-top: .42rem; color: #56636e; font-size: .75rem; font-style: normal; line-height: 1.45; }
.event-arrow { color: var(--orange); font-size: 1.15rem; }
.empty-state { padding: 2.5rem; font-family: var(--serif); font-size: 1.4rem; }

.season-gallery { display: grid; grid-template-columns: 1.15fr .78fr 1.07fr; min-height: 570px; background: var(--navy); color: white; }
.season-gallery figure { position: relative; margin: 0; min-height: 570px; overflow: hidden; }
.season-gallery img { width: 100%; height: 100%; object-fit: cover; }
.season-gallery figcaption { position: absolute; left: 1.4rem; bottom: 1.4rem; padding: .55rem .75rem; color: white; background: rgba(9,29,47,.72); text-transform: uppercase; letter-spacing: .14em; font-size: .59rem; }
.gallery-copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.gallery-copy h2 { font-size: clamp(2.7rem,3.4vw,4.5rem); }
.gallery-copy > p:last-child { color: #cbd5db; font-size: .86rem; line-height: 1.7; }

.services { color: white; background: #183a59; }
.light-label { color: white; border-color: rgba(255,255,255,.3); }
.services-head > p:last-child { max-width: 620px; color: #cad5db; line-height: 1.65; }
.service-grid { margin: 3.5rem 0 0 18vw; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); }
.service-grid article { min-height: 205px; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.24); }
.service-grid article:first-child { padding-left: 0; }
.service-grid article:last-child { border-right: 0; }
.service-grid span { color: var(--gold); font-size: .68rem; }
.service-grid h3 { margin: 2.6rem 0 .6rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.service-grid p { margin: 0; color: #cbd6dc; font-size: .78rem; line-height: 1.55; }

.digital { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 620px; background: var(--paper); }
.digital-image { min-height: 620px; background: url('/assets/fivepark-terrace.jpg') center / cover no-repeat; }
.digital-copy { align-self: center; padding: 4rem 6vw; }
.digital-copy h2 { font-size: clamp(3.2rem,4.5vw,5.5rem); }
.digital-copy > p:not(.eyebrow) { max-width: 590px; margin: 0 0 2rem; color: #5a6570; line-height: 1.7; }

footer { padding: 3.2rem 4.5vw 2rem; display: grid; grid-template-columns: 245px 1fr auto; gap: 2.5rem; align-items: center; color: white; background: var(--navy-deep); }
footer img { width: 220px; }
footer p { margin: .22rem 0; color: #bfcbd1; font-size: .72rem; }
footer a { text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .61rem; }
.credit { grid-column: 1/-1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .59rem; }

dialog { width: min(850px,calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px rgba(0,0,0,.28); overflow: auto; }
dialog::backdrop { background: rgba(8,24,39,.74); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 3; right: 1rem; top: 1rem; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 4px 18px rgba(8,24,39,.22); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dialog-visual { position: relative; height: min(38vh,340px); overflow: hidden; background: var(--navy); }
.dialog-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(7,24,39,.58),transparent 58%); }
.dialog-visual img { width: 100%; height: 100%; object-fit: cover; }
.dialog-visual span { position: absolute; z-index: 1; left: 2rem; bottom: 1.4rem; color: white; text-transform: uppercase; letter-spacing: .15em; font-size: .59rem; }
.dialog-content { padding: 2.3rem 3rem 2.8rem; }
dialog h2 { margin: 0 0 1rem; font-size: clamp(2.5rem,5vw,4.2rem); line-height: 1; }
.dialog-description { max-width: 700px; color: #4f5d68; font-size: .94rem; line-height: 1.72; }
dialog dl { margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
dialog dl div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
dialog dt { color: #6e7880; text-transform: uppercase; letter-spacing: .12em; font-size: .61rem; }
dialog dd { margin: 0; font-family: var(--serif); }

@media (max-width: 1050px) {
  body { padding-top: 78px; }
  .site-header { grid-template-columns: minmax(255px,.9fr) 1.2fr auto; height: 78px; gap: 1.2rem; }
  .brand img { width: 185px; }
  .five-park-logo { width: 68px; }
  .brand-lockup { gap: .8rem; }
  .brand-lockup > span { height: 44px; }
  .header-title { grid-column: 2; font-size: 1.35rem; }
  .qr-access > div:last-child { display: none; }
  .qr-placeholder { width: 58px; height: 58px; }
  .section-label { position: static; width: 100%; margin-bottom: 3rem; }
  .intro-copy,.calendar-head,.services-head,.pillars,.calendar-controls,.recurring-rhythm,.event-list,.service-grid { margin-left: 0; }
  .rhythm-section { grid-template-columns: 1fr; }
  .calendar-head { grid-template-columns: 1fr; gap: 0; }
  .season-gallery { grid-template-columns: 1fr 1fr; }
  .gallery-copy { grid-column: 1/-1; grid-row: 1; min-height: 320px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid article:nth-child(2) { border-right: 0; }
  .service-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.24); }
}

@media (max-width: 700px) {
  body { padding-top: 76px; }
  .site-header { grid-template-columns: minmax(142px,1.15fr) minmax(100px,.85fr) 46px; height: 76px; gap: .55rem; padding: .45rem 4vw; }
  .brand-lockup { grid-column: 1; gap: .48rem; }
  .brand img { width: 104px; }
  .five-park-logo { width: 42px; max-height: 40px; }
  .brand-lockup > span { height: 32px; }
  .header-title { grid-column: 2; grid-row: 1; text-align: left; font-size: .78rem; line-height: .95; }
  .header-title span { margin-top: .28rem; font-size: .38rem; letter-spacing: .13em; }
  .qr-access { grid-column: 3; grid-row: 1; }
  .hero { min-height: 76vh; }
  .hero-content { width: 100%; padding-bottom: 7vh; }
  .hero h1 { font-size: clamp(3.6rem,15vw,5.5rem); }
  .qr-placeholder { width: 46px; height: 46px; }
  .compact-section { padding: 4.5rem 6vw; }
  .pillars { grid-template-columns: 1fr 1fr; margin-top: 3rem; }
  .pillars article { min-height: 155px; border-bottom: 1px solid var(--line); }
  .rhythm-section { padding: 4.5rem 6vw; }
  .rhythm-cards { grid-template-columns: 1fr; }
  .photo-card { min-height: 390px; }
  .calendar-controls { align-items: flex-start; gap: 1.5rem; flex-direction: column; }
  .month-tabs { width: 100%; justify-content: space-between; gap: .4rem; }
  .recurring-rhythm { align-items: flex-start; flex-direction: column; }
  .week-group { grid-template-columns: 1fr; }
  .week-date { padding-bottom: .6rem; }
  .week-events { border-left: 0; }
  .event-card { grid-template-columns: 1fr 24px; gap: .55rem 1rem; padding: 1rem 0; }
  .event-time { grid-column: 1; }
  .event-arrow { grid-column: 2; grid-row: 1/3; }
  .season-gallery { grid-template-columns: 1fr; }
  .season-gallery figure { min-height: 400px; }
  .gallery-copy { grid-column: auto; grid-row: auto; min-height: 330px; padding: 3rem 6vw; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); padding-left: 0; }
  .digital { grid-template-columns: 1fr; }
  .digital-image { min-height: 440px; }
  .digital-copy { padding: 4.5rem 6vw; }
  footer { grid-template-columns: 1fr; }
  .dialog-visual { height: 260px; }
  .dialog-content { padding: 1.8rem 1.5rem 2rem; }
  .dialog-visual span { left: 1.5rem; }
}

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