/* Demo club pages: Membership, Golf, Events, Clubhouse. Loaded only on those pages. */

/* Demo bar */
.demo-bar { background: var(--green); color: var(--on-dark); font-size: 14px; }
.demo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.demo-bar strong { color: var(--cream); }
.demo-bar__toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; cursor: pointer; white-space: nowrap; }
.demo-bar__toggle input, .autopay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.demo-bar__switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #5b7a66; transition: background .2s; flex: none; }
.demo-bar__switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); transition: transform .2s; }
input:checked + .demo-bar__switch { background: var(--orange); }
input:checked + .demo-bar__switch::after { transform: translateX(18px); }
input:focus-visible + .demo-bar__switch { outline: 3px solid var(--orange); outline-offset: 2px; }

/* "What we build" callouts */
.hw-note {
	max-width: 380px; padding: 18px 20px 18px 22px;
	background: #fff4ee; border: 1.5px dashed var(--orange); border-radius: var(--radius);
	font-size: 15px; line-height: 1.5; color: var(--body);
}
.hw-note__label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.hw-note h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.split .hw-note { margin-top: 8px; }
.hide-notes .hw-note { display: none; }
.demo-section--green .hw-note { background: #1c3d29; color: var(--on-dark); }
.demo-section--green .hw-note h3 { color: var(--cream); }

/* Page hero */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.page-hero__title { font-weight: 900; font-size: clamp(44px, 7.4vw, 104px); line-height: .95; letter-spacing: -.04em; max-width: 12ch; margin-bottom: 28px; }
.page-hero .hero__lead { margin-bottom: 0; }
.page-hero__media { margin: clamp(40px, 6vw, 72px) 0 0; border-radius: var(--radius); overflow: hidden; }
.page-hero__media img { width: 100%; aspect-ratio: 2.6; object-fit: cover; }

/* Sections */
.demo-section { padding: var(--section) 0; }
.demo-section--sand { background: var(--sand); }
.demo-section--green { background: var(--green); color: var(--on-dark); }
.demo-section--green .section-title,
.demo-section--green h3 { color: var(--cream); }
.demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.demo-head .eyebrow { margin-bottom: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 72px; align-items: start; }
.split--wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split .section-title { margin-bottom: 20px; }
.split__lead { font-size: 18px; margin-bottom: 20px; max-width: 30em; }
@media (max-width: 900px) {
	.split, .split--wide { grid-template-columns: minmax(0, 1fr); }
}

.portal__label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.demo-section--green .portal__label { color: #8fa596; }
.booker__small { font-size: 13px; color: var(--muted); }
.btn--light { background: transparent; color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.cta__eyebrow { color: #fff; opacity: .85; }

/* Membership tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tier--featured { border: 2px solid var(--green); }
.tier__flag { position: absolute; top: -12px; left: 24px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tier h3 { font-size: 21px; font-weight: 800; }
.tier__price { font-weight: 900; font-size: 40px; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.tier__price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier p:not(.tier__price) { font-size: 15px; flex: 1; }
.tier .btn { align-self: flex-start; }

/* Member portal */
.portal { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -40px rgba(20, 48, 31, .45); overflow: hidden; }
.portal__signin { max-width: 460px; margin: 0 auto; padding: 64px 28px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.portal__signin h3 { font-size: 26px; font-weight: 900; }
.portal__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); background: #faf8f3; }
.portal__top .text-link { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-family: inherit; }
.portal__hello { font-weight: 800; font-size: 20px; color: var(--ink); }
.portal__meta { font-size: 14px; color: var(--muted); }
.portal__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.portal__card { padding: 28px; border-right: 1px solid var(--line); }
.portal__card:last-child { border-right: 0; }
@media (max-width: 1000px) {
	.portal__grid { grid-template-columns: minmax(0, 1fr); }
	.portal__card { border-right: 0; border-bottom: 1px solid var(--line); }
	.portal__card:last-child { border-bottom: 0; }
}
.portal__balance { display: grid; gap: 14px; align-content: start; }
.portal__amount { font-weight: 900; font-size: 48px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.portal__card-line { font-size: 14px; color: var(--muted); }
.portal__balance .btn { justify-self: start; }
.portal__paid { font-size: 14px; color: #1f7a3f; font-weight: 600; }
.autopay { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; margin-top: 4px; }
.statement { width: 100%; border-collapse: collapse; font-size: 15px; }
.statement td { padding: 10px 0; border-bottom: 1px solid #eee8dc; vertical-align: top; }
.statement td:first-child { color: var(--muted); white-space: nowrap; padding-right: 14px; font-size: 14px; }
.statement td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.statement tfoot td { border-bottom: 0; font-weight: 800; color: var(--ink); }
.portal__list li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid #eee8dc; font-size: 15px; }
.portal__list li:last-child { border-bottom: 0; }
.portal__list strong { color: var(--ink); }
.portal__list span { color: var(--muted); font-size: 14px; }

/* Forms */
.demo-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.demo-form input[type="text"],
.demo-form input[type="date"],
.demo-form select {
	width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
	padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--cream);
}
.demo-form input:focus,
.demo-form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 48, 31, .12); }
.demo-form input[type="range"] { accent-color: var(--orange); width: 100%; }
.demo-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) {
	.demo-form__row { grid-template-columns: 1fr; }
}
.demo-form .btn { justify-self: start; }
.demo-form__done { font-size: 15px; background: #fff4ee; border-radius: 8px; padding: 14px 16px; }
.demo-form__done a { color: var(--ink); font-weight: 700; }
.demo-form__fee { font-size: 14px; color: var(--muted); }
.quote__total { padding: 18px 20px; background: var(--sand); border-radius: 10px; }
.quote__price { font-weight: 900; font-size: 44px; letter-spacing: -.03em; color: var(--ink); line-height: 1.05; margin-bottom: 4px; }
.quote__warn { font-size: 14px; color: #b3401f; font-weight: 600; }

/* Tee-time booker */
.booker { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); }
.booker__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.booker__days,
.booker__players { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.booker__players span { font-size: 14px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.booker__days button,
.booker__players button,
.menu-tabs__list button {
	font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--cream);
	border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer;
}
.booker__players button { width: 42px; padding: 9px 0; }
.booker__days button[aria-pressed="true"],
.booker__players button[aria-pressed="true"],
.menu-tabs__list button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.booker__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.slot { display: grid; gap: 2px; text-align: left; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.slot strong { font-size: 16px; color: var(--ink); }
.slot span { font-size: 12px; color: #1f7a3f; font-weight: 600; }
.slot:hover:not(:disabled) { border-color: var(--green); background: #f3f7f2; }
.slot:disabled { background: #f5f3ee; cursor: not-allowed; }
.slot:disabled strong { color: #a8a699; text-decoration: line-through; }
.slot:disabled span { color: #a8a699; }
.booker__confirm { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; background: #f3f7f2; border-radius: 10px; }
.booker__confirm > div { flex: 1; min-width: 220px; }
.booker__confirm h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.booker__check { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--cream); font-size: 24px; font-weight: 900; }

/* Event lists (tournaments + calendar) */
.events-list { display: grid; gap: 12px; }
.events-list__item {
	display: grid; grid-template-columns: 120px minmax(0, 1fr) auto 150px; align-items: center; gap: 12px 24px;
	padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.events-list__date { font-family: var(--mono); font-size: 14px; color: var(--orange); }
.events-list__body h3 { font-size: 19px; font-weight: 800; margin-bottom: 2px; }
.events-list__body p { font-size: 15px; color: var(--muted); }
.events-list__item .btn { justify-self: end; }
.events-list--calendar .events-list__item { grid-template-columns: 72px minmax(0, 1fr) 130px; }
.events-list__date--block { display: grid; place-content: center; text-align: center; width: 64px; height: 64px; border-radius: 10px; background: var(--sand); font-family: var(--sans); font-weight: 900; font-size: 24px; color: var(--ink); line-height: 1; }
.events-list__date--block span { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
@media (max-width: 760px) {
	.events-list__item { grid-template-columns: minmax(0, 1fr) auto; }
	.events-list__date,
	.events-list__body { grid-column: 1 / -1; }
	.events-list--calendar .events-list__item { grid-template-columns: 64px minmax(0, 1fr); }
	.events-list--calendar .events-list__date,
	.events-list--calendar .events-list__body { grid-column: auto; }
	.events-list--calendar .btn { grid-column: 1 / -1; justify-self: start; }
}
.pill { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; justify-self: start; }
.pill--open { background: #e2f0e4; color: #1f7a3f; }
.pill--waitlist { background: #fdecd9; color: #a4521b; }
.pill--soon { background: #eceae3; color: var(--muted); }
.pill--results { background: var(--green); color: var(--cream); }

/* Leaderboard + scorecard */
.leaderboard { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 16px; box-shadow: 0 0 0 1px var(--line); }
.leaderboard th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); background: var(--green); text-align: left; padding: 14px 18px; }
.leaderboard td { padding: 14px 18px; border-top: 1px solid #eee8dc; font-variant-numeric: tabular-nums; }
.leaderboard td:nth-child(2) { font-weight: 700; color: var(--ink); }
.leaderboard td:last-child,
.leaderboard th:last-child { text-align: right; font-weight: 800; }
.leaderboard .under { color: #c23b1a; }
.leaderboard tbody tr:first-child { background: #fff8e6; }
@media (max-width: 520px) {
	.leaderboard th, .leaderboard td { padding: 12px 10px; }
}

.scorecard-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #3e5a47; }
.scorecard { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; text-align: center; }
.scorecard th, .scorecard td { padding: 12px 6px; border-left: 1px solid #2e4a38; }
.scorecard thead th { background: #1c3d29; color: var(--cream); font-weight: 700; }
.scorecard tbody th { text-align: left; padding-left: 16px; color: var(--cream); font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.scorecard td { color: var(--on-dark); border-top: 1px solid #2e4a38; }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; margin-top: 48px; }
.rates > div { border-top: 3px solid var(--orange); padding-top: 18px; }
.rates__price { font-weight: 900; font-size: 36px; color: var(--cream); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 4px; }
.rates p:last-child { font-size: 15px; }

/* Service lists, hours, menus, staff */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.service-list article { border-top: 3px solid var(--green); padding-top: 22px; }
.service-list h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.service-list p:not(.num) { font-size: 16px; }
.service-list--dark article { border-top-color: var(--orange); }

.hours { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.hours > div { display: flex; justify-content: space-between; gap: 4px 16px; padding: 16px 22px; border-top: 1px solid #eee8dc; flex-wrap: wrap; }
.hours > div:first-child { border-top: 0; }
.hours dt { font-weight: 800; color: var(--ink); }
.hours dd { margin: 0; color: var(--body); }

.menu-tabs__list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 8px 56px; }
.menu[hidden] { display: none; }
.menu__item { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu__item h3 { font-size: 19px; font-weight: 800; }
.menu__dots { border-bottom: 2px dotted #c8c0ad; transform: translateY(-4px); }
.menu__price { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.menu__desc { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }

.staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.staff > div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.staff__name { font-weight: 800; font-size: 19px; color: var(--ink); }

/* Pro lessons */
.tier__list { display: grid; gap: 6px; font-size: 14px; margin-bottom: 6px; }
.tier__list li { position: relative; padding-left: 20px; }
.tier__list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
#lessons .tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pros { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.pros__item { display: flex; align-items: center; gap: 14px; }
.pros__initials { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--cream); font-weight: 900; font-size: 16px; letter-spacing: .04em; flex: none; }
.pros__role { font-size: 14px; color: var(--muted); }

/* Clubhouse Shop */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 1000px) {
	.shop { grid-template-columns: minmax(0, 1fr); }
}
.shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: linear-gradient(160deg, #f6f2e9, #ece6d8); }
.product__media svg { width: 78%; height: auto; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__flag { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.product__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.product__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product__title h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.product__price { font-weight: 900; font-size: 18px; color: var(--ink); white-space: nowrap; }
.product__detail { font-size: 14px; color: var(--muted); margin-top: -4px; }
.product__options { display: flex; flex-wrap: wrap; gap: 8px; }
.product__options label { display: grid; gap: 3px; flex: 1 1 70px; }
.product__options span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product__options select { font: inherit; font-size: 14px; color: var(--ink); padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 7px; background: var(--cream); width: 100%; }
.product__add { margin-top: auto; justify-content: center; }

.cart { position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px -40px rgba(20, 48, 31, .45); }
@media (max-width: 1000px) {
	.cart { position: static; }
}
.cart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cart__head h3 { font-size: 20px; font-weight: 900; }
.cart__count { min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--green); color: var(--cream); font-weight: 800; font-size: 14px; }
.cart__empty { font-size: 15px; color: var(--muted); }
.cart__items { display: grid; }
.cart__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #eee8dc; }
.cart__item strong { display: block; font-size: 15px; color: var(--ink); }
.cart__item span { display: block; font-size: 13px; color: var(--muted); }
.cart__qty { display: inline-flex; align-items: center; gap: 2px; align-self: start; border: 1.5px solid var(--line); border-radius: 999px; }
.cart__qty button { width: 28px; height: 28px; border: 0; background: none; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; border-radius: 50%; }
.cart__qty button:hover { background: var(--sand); }
.cart__qty output { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }
.cart__line { grid-column: 1 / -1; font-weight: 700; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.cart__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.cart__row:first-child { padding-top: 14px; }
.cart__row--muted { color: #1f7a3f; }
.cart__row--total { font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--ink); }
.cart__pay { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.cart__pay legend { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cart__pay label { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; }
.cart__pay input { accent-color: var(--green); }
.cart__checkout { width: 100%; margin-top: 18px; }
.cart__done { display: grid; gap: 8px; justify-items: start; }
.cart__done h3 { font-size: 20px; font-weight: 800; }
.cart__done p:not(.booker__check) { font-size: 15px; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 14px; width: min(520px, calc(100vw - 32px)); background: transparent; }
.modal::backdrop { background: rgba(20, 48, 31, .55); }
.modal .demo-form { border: 0; }
.modal h3 { font-size: 22px; font-weight: 900; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; }

[hidden] { display: none !important; }
