/* Kingsmere Community Centre — static site styles */

:root {
  --purple: #6b1f7c;
  --purple-dark: #3f1149;
  --teal: #12a097;
  --teal-dark: #0b7a73;
  --blue: #2a9fd8;
  --pink: #ecc6df;
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-alt: #f3eef5;
  --text: #231a26;
  --muted: #655c6b;
  --line: #e6dfe8;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(63, 17, 73, 0.25);
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; color: var(--purple-dark); }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.97rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-alt); color: var(--purple); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--purple-dark); margin: 5px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); padding: 12px 20px 22px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn-primary:hover { background: var(--purple-dark); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.hero h1 span { color: var(--teal); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; }
.hero-media .main-img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; }
.hero-media .float-img {
  position: absolute; width: 46%; bottom: -36px; left: -36px;
  border-radius: 20px; border: 6px solid var(--bg); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.blocks { position: absolute; top: -18px; right: -18px; display: grid; grid-template-columns: repeat(2, 34px); gap: 6px; z-index: -1; }
.blocks i { width: 34px; height: 34px; border-radius: 8px; display: block; }
.blocks i:nth-child(1) { background: var(--purple); }
.blocks i:nth-child(2) { background: var(--blue); }
.blocks i:nth-child(3) { background: var(--teal); }
.blocks i:nth-child(4) { background: var(--pink); }

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media .float-img { left: auto; right: 16px; bottom: -28px; width: 42%; }
}

/* Full-bleed photo hero (home page) */
.hero-photo {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(82vh, 720px); display: flex; align-items: center;
  padding: 96px 0 112px;
}
.hero-photo .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 55%; z-index: -2;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 6, 24, .88) 0%, rgba(18, 6, 24, .7) 45%, rgba(18, 6, 24, .25) 100%),
    linear-gradient(0deg, rgba(18, 6, 24, .55) 0%, transparent 40%);
}
.hero-content { max-width: var(--max); }
.hero-content > * { max-width: 620px; }
.hero-photo h1 { color: #fff; }
.hero-photo h1 span { color: #5fd4cb; }
.hero-photo .eyebrow { color: #8fe3dc; }
.hero-photo .lead { color: #e9dfee; }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.06); }
.btn-light:hover { background: #fff; color: var(--purple-dark); }
.hero-photo + .facts { margin-top: -56px; position: relative; z-index: 2; padding-top: 0; }
.hero-photo + .facts .facts-grid { box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .hero-photo { min-height: 0; padding: 72px 0 104px; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(18, 6, 24, .7) 0%, rgba(18, 6, 24, .85) 100%); }
}

/* ---------- Facts strip ---------- */
.facts { padding: 18px 0 8px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--purple-dark); color: #fff; border-radius: var(--radius); padding: 28px;
}
.fact strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: #fff; }
.fact span { color: #dccbe2; font-size: .95rem; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Room cards */
.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1040px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .room-grid { grid-template-columns: 1fr; } }

.room-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.room-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.room-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.room-card h3 { margin-bottom: 4px; }
.room-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip {
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #e3f4f2; color: var(--teal-dark);
}
.chip.purple { background: #f1e4f4; color: var(--purple); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Prices */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price-card h3 { margin-bottom: 14px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.price-row:first-of-type { border-top: 0; }
.price-row span { color: var(--muted); font-size: .95rem; }
.price-row strong { font-size: 1.25rem; color: var(--purple); white-space: nowrap; }
.price-row strong small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.note { color: var(--muted); font-size: .92rem; margin-top: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: inherit;
}
a.contact-item:hover { border-color: var(--teal); color: inherit; }
.contact-item .icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff;
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-item strong { font-size: 1.08rem; word-break: break-word; }
.bg-purple { background: var(--purple); }
.bg-teal { background: var(--teal); }
.bg-blue { background: var(--blue); }
.bg-pink { background: #b3609c; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--surface-alt); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--purple) 0%, #8a3d9c 45%, var(--teal) 100%);
  color: #fff; border-radius: 28px; padding: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #f2e6f5; }
.cta-band .btn { background: #fff; color: var(--purple); }
.cta-band .btn:hover { background: var(--purple-dark); color: #fff; }
@media (max-width: 560px) { .cta-band { padding: 32px 24px; } }

/* ---------- Rooms page ---------- */
.page-hero { padding: 48px 0 40px; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a {
  text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--purple-dark);
}
.jump a:hover { border-color: var(--purple); color: var(--purple); }

.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 12px; }
.strip button:first-child { grid-row: span 2; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px 130px; } .strip button:first-child { grid-column: span 2; grid-row: auto; } .strip button:nth-child(n+6) { display: none; } }

.room { padding: 72px 0; border-top: 1px solid var(--line); }
.room-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 920px) { .room-layout { grid-template-columns: 1fr; gap: 28px; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button:first-child { grid-column: span 4; }
.gallery button:first-child img { aspect-ratio: 16 / 10; }

.thumb {
  padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; position: relative; display: block; width: 100%; height: 100%;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .35s; }
.thumb:hover img { transform: scale(1.04); }
.thumb:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.strip .thumb img { aspect-ratio: auto; }

.room-info .tag { display: inline-block; margin-bottom: 10px; }
.room-info h2 { margin-bottom: 14px; }
.room-info > p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.stat h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark); margin-bottom: 6px; }
.stat ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.stat li { padding: 1px 0; }
.stat .big { font-size: 1.4rem; font-weight: 800; color: var(--purple-dark); display: block; }

.features { columns: 2; column-gap: 24px; padding: 0; list-style: none; margin: 0 0 22px; font-size: .95rem; }
.features li { break-inside: avoid; padding: 4px 0 4px 20px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
@media (max-width: 480px) { .features { columns: 1; } }

.price-box {
  background: var(--purple-dark); color: #fff; border-radius: var(--radius); padding: 20px 22px;
}
.price-box h4 { color: #dccbe2; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.price-box .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); }
.price-box .row:first-of-type { border-top: 0; }
.price-box .row span { color: #e6d8eb; }
.price-box .row strong { white-space: nowrap; }
.booking-tip { font-size: .93rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(20, 8, 24, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 70px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-inner { padding: 70px 12px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-dark); color: #dccbe2; padding: 56px 0 32px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 40px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,.2); }
.socials svg { width: 20px; height: 20px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
