/* ============================================================================
   Jerusalem Restaurant Patong — Clubs & Activities pages
   (/activities, /activities/th, /activities/ar, /activities/ar-eg)
   Uses the main site's canonical Levantine palette from /theme.css; only
   page-specific layout lives here. RTL-safe (Arabic pages set dir=rtl).
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Keep in-page anchor targets clear of the 64px fixed nav. */
  scroll-padding-top: 72px;
}

:root {
  --olive: #4b5320;
  --terracotta: #a6432c;
  --gold: #c8912b;
  --cream: #f7f1e3;
  --surface: #fffdf7;
  --charcoal: #241f1a;
  --muted: #6b6154;
  --olive-dark: #3a4019;
  --terracotta-dark: #8a3624;
  --gold-soft: #e3c98f;
  --line: #e4dcc7;
  --shadow: 0 6px 24px rgba(36, 31, 26, 0.12);
  --font: 'Cairo', 'Tajawal', 'Sarabun', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Amiri', 'Cairo', Georgia, 'Times New Roman', serif;
  --navy: #12263f;
  --fb: #1877f2;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(247, 241, 227, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--terracotta);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lang-pill {
  display: flex;
  align-items: center;
  background: rgba(75, 83, 32, .08);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: .3rem .7rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  color: var(--olive);
}

.lang-btn:hover {
  color: var(--terracotta);
  text-decoration: none;
}

.lang-btn.on {
  background: var(--olive);
  color: var(--cream);
}

#menuToggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--olive);
  padding: .4rem;
  display: block;
}

@media(min-width:768px) {
  .nav-links {
    display: flex;
  }

  #menuToggle {
    display: none;
  }
}

/* ── MOBILE MENU ── */
#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--olive);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

#mobileMenu.open {
  display: flex;
}

#mobileMenu a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color .2s;
}

#mobileMenu a:hover {
  color: var(--gold-soft);
  text-decoration: none;
}

#closeMenu {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
}

/* ── PAGE HEADER ── */
#page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--olive-dark) 0%, var(--olive) 100%);
  padding: 9.5rem 1.25rem 4.5rem;
  text-align: center;
  color: var(--cream);
}

#page-hero .section-tag {
  color: var(--gold-soft);
}

/* ── BREADCRUMB (mirrors the BreadcrumbList structured data) ── */
.crumbs {
  margin-bottom: 1.25rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  font-size: .78rem;
  letter-spacing: .04em;
}

.crumbs li {
  color: rgba(247, 241, 227, .75);
}

.crumbs li + li::before {
  content: '›';
  margin-inline-end: .5rem;
  color: var(--gold-soft);
}

.crumbs a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

#page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: .75rem;
}

#page-hero p.sub {
  color: rgba(247, 241, 227, .92);
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(.95rem, 2vw, 1.08rem);
  line-height: 1.7;
}

/* ── SECTION COMMONS ── */
section {
  padding: 5rem 1.25rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: block;
  letter-spacing: .26em;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .75rem;
}

h2.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--olive);
  margin-bottom: 1.25rem;
}

.gold-bar {
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.grad-text {
  color: var(--terracotta);
}

p.lead {
  color: var(--muted);
  line-height: 1.75;
  font-size: .98rem;
}

/* ── FEATURED CLUB (Phuket Chess Club) ── */
#chess-club {
  background: var(--surface);
}

.featured-club {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media(min-width:860px) {
  .featured-club {
    grid-template-columns: 1fr 1.4fr;
    padding: 2.5rem;
  }
}

/* Art-directed: the 3:2 club artwork once this panel becomes a narrow column at
   860px, and the wide 2.4:1 banner below that, where it spans the full width. */
.featured-club .club-visual picture {
  display: block;
}

.featured-club .club-visual img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.featured-club .club-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.featured-club .club-logo-row img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-club h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--navy);
  line-height: 1.15;
}

.featured-club .club-slogan {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  font-size: .95rem;
}

.featured-club p.desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.club-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.club-facts li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--charcoal);
}

.club-facts .ico {
  flex-shrink: 0;
}

.club-facts a {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: none;
}

.club-facts a:hover {
  text-decoration: underline;
}

.club-cta-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 800;
  padding: .75rem 1.8rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all .25s;
  font-size: .92rem;
}

.btn-navy:hover {
  background: #1d3a5f;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 38, 63, .3);
}

.btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  background: var(--fb);
  color: #fff;
  font-weight: 800;
  padding: .75rem 1.8rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all .25s;
  font-size: .92rem;
}

.btn-fb svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-fb:hover {
  background: #1462c9;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 31, 26, .25);
}

/* ── COMING SOON CLUBS ── */
#coming-soon {
  background: var(--cream);
}

.clubs-grid {
  display: grid;
  gap: 1.25rem;
}

@media(min-width:640px) {
  .clubs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(min-width:1024px) {
  .clubs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.club-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.6rem 1.4rem;
  overflow: hidden;
}

.club-card .card-icon {
  font-size: 2.4rem;
  margin-bottom: .9rem;
}

.club-card h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: .5rem;
}

/* On the Thai/Arabic pages the localised club name is the heading and the
   English name it will actually launch under sits under it. */
.club-card h3 .club-name-en {
  display: block;
  font-family: var(--font);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: .25rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.club-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* A "coming soon" card reads as pending via the dashed border, the tinted
   surface and the stamp — the copy itself keeps full contrast, because dimming
   body text to ~55% opacity drops it below the WCAG AA 4.5:1 floor. */
.club-card.soon {
  background: #faf5e9;
  border-style: dashed;
  border-color: #d8cdb2;
}

.club-card.soon .card-icon {
  opacity: .55;
  filter: grayscale(.6);
}

/* Rubber-stamp style "Coming soon" band across the card */
.stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.stamp span {
  display: inline-block;
  transform: rotate(-14deg);
  border: 3px solid var(--terracotta);
  color: var(--terracotta);
  background: rgba(255, 253, 247, .93);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .95rem;
  padding: .4rem 1.6rem;
  border-radius: .4rem;
  box-shadow: 0 2px 10px rgba(36, 31, 26, .12);
  white-space: nowrap;
}

/* ── START A CLUB CTA ── */
#start-club {
  background: var(--olive);
  color: var(--cream);
}

#start-club .container {
  max-width: 820px;
  text-align: center;
}

#start-club .section-tag {
  color: var(--gold-soft);
}

#start-club h2 {
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

#start-club p {
  color: rgba(247, 241, 227, .9);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 800;
  padding: .8rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all .25s;
  font-size: .95rem;
}

.btn-gold:hover {
  background: #b17f22;
  color: var(--charcoal);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 31, 26, .35);
}

/* ── FOOTER (matches main site) ── */
footer {
  background: var(--charcoal);
  border-top: 4px solid var(--olive);
  padding: 3.5rem 1.25rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media(min-width:640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(min-width:1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

footer img.logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

/* Social row — same set and treatment as the main site footer. */
.footer-social {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-social a {
  font-size: .84rem;
  color: var(--gold-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}

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

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

footer p.desc {
  font-size: .85rem;
  color: rgba(247, 241, 227, .7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

footer h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

footer ul li {
  font-size: .85rem;
  color: rgba(247, 241, 227, .7);
  line-height: 1.6;
}

footer ul a {
  font-size: .85rem;
  color: rgba(247, 241, 227, .7);
  text-decoration: none;
  transition: color .2s;
}

footer ul a:hover {
  color: var(--gold-soft);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 241, 227, .12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: .78rem;
  color: rgba(247, 241, 227, .6);
}

.dev-credit {
  font-size: .78rem;
  color: rgba(247, 241, 227, .6);
}

.dev-credit a {
  color: var(--gold-soft);
  text-decoration: underline;
  transition: color .2s;
}

.dev-credit a:hover {
  color: #fff;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SKIP NAV ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--olive);
  color: var(--cream);
  padding: .6rem 1.2rem;
  border-radius: 0 0 .5rem .5rem;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* ── RTL (Arabic pages: /activities/ar and /activities/ar-eg set dir="rtl") ──
   The layout is grid/flex based and uses logical properties, so only the
   absolutely-positioned close button and the LTR gradient need mirroring. */
[dir="rtl"] #closeMenu {
  right: auto;
  left: 1.25rem;
}

[dir="rtl"] .gold-bar {
  background: linear-gradient(270deg, var(--gold), var(--terracotta));
}

/* Mirror the stamp tilt so it leans with the reading direction. */
[dir="rtl"] .stamp span {
  transform: rotate(14deg);
}
