/* Gateway — editorial orientation section (post-hero) */
.section-gateway {
  --gw-green: #4B6332;
  --gw-green-deep: #1a5c3a;
  --gw-gold: #C7A96B;
  --gw-text: #101510;
  --gw-muted: #3a453a;
  --gw-veil-glass: rgba(75, 99, 50, 0.2);
  --gw-veil-cream: #f5f2ea;
  --gw-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gw-expand-ms: 480ms;

  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background-color: #f3f5f1;
  color: var(--gw-text);
  padding: 1rem 1rem 0.75rem;
  transition: padding var(--gw-expand-ms) var(--gw-reveal-ease);
}

.section-gateway.section-light {
  background-color: #f3f5f1;
}

@media (min-width: 720px) {
  .section-gateway { padding: 2.25rem 2rem 2rem; }
}

@media (min-width: 900px) {
  .section-gateway { padding: 2.5rem 3rem 2.25rem; }
}

/* Collapsed — compact, card-only footprint */
.section-gateway.gateway-collapsed {
  padding: 1.1rem 1rem 1rem;
}

@media (min-width: 720px) {
  .section-gateway.gateway-collapsed {
    padding: 1.5rem 2rem 1.35rem;
  }
}

/* Cannabis leaf pattern — matches Partner Clubs */
.section-gateway::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/clubs-section-pattern.jpg');
  background-repeat: repeat;
  background-size: 520px auto;
  background-position: center top;
  opacity: 0.88;
  pointer-events: none;
  z-index: 0;
}

/* Light readability overlay — no dark gradients */
.section-gateway::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.62), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 249, 246, 0.72) 100%);
  pointer-events: none;
  z-index: 0;
}

.gateway-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

/* Expandable body — fully hidden until card tap */
.gateway-body {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.gateway-body-inner {
  min-height: 0;
}

.section-gateway.gateway-is-expanding .gateway-body,
.section-gateway.gateway-expanded .gateway-body {
  display: block;
  opacity: 1;
  pointer-events: auto;
  animation: gateway-body-in var(--gw-expand-ms) var(--gw-reveal-ease) forwards;
}

@keyframes gateway-body-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tap-to-reveal lock card */
.gateway-veil {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity var(--gw-expand-ms) var(--gw-reveal-ease),
    transform var(--gw-expand-ms) var(--gw-reveal-ease),
    visibility 0s linear var(--gw-expand-ms);
}

.gateway-veil:focus-visible {
  outline: none;
}

.gateway-veil:focus-visible .gateway-veil-panel {
  outline: 2px solid var(--gw-gold);
  outline-offset: 3px;
}

.section-gateway.gateway-is-expanding .gateway-veil,
.section-gateway.gateway-expanded .gateway-veil {
  opacity: 0;
  transform: scale(0.94) translateY(-6px);
  pointer-events: none;
}

.section-gateway.gateway-expanded .gateway-veil {
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.gateway-veil-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(0.85rem, 2.8vw, 1.35rem) clamp(1.25rem, 4.5vw, 2.5rem);
  aspect-ratio: 3 / 1;
  min-height: clamp(5.25rem, 22vw, 7rem);
  border-radius: clamp(1.35rem, 4.5vw, 2rem);
  background-color: #1a5c3a;
  background-image:
    linear-gradient(
      90deg,
      rgba(34, 88, 58, 0.96) 0%,
      rgba(24, 72, 48, 0.98) 52%,
      rgba(15, 48, 32, 1) 100%
    );
  border: none;
  box-shadow: 0 8px 24px -8px rgba(15, 48, 32, 0.28);
}

/* Cannabis leaf texture on the green card itself */
.gateway-veil-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url('../assets/clubs-section-pattern.jpg');
  background-repeat: repeat;
  background-size: clamp(260px, 42vw, 420px) auto;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.gateway-veil-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(0, 0, 0, 0.06) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Semi-transparent padlock body watermark behind text */
.gateway-veil-lock-body {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(5.75rem, 30vw, 9.5rem);
  height: clamp(6.75rem, 36vw, 11.25rem);
  transform: translate(-50%, -50%);
  color: rgba(245, 242, 234, 0.34);
  pointer-events: none;
}

.gateway-veil-lock-body .gateway-veil-lock-solid {
  fill: currentColor;
  opacity: 0.42;
}

.gateway-veil-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.2rem, 1vw, 0.4rem);
  width: 100%;
  max-width: none;
  text-align: center;
}

.gateway-veil-prelude {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.54rem, 1.55vw, 0.7rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.88);
}

.gateway-veil-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.45rem, 6.2vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--gw-veil-cream);
}

.gateway-veil-hint {
  margin-top: clamp(0.1rem, 0.6vw, 0.25rem);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.5rem, 1.45vw, 0.64rem);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(154, 173, 138, 0.92);
}

@media (min-width: 720px) {
  .section-gateway.gateway-collapsed .gateway-header {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .gateway-veil {
    width: 100%;
    background: transparent;
  }

  .gateway-veil-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    min-height: 12.25rem;
    padding: 1.5rem 2.25rem 1.4rem;
    overflow: visible;
  }

  .gateway-veil-inner {
    gap: 0.35rem;
  }

  .gateway-veil-headline {
    font-size: clamp(1.35rem, 4.2vw, 2.15rem);
    line-height: 0.94;
  }

  .gateway-veil-lock-body {
    width: clamp(5rem, 24vw, 8rem);
    height: clamp(5.75rem, 28vw, 9.25rem);
  }
}

@media (max-width: 719px) {
  .gateway-veil-panel {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2.6 / 1;
    min-height: clamp(4.75rem, 26vw, 6.25rem);
    padding: 0.75rem 1rem;
    border-radius: 1.35rem;
  }

  .gateway-veil-lock-body {
    width: clamp(4.75rem, 34vw, 6.5rem);
    height: clamp(5.5rem, 40vw, 7.75rem);
    color: rgba(245, 242, 234, 0.32);
  }

  .gateway-veil-inner {
    gap: 0.18rem;
  }

  .gateway-veil-headline {
    font-size: clamp(1.25rem, 7vw, 1.85rem);
    line-height: 0.9;
  }
}

/* Fingerprint watermark on cannabis bg */
.gateway-watermark {
  position: absolute;
  right: -2%;
  bottom: 4%;
  width: min(38vw, 240px);
  height: min(44vw, 280px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  will-change: transform;
}

.gateway-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: sepia(0.1) saturate(0.5);
}

/* Header — reset global site <header> nav styles; green panel is the only card */
.gateway-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  display: block;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  background: none;
  border: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
}

.gateway-header::after {
  display: none;
  content: none;
}

.section-gateway.gateway-collapsed .gateway-header {
  min-height: 0;
  margin-bottom: 0;
}

.section-gateway.gateway-collapsed .gateway-veil {
  display: block;
  width: 100%;
  background: transparent;
}

.section-gateway.gateway-expanded .gateway-header {
  min-height: 0;
  margin-bottom: 0.35rem;
}

.section-gateway.gateway-expanded {
  padding: 0.85rem 1rem 0.65rem;
}

@media (min-width: 720px) {
  .section-gateway.gateway-expanded {
    padding: 1.15rem 2rem 0.85rem;
  }
}

.gateway-accent {
  color: var(--gw-green);
}

.gateway-veil-headline .gateway-accent {
  color: #e8dcc4;
}

.gateway-subtitle {
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  line-height: 1.4;
  color: var(--gw-muted);
  max-width: 36em;
  margin: 0 auto 0.45rem;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 719px) {
  .gateway-subtitle {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
  }

  .gateway-scroll-cue {
    margin-top: 0.3rem;
    gap: 0.25rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }
}

/* Editorial benefit statements — compact accordion */
.gateway-statements {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gateway-statement {
  border-bottom: 1px solid rgba(75, 99, 50, 0.12);
}

.gateway-statement:last-child {
  border-bottom: none;
}

.gateway-statement-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.34rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.gateway-statement-trigger:focus-visible {
  outline: 2px solid var(--gw-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.gateway-statement-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.gateway-statement-num {
  flex-shrink: 0;
  width: 1.55rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--gw-gold);
}

.gateway-statement:nth-child(even) .gateway-statement-num {
  color: var(--gw-green);
}

.gateway-statement-title {
  flex: 1;
  min-width: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--gw-text);
  margin: 0;
}

.gateway-statement-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gw-green);
  transition: transform 220ms var(--gw-reveal-ease), color 220ms ease;
}

.gateway-statement.is-open .gateway-statement-toggle {
  transform: rotate(45deg);
  color: var(--gw-gold);
}

.gateway-statement-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 280ms var(--gw-reveal-ease),
    opacity 240ms var(--gw-reveal-ease);
}

.gateway-statement-panel[hidden] {
  display: none;
}

.gateway-statement.is-open .gateway-statement-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
}

.gateway-statement-panel-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 0.35rem 1.85rem;
}

.gateway-statement-icon {
  display: none;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0 0 0.1rem;
  color: var(--gw-gold);
}

.gateway-statement.is-open .gateway-statement-icon {
  display: flex;
}

.gateway-statement-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gateway-statement:nth-child(even) .gateway-statement-icon {
  color: var(--gw-green);
}

.gateway-statement-text {
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gw-muted);
}

@media (min-width: 720px) {
  .gateway-statements {
    margin-bottom: 0.5rem;
  }

  .gateway-statement-trigger {
    padding: 0.38rem 0;
  }

  .gateway-statement-head {
    gap: 0.55rem;
  }

  .gateway-statement-num {
    width: 2.15rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .gateway-statement-title {
    font-size: clamp(1.2rem, 2.8vw, 1.35rem);
    letter-spacing: 0.05em;
  }

  .gateway-statement-toggle {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.05rem;
  }

  .gateway-statement-panel-inner {
    padding: 0 0 0.4rem 2.5rem;
  }

  .gateway-statement-icon {
    width: 28px;
    height: 28px;
  }

  .gateway-statement-text {
    font-size: clamp(0.875rem, 2vw, 0.94rem);
    line-height: 1.45;
  }
}

/* Scroll cue */
.gateway-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0.35rem auto 0;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
  color: var(--gw-muted);
  font-size: clamp(0.62rem, 1.8vw, 0.72rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.gateway-scroll-cue:hover,
.gateway-scroll-cue:focus-visible {
  color: var(--gw-green);
  outline: none;
}

.gateway-scroll-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: gateway-chevron-bob 2.2s ease-in-out infinite;
}

@keyframes gateway-chevron-bob {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.45; }
  50% { transform: rotate(45deg) translateY(3px); opacity: 1; }
}

/* Scroll reveal — staggered after card dismiss */
.gateway-reveal {
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition:
    opacity 420ms var(--gw-reveal-ease),
    transform 420ms var(--gw-reveal-ease),
    visibility 0s linear 420ms;
}

.gateway-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity 420ms var(--gw-reveal-ease),
    transform 420ms var(--gw-reveal-ease),
    visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .section-gateway {
    --gw-expand-ms: 300ms;
  }

  .gateway-watermark {
    will-change: auto;
    transform: none !important;
  }

  .gateway-veil {
    transition: opacity 300ms ease, visibility 0s linear 300ms;
  }

  .section-gateway.gateway-is-expanding .gateway-veil,
  .section-gateway.gateway-expanded .gateway-veil {
    transform: none;
  }

  .gateway-body {
    animation: none;
  }

  .gateway-reveal {
    opacity: 0;
    transform: none;
    visibility: hidden;
    transition: opacity 350ms ease, visibility 0s linear 350ms;
  }

  .gateway-reveal.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 350ms ease, visibility 0s linear 0s;
  }

  .gateway-statement-panel {
    transition: opacity 200ms ease;
  }

  .gateway-statement-toggle {
    transition: color 200ms ease;
  }

  .gateway-scroll-chevron {
    animation: none;
    opacity: 0.7;
  }
}
