:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --ink: #020817;
  --muted: #55637a;
  --border: #e6e9ef;
  --bg-soft: #f6f8fb;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand img { height: 48px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #eef4fc; }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: #eef4fc; }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,102,204,.92), rgba(0,82,163,.75));
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { font-size: 44px; font-weight: 800; margin: 0 0 16px; max-width: 760px; }
.hero p.lead { font-size: 20px; margin: 0 0 32px; max-width: 620px; opacity: .95; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 72px 0;
}
.page-hero h1 { font-size: 38px; font-weight: 800; margin: 0 0 12px; }
.page-hero p { font-size: 18px; opacity: .95; margin: 0; max-width: 640px; }

/* Sections */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-title h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.section-title p { color: var(--muted); font-size: 17px; margin: 0; }

h2.block-title { font-size: 28px; font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 20px; font-weight: 700; }

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 12px 32px rgba(2,8,23,.08); transform: translateY(-2px); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eaf2fd;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 { margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card a.link { color: var(--primary); font-weight: 600; font-size: 15px; }
.card a.link:hover { text-decoration: underline; }

.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.card ul li { margin-bottom: 8px; }

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.event-card:hover { box-shadow: 0 12px 32px rgba(2,8,23,.08); transform: translateY(-2px); }
.event-card .event-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-soft);
}
.event-card .event-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.event-card .event-date {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.event-card h3 { margin: 0 0 10px; font-size: 19px; }
.event-card p { color: var(--muted); margin: 0 0 18px; font-size: 15px; flex: 1; }
.event-card .btn { align-self: flex-start; padding: 10px 18px; font-size: 14px; }

.event-card-past { opacity: .75; }
.event-card-past .event-photo { filter: grayscale(60%); }

.events-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

@media (max-width: 860px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* Partner logos */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.partners-row img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .15s, opacity .15s;
}
.partners-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* CTA band */
.cta-band {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-size: 30px; font-weight: 800; margin: 0 0 12px; }
.cta-band p { font-size: 17px; opacity: .95; margin: 0 0 28px; }

/* Long-form content pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin: 0 0 16px; font-size: 16.5px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 16px;
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf2fd;
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
}
.callout h3 { margin: 0 0 8px; }
.callout p { color: var(--muted); margin: 0; }

.badge-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: stretch;
}
.contact-grid > .contact-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.address-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  flex: 0 0 auto;
}
.address-card h3 { margin: 0 0 8px; }
.address-card p { color: var(--muted); margin: 0; }
.map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 1 1 auto;
  min-height: 260px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

form.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,.12); }
.field textarea { resize: vertical; min-height: 130px; }

.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.consent-row input { margin-top: 4px; }
.consent-row label { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.consent-row a { color: var(--primary); font-weight: 600; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14.5px;
  margin-bottom: 20px;
}
.form-status.show { display: block; }
.form-status.success { background: #e9f9ee; color: #157347; border: 1px solid #b7e4c7; }
.form-status.error { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0;}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.site-footer {
  background: #071427;
  color: #c7d2e0;
  padding: 40px 0 24px;
}
.footer-grid {
  max-width: 420px;
  margin-bottom: 28px;
}
.footer-grid p { color: #8f9db3; font-size: 14.5px; margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 32px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #8f9db3;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a:hover { color: #fff; }

/* Legal pages */
.legal-page .prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.legal-page .prose ul { color: var(--muted); }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-top: -8px; margin-bottom: 32px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
}
