/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {
  --navy: #071b3a;
  --navy-soft: #12386e;
  --blue: #2563eb;
  --blue-soft: #eaf2ff;
  --teal: #12a594;
  --gold: #d8a331;

  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe3ef;

  --bg: #f6f8fb;
  --white: #ffffff;

  --radius-lg: 28px;
  --radius-md: 18px;

  --shadow: 0 24px 70px rgba(7, 27, 58, 0.13);
  --shadow-soft: 0 16px 36px rgba(7, 27, 58, 0.08);
}


/* =========================================================
   02. RESET / BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}


/* =========================================================
   03. NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 227, 239, 0.85);
}

.navbar__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 78px;
  width: auto;
  object-fit: contain;
}

.navbar__menu {
  display: contents;
}

.nav-links {
  color: var(--navy);
}

.nav-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links__item {
  list-style: none;
}

.nav-links__divider {
  display: none;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.nav-login {
  color: var(--navy);
  font-weight: 750;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-cta {
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-weight: 750;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: var(--blue-soft);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-menu {
  position: relative;
}

.profile-button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.profile-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 230px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
}

.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown {
  display: grid;
}

.profile-dropdown__head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.profile-dropdown__head strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.profile-dropdown__head span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-word;
}

.profile-dropdown a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 750;
  font-size: 0.92rem;
}

.profile-dropdown a:hover {
  background: var(--blue-soft);
}

.profile-dropdown__logout {
  color: #b91c1c !important;
}

/* =========================================================
   04. BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 18px 38px rgba(7, 27, 58, 0.2);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border-color: var(--line);
}


/* =========================================================
   AUTH / MEMBERS PAGES
   ========================================================= */

.auth-page,
.members-page {
  min-height: calc(100vh - 78px);
  padding: 76px 0;
  background:
    linear-gradient(135deg, rgba(246, 248, 251, 0.97), rgba(234, 242, 255, 0.86)),
    url("https://images.unsplash.com/photo-1554224154-26032ffc0d07?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

/* =========================================================
   AUTH LAYOUT
   ========================================================= */

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 48px;
  align-items: center;
}

.auth-shell--wide {
  grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
}

.auth-panel {
  max-width: 620px;
}

.auth-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel h1,
.members-hero h1 {
  color: var(--navy);
  font-size: clamp(2.4rem, 4.6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
}

.auth-panel p,
.members-hero p {
  color: #475569;
  font-size: 1.08rem;
  max-width: 580px;
}

.auth-panel__lead {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.2rem;
}

.auth-panel__closing {
  margin-top: 2rem;
  padding: 1.25rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 18px 18px 0;
  box-shadow: var(--shadow-soft);
}

.auth-panel__closing strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.auth-panel__closing span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.auth-card--wide {
  max-width: 760px;
}

.auth-card__head {
  margin-bottom: 22px;
}

.auth-card__head h2 {
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}

.auth-card__head p {
  color: var(--muted);
}

.auth-card__head a {
  color: var(--blue);
  font-weight: 800;
}

/* =========================================================
   AUTH FORM
   ========================================================= */

.auth-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-weight: 750;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}
.auth-form label.praca {
  height: fit-content;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: 0.2s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: white;
}

.password-field__control {
  position: relative;
}

.password-field__control input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
  color: var(--navy);
  background: rgba(15, 23, 42, 0.06);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}

.auth-help {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.auth-form .btn {
  margin-top: 6px;
  width: 100%;
  border: none;
  cursor: pointer;
}

/* =========================================================
   PHONE INPUT
   ========================================================= */
.phone-input {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

/* =========================================================
   MEMBERS PAGE
   ========================================================= */

.members-shell {
  display: grid;
  gap: 34px;
}

.members-hero {
  max-width: 780px;
}

.members-hero strong {
  color: var(--navy);
}

.members-hero .btn {
  margin-top: 24px;
}

.members-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.member-dashboard-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.member-dashboard-card small {
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.member-dashboard-card h2 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
}

.member-dashboard-card p {
  color: var(--muted);
}

/* =========================================================
   AUTH / MEMBERS RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
  .auth-page,
  .members-page {
    min-height: auto;
    padding: 64px 0;
  }

  .auth-shell,
  .auth-shell--wide {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .auth-card,
  .auth-card--wide {
    max-width: none;
    margin-left: 0;
  }

  .members-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .auth-page,
  .members-page {
    padding: 46px 0;
  }

  .auth-card {
    padding: 24px;
    border-radius: 22px;
  }

  .auth-form--grid,
  .phone-input,
  .members-dashboard {
    grid-template-columns: 1fr;
  }

  .auth-panel h1,
  .members-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }
}


/* =========================================================
   05. HERO
   ========================================================= */

.hero {
  padding: 30px 0;
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(246, 248, 251, 0.98) 0%,
      rgba(246, 248, 251, 0.94) 44%,
      rgba(246, 248, 251, 0.72) 72%,
      rgba(246, 248, 251, 0.5) 100%
    ),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80")
      center right / cover;
}

/* Soft colour depth over the image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(37, 99, 235, 0.13), transparent 28%),
    radial-gradient(circle at 80% 74%, rgba(18, 165, 148, 0.1), transparent 30%);
}

/* Subtle grid texture */
.hero__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 27, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 58, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, black, transparent 82%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 720px;
  padding: 34px 0 68px;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero__lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: #475569;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero__subnote {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}


/* =========================================================
   06. GENERAL SECTION STYLES
   ========================================================= */

section {
  padding: 76px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-label {
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
}


/* =========================================================
   07. ABOUT SECTION
   ========================================================= */

#about {
  position: relative;
  padding: 90px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 64px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.35),
    transparent
  );
}

#about .section-head {
  max-width: 920px;
  margin-bottom: 3rem;
}

#about .section-head h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
}

#about .section-head p {
  max-width: 860px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.45rem;
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.07),
    rgba(18, 165, 148, 0.04)
  );
  pointer-events: none;
}

.pillar-card__icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 900;
}

.pillar-card h3 {
  position: relative;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.pillar-card p {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  #about {
    padding: 64px 0;
  }

  #about::before {
    width: calc(100% - 32px);
  }

  #about .section-head {
    margin-bottom: 2rem;
  }

  #about .section-head h2 {
    font-size: 2rem;
  }

  #about .section-head p {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pillar-card {
    min-height: auto;
    padding: 1.25rem;
    border-radius: 20px;
  }

  .pillar-card h3 {
    font-size: 1.15rem;
  }

  .pillar-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}


/* =========================================================
   08. MEMBER AREA
   ========================================================= */

.member-area {
  background: var(--navy);
  color: white;
}

.member-area .section-head h2,
.member-area .section-label {
  color: white;
}

.member-area .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.member-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
}

.member-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.member-preview h3 {
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}

.member-preview p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}

.member-actions {
  display: grid;
  gap: 12px;
}

.member-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: white;
  color: var(--navy);
  border-radius: 17px;
  font-weight: 800;
}

.member-action span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hub-card {
  background: white;
  color: var(--ink);
  border-radius: 20px;
  padding: 22px;
}

.hub-card small {
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-card h3 {
  color: var(--navy);
  margin: 8px 0;
  letter-spacing: -0.03em;
}

.hub-card p {
  color: var(--muted);
  font-size: 0.93rem;
}





/* =========================================================
   10. REPORTS / INSIGHTS
   ========================================================= */

.insights {
  background: white;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.feature-insight {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    linear-gradient(to top, rgba(7, 27, 58, 0.94), rgba(7, 27, 58, 0.18)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1300&q=80")
      center/cover;
}

.feature-insight h3 {
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.feature-insight p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 620px;
}

.insight-stack {
  display: grid;
  gap: 16px;
}

.mini-insight {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--bg);
}

.mini-insight small {
  color: var(--blue);
  font-weight: 850;
}

.mini-insight h3 {
  color: var(--navy);
  margin-top: 8px;
  letter-spacing: -0.03em;
}


/* =========================================================
   11. EVENTS
   ========================================================= */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.event-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.event-date {
  display: inline-flex;
  padding: 8px 11px;
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 18px;
}

.event-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.event-card p {
  color: var(--muted);
  font-size: 0.94rem;
}


/* =========================================================
   12. FINAL CTA
   ========================================================= */

.final-cta {
  padding: 84px 0;
}

.final-cta__box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 48px;
  border-radius: 34px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #12386e);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.73);
  max-width: 700px;
}

.final-cta .btn {
  background: white;
  color: var(--navy);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: #06152d;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  padding-bottom: 36px;
}

.footer__brand {
  max-width: 420px;
}

.footer__logo {
  display: inline-flex;
  margin-bottom: 20px;
}

.footer__logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.footer__brand p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.footer__group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer__group h3 {
  color: white;
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer__group a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  transition: 0.2s ease;
}

.footer__group a:hover {
  color: white;
  transform: translateX(3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.54);
}

/* Footer responsive */

@media (max-width: 950px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 42px 0 22px;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .footer__logo img {
    height: 50px;
  }
}

/* =========================================================
   14. TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
  .container {
    width: min(100% - 48px, 1120px);
  }

  .navbar__inner {
    gap: 16px;
  }

  .logo__img {
    height: 62px;
  }

  .navbar__menu {
    gap: 18px;
  }

  .nav-links {
    font-size: 0.88rem;
  }

  .nav-links__list {
    gap: 16px;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .nav-login {
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(rgba(246, 248, 251, 0.91), rgba(246, 248, 251, 0.91)),
      url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80")
        center/cover;
  }

  .hero__background::before {
    mask-image: linear-gradient(to bottom, black, transparent 85%);
  }

  .hero__content {
    padding: 36px 0 58px;
  }

  .member-grid,
  .resources-layout,
  .insight-grid,
  .auth-shell,
  .final-cta__box {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .members-dashboard,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================================
   15. MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .navbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
  }

  .logo__img {
    height: 46px;
  }

  .nav-toggle {
    display: block;
  }

  .navbar__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;

    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .navbar.is-open .navbar__menu {
    display: flex;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links__item {
    display: flex;
    flex-direction: column;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-links__divider {
    display: block;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-login,
  .nav-cta {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .profile-menu {
    width: 100%;
  }

  .profile-button {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .profile-dropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }

  .navbar.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__content {
    padding: 34px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.75rem);
    letter-spacing: -0.075em;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 54px 0;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .pillars-grid,
  .hub-grid,
  .resource-grid,
  .members-dashboard,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .member-preview,
  .auth-card,
  .resource-search,
  .resource-card,
  .member-dashboard-card,
  .pillar-card,
  .event-card {
    padding: 20px;
  }

  .final-cta__box {
    padding: 30px;
    border-radius: 26px;
  }

  .footer__inner {
    flex-direction: column;
  }
}

.user-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  font-weight: 850;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.user-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-avatar--sm {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

.user-avatar--lg {
  width: 58px;
  height: 58px;
  font-size: 1.25rem;
}

.user-avatar--xl {
  width: 92px;
  height: 92px;
  font-size: 2rem;
}

.member-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
