/* =========================================================
   The Paddle Park Pasay — styles
   ========================================================= */
:root {
  /* Palette taken from the Paddle Park logo */
  --magenta: #e5257f;
  --magenta-2: #f2479a;
  --magenta-dark: #c4176b;
  --pink-soft: #ffe6f2;
  --purple: #a24fd6;
  --plum: #1f4a24;      /* main text / headings: logo green */
  --plum-2: #2f7a3a;
  --green: #1f4a24;
  --green-2: #2f7a3a;
  --leaf: #7cc943;
  --yellow: #f8c913;
  --cream: #fbf6ee;
  --cream-2: #f6ede2;
  --ink: #1d3322;
  --muted: #6d7c70;
  --line: #ece4dd;
  --white: #fff;
  --radius: 22px;
  --shadow-sm: 0 2px 10px rgba(61, 23, 71, .07);
  --shadow: 0 18px 50px -18px rgba(61, 23, 71, .28);
  --shadow-lg: 0 30px 80px -20px rgba(61, 23, 71, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", "Brush Script MT", cursive;
  --serif: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 1.05rem; letter-spacing: .2px; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .2s;
}
.btn svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--magenta-2), var(--magenta) 55%, var(--magenta-dark));
  box-shadow: 0 10px 26px -8px rgba(194, 24, 122, .65);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(194, 24, 122, .75); }
.btn-primary:hover:not(:disabled)::after { transform: translateX(120%); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }
.btn .spinner { display: none; }
.btn.loading .btn-label { opacity: 0; }
.btn.loading .spinner { display: block; position: absolute; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(194,24,122,.2); border-top-color: var(--magenta); animation: spin .8s linear infinite; }
.spinner.small { width: 22px; height: 22px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(253, 247, 242, .92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: box-shadow .4s, border-color .4s, height .4s var(--ease);
  animation: dropIn .9s var(--ease) both;
}
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(61,23,71,.25); border-color: var(--line); --header-h: 70px; }
@keyframes dropIn { from { transform: translateY(-100%); } }
.header-inner { height: 100%; width: min(1320px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 68px; width: auto; transition: transform .5s var(--ease), height .4s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04) rotate(-1deg); }
.site-header.scrolled .brand-logo { height: 56px; }
.brand-mark { width: 62px; height: 57px; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-script { font-family: var(--script); font-size: 2.55rem; color: var(--plum); line-height: .9; white-space: nowrap; }
.brand-sub { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .45em; font-weight: 600; color: var(--plum); margin-top: 2px; padding-left: .45em; }
.brand-sub i { display: block; width: 46px; height: 2px; background: var(--magenta-2); border-radius: 2px; }
.brand.light .brand-script, .brand.light .brand-sub { color: #fff; }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 9px 18px; border-radius: 999px; text-decoration: none;
  font-weight: 500; color: var(--plum); transition: color .3s, background .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--magenta-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { background: var(--magenta); color: #fff; box-shadow: 0 6px 16px -6px rgba(194,24,122,.7); }
.main-nav a.active::after { display: none; }

.owner-btn { width: 46px; height: 46px; display: grid; place-items: center; color: var(--plum); border-radius: 50%; transition: background .3s, transform .3s var(--ease); flex-shrink: 0; }
.owner-btn svg { width: 40px; height: 40px; }
.owner-btn:hover { background: var(--pink-soft); transform: scale(1.06); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2.5px; background: var(--plum); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(760px, 100svh); padding: calc(var(--header-h) + 40px) 0 90px;
  display: flex; align-items: center; overflow: hidden; color: var(--ink); background: #b9c6e4;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero::after { /* soft bottom fade into page */
  content: ""; position: absolute; inset: auto 0 0; height: 110px; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-inner {
  position: relative; z-index: 3; width: min(1240px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center;
}
.hero-copy { text-align: center; max-width: 640px; }
.hero-mark { width: 150px; height: 138px; margin: 0 auto -6px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); animation: rise 1s .2s var(--ease) both; }
.hero-mark .mark-ball { animation: ballBounce 2.6s 1.2s var(--ease) infinite; transform-origin: 50px 70px; }
@keyframes ballBounce {
  0%, 60%, 100% { transform: translateY(0); }
  20% { transform: translateY(-14px) rotate(80deg); }
  35% { transform: translateY(0) rotate(140deg); }
  45% { transform: translateY(-5px) rotate(170deg); }
}
.hero-title { display: flex; flex-direction: column; align-items: center; margin: 0; }
.hero-logo {
  width: min(600px, 100%); height: auto;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.95)) drop-shadow(0 14px 22px rgba(31,74,36,.18));
  animation: logoIn 1.2s .25s var(--ease) both, logoFloat 6s 1.6s ease-in-out infinite;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(30px) scale(.92); } }
@keyframes logoFloat { 50% { transform: translateY(-8px); } }
.hero .hero-sub { color: var(--green); margin-top: 6px; font-size: clamp(.85rem, 1.5vw, 1.15rem); letter-spacing: .28em; padding-left: .28em; gap: 14px; white-space: nowrap; }
.hero .hero-sub i { width: clamp(28px, 6vw, 80px); }
.hero-slogan {
  margin: 10px 0 0; font-family: var(--script); font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.1;
  color: var(--magenta); text-shadow: 0 0 16px rgba(255,255,255,.9), 0 0 3px #fff; animation: rise 1.1s .65s var(--ease) both;
}
.footer-slogan { text-align: center; font-family: var(--script); font-size: 2rem; color: #ffc2e1; margin: 30px 0 0; }
.hero-title .script { font-family: var(--script); font-weight: 400; font-size: clamp(4rem, 9vw, 7.4rem); line-height: .95; animation: rise 1.1s .35s var(--ease) both; }
.hero-sub { display: flex; align-items: center; gap: 22px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: .5em; padding-left: .5em; margin-top: 4px; animation: rise 1.1s .5s var(--ease) both; }
.hero-sub i { display: block; width: clamp(60px, 10vw, 130px); height: 3px; background: var(--magenta-2); border-radius: 3px; transform-origin: center; animation: lineGrow 1s .9s var(--ease) both; }
@keyframes lineGrow { from { transform: scaleX(0); } }
.hero-tag { font-size: clamp(1.2rem, 2.3vw, 1.85rem); font-weight: 500; margin-top: 8px; animation: rise 1.1s .65s var(--ease) both; }
.hero-lead { margin: 14px auto 0; max-width: 520px; font-size: 1.08rem; font-weight: 500; color: var(--ink); text-shadow: 0 0 14px rgba(255,255,255,.95), 0 0 4px rgba(255,255,255,.9); animation: rise 1.1s .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

.features {
  list-style: none; padding: 0; margin: 34px auto 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(251,246,238,.82); border: 1px solid rgba(255,255,255,.7); border-radius: 20px; color: var(--green);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 620px; box-shadow: 0 14px 34px -18px rgba(31,74,36,.35);
}
.features li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; font-size: .92rem; line-height: 1.25; position: relative; animation: rise .9s var(--ease) both; }
.features li:nth-child(1) { animation-delay: 1s; } .features li:nth-child(2) { animation-delay: 1.1s; }
.features li:nth-child(3) { animation-delay: 1.2s; } .features li:nth-child(4) { animation-delay: 1.3s; }
.features li + li::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(31,74,36,.18); }
.features svg { width: 40px; height: 40px; color: var(--magenta); transition: transform .4s var(--ease); }
.features li:hover svg { transform: translateY(-4px) scale(1.08); }
.features b { font-weight: 500; }

.glass {
  background: rgba(253, 247, 242, .94); color: var(--plum); border-radius: 26px; padding: 30px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.quick-book { width: 100%; max-width: 420px; justify-self: end; animation: slideIn 1.1s .6s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(60px) scale(.96); } }
.quick-book h2 { display: flex; align-items: center; gap: 12px; font-size: 1.85rem; font-weight: 600; margin-bottom: 20px; }
.quick-book h2 svg { width: 36px; height: 36px; color: var(--plum-2); }
.field {
  position: relative; display: flex; align-items: center; margin-bottom: 14px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .3s, box-shadow .3s;
}
.field:focus-within { border-color: var(--magenta-2); box-shadow: 0 0 0 4px rgba(224,51,143,.15); }
.field > svg { position: absolute; left: 16px; width: 22px; height: 22px; color: var(--magenta); pointer-events: none; }
.field select {
  width: 100%; border: 0; background: transparent; padding: 15px 44px 15px 52px; appearance: none; -webkit-appearance: none;
  cursor: pointer; font-size: .98rem; color: var(--plum); border-radius: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4a24' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field select:focus { outline: none; }
.qb-status { min-height: 1.3em; margin: 0 0 12px; font-size: .86rem; color: var(--muted); }
.qb-status.bad { color: #b3261e; }
.qb-status.good { color: var(--green-2); }

.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 28px; width: 28px; height: 44px; border: 2px solid rgba(61,23,71,.5); border-radius: 16px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--magenta); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Hero scene animation hooks (SVG built by hero-scene.js) */
.sway { transform-box: fill-box; animation: sway var(--d, 6s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes sway { from { transform: rotate(calc(var(--a, 2deg) * -1)); } to { transform: rotate(var(--a, 2deg)); } }
.glow { animation: glow 3.5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .65; } to { opacity: 1; } }
.twinkle { animation: twinkle var(--d, 2.4s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.firefly { animation: drift var(--d, 9s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes drift { 0% { transform: translate(0, 0); opacity: .2; } 50% { opacity: 1; } 100% { transform: translate(var(--x, 30px), var(--y, -40px)); opacity: .3; } }
.cloud { animation: cloud var(--d, 80s) linear infinite; }
@keyframes cloud { from { transform: translateX(-300px); } to { transform: translateX(1900px); } }

/* Falling petals */
.petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -40px; width: 14px; height: 12px; border-radius: 80% 10% 80% 10%;
  background: var(--c, #e0338f); opacity: .9; box-shadow: inset -2px -2px 4px rgba(0,0,0,.15);
  animation: fall var(--d, 12s) linear var(--delay, 0s) infinite;
}
@keyframes fall {
  0% { transform: translate(0, -40px) rotate(0deg); opacity: 0; }
  8% { opacity: .95; }
  100% { transform: translate(var(--x, 120px), 105vh) rotate(var(--r, 600deg)); opacity: .7; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2, .about-copy h2, .contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3.1rem); color: var(--green); margin: 8px 0 14px; letter-spacing: .2px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head.light h2 { color: #fff; } .section-head.light p { color: rgba(255,255,255,.82); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600; color: var(--magenta); }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.about-copy .eyebrow::after, .contact .eyebrow::after { display: none; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(234,219,228,.7); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Booking ---------- */
.booking { background:
  radial-gradient(600px 300px at 0% 10%, rgba(224,51,143,.08), transparent 70%),
  radial-gradient(500px 300px at 100% 80%, rgba(111,191,59,.10), transparent 70%), var(--cream); }
.demo-banner { background: #fff6d6; border: 1px solid #f2dc8a; color: #6b5300; padding: 14px 18px; border-radius: 14px; margin-bottom: 26px; font-size: .92rem; }
.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.booking-steps { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.step { padding: 28px; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-head h3 { font-size: 1.25rem; font-weight: 600; color: var(--plum); }
.step-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--magenta-2), var(--purple)); box-shadow: 0 6px 14px -4px rgba(142,63,191,.6); flex-shrink: 0; }

.date-strip-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.date-strip { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 6px 2px 10px; scrollbar-width: none; flex: 1; }
.date-strip::-webkit-scrollbar { display: none; }
.strip-arrow { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--plum); transition: background .25s, transform .25s var(--ease); }
.strip-arrow:hover { background: var(--pink-soft); transform: scale(1.08); }
.date-chip {
  scroll-snap-align: start; flex: 0 0 auto; width: 76px; padding: 12px 6px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; text-align: center; transition: all .3s var(--ease);
}
.date-chip small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.date-chip b { display: block; font-size: 1.5rem; line-height: 1.2; color: var(--plum); }
.date-chip:hover { border-color: var(--magenta-2); transform: translateY(-3px); }
.date-chip[aria-selected="true"] { background: linear-gradient(135deg, var(--magenta-2), var(--magenta)); border-color: transparent; box-shadow: 0 10px 22px -8px rgba(194,24,122,.7); transform: translateY(-3px); }
.date-chip[aria-selected="true"] small, .date-chip[aria-selected="true"] b { color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.lg-free { background: #eef8e7; border: 1.5px solid #bfe2a6; }
.lg-booked { background: repeating-linear-gradient(45deg, #f1e6ec, #f1e6ec 3px, #e6d6df 3px, #e6d6df 6px); }
.lg-sel { background: linear-gradient(135deg, var(--magenta-2), var(--purple)); }
.rate-hint { margin-left: auto; font-weight: 500; color: var(--plum-2); }

.slot-grid-wrap { position: relative; }
.slot-grid { position: relative; display: grid; grid-template-columns: 92px repeat(var(--courts, 3), 1fr); gap: 6px; max-height: 470px; overflow-y: auto; padding: 0 6px 4px 2px; transition: opacity .3s; }
.slot-grid.dim { opacity: .35; }
.grid-loading { position: absolute; inset: 0; display: none; place-items: center; }
.grid-loading.on { display: grid; }
.grid-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 6px 4px 10px; text-align: center; font-weight: 600; color: var(--plum); font-size: .92rem; line-height: 1.2; }
.grid-head small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.grid-time { display: flex; align-items: center; font-size: .86rem; font-weight: 500; color: var(--plum-2); white-space: nowrap; }
.slot {
  height: 44px; border-radius: 11px; border: 1.5px solid #bfe2a6; background: #eef8e7; cursor: pointer;
  font-size: .8rem; font-weight: 500; color: var(--green-2); transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  animation: slotIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 12ms);
}
@keyframes slotIn { from { opacity: 0; transform: scale(.85); } }
.slot:hover:not(:disabled) { transform: translateY(-2px); background: #dff3d0; box-shadow: 0 6px 14px -6px rgba(47,107,60,.5); }
.slot:disabled { cursor: not-allowed; }
.slot.booked { border-color: transparent; color: #a48b98; background: repeating-linear-gradient(45deg, #f1e6ec, #f1e6ec 6px, #eadbe4 6px, #eadbe4 12px); }
.slot.past { border-color: transparent; background: #f5f1f3; color: #c4b6bd; }
.slot.selected, .slot.in-range {
  border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--magenta-2), var(--purple));
  box-shadow: 0 8px 18px -8px rgba(142,63,191,.8);
}
.slot.selected { animation: pop .45s var(--ease); }
.slot.in-range { opacity: .85; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: var(--muted); }

.duration { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.duration-label { font-weight: 600; color: var(--plum); }
.duration-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 500; color: var(--plum); transition: all .3s var(--ease);
}
.pill:hover:not(:disabled) { border-color: var(--magenta-2); transform: translateY(-2px); }
.pill[aria-checked="true"] { background: var(--plum); color: #fff; border-color: var(--plum); box-shadow: 0 8px 18px -8px rgba(61,23,71,.7); }
.pill:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.input { display: flex; flex-direction: column; gap: 6px; }
.input.full { grid-column: 1 / -1; }
.input > span { font-size: .86rem; font-weight: 500; color: var(--plum); }
.input em { font-style: normal; color: var(--muted); font-weight: 400; }
.input input, .input select, .input textarea {
  width: 100%; padding: 13px 16px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .3s, box-shadow .3s, background .3s; resize: vertical;
}
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--magenta-2); background: #fff; box-shadow: 0 0 0 4px rgba(224,51,143,.13); }
.input.invalid input { border-color: #d93a3a; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; overflow: hidden; }
.summary::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--magenta-2), var(--purple), var(--leaf)); }
.summary h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--green); margin-bottom: 16px; }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: .92rem; }
.summary dd { margin: 0; font-weight: 600; color: var(--plum); text-align: right; }
.summary dd.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { color: var(--magenta-2); transform: translateX(-4px); } 100% { transform: none; } }
.summary-lines { font-size: .85rem; color: var(--muted); padding: 10px 0 0; min-height: 10px; }
.summary-lines div { display: flex; justify-content: space-between; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; }
.summary-total span { font-weight: 600; color: var(--plum); }
.summary-total strong { font-size: 2rem; color: var(--magenta); font-weight: 700; }
.form-error { min-height: 1.4em; color: #b3261e; font-size: .88rem; margin: 4px 0 12px; }
.summary-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ---------- Rates ---------- */
.rates { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 400px)); justify-content: center; gap: 26px; max-width: 820px; margin: 0 auto; }
.rate-card {
  position: relative; padding: 38px 32px; border-radius: 26px; overflow: hidden; color: #fff; text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: var(--shadow);
}
.rate-card:nth-child(1) { background: linear-gradient(150deg, var(--magenta-2), var(--magenta) 55%, var(--purple)); }
.rate-card:nth-child(2) { background: linear-gradient(150deg, #4fa548, var(--green)); }
.rate-card:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.rate-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: rgba(255,255,255,.1); transition: transform .8s var(--ease); }
.rate-card:hover::after { transform: scale(1.3); }
.rate-card h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.rate-card .price { font-size: 3.6rem; font-weight: 700; line-height: 1.1; margin: 12px 0 2px; }
.rate-card .price small { font-size: 1rem; font-weight: 400; opacity: .85; }
.rate-card p { margin: 0; opacity: .9; }
.rate-card .badge { display: inline-block; margin-top: 18px; padding: 6px 14px; background: rgba(255,255,255,.18); border-radius: 999px; font-size: .82rem; }
.extras { max-width: 820px; margin: 30px auto 0; padding: 26px 32px; }
.extras h3 { font-family: var(--serif); font-weight: 400; color: var(--green); font-size: 1.5rem; margin-bottom: 8px; }
.extras ul { list-style: none; margin: 0; padding: 0; }
.extras li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.extras li:last-child { border: 0; }
.extras li b { color: var(--magenta); font-weight: 600; }

/* ---------- About ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.logo-frame { background: #fbf8f3; border-radius: 30px; padding: 18px; box-shadow: var(--shadow-lg); transition: transform .3s ease-out; transform-style: preserve-3d; }
.logo-frame img { border-radius: 18px; }
.about-copy p { color: #5d4a63; font-size: 1.04rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stats div { text-align: center; padding: 18px 8px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.stats b { display: block; font-size: 2.4rem; font-weight: 700; color: var(--magenta); line-height: 1.1; }
.stats span { font-size: .84rem; color: var(--muted); }

/* ---------- Restaurant ---------- */
.restaurant { background: linear-gradient(160deg, #2a5a2f 0%, var(--green) 55%, #173a1b 100%); overflow: hidden; }
.restaurant::before, .restaurant::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.restaurant::before { width: 380px; height: 380px; background: var(--magenta-2); top: -120px; right: -100px; }
.restaurant::after { width: 300px; height: 300px; background: var(--purple); bottom: -120px; left: -80px; }
.restaurant .eyebrow { color: #ffb3da; }
.menu-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.menu-card {
  padding: 30px 24px; border-radius: 24px; color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), background .4s;
}
.menu-card:hover { transform: translateY(-10px); background: rgba(255,255,255,.14); }
.menu-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--magenta-2), var(--purple)); margin-bottom: 18px; transition: transform .6s var(--ease); }
.menu-card:hover .menu-icon { transform: rotate(-10deg) scale(1.08); }
.menu-icon svg { width: 36px; height: 36px; }
.menu-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.menu-card p { margin: 0; color: rgba(255,255,255,.78); font-size: .94rem; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.04rem; }
.contact-list svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--pink-soft); color: var(--magenta); flex-shrink: 0; }
.contact-list a { text-decoration: none; transition: color .25s; }
.contact-list a:hover { color: var(--magenta); }
.cta-card { padding: 44px 36px; text-align: center; position: relative; overflow: hidden; }
.cta-mark { width: 110px; height: 100px; margin: 0 auto 12px; animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-4deg); } }
.cta-card h3 { font-family: var(--script); font-weight: 400; font-size: 3.4rem; color: var(--plum); line-height: 1; }
.cta-card p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: rgba(255,255,255,.9); padding: 22px 16px; }
.footer-location { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: .98rem; text-align: center; }
.footer-location svg { width: 22px; height: 22px; color: #ffc2e1; flex-shrink: 0; }
.footer-logo { display: block; background: var(--cream); border-radius: 20px; padding: 10px 16px; transition: transform .4s var(--ease); }
.footer-logo:hover { transform: translateY(-3px) rotate(-1deg); }
.footer-logo img { width: 210px; height: auto; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer nav a { text-decoration: none; transition: color .25s; }
.site-footer nav a:hover { color: #ffb3da; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .3s, transform .3s var(--ease); cursor: pointer; }
.socials a:hover { background: var(--magenta-2); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.copyright { text-align: center; font-size: .84rem; opacity: .6; margin: 36px 0 0; }

/* ---------- Modal / toast / confetti ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(43,22,48,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .4s both; }
.modal-card { position: relative; width: min(440px, 100%); background: #fff; border-radius: 28px; padding: 36px 32px 28px; text-align: center; box-shadow: var(--shadow-lg); animation: modalIn .6s var(--ease) both; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal.closing .modal-card { animation: modalOut .3s ease-in both; }
.modal.closing .modal-backdrop { animation: fadeOut .3s both; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.92); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(20px) scale(.95); } }
.success-burst svg { width: 84px; height: 84px; margin: 0 auto 10px; display: block; }
.success-burst circle { stroke: var(--leaf); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s .2s var(--ease) forwards; }
.success-burst path { stroke: var(--green-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .75s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal-card h3 { font-family: var(--script); font-weight: 400; font-size: 3rem; color: var(--plum); }
.modal-card .ref { margin: 4px 0 16px; color: var(--muted); }
.modal-card .ref strong { display: inline-block; margin-left: 6px; padding: 4px 12px; border-radius: 10px; background: var(--pink-soft); color: var(--magenta); letter-spacing: .08em; }
.modal-details { text-align: left; margin: 0 0 14px; background: var(--cream); border-radius: 16px; padding: 6px 18px; }
.modal-details div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.modal-details div:last-child { border: 0; }
.modal-details dt { color: var(--muted); } .modal-details dd { margin: 0; font-weight: 600; color: var(--plum); text-align: right; }
.modal-note { font-size: .85rem; color: var(--muted); margin: 0 0 20px; }

/* ---------- GCash payment ---------- */
.pay-card { width: min(460px, 100%); padding: 30px 28px 22px; }
.pay-view { animation: fadeIn .4s both; }
.gcash-badge { display: inline-block; padding: 5px 16px; border-radius: 999px; background: #0a6cf0; color: #fff; font-weight: 700; letter-spacing: .02em; font-size: .9rem; box-shadow: 0 8px 18px -8px rgba(10,108,240,.7); }
.pay-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--green); margin: 12px 0 14px; }
.hold-timer { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; border-radius: 999px; background: var(--pink-soft); margin-bottom: 18px; text-align: left; }
.hold-timer svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ht-track { fill: none; stroke: rgba(229,37,127,.18); stroke-width: 4; }
.ht-bar { fill: none; stroke: var(--magenta); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke .3s; }
.hold-timer small { display: block; font-size: .76rem; color: var(--muted); }
.hold-timer b { font-size: 1.35rem; color: var(--magenta); font-variant-numeric: tabular-nums; }
.hold-timer.urgent { background: #fff0e0; animation: pulseWarn 1.2s ease-in-out infinite; }
.hold-timer.urgent .ht-bar { stroke: #e07a00; } .hold-timer.urgent b { color: #c25e00; }
@keyframes pulseWarn { 50% { transform: scale(1.03); } }
.pay-amount { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 18px; background: var(--cream); border: 1.5px dashed var(--line); }
.pay-amount span { color: var(--muted); font-size: .9rem; width: 100%; }
.pay-amount strong { font-size: 2.3rem; color: var(--green); line-height: 1; }
.copy-btn { border: 1.5px solid var(--line); background: #fff; color: var(--green); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .25s var(--ease); }
.copy-btn:hover { border-color: #0a6cf0; color: #0a6cf0; }
.copy-btn.done { background: #e3f3df; border-color: #bfe2a6; color: var(--green-2); }
.pay-qr { margin: 18px auto 10px; width: 220px; }
.pay-qr img { width: 220px; height: 220px; object-fit: contain; border-radius: 18px; border: 6px solid #0a6cf0; background: #fff; }
.pay-acct { margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
.pay-acct b { color: #0a3f8f; letter-spacing: .03em; }
.save-qr { margin: 0 0 16px; padding: 10px 20px; font-size: .92rem; background: #eef4ff; color: #0a4fb0; border: 1.5px solid #cfe0ff; }
.save-qr:hover { background: #0a6cf0; color: #fff; border-color: #0a6cf0; }
.save-qr svg { width: 18px; height: 18px; }
.save-qr:hover svg { transform: translateY(2px); }
.qr-missing { margin: 0; padding: 14px; border-radius: 14px; background: #eef4ff; color: #0a4fb0; font-size: .9rem; }
.pay-to { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 12px 16px; border-radius: 16px; background: #eef4ff; margin-bottom: 14px; }
.pay-to small { display: block; font-size: .75rem; color: #4a6ea8; }
.pay-to b { display: block; font-size: 1.3rem; color: #0a3f8f; letter-spacing: .04em; }
.pay-to span { font-size: .85rem; color: #4a6ea8; }
.pay-steps { text-align: left; margin: 0 0 16px; padding-left: 22px; color: var(--ink); font-size: .93rem; }
.pay-steps li { margin: 4px 0; }
.pay-card .input { text-align: left; margin-bottom: 4px; }
.pay-card .input input { font-size: 1.15rem; letter-spacing: .08em; text-align: center; }
.pay-booking { font-size: .82rem; color: var(--muted); margin: 14px 0 4px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .88rem; padding: 6px; }
.link-btn:hover { color: var(--magenta); }
.expired-icon { font-size: 3rem; margin: 6px 0 4px; }

.pending-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 250; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: #fff; font-size: .95rem; box-shadow: var(--shadow-lg); white-space: nowrap; animation: barIn .6s var(--ease) both;
}
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 30px); } }
.pending-bar b { font-variant-numeric: tabular-nums; }
.pb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: ping 1.6s infinite; box-shadow: 0 0 0 0 rgba(248,201,19,.7); }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(248,201,19,0); } 100% { box-shadow: 0 0 0 0 rgba(248,201,19,0); } }
.pb-cta { font-weight: 600; color: #ffc2e1; }
@media (max-width: 480px) { .pending-bar { font-size: .85rem; padding: 10px 16px; gap: 8px; } .pay-qr, .pay-qr img { width: 190px; height: 190px; } }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 400; transform: translate(-50%, 140%); background: var(--plum); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); transition: transform .5s var(--ease); font-size: .95rem; }
.toast.show { transform: translate(-50%, 0); }
.toast.bad { background: #8f1d1d; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 350; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 9px 12px; }
  .brand-script { font-size: 2.2rem; }
  .menu-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: flex; }
  .owner-btn { margin-left: auto; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 4px; padding: 16px 20px 24px;
    background: rgba(253,247,242,.98); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(61,23,71,.35);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .35s var(--ease);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 16px; }
  .brand-logo, .site-header.scrolled .brand-logo { height: 56px; }
  .brand-sub i { width: 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .quick-book { justify-self: center; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: relative; top: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .container { width: calc(100% - 32px); }
  .header-inner { width: calc(100% - 24px); gap: 10px; }
  .brand-logo, .site-header.scrolled .brand-logo { height: 50px; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-mark { width: 110px; height: 101px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features li:nth-child(3)::before { display: none; }
  .glass { padding: 24px 20px; }
  .step { padding: 22px 16px; }
  .slot-grid { grid-template-columns: 70px repeat(var(--courts, 3), 1fr); gap: 5px; }
  .grid-time { font-size: .76rem; }
  .slot { font-size: .7rem; height: 42px; }
  .form-grid { grid-template-columns: 1fr; }
  .strip-arrow { display: none; }
  .rate-hint { margin-left: 0; width: 100%; }
  .menu-cards { grid-template-columns: 1fr; }
  .stats b { font-size: 1.9rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .petals { display: none; }
}
