/* GAMA site — page layout on top of the modernist design system (ds.css) */
:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-neutral-100: #f5f5f5;
  --color-accent: #f7941d;
  --color-accent-600: #d9720a;
  --color-accent-700: #a85907;
  --color-accent-100: #fff3e0;
  --color-accent-800: #7a4204;
}
body { background: #ffffff; }
a { color: var(--color-accent-700); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* section divider, inset to the content width */
.divider {
  border: 0;
  border-top: 1.5px solid #d8d0c2;
  max-width: 1112px;
  margin: 0 auto;
  width: calc(100% - 2 * clamp(20px, 5vw, 64px));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner-track { transition: none; }
  .promo-card, .store-badge, .card-link svg { transition: none; }
  .promo-card:hover, .store-badge:hover { transform: none; }
  .promo-card:hover .card-link svg { transform: none; }
}

.page-shell { max-width: 1240px; margin: 0 auto; }

/* very light orange band that identifies alternating sections;
   full-bleed even inside the width-limited page shell */
.section-tint {
  background: #fff8ee;
  box-shadow: 0 0 0 100vmax #fff8ee;
  clip-path: inset(0 -100vmax);
}

.site-nav {
  padding: 8px clamp(20px, 5vw, 64px);
  position: sticky; top: 0; background: #fff; z-index: 10;
}
.site-nav .nav-brand, .site-nav .btn { flex-shrink: 0; }

@media (max-width: 760px) {
  .site-nav { flex-wrap: wrap; row-gap: 2px; padding: 10px 16px 12px; }
  .site-nav .nav-brand img { height: 42px !important; }
  .site-nav .btn { padding: 8px 14px; font-size: 13.5px; }
  /* full-width break after logo + button so the links get their own row */
  .site-nav::after { content: ""; flex-basis: 100%; order: 1; }
  .site-nav a { order: 2; font-size: 13.5px; }
}

.kicker {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); font-weight: 800; font-family: var(--font-heading);
}

.hero {
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: clamp(24px, 3.5vw, 56px); align-items: center;
}
.hero-figure { margin: 0; flex: 1 1 280px; min-width: 0; }
.hero-figure img {
  width: 100%; max-width: 540px; display: block;
  margin: 0 auto; border-radius: 14px;
}
.hero .kicker { margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.14; letter-spacing: -0.02em; margin: 0;
}
.hero-copy {
  font-size: 17px; line-height: 1.65; max-width: 52ch; margin: 28px 0 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

/* banner carousel */
.banner-section { padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 64px); }
.banner-frame {
  position: relative; overflow: hidden;
  border-radius: 12px; background: #f5f5f5;
}
.banner-track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-track img {
  width: 100%; flex: 0 0 100%; aspect-ratio: 16/7; object-fit: cover; display: block;
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 9px;
}
@media (max-width: 640px) {
  .banner-arrow { width: 34px; height: 34px; }
  .banner-arrow svg { width: 16px; height: 16px; }
  .banner-dots { bottom: 10px; }
}
.banner-dots button {
  height: 9px; width: 9px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.85); transition: width 300ms ease;
}
.banner-dots button.active { width: 28px; background: #f7941d; }

/* card sections */
.cards-section { padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 64px); }
.section-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.015em; margin: 0 0 8px;
}
.section-copy { font-size: 15px; margin: 0 0 24px; color: #5c574f; max-width: 60ch; }

/* section header on top, cards below */
.section-head { margin-bottom: 22px; }
.section-head .section-copy { margin-bottom: 0; }
.section-body { min-width: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
/* compact variant — explicit column counts per breakpoint so cards stay a
   consistent, predictable size at every width */
.card-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
/* full-width grid: 4 columns on wide screens, 3 on mid */
@media (min-width: 1150px) {
  .card-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1149px) {
  .card-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* mobile: swipeable card row (standard retail pattern) — full-size cards,
   horizontal scroll with snap, bleeding to the screen edge */
@media (max-width: 640px) {
  .card-grid.compact {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 20px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .card-grid.compact::-webkit-scrollbar { display: none; }
  .card-grid.compact .promo-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
  }
  /* every card is reachable by swiping, so no collapse or toggle on mobile */
  .card-grid.compact.collapsed .promo-card:nth-child(n+5) { display: flex; }
  .grid-toggle-row { display: none; }
}
.card-grid.compact .promo-card { border-radius: 14px; }
.card-grid.compact .promo-card-body { padding: 16px; gap: 7px; }
.card-grid.compact .promo-card h4 { font-size: 16.5px; }
.card-grid.compact .promo-card p { font-size: 13.5px; }
.card-grid.compact .promo-card .tag { font-size: 11.5px; }
.card-grid.compact .card-link { font-size: 13px; margin-top: 4px; }
.promo-card {
  border: 1.5px solid #ddd6cc; border-radius: 16px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.promo-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: #f7941d;
}
.card-link {
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  color: var(--color-accent-700); margin-top: 6px;
}
.card-link svg { transition: transform 150ms ease; }
.promo-card:hover .card-link { color: var(--color-accent-600); }
.promo-card:hover .card-link svg { transform: translateX(3px); }
.promo-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.promo-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-card h4 { font-family: var(--font-heading); font-weight: 800; font-size: 18px; margin: 4px 0 0; }
.promo-card p { font-size: 14px; line-height: 1.5; margin: 0; color: #5c574f; flex: 1; }
/* when a section has more than 4 items, it starts collapsed to one row */
.card-grid.collapsed .promo-card:nth-child(n+5) { display: none; }
.grid-toggle-row { display: flex; justify-content: center; }
.grid-toggle { margin-top: 24px; border-radius: 999px; }
.grid-toggle[hidden] { display: none; }

/* app store badges */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1a1a1a; color: #fff; text-decoration: none;
  border-radius: 13px; padding: 10px 20px 10px 16px; min-height: 56px;
  transition: transform 120ms ease, background 120ms ease;
}
.store-badge:hover { background: #000; color: #fff; transform: translateY(-2px); }
.store-badge small {
  display: block; font-size: 11px; font-weight: 400; opacity: 0.8;
  letter-spacing: 0.02em; line-height: 1.2;
}
.store-badge strong {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: 17px; line-height: 1.15; letter-spacing: 0.01em;
}

/* membership perk cards */
.perk-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 26px;
}
/* 8 perks balance as 4 x 2 on wide screens, 2 x 4 on mid */
@media (min-width: 1150px) {
  .perk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 1149px) {
  .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.perk-card {
  background: #fff; border: 1.5px solid #ddd6cc; border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.perk-icon {
  width: 36px; height: 36px; border-radius: 50%; background: #fff3e0;
  display: flex; align-items: center; justify-content: center;
}
.perk-icon svg { width: 18px; height: 18px; }
.perk-title { font-family: var(--font-heading); font-weight: 800; font-size: 15.5px; margin: 0; }
.perk-copy { font-size: 13px; line-height: 1.5; margin: 0; color: #5c574f; }

/* floors */
.floors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--color-divider); margin-top: 24px;
}
@media (max-width: 720px) { .floors-grid { grid-template-columns: 1fr 1fr; } }
.floors-grid > div { background: var(--color-bg); padding: 20px; }
.floor-name {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  color: var(--color-accent-700); margin: 0 0 6px;
}
.floor-desc { font-size: 15px; margin: 0; }

/* footer */
.site-footer { padding: clamp(28px, 4vw, 44px) clamp(20px, 5vw, 64px) 28px; }
.footer-heading {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px;
}
.social-circle {
  width: 42px; height: 42px; border-radius: 50%; background: #fff3e0;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}

/* promo popup */
.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100;
}
.dialog-backdrop[hidden] { display: none; }
.promo-dialog {
  background: #fff; border-radius: 20px; max-width: 460px; width: 100%;
  max-height: 88vh; overflow: auto; padding: 0; box-shadow: var(--shadow-lg);
}
