/* Pasir Ris East Community Club — landing page styles */
:root {
  --navy: #07111f;
  --navy-2: #0c1c33;
  --ink: #122033;
  --muted: #5b6b7c;
  --paper: #f4f1eb;
  --white: #fbfaf7;
  --red: #e31c23;
  --red-deep: #b8141a;
  --blue: #3d8fd9;
  --green: #2f9e6b;
  --line: rgba(18, 32, 51, 0.1);
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.12);
  --radius: 1.25rem;
  --header-offset: 6.75rem;
  --max: 72rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  padding-top: 2.5rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 5.5rem;
}

.notice-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
}

.notice-bar a {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.notice-bar a:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 2.5rem;
  z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}

.site-nav a:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-line {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.15) 0%, rgba(7, 17, 31, 0.72) 58%, rgba(7, 17, 31, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 3.5rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd0d2;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.92;
  margin: 0.7rem 0 1rem;
  max-width: 12ch;
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta,
.hero-actions,
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-meta {
  margin: 1.4rem 0 1.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
}

.stars {
  color: #ffc53d;
  letter-spacing: 0.08em;
}

section {
  padding: 5rem 0;
}

.section-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
  max-width: 42rem;
}

.section-head h2,
.cta-band h2,
.footer-brand strong {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  margin: 0;
}

.eyebrow {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid,
.contact-grid,
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 0.8rem;
}

.fact {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.fact dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.fact dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.card-grid,
.amenity-grid,
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card,
.amenity,
.specialty,
.review,
.faq-item,
.local-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.amenity,
.specialty {
  padding: 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.amenity:hover,
.specialty:hover {
  transform: translateY(-6px);
}

.icon-badge {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: #ffe8e8;
  color: var(--red);
  margin-bottom: 0.9rem;
  font-weight: 800;
}

.card h3,
.specialty h3,
.local-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.card p,
.specialty p,
.amenity p,
.local-card p,
.review p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.photo-panel {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 22rem;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.experience {
  background: var(--navy);
  color: #fff;
}

.experience .lede,
.experience p {
  color: rgba(255, 255, 255, 0.78);
}

.experience .eyebrow {
  color: #ffb4b7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.8rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  isolation: isolate;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:first-child {
  grid-row: span 2;
  min-height: 32rem;
}

.gallery-item figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(7, 17, 31, 0.72);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.rating-box {
  background: var(--navy);
  color: #fff;
  border-radius: 1.4rem;
  padding: 1.2rem 1.4rem;
  min-width: 12rem;
}

.rating-box strong {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.review {
  padding: 1.4rem;
}

.review header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.review cite {
  font-style: normal;
  font-weight: 800;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.topic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.1rem 1.2rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item p {
  padding: 0 1.2rem 1.15rem;
  display: none;
}

.faq-item.open p {
  display: block;
}

.faq-item button span {
  color: var(--red);
  font-size: 1.3rem;
  line-height: 1;
}

.map-wrap {
  overflow: hidden;
  border-radius: 1.4rem;
  min-height: 22rem;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 22rem;
  border: 0;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.local-card {
  padding: 1.3rem;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.82), rgba(227, 28, 35, 0.72)),
    url("../images/pasir-ris-east-cc-gallery-04.jpg") center/cover;
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 0.4rem 0 0.8rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.site-footer {
  background: var(--navy);
  color: #d7dee8;
  padding: 3rem 0 7rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.mobile-cta {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(12px);
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mobile-cta a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.mobile-cta a:first-child {
  background: var(--red);
}

.mobile-cta a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: fade-up 0.8s ease forwards;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

[data-reveal].is-visible {
  animation: fade-up 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    top: calc(100% + 0.4rem);
    background: #fff;
    border-radius: 1rem;
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
    z-index: 80;
  }

  .site-nav a,
  .site-nav .btn {
    width: 100%;
  }

  .about-grid,
  .contact-grid,
  .two-col,
  .card-grid,
  .amenity-grid,
  .specialty-grid,
  .review-grid,
  .gallery-grid,
  .local-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    min-height: 18rem;
    grid-row: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 4.2rem 0 6.2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .site-footer {
    padding-bottom: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  [data-reveal],
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .gallery-item:hover img,
  .btn:hover,
  .card:hover {
    transform: none;
  }
}
