/* ==========================================================================
   Sanok Group — hand-written site CSS (no build step, no Tailwind).
   Colors are Django admin's own defaults, used literally (no brand-color
   variable), same as sanok_admin's staff portals.
   Card-based layout, clean forms/tables, mobile-first.
   ========================================================================== */

:root {
  --ink: #1b1b1f;
  --cream: #f7f3ea;
  --cream-deep: #f3eee6;
  --border: rgba(0, 0, 0, 0.08);
  --muted: rgba(0, 0, 0, 0.55);
  --muted-soft: rgba(0, 0, 0, 0.4);
  --white: #ffffff;
  --red: #d33a2c;
  --green: #1a7f37;
  --green-bg: #e7f6ec;
  --amber: #a6680a;
  --amber-bg: #fdf1dc;
  --violet: #6d4fce;
  --violet-bg: #efe9ff;
  --sky: #0b76b7;
  --sky-bg: #e4f3fb;
  --rose: #c13c6b;
  --rose-bg: #fbe8ef;
  --orange: #c05a1a;
  --orange-bg: #fcebdc;

  --ent-bg: #f3f5f8;
  --ent-border: #dfe3e9;
  --ent-muted: #6b7280;

  /* Dashboard chart marks only (admin/coordinator analytics) — a validated,
     colorblind-safe 6-slot categorical set (dataviz skill reference palette,
     slots 1/2/3/4/5/7, skipping 6/8 so neither collides with --viz-good/
     --viz-critical below) plus the fixed status pair. Not for badges/UI
     chips elsewhere, which keep the colors already defined above. */
  --viz-1: #2a78d6; /* blue */
  --viz-2: #eb6834; /* orange */
  --viz-3: #1baf7a; /* aqua */
  --viz-4: #eda100; /* yellow */
  --viz-5: #e87ba4; /* magenta */
  --viz-6: #6250d6; /* violet */
  --viz-good: #0ca30c;
  --viz-critical: #d03b3b;
  --viz-label-on-dark: #ffffff;
  --viz-label-on-light: #0b0b0b; /* used only on --viz-4 (yellow) */

  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ---------- Icons ---------- */
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex-shrink: 0; }
.icon-lg { width: 1.9rem; height: 1.9rem; }
.icon-blue { color: #417690; }
.icon-green { color: var(--green); }
.icon-red { color: var(--red); }

/* ---------- Buttons / inputs / forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  padding: 0.65rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
  background: none;
}
.btn-primary { background: #417690; color: #fff; }
.btn-primary:hover { background: #205067; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-ghost { border-color: rgba(0,0,0,0.18); color: inherit; }
.btn-ghost:hover { border-color: rgba(0,0,0,0.4); }
.btn-block { width: 100%; }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Coordinator/admin pages extend admin/base.html, which sets
   `a:link, a:visited { color: var(--link-fg) }` — that beats .btn-primary's
   color on specificity (an extra element tier), turning button text that
   sits on an <a> into Django's link blue. Re-assert at matching specificity. */
a.btn:link, a.btn:visited { color: inherit; }
a.btn-primary:link, a.btn-primary:visited { color: #fff; }
a.btn-dark:link, a.btn-dark:visited { color: var(--white); }

.field { display: block; margin-bottom: 1rem; font-size: 0.9rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.field:last-child { margin-bottom: 0; }
.field-submit { display: flex; align-items: flex-end; }

.input {
  width: 100%;
  border: 1px solid var(--ent-border);
  background: var(--white);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: var(--radius);
  font-family: inherit;
}
.input:focus {
  outline: none;
  border-color: #417690;
  box-shadow: 0 0 0 3px rgba(65, 118, 144, 0.15);
}
.input:disabled { background: var(--ent-bg); color: var(--muted); }
.input-compact { padding: 0.35rem 0.5rem; font-size: 0.85rem; width: auto; }
textarea.input { resize: vertical; }

.checkbox-field { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; margin: 0.75rem 0; }
.checkbox-field input { margin-top: 0.2rem; }

.stack-4 > * + * { margin-top: 1rem; }
.stack-6 > * + * { margin-top: 1.5rem; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.form-grid-4 { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .form-grid-4 { grid-template-columns: repeat(4, 1fr); align-items: end; } }

.link { color: #417690; font-weight: 500; }
.link:hover { text-decoration: underline; }
.link-button {
  background: none; border: none; padding: 0; color: #417690; font-weight: 500; font-size: 0.875rem;
}
.link-button:hover { text-decoration: underline; }
.link-button-danger { color: var(--red); }

/* ---------- Notices (messages framework) ---------- */
.notice {
  border: 1px solid var(--border);
  background: var(--ent-bg);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.notice-success { border-color: rgba(26,127,55,0.25); background: var(--green-bg); color: var(--green); }
.notice-error { border-color: rgba(211,58,44,0.25); background: #fdeceb; color: var(--red); }
.notice-warning, .notice-info { border-color: rgba(166,104,10,0.25); background: var(--amber-bg); color: var(--amber); }

/* ---------- Cards / tables / badges ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--ent-border);
  border-radius: var(--radius);
}
.card-title {
  margin: 0;
  border-bottom: 1px solid var(--ent-border);
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ent-muted);
}
.card-body { padding: 1.25rem; }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table thead { background: var(--ent-bg); text-align: left; }
.table th {
  padding: 0.6rem 0.75rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ent-muted); font-weight: 600;
}
.table td { padding: 0.65rem 0.75rem; border-top: 1px solid var(--ent-border); vertical-align: top; }
.table tbody tr:hover { background: #ecf1f4; }
.text-right { text-align: right; }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.font-medium { font-weight: 600; }
.muted-text { color: var(--muted); font-size: 0.9rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.row-between.wrap, .wrap { flex-wrap: wrap; }
.gap-4 { gap: 1rem; }

.divided-list > li, .plain-list > li { padding: 0.75rem 0; border-top: 1px solid var(--ent-border); font-size: 0.9rem; }
.divided-list > li:first-child, .plain-list > li:first-child { border-top: none; }

.definition-list { font-size: 0.9rem; }
.definition-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ent-border); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.definition-row dt { color: var(--muted); }
.definition-row dd { margin: 0; font-weight: 600; text-align: right; }

.badge { display: inline-block; padding: 0.25rem 0.65rem; font-size: 0.7rem; font-weight: 700; border-radius: var(--radius); }
.badge-role { background: var(--sky-bg); color: var(--sky); }
.badge-named { background: var(--violet-bg); color: var(--violet); }
.badge-other { background: var(--ent-bg); color: var(--ent-muted); }
.badge-offer { background: #ecf1f4; color: #417690; margin-bottom: 1rem; }
.badge-blue { background: #ecf1f4; color: #417690; }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-rose { background: var(--rose-bg); color: var(--rose); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.badge-sky { background: var(--sky-bg); color: var(--sky); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-green { background: var(--green-bg); color: var(--green); }

.chart-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.chart-box { border: 1px solid var(--ent-border); background: var(--white); border-radius: var(--radius); padding: 1.25rem; }
.chart-box h3 { margin: 0 0 0.75rem; font-size: 0.95rem; }
.chart-box canvas { max-height: 260px; }

.stat-tile-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-tile, .stat-tile-row .stat-tile {
  border: 1px solid var(--ent-border);
  border-top: 2px solid #79aec8;
  background: var(--white);
  padding: 1rem 1.25rem;
}
.stat-tile-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ent-muted); margin-bottom: 0.4rem; }
.stat-tile-value { font-size: 1.5rem; font-weight: 700; }

/* ==========================================================================
   Shared header / wordmark (login + home)
   ========================================================================== */
.site-header { background: var(--cream); }
.site-header-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.wordmark { display: inline-flex; flex-direction: column; font-weight: 700; font-size: 1.4rem; line-height: 1; }
.wordmark-blue { color: #417690; }
.wordmark-dark { color: var(--ink); }
.wordmark-tagline { font-size: 0.7rem; font-weight: 400; color: var(--muted-soft); margin-top: 0.3rem; }

.site-logo-link { display: inline-flex; align-items: center; }
.site-logo { height: 4.75rem; width: auto; display: block; }
@media (min-width: 640px) {
  .site-logo { height: 5.5rem; }
}

/* ==========================================================================
   Login screen
   ========================================================================== */
.login-main { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.login-card-wrap { width: 100%; max-width: 26rem; }
.login-eyebrow-wrap { text-align: center; margin-bottom: 1.5rem; }
.eyebrow {
  display: inline-block; border: 1px solid var(--ent-border); background: var(--white);
  padding: 0.3rem 0.8rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ent-muted); margin-bottom: 1rem;
}
.login-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; }
.login-subtitle { color: var(--muted); font-size: 0.9rem; }
.login-card { border-top: 2px solid #417690; padding: 1.5rem; }
.login-footnote { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; }

/* ==========================================================================
   Marketing home page
   ========================================================================== */
.home-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; }
.nav-links-desktop { display: none; gap: 2rem; font-weight: 500; }
.nav-links-desktop a:hover { color: #417690; }
.nav-actions-desktop { display: none; gap: 0.75rem; }
.nav-actions-desktop form { display: contents; }
@media (min-width: 860px) {
  .nav-links-desktop, .nav-actions-desktop { display: flex; align-items: center; }
  .site-header-row { gap: 1.5rem; }
}

.nav-toggle-input { display: none; }
.nav-toggle-btn { display: inline-flex; padding: 0.4rem; cursor: pointer; }
.nav-toggle-btn .icon { width: 1.5rem; height: 1.5rem; }
.nav-mobile { display: none; flex-direction: column; gap: 1rem; padding: 1rem 0 1.5rem; border-top: 1px solid var(--border); font-weight: 500; }
.nav-mobile-portal { color: #417690; }
.nav-mobile-signout { background: none; border: none; text-align: left; font: inherit; font-weight: 500; padding: 0; }
.nav-toggle-input:checked ~ .nav-mobile { display: flex; }
@media (min-width: 860px) {
  .nav-toggle-btn, .nav-mobile { display: none !important; }
}

.hero { position: relative; padding: 4rem 0 3rem; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 5.5rem 0 4rem; } }
.hero-inner { text-align: center; }
.hero-title {
  font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 auto 1.25rem;
  max-width: 44rem; line-height: 1.05;
}
@media (min-width: 768px) { .hero-title { font-size: 4.3rem; } }
.hero-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.2rem; } }
.hero-ctas { display: flex; flex-direction: column; gap: 1rem; justify-content: center; margin-bottom: 3.5rem; }
@media (min-width: 600px) { .hero-ctas { flex-direction: row; } }
.hero-ctas .btn { padding: 1rem 2.2rem; }

.hero-visual { position: relative; max-width: 46rem; margin: 0 auto; }
.hero-badge {
  position: absolute; z-index: 2; background: var(--white); box-shadow: var(--shadow-md);
  border: 1px solid var(--border); padding: 0.65rem 1rem; display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; display: none;
}
.hero-badge-top { top: -1.5rem; left: -0.5rem; }
.hero-badge-bottom { bottom: -1rem; right: -0.5rem; }
@media (min-width: 640px) { .hero-badge { display: flex; } }
.plot-grid-panel {
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center;
}
.plot-grid-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; color: var(--muted-soft); margin-bottom: 1rem; }
.plot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; width: 100%; max-width: 20rem; }
.plot { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.plot-sold { background: #417690; color: #fff; }
.plot-reserved { background: #f6d998; color: #7a4e02; }
.plot-open { background: var(--white); color: var(--muted-soft); border: 1px solid var(--border); }
.plot-grid-legend { display: flex; gap: 1rem; margin-top: 1.1rem; font-size: 0.75rem; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.legend-swatch { display: inline-block; width: 0.65rem; height: 0.65rem; margin-right: 0.3rem; }
.legend-sold { background: #417690; }
.legend-reserved { background: #f6d998; }
.legend-open { background: var(--white); border: 1px solid rgba(0,0,0,0.2); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 32rem; margin: 4rem auto 0; }
.hero-stat-value { font-size: 1.4rem; font-weight: 700; color: #417690; }
.hero-stat-label { font-size: 0.7rem; color: var(--muted-soft); }
.hero-stat { text-align: center; }

.section { padding: 4rem 0; }
.section-white { background: var(--white); }
.section-heading { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem; }
.section-heading h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .section-heading h2 { font-size: 2.6rem; } }
.section-heading p { color: var(--muted); }

.feature-row { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.5rem; }
.feature-tile {
  flex-shrink: 0; width: 15.5rem; background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 1.5rem; transition: box-shadow .15s ease, transform .15s ease;
}
.feature-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-badge {
  width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 1rem;
}
.feature-tile h3 { font-weight: 700; margin-bottom: 0.5rem; }
.feature-tile p { font-size: 0.9rem; color: var(--muted); }

.cta-band { position: relative; padding: 5rem 0; background: var(--ink); color: var(--white); overflow: hidden; }
.cta-band-inner { text-align: center; position: relative; z-index: 1; }
.cta-band h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .cta-band h2 { font-size: 2.6rem; } }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 34rem; margin: 0 auto 2rem; }

.timeline { position: relative; max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.75rem; }
.timeline-step { position: relative; padding-left: 4.5rem; }
.timeline-dot {
  position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: #417690; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.timeline-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 1.25rem 1.5rem; }
.timeline-card-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.timeline-card-head h3 { font-weight: 700; }
.timeline-card p { font-size: 0.9rem; color: var(--muted); }
@media (min-width: 768px) {
  .timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(65,118,144,0.18); }
  .timeline-step { padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 2.5rem; }
  .timeline-dot { left: 50%; transform: translateX(-50%); }
  .timeline-left .timeline-card { grid-column: 2; }
  .timeline-right .timeline-card { grid-column: 1; grid-row: 1; text-align: right; }
  .timeline-right .timeline-card-head { justify-content: flex-end; }
}

.capability-panel { background: var(--cream-deep); padding: 2.5rem 1.5rem; }
@media (min-width: 768px) { .capability-panel { padding: 4rem; } }
.capability-panel { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .capability-panel { grid-template-columns: 1fr 1fr; } }
.capability-right .capability-visual { order: 2; }
.capability-left .capability-visual { order: 0; }
.capability-copy h3 { font-size: 1.6rem; font-weight: 700; margin: 0.9rem 0; letter-spacing: -0.01em; }
@media (min-width: 768px) { .capability-copy h3 { font-size: 2.1rem; } }
.capability-copy p { color: var(--muted); margin-bottom: 1.25rem; }
.capability-points li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.3rem 0; }
.capability-points p, .capability-points span { color: var(--ink); opacity: 0.85; }
.capability-visual { display: flex; justify-content: center; }
.eyebrow-violet { background: var(--violet-bg); color: var(--violet); }
.eyebrow-sky { background: var(--sky-bg); color: var(--sky); }
.eyebrow-amber { background: var(--amber-bg); color: var(--amber); }

.visual-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 1.5rem; width: 100%; max-width: 22rem; }
.visual-label { font-size: 0.85rem; font-weight: 700; color: var(--muted-soft); margin-bottom: 1rem; }
.progress-bar { height: 0.7rem; width: 100%; background: var(--ent-bg); overflow: hidden; margin-bottom: 0.5rem; }
.progress-bar-fill { height: 100%; background: #417690; }
.visual-caption { font-size: 0.75rem; color: var(--muted-soft); margin-bottom: 1.5rem; }
.visual-caption-muted { font-size: 0.75rem; color: var(--muted-soft); }
.visual-stats-pair { display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 1rem; }
.visual-stat-value { font-size: 1.2rem; font-weight: 700; }
.visual-stat-label { font-size: 0.75rem; color: var(--muted-soft); }
.visual-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; padding: 0.4rem 0; }
.visual-row-right { text-align: right; display: flex; flex-direction: column; gap: 0.15rem; }
.visual-skeleton { height: 0.5rem; width: 100%; background: var(--ent-bg); margin-bottom: 0.5rem; }

.offers-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .offers-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 1.5rem; transition: box-shadow .15s ease, transform .15s ease; }
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.offer-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.offer-location { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.25rem; }
.offer-size { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.offer-price { font-size: 1.15rem; font-weight: 700; color: #417690; margin-bottom: 1rem; }
.offers-disclaimer { text-align: center; font-size: 0.75rem; color: var(--muted-soft); margin-top: 1.5rem; }

.contact-section { text-align: center; max-width: 54rem; }
.contact-section h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .contact-section h2 { font-size: 2.6rem; } }
.contact-section > p { color: var(--muted); margin-bottom: 3rem; }
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--cream); border: 1px solid var(--border); padding: 1.5rem; transition: box-shadow .15s ease, transform .15s ease; }
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card .icon-lg { margin: 0 auto 1rem; }
.contact-card h3 { font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 4rem 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .wordmark { font-size: 1.15rem; margin-bottom: 0.4rem; }
.footer-brand p { font-size: 0.9rem; color: var(--muted-soft); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { color: var(--muted-soft); }
.footer-social a:hover { color: #417690; }
.footer-grid h4 { font-weight: 700; margin-bottom: 1rem; }
.footer-grid ul li { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.footer-grid ul li a:hover { color: #417690; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; font-size: 0.875rem; color: var(--muted-soft); }

.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; background: #25a55a; color: #fff;
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab .icon { width: 1.6rem; height: 1.6rem; }

/* ==========================================================================
   Member / admin portal shell
   ========================================================================== */
.portal-page { background: var(--ent-bg); }
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-topbar {
  background: #417690; height: 3.5rem; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; flex-shrink: 0;
}
@media (min-width: 640px) { .portal-topbar { padding: 0 1.5rem; } }
.portal-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; }
.portal-brand-badge {
  width: 1.75rem; height: 1.75rem; background: #fff; color: #417690; font-weight: 700; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.portal-brand-text { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; }
.portal-brand-text em { font-style: normal; font-weight: 400; color: rgba(255,255,255,0.45); }
.portal-topbar-right { display: flex; align-items: center; gap: 0.9rem; }
.portal-user-name { display: none; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
@media (min-width: 640px) { .portal-user-name { display: inline; } }
.portal-topbar-right .btn-ghost { border-color: rgba(255,255,255,0.25); color: #fff; }
.portal-topbar-right .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.portal-body { flex: 1; display: flex; min-height: 0; }
.portal-sidebar { display: none; width: 14rem; flex-shrink: 0; background: #417690; flex-direction: column; justify-content: space-between; }
@media (min-width: 860px) { .portal-sidebar { display: flex; } }
.portal-nav { padding: 0.75rem 0; }
.portal-nav-link {
  display: flex; align-items: center; gap: 0.75rem; border-left: 2px solid transparent;
  padding: 0.6rem 1.25rem; font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.portal-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.portal-nav-link.active { border-left-color: #79aec8; background: rgba(255,255,255,0.05); color: #fff; font-weight: 600; }
.portal-sidebar-foot { display: flex; align-items: center; gap: 0.65rem; border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 1.25rem; }
.avatar-initials { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.portal-sidebar-name { font-size: 0.75rem; font-weight: 600; color: #fff; margin: 0; }
.portal-sidebar-role { font-size: 0.68rem; color: rgba(255,255,255,0.45); margin: 0; text-transform: capitalize; }

.portal-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.portal-pagebar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--white);
  border-bottom: 1px solid var(--ent-border); padding: 0.75rem 1rem;
}
@media (min-width: 640px) { .portal-pagebar { padding: 0.75rem 1.5rem; } }
.portal-pagebar-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ent-muted); margin: 0; }
.portal-pagebar-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.portal-mobile-nav { width: auto; flex-shrink: 0; }
@media (min-width: 860px) { .portal-mobile-nav { display: none; } }

.portal-content { flex: 1; overflow-y: auto; padding: 1rem; }
@media (min-width: 640px) { .portal-content { padding: 1.5rem; } }
.portal-help-line { text-align: center; font-size: 0.875rem; color: var(--ent-muted); margin-top: 2.5rem; }
.portal-help-line a { color: #417690; }
.portal-help-line a:hover { text-decoration: underline; }

/* Overview stage pipeline */
.stage-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.25rem; }
@media (min-width: 640px) { .stage-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .stage-grid { grid-template-columns: repeat(7, 1fr); } }
.stage-cell { border: 1px solid var(--ent-border); background: var(--white); padding: 0.7rem; font-size: 0.85rem; }
.stage-cell-eyebrow { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ent-muted); margin-bottom: 0.3rem; }
.stage-active { border-color: #417690; background: #ecf1f4; }
.stage-active .stage-cell-eyebrow { color: #417690; }
.stage-done { border-color: rgba(26,127,55,0.3); background: var(--green-bg); }
.stage-done .stage-cell-eyebrow { color: var(--green); }

/* Agreements signing */
.sign-form { border: 1px solid var(--ent-border); background: var(--ent-bg); padding: 1rem; margin-top: 1rem; }

/* Events / lists */
.event-item { border-left: 3px solid #417690; padding: 0.1rem 0 0.1rem 1rem; margin-bottom: 1rem; }
.event-item:last-child { margin-bottom: 0; }
.event-title { font-weight: 700; }
.event-meta { font-size: 0.875rem; color: var(--muted); }
.event-description { font-size: 0.875rem; margin-top: 0.3rem; }

/* Photo grids (member + admin) */
.photo-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .photo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-card { border: 1px solid var(--ent-border); overflow: hidden; background: var(--white); }
.photo-card img { width: 100%; height: 11rem; object-fit: cover; }
.photo-card figcaption { padding: 0.75rem; }
.photo-title { font-size: 0.9rem; font-weight: 600; }
.photo-caption { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.photo-date { font-size: 0.75rem; color: var(--muted-soft); margin-top: 0.2rem; }

/* Admin: inline mini-forms inside <details> */
.member-row-actions { white-space: nowrap; }
.member-row-actions details { display: inline-block; position: relative; margin-left: 0.75rem; }
.member-row-actions summary { list-style: none; }
.member-row-actions summary::-webkit-details-marker { display: none; }
.mini-form {
  position: absolute; right: 0; top: 100%; z-index: 5; width: 16rem; background: var(--white);
  border: 1px solid var(--ent-border); box-shadow: var(--shadow-md); padding: 1rem; margin-top: 0.4rem; text-align: left;
}

/* ---------- Print ---------- */
@media print {
  .print-hidden { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff; }
  .portal-content { overflow: visible; padding: 0; }
  .print-plain { border: none; box-shadow: none; }
}
.print-only { display: none; }
