/* ============================================================
   Singapore Mahjong — Shared Stylesheet
   gooseberrystudio.com
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08130a;
  --bg2:         #0e1f11;
  --gold:        #d4af37;
  --gold-light:  #f0d878;
  --gold-dim:    #a8892a;
  --white:       #f5f0e8;
  --muted:       rgba(245,240,232,0.55);
  --card:        rgba(255,255,255,0.05);
  --card-hover:  rgba(255,255,255,0.08);
  --border:      rgba(212,175,55,0.22);
  --border-hover:rgba(212,175,55,0.45);
  --radius:      18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

/* --- Merlion background image + dark overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../images/Singapore Merlion.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Dark tinted overlay so text stays legible */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(4, 10, 5, 0.82) 0%,
      rgba(4, 10, 5, 0.70) 40%,
      rgba(4, 10, 5, 0.80) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(10,40,12,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   SHARED HEADER
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 40px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.site-header .logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(212,175,55,0.3);
}

.site-header .brand { display: flex; flex-direction: column; line-height: 1.15; }
.site-header .brand-zh {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.1rem; color: var(--gold); letter-spacing: 0.04em;
}
.site-header .brand-en {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--white); font-weight: 400;
}
.site-header nav { margin-left: auto; }
.site-header nav a { font-size: 0.875rem; color: var(--muted); margin-left: 28px; }
.site-header nav a:hover { color: var(--white); text-decoration: none; }

/* ============================================================
   SHARED FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 10;
  text-align: center;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem;
}
.site-footer a { color: var(--gold-dim); }
.site-footer a:hover { color: var(--gold); }
.footer-links {
  display: flex; justify-content: center;
  gap: 24px; margin-bottom: 12px; flex-wrap: wrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 72px 24px 56px;
}

.hero-icon {
  width: 140px; height: 140px;
  border-radius: 30px; object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.35),
    0 8px 40px rgba(212,175,55,0.25),
    0 20px 60px rgba(0,0,0,0.6);
  margin-bottom: 36px;
}

.hero-zh {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--gold); letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 rgba(30,15,0,0.8), 0 0 30px rgba(212,175,55,0.4);
  margin-bottom: 8px;
}

.hero-en {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700; color: var(--white);
  letter-spacing: 0.02em; margin-bottom: 20px;
}

.badge-coming-soon {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.08));
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 32px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted); max-width: 540px;
  line-height: 1.75; margin-bottom: 44px;
}

/* Feature pills */
.feature-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; max-width: 620px;
  margin-bottom: 48px;
}
.pill {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 18px;
  font-size: 0.85rem; color: var(--white); white-space: nowrap;
}
.pill span { color: var(--gold); margin-right: 6px; }

/* App Store placeholder */
.appstore-placeholder {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 26px;
  color: var(--muted); font-size: 0.9rem; cursor: default;
}
.appstore-placeholder svg { opacity: 0.5; }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 0 32px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--border));
}
.section-divider::before { --dir: right; }
.section-divider::after  { --dir: left; }
.divider-tile { font-size: 1.6rem; line-height: 1; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  position: relative; z-index: 10;
  max-width: 960px; margin: 0 auto;
  padding: 64px 24px 80px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; color: var(--gold);
  text-align: center; margin-bottom: 12px;
}

.section-sub {
  text-align: center; color: var(--muted);
  font-size: 1.05rem; margin-bottom: 52px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Wide card spans two columns where space allows */
.card--wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: flex-start; gap: 24px;
}
.card--wide .card-icon { flex-shrink: 0; }

.card-icon {
  font-size: 2rem; line-height: 1;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem; font-weight: 700;
  color: var(--gold-light); margin-bottom: 8px;
}

.card-body p {
  font-size: 0.93rem; color: var(--muted); line-height: 1.7;
}

.card-body p strong {
  color: var(--white); font-weight: 600;
}

/* ============================================================
   TESTIMONY BAND
   ============================================================ */
.testimony {
  position: relative; z-index: 10;
  background: linear-gradient(135deg, rgba(212,175,55,0.07), rgba(212,175,55,0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
  text-align: center;
}

.testimony-inner {
  max-width: 620px; margin: 0 auto;
  position: relative;
}

.testimony-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem; line-height: 0.6;
  color: var(--gold-dim); opacity: 0.5;
  display: block; margin-bottom: 12px;
  user-select: none;
}

.testimony-inner p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--white); line-height: 1.65;
}

/* ============================================================
   PRIVACY POLICY PAGE
   ============================================================ */
.privacy-container {
  position: relative; z-index: 10;
  max-width: 760px; margin: 0 auto;
  padding: 52px 32px 80px;
}
.privacy-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--gold); margin-bottom: 8px;
}
.privacy-meta {
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 44px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.privacy-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--gold-light); margin: 36px 0 12px;
}
.privacy-container p {
  color: var(--white); margin-bottom: 14px; font-size: 0.97rem;
}
.privacy-container ul {
  margin: 8px 0 14px 22px;
  color: var(--white); font-size: 0.97rem;
}
.privacy-container ul li { margin-bottom: 6px; }
.privacy-container .highlight-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0;
}
.privacy-container .highlight-box p {
  margin: 0; font-size: 1.02rem; font-weight: 500;
}
.contact-email { color: var(--gold); font-weight: 500; }

.photo-credit {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.45);
  letter-spacing: 0.03em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .site-header { padding: 18px 20px; }
  .site-footer  { padding: 24px 20px; }
  .privacy-container { padding: 36px 20px 60px; }
  .hero-icon { width: 110px; height: 110px; border-radius: 24px; }

  .card--wide { flex-direction: column; }

  .cards-grid { grid-template-columns: 1fr; }
}
