:root {
  /* palette — Alpine Club brand */
  --c-navy: #10344F;
  --c-navy-deep: #0B2438;
  --c-glacier: #4FA3C7;
  --c-glacier-tint: #EAF2F6;
  --c-snow: #F7FAFC;
  --c-slate: #2E3A44;
  --c-amber: #E8A33D;
  --c-amber-deep: #cf8a26;
  --c-ink: #1c2b36;
  --c-muted: #6b7a86;
  --c-line: rgba(16, 52, 79, .12);
  /* type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  /* shape */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(16, 52, 79, .12);
  --shadow-lg: 0 24px 60px rgba(11, 36, 56, .22);
  --container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--c-ink); background: var(--c-snow); margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-navy); letter-spacing: -.01em; }
h1, .display-3, .display-4, .display-5 { letter-spacing: -.02em; }
a { color: var(--c-glacier); }
.section { padding: 5.5rem 0; }
.reveal { opacity: 0; transform: translateY(24px); }
.card-alpine { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-video { display: none; }
}

/* buttons */
.btn-alpine { background: var(--c-amber); border: none; color: #1c1204; font-weight: 600; border-radius: 999px; padding: .7rem 1.6rem; box-shadow: 0 8px 20px rgba(232, 163, 61, .28); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn-alpine:hover { background: #fff; color: var(--c-navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(9, 30, 47, .20); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 600; border-radius: 999px; padding: .7rem 1.6rem; background: rgba(255, 255, 255, .06); transition: background .18s ease, border-color .18s ease; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }

/* navbar — sticky, solid navy, subtle on scroll */
[data-navbar] { position: sticky; top: 0; z-index: 1030; background: var(--c-navy); transition: box-shadow .3s ease, padding .3s ease, background .3s ease; padding: .85rem 0; }
[data-navbar].nav-scrolled { box-shadow: var(--shadow); padding: .5rem 0; background: rgba(11, 36, 56, .96); backdrop-filter: blur(8px); }
[data-navbar] .navbar-brand, [data-navbar] .nav-link { color: #fff; }
[data-navbar] .nav-link { font-weight: 500; }
[data-navbar] .nav-link:hover { color: var(--c-amber); }
.brand-mark { height: 42px; width: auto; }

/* topographic eyebrow — the page's signature label */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-amber); }
.eyebrow::before { content: ""; width: 30px; border-top: 2px solid var(--c-amber); }
.eyebrow.centered { justify-content: center; }
.section-head { max-width: 640px; }
.section-head.centered { margin-inline: auto; text-align: center; }

/* HERO with landscape video */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--c-navy-deep) url('../img/acp/hero-poster.jpg') center/cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9, 30, 47, .74) 0%, rgba(9, 30, 47, .58) 45%, rgba(9, 30, 47, .92) 100%),
              linear-gradient(90deg, rgba(9, 30, 47, .86) 0%, rgba(9, 30, 47, .40) 68%); }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; line-height: 1.04; text-shadow: 0 2px 24px rgba(9, 30, 47, .55); }
.hero .eyebrow { text-shadow: 0 1px 10px rgba(9, 30, 47, .6); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero-stat .n { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: #fff; line-height: 1; }
.hero-stat .l { font-size: .8rem; letter-spacing: .06em; color: rgba(255, 255, 255, .7); text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: rgba(255, 255, 255, .8); font-size: 1.4rem; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* feature strip cards */
.feature { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--c-glacier-tint); color: var(--c-navy); font-size: 1.35rem; margin-bottom: .9rem; }

/* stat badge (altitude motif) */
.altitude-badge { display: inline-flex; flex-direction: column; gap: .1rem; padding: 1rem 1.3rem; background: var(--c-navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.altitude-badge .n { font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; }
.altitude-badge .l { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

/* offer cards (image + overlay) */
.offer { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: 0; }
.offer::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 36, 56, 0) 30%, rgba(11, 36, 56, .88) 100%); }
.offer:hover img { transform: scale(1.06); }
.offer .body { position: relative; z-index: 2; padding: 1.4rem; width: 100%; }
.offer .body h4 { color: #fff; margin-bottom: .25rem; }
.offer .body p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .92rem; }
.offer .tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--c-amber); color: #1c1204; font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .7rem; border-radius: 999px; }

/* achiever cards (real ACP summiteers) */
.achiever { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.achiever .ph { aspect-ratio: 4 / 5; background: var(--c-glacier-tint) center/cover; }
.achiever .body { padding: 1.1rem 1.2rem 1.3rem; }
.achiever .body h5 { margin-bottom: .15rem; }
.achiever .feat { font-size: .9rem; color: var(--c-muted); }

/* gallery strip */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .cell { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.95); }
.gallery .cell:hover img { transform: scale(1.08); filter: saturate(1.1); }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* dark CTA band */
.cta-band { background: linear-gradient(120deg, var(--c-navy-deep), var(--c-navy)); color: #fff; border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band .topo { position: absolute; inset: 0; opacity: .12; z-index: 0;
  background-image: repeating-radial-gradient(circle at 84% 28%, transparent 0 22px, rgba(255, 255, 255, .5) 22px 23px); }
.cta-band > .inner { position: relative; z-index: 1; }

/* section tint helper */
.bg-tint { background: var(--c-glacier-tint); }

/* ---- modern auth (split screen) + floating-label forms ---- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--c-snow); overflow-x: hidden; }
.auth-wrap > * { min-width: 0; }

/* left: the summit panel */
.auth-aside { position: relative; color: #fff; display: flex; flex-direction: column; gap: 1.8rem; padding: 2.6rem; background: var(--c-navy-deep) center/cover; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, rgba(11, 36, 56, .38) 0%, rgba(11, 36, 56, .72) 52%, rgba(7, 26, 41, .93) 100%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.auth-aside .brand img { height: 40px; }
.auth-aside-body { margin-top: auto; }
.auth-aside .eyebrow { color: var(--c-amber); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; font-size: .72rem; }
.auth-aside h2 { color: #fff; line-height: 1.1; text-wrap: balance; }
.auth-aside .aside-text { color: rgba(255, 255, 255, .74); max-width: 420px; }

/* register benefits */
.auth-feats { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.auth-feat { display: flex; align-items: center; gap: .8rem; color: rgba(255, 255, 255, .92); font-weight: 500; font-size: .94rem; }
.auth-feat i { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(232, 163, 61, .18); color: var(--c-amber); font-size: 1rem; }

/* social proof — real ACP summiteers */
.auth-proof { display: flex; align-items: center; gap: .95rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.auth-proof-avatars { display: inline-flex; flex: 0 0 auto; }
.auth-proof-avatars img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 30%; border: 2px solid rgba(255, 255, 255, .9); margin-left: -15px; box-shadow: 0 5px 14px rgba(0, 0, 0, .35); }
.auth-proof-avatars img:first-child { margin-left: 0; }
.auth-proof p { margin: 0; font-size: .85rem; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.auth-proof strong { color: #fff; display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }

/* right: form panel */
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; overflow: hidden; }
.mtn-silhouette { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; z-index: 0; pointer-events: none; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-eyebrow { color: var(--c-amber); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; font-size: .72rem; margin-bottom: .45rem; }

/* mobile summit banner (desktop hides it) */
.auth-mobile-hero { display: none; }

/* membership type — selectable cards */
.join-types { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.05rem; }
.join-type { display: flex; align-items: center; gap: .65rem; padding: .8rem .8rem; border: 1.5px solid var(--c-line); border-radius: 14px; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.join-type .jt-ico { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--c-glacier-tint); color: var(--c-navy); font-size: 1.1rem; transition: background .16s ease, color .16s ease; }
.join-type .jt-txt { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.join-type .jt-txt strong { font-size: .9rem; color: var(--c-ink); }
.join-type .jt-txt small { color: var(--c-muted); font-size: .73rem; }
.btn-check:checked + .join-type { border-color: var(--c-amber); background: rgba(232, 163, 61, .08); box-shadow: 0 0 0 3px rgba(232, 163, 61, .15); }
.btn-check:checked + .join-type .jt-ico { background: var(--c-amber); color: #1c1204; }
.btn-check:focus-visible + .join-type { outline: 2px solid var(--c-glacier); outline-offset: 2px; }

.form-float { position: relative; margin-bottom: 1.05rem; }
.form-float > input { width: 100%; height: 56px; padding: 1.35rem .95rem .45rem; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; font-size: 1rem; color: var(--c-ink); transition: border-color .18s ease, box-shadow .18s ease; }
.form-float > input:focus { outline: none; border-color: var(--c-glacier); box-shadow: 0 0 0 4px rgba(79, 163, 199, .16); }
.form-float > label { position: absolute; left: .95rem; top: 1rem; color: var(--c-muted); font-size: 1rem; pointer-events: none; transition: transform .16s ease, color .16s ease, font-size .16s ease; }
.form-float > input:focus + label,
.form-float > input:not(:placeholder-shown) + label { transform: translateY(-.72rem); font-size: .72rem; color: var(--c-glacier); letter-spacing: .02em; }
.form-float > input.is-invalid { border-color: #dc3545; }
.auth-card .btn-alpine { width: 100%; justify-content: center; height: 52px; display: inline-flex; align-items: center; }

/* join modal — summit header banner */
.join-modal { border: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.join-modal-hero { position: relative; padding: 1.7rem 1.5rem 1.3rem; color: #fff; background: var(--c-navy-deep) center 28%/cover; }
.join-modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11, 36, 56, .70) 0%, rgba(11, 36, 56, .58) 45%, rgba(7, 26, 41, .90) 100%); }
.join-modal-hero > * { position: relative; z-index: 1; }
.join-modal-hero .eyebrow { color: var(--c-amber); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; font-size: .68rem; }
.join-modal-hero h5 { color: #fff; }
.join-modal-hero .btn-close { position: absolute; top: .85rem; right: .85rem; z-index: 2; filter: invert(1) grayscale(1) brightness(2.2); opacity: .85; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-panel { display: block; padding: 0 1.3rem 2.4rem; }
  .auth-panel .auth-card { margin: 0 auto; }
  .auth-mobile-hero { display: block; position: relative; height: 210px; margin: 0 -1.3rem 1.7rem; background: var(--c-navy-deep) center 30%/cover; }
  .auth-mobile-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 36, 56, .30), rgba(11, 36, 56, .88)); }
  .auth-mobile-hero .amh-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem 1.35rem; }
  .auth-mobile-hero .amh-in .brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; margin-bottom: auto; }
  .auth-mobile-hero .amh-in .brand img { height: 34px; }
  .auth-mobile-hero .amh-in .eyebrow { color: var(--c-amber); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
  .auth-mobile-hero .amh-in h2 { color: #fff; font-size: 1.4rem; margin: 0; line-height: 1.15; }
}

/* small polish */
.link-quiet { color: var(--c-navy); text-decoration: none; font-weight: 500; }
.link-quiet:hover { color: var(--c-amber); }
.text-balance { text-wrap: balance; }

/* ===================== ADMIN ===================== */
.admin-body { background: #eef2f7; margin: 0; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; flex-shrink: 0; background: linear-gradient(180deg, var(--c-navy-deep), var(--c-navy)); color: #fff; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1.15rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.admin-sidebar .brand img { height: 34px; }
.admin-nav { padding: .8rem .8rem 1rem; overflow-y: auto; flex: 1; }
.admin-nav .group { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .4); padding: .9rem .7rem .35rem; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; color: rgba(255, 255, 255, .78); text-decoration: none; padding: .58rem .75rem; border-radius: 10px; font-weight: 500; font-size: .92rem; margin-bottom: 2px; transition: background .15s ease, color .15s ease; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.active { background: rgba(232, 163, 61, .16); color: #fff; box-shadow: inset 3px 0 0 var(--c-amber); }
.admin-nav a i { font-size: 1.05rem; width: 1.1rem; text-align: center; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { min-height: 64px; background: #fff; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; padding: .6rem 1.5rem; position: sticky; top: 0; z-index: 40; gap: 1rem; }
.admin-topbar h1 { font-size: 1.15rem; margin: 0; }
.admin-content { padding: 1.75rem; }
.admin-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--c-glacier-tint); color: var(--c-navy); display: grid; place-items: center; font-weight: 700; }
.admin-burger { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--c-navy); }

.kpi { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; gap: .55rem; }
.kpi .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; }
.kpi .ic.navy { background: rgba(16, 52, 79, .10); color: var(--c-navy); }
.kpi .ic.glacier { background: rgba(79, 163, 199, .16); color: #2c7ea0; }
.kpi .ic.amber { background: rgba(232, 163, 61, .18); color: var(--c-amber-deep); }
.kpi .val { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--c-navy); }
.kpi .lbl { color: var(--c-muted); font-size: .85rem; }
.kpi .sub { font-size: .74rem; color: var(--c-glacier); font-weight: 600; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }

@media (max-width: 900px) {
  .admin-sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .25s ease; }
  .admin-sidebar.open { left: 0; }
  .admin-burger { display: block; }
}
