/* =========================================================
   Attracted to the Pavilion — site styles
   Colors and typography mirror the existing brand
   ========================================================= */

:root {
  --c-primary:        #0ABEDD;   /* logo cyan */
  --c-primary-dark:   #0D60B5;   /* logo deep blue */
  --c-primary-mid:    #2C8FC6;
  --c-light:          #E8F8FB;   /* section bg tint */
  --c-light-2:        #F4FBFD;
  --c-dark:           #0E2A35;   /* header / footer / body text */
  --c-text:           #1a1a1a;
  --c-muted:          #5a6a72;
  --c-white:          #ffffff;
  --c-border:         #d8e6ea;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(14, 42, 53, 0.06);
  --shadow:    0 12px 32px rgba(14, 42, 53, 0.10);

  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary-dark); text-decoration: none; }
a:hover { color: var(--c-primary); }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-dark);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  margin: 0 0 0.75rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(95deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  box-shadow: 0 6px 18px rgba(13, 96, 181, 0.25);
}
.btn-primary:hover {
  color: var(--c-white);
  box-shadow: 0 10px 28px rgba(13, 96, 181, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 42, 53, 0.96);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}
.nav-list a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 4px 0;
  position: relative;
}
.nav-list a:hover { color: var(--c-primary); }
.nav-list a.is-current { color: var(--c-white); }
.nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
  align-items: center;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid transparent;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}
.social-list a:hover {
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header-cta { padding: 10px 18px; font-size: 0.92rem; }

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-white);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 42, 53, 0.55) 0%, rgba(14, 42, 53, 0.35) 50%, rgba(13, 96, 181, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 820px;
}
.hero-content .eyebrow {
  color: var(--c-white);
  opacity: 0.92;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.hero-content .eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--c-primary);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}
.hero-title {
  color: var(--c-white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Sections ---- */

.section { padding: 88px 0; }
.section-mission { background: var(--c-light); text-align: center; }
.section-mission p { font-size: 1.1rem; line-height: 1.75; color: var(--c-dark); }
.section-mission .mission-tag {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-primary-dark);
}

.section-bio { background: var(--c-white); padding-bottom: 64px; }
.section-head { text-align: center; margin: 0 auto 3rem; max-width: 720px; }
.section-head .eyebrow { color: var(--c-primary-dark); }

.bio-composite {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.bio-composite img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.bio-mobile-text { display: none; padding-top: 32px; }
.bio-mobile-text p { color: var(--c-dark); }

.section-events { background: var(--c-light); }
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.event-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--c-dark);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--c-dark);
}
.event-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-light-2);
}
.event-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.event-card:hover .event-image img { transform: scale(1.04); }

.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(13, 96, 181, 0.92);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, background 200ms ease;
}
.event-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.08); background: var(--c-primary); }
.play-icon::after {
  content: "";
  display: block;
  width: 0; height: 0;
  border-left: 22px solid var(--c-white);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.event-meta { padding: 22px 24px 26px; }
.event-meta h3 { margin: 0 0 0.4rem; }
.event-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-primary-dark);
}

/* ---- Page header (Contact, etc.) ---- */

.page-header {
  background: linear-gradient(160deg, var(--c-light) 0%, var(--c-light-2) 100%);
  padding: 96px 0 72px;
  text-align: center;
}
.page-header .eyebrow { color: var(--c-primary-dark); }
.page-header h1 { margin: 0 0 1rem; }
.page-lead {
  font-size: 1.15rem;
  color: var(--c-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- Contact ---- */

.section-contact { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-item { margin-bottom: 1.75rem; }
.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  margin: 0 0 0.25rem;
}
.contact-value {
  font-size: 1.15rem;
  color: var(--c-dark);
  margin: 0;
}
.contact-value a { color: var(--c-dark); }
.contact-value a:hover { color: var(--c-primary-dark); }

.contact-social { gap: 14px; }
.contact-social a {
  width: 44px; height: 44px;
  background: var(--c-white);
  border-color: var(--c-border);
  color: var(--c-primary-dark);
}
.contact-social a:hover { background: var(--c-primary-dark); color: var(--c-white); border-color: var(--c-primary-dark); }

.contact-form-wrap {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 { margin-bottom: 1.5rem; }

.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form-row label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-dark);
  margin-bottom: 0.4rem;
}
.form-row label span { color: var(--c-primary-dark); }
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-dark);
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(10, 190, 221, 0.18);
}
.form-row textarea { resize: vertical; min-height: 140px; }

.hp-field { position: absolute; left: -9999px; visibility: hidden; }

/* ---- Footer ---- */

.site-footer {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer-logo {
  height: 56px;
  opacity: 0.95;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.footer-nav a:hover { color: var(--c-primary); }
.footer-social a { color: rgba(255,255,255,0.85); border-color: transparent; }
.footer-social a:hover { color: var(--c-primary); background: rgba(255,255,255,0.06); }

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

/* ---- Mobile ---- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--c-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 280ms ease;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    gap: 8px;
  }
  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-list a.is-current::after { display: none; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .social-list { justify-content: center; }
  .header-cta { text-align: center; }

  .bio-composite { display: none; }
  .bio-mobile-text { display: block; }

  .event-grid { grid-template-columns: 1fr; gap: 20px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 24px; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-logo { margin: 0 auto; }
  .footer-nav ul { justify-content: center; flex-wrap: wrap; }
  .footer-social { justify-content: center; }

  .section { padding: 64px 0; }
  .page-header { padding: 64px 0 48px; }
}

@media (max-width: 540px) {
  .hero-content { padding: 60px 24px; }
  .hero-actions .btn { flex: 1; }
  .play-icon { width: 60px; height: 60px; }
  .play-icon::after { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
}

/* ---- Accessibility helpers ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video { display: none; }
}
