/* Snow Leopard Capital — snowleopardcapital.ca */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1b2a41;
  --navy-dark: #121c2c;
  --gold: #b8956a;
  --gold-light: #c5a572;
  --tan-bg: #e8dfd0;
  --grey-bg: #e8ecf2;
  --white: #ffffff;
  --text: #2a3340;
  --muted: #5a6578;
  --max-w: 1100px;
  --header-h: 108px;
  --radius: 10px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.55;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27, 42, 65, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 149, 106, 0.25);
  min-height: var(--header-h);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem; padding: 0.35rem 0;
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--white);
}
.brand:hover { text-decoration: none; color: var(--gold-light); }
.brand img {
  height: clamp(48px, 7vw, 100px);
  width: auto;
  max-width: min(280px, 48vw);
}
.brand-text {
  display: none; /* wordmark already in logo asset */
}
@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; max-width: 46vw; }
}

.nav-links {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.85rem 1.1rem; list-style: none; justify-content: flex-end;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem; font-weight: 500; text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-light); text-decoration: none;
}

.nav-toggle {
  display: none; background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white); padding: 0.55rem 0.85rem;
  min-height: 44px; min-width: 44px;
  border-radius: 4px; cursor: pointer; font-size: 0.875rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600;
  min-height: 44px;
  border-radius: 6px; border: none; cursor: pointer;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-outline-dark {
  color: var(--navy); border: 1px solid rgba(27, 42, 65, 0.45); background: transparent;
}
.btn-outline-dark:hover { background: rgba(27, 42, 65, 0.06); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hero--compact .hero__content { padding: 2.25rem 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

.hero {
  position: relative; min-height: clamp(340px, 52vh, 520px);
  display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: var(--navy-dark) center / cover no-repeat;
  overflow: hidden;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(12, 20, 32, 0.96) 0%, rgba(18, 28, 44, 0.82) 52%, rgba(18, 28, 44, 0.55) 100%);
}
@media (max-width: 900px) {
  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(12, 20, 32, 0.88) 0%,
      rgba(12, 20, 32, 0.82) 45%,
      rgba(12, 20, 32, 0.9) 100%
    );
  }
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__content { position: relative; z-index: 1; padding: 3.75rem 0; max-width: 42rem; }
.hero .eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.55rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.25rem); line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.hero--compact h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}
.hero--compact .eyebrow {
  font-size: clamp(1.55rem, 5.5vw, 2.15rem);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 560px) {
  .hero__content { padding: 2.35rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.15rem); }
  .hero-tagline { font-size: 1.2rem; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 1.15rem; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .hero-actions .btn-primary {
    grid-column: 1 / -1;
    width: 100%;
  }
  .hero-actions .btn-outline {
    width: 100%;
    background: rgba(18, 28, 44, 0.55);
    border-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
    padding-inline: 0.75rem;
  }
  .event-pill {
    display: block;
    white-space: normal;
    font-size: 1.08rem;
  }
}

.page-hero {
  background: var(--navy); color: var(--white); padding: 3rem 0 2.5rem;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600; margin-bottom: 0.5rem;
}
.page-hero .lede { color: rgba(255, 255, 255, 0.85); max-width: 40rem; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--grey-bg); }
.section-dark { background: var(--navy-dark); color: var(--white); }
.section-label {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.95rem;
}
.section-dark .section-label { color: var(--gold-light); }
#sponsor .section-label {
  color: var(--navy);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  letter-spacing: 0.06em;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600; color: var(--navy); margin-bottom: 1rem; line-height: 1.2;
}
.section-dark .section-title { color: var(--white); }
.section-body { color: var(--muted); max-width: 42rem; }
.section-dark .section-body { color: rgba(255, 255, 255, 0.8); }
.section-body p + p { margin-top: 1rem; }

.quote-block {
  border-left: 3px solid var(--gold); padding-left: 1.25rem; margin: 1.5rem 0;
  font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1.35;
}
.quote-block cite {
  display: block; margin-top: 0.5rem; font-family: var(--font-body);
  font-size: 0.875rem; font-style: normal; color: var(--muted);
}

.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.75rem;
}
.card {
  background: var(--white); border: 1px solid rgba(27, 42, 65, 0.08);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
  box-shadow: 0 8px 24px rgba(18, 28, 44, 0.06);
}
.card h3 {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--navy);
  margin-bottom: 0.5rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card .role { color: var(--gold); font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.65rem; }

.team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.pillars { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.pillars li {
  padding: 0.85rem 1rem; background: var(--white);
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}

.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white); padding: 2.75rem 0; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.75rem;
}
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.25rem; }

.site-footer {
  background: var(--navy-dark); color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0; font-size: 0.875rem;
}
.footer-inner { display: grid; gap: 0.5rem; }
.site-footer a { color: var(--gold-light); }
.footer-confidential {
  margin-top: 0.75rem; font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
}

/* Conference */
.event-pill {
  display: inline-block;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}
.sponsor-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 1.25rem 1.75rem; margin-top: 0.5rem;
}
.sponsor-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--white);
  border: 1px solid rgba(27, 42, 65, 0.12);
  box-shadow: 0 6px 18px rgba(18, 28, 44, 0.06);
  padding: 1.1rem 1.35rem;
  border-radius: 10px;
  flex: 1 1 auto;
  max-width: 340px;
  min-height: 112px;
}
.sponsor-row a:hover { text-decoration: none; opacity: 0.94; }
.sponsor-row img {
  height: clamp(64px, 12vw, 96px);
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
}
@media (max-width: 560px) {
  .sponsor-row { gap: 1rem; }
  .sponsor-row a { max-width: 100%; width: 100%; padding: 1.15rem; min-height: 100px; }
  .sponsor-row img { height: 72px; margin-inline: auto; }
}
.flag-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 1.25rem;
}
.flag-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.flag-card img { height: 28px; margin: 0 auto 0.65rem; }
.flag-card strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 0.25rem; }
.flag-card span { color: rgba(255, 255, 255, 0.78); font-size: 0.8125rem; line-height: 1.35; }

.agenda-stack { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.agenda-day h3 {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); margin-bottom: 0.75rem;
}
.agenda-row {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem;
  padding: 0.65rem 0; border-bottom: 1px solid rgba(27, 42, 65, 0.1);
}
.agenda-time { font-weight: 700; color: var(--gold); font-size: 0.875rem; }

.register-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); padding: 1.75rem; max-width: 640px;
}
@media (max-width: 560px) {
  .register-card { padding: 1.25rem 1.1rem; }
  .page-hero { padding: 2.25rem 0 1.75rem; }
  .page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .checkbox-item { font-size: 0.95rem; }
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem;
}
.form-group .optional { font-weight: 400; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid rgba(27, 42, 65, 0.2);
  border-radius: 6px; font: inherit; color: var(--text); background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(184, 149, 106, 0.45); border-color: var(--gold);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.opt-in-intro { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; }
.checkbox-group { display: grid; gap: 0.5rem; }
.checkbox-item {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.9rem; font-weight: 500; color: var(--text); cursor: pointer;
}
.checkbox-item input { margin-top: 0.2rem; width: auto; }
.field-help { font-size: 0.8125rem; color: var(--muted); margin-top: 0.75rem; }
.form-status {
  display: none; margin-bottom: 1rem; padding: 0.85rem 1rem;
  border-radius: 6px; font-size: 0.9375rem;
}
.form-status.visible { display: block; }
.form-status.success { background: #e8f7f0; color: #0d5c3d; }
.form-status.error { background: #fdeeee; color: #8a1f1f; }

.contact-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contact-card h3 {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); margin-bottom: 0.5rem;
}

.venue-photos {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
@media (max-width: 720px) {
  .venue-photos { grid-template-columns: 1fr; }
}

.agenda-photo {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.agenda-photo .photo-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.agenda-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 4;
  height: auto;
  object-fit: cover;
  object-position: center center;
  background: #0b1a33;
}
.agenda-photo figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border-top: 1px solid rgba(27, 42, 65, 0.08);
  min-height: 3.25rem;
  display: flex;
  align-items: center;
}

.photo-gallery {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.photo-gallery--city {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.photo-gallery--cee {
  margin-top: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-card--wide {
  margin: 1.5rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-dark);
  border: 1px solid rgba(27, 42, 65, 0.08);
}
.gallery-card--wide img {
  display: block;
  width: 100%;
  height: clamp(160px, 28vw, 280px);
  object-fit: cover;
  object-position: center;
}
.gallery-card--wide figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  background: var(--white);
}
.gallery-card--on-dark {
  border-color: rgba(255, 255, 255, 0.12);
}
.gallery-card--on-dark figcaption {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 901px) {
  .photo-gallery--city { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .photo-gallery,
  .photo-gallery--city,
  .photo-gallery--cee { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .photo-gallery,
  .photo-gallery--city,
  .photo-gallery--cee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gallery-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-dark);
  border: 1px solid rgba(27, 42, 65, 0.08);
  display: flex;
  flex-direction: column;
}
.gallery-card img,
.photo-link img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}
.photo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.photo-link:hover { opacity: 0.94; text-decoration: none; }
@media (min-width: 901px) {
  .gallery-card img,
  .photo-link img { height: 260px; }
}
.gallery-card figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  background: var(--white);
}
.gallery-card figcaption a,
.agenda-photo figcaption a {
  color: var(--navy);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--navy-dark); padding: 1rem 1.25rem calc(1.25rem + var(--safe-bottom));
    border-bottom: 1px solid rgba(184, 149, 106, 0.25);
    z-index: 120;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.85rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }
  .section { padding: 2.25rem 0; }
  .gallery-card img,
  .photo-link img { height: 200px; }
  .flag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .flag-card { padding: 0.85rem 0.75rem; }
  .flag-card span { font-size: 0.75rem; }
  .agenda-row {
    grid-template-columns: 3.75rem 1fr;
    gap: 0.55rem;
    font-size: 0.95rem;
  }
  .gallery-card figcaption,
  .agenda-photo figcaption {
    font-size: 0.875rem;
    color: var(--text);
  }
}
@media (max-width: 360px) {
  .container { width: min(100% - 1.1rem, var(--max-w)); }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .btn-outline { grid-column: 1; }
}
