/* PRIMECorp Summit 2027
   Colours and fonts match www.primecorpbc.ca (Avada theme settings). */
:root {
  --navy: #164672;       /* primecorpbc.ca headings */
  --navy-deep: #072c5e;  /* primecorpbc.ca dark blue button */
  --green: #71b644;      /* primecorpbc.ca primary colour */
  --green-text: #54770f; /* primecorpbc.ca dark green, passes contrast as text */
  --white: #ffffff;

  /* Theme tokens: light (default). Dark values are set below. */
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;        /* form panel */
  --surface-alt: #f6f6f6;    /* registration band */
  --card: #f6f6f6;           /* who/cost card */
  --band: var(--navy-deep);  /* "What to expect" band */
  --header-bg: #ffffff;
  --footer-bg: var(--navy);
  --text: #333333;
  --muted: #5c5c5c;
  --heading: var(--navy);
  --link: var(--navy);
  --accent-text: var(--green-text);
  --line: #ebeaea;
  --field-bg: #ffffff;
  --field-border: #b4bec9;
  --field-border-hover: #7f8d9c;
  --focus-border: var(--navy);
  --btn-bg: var(--navy);
  --btn-text: #ffffff;
  --btn-bg-hover: var(--navy-deep);
  --error: #b42318;
  --shadow: 0 1px 2px rgba(7,44,94,.06), 0 12px 32px -12px rgba(7,44,94,.18);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23164672' stroke-width='2'/%3E%3C/svg%3E");

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Dark theme: follows the visitor's operating system setting. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1b2a;
    --surface: #14263a;
    --surface-alt: #0a1622;
    --card: #14263a;
    --band: #072c5e;
    --header-bg: #0d1b2a;
    --footer-bg: #0a2340;
    --text: #e3e9ef;
    --muted: #a9b6c4;
    --heading: #eef4fa;
    --link: #8ec5f0;
    --accent-text: #8fcd66;
    --line: #253a52;
    --field-bg: #0f1f30;
    --field-border: #3d5570;
    --field-border-hover: #61809f;
    --focus-border: #8ec5f0;
    --btn-bg: var(--green);
    --btn-text: var(--navy-deep);
    --btn-bg-hover: #86c560;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238ec5f0' stroke-width='2'/%3E%3C/svg%3E");
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, legend { margin: 0; line-height: 1.15; font-family: var(--font-head); }
h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.01em;
}
/* Short green rule under section headings, as on primecorpbc.ca */
.intro-lead h2::after, .expect h2::after, .voices-quotes h2::after, .register-side h2::after, .faq h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 2px; background: var(--green);
}
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  font-family: var(--font-head);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-weight: 700; font-size: .98rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-small { min-height: 40px; padding: 0 18px; }
.btn-green { background: var(--green); color: var(--navy-deep); }
.btn-green:hover { background: #86c560; color: var(--navy-deep); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy, nav .btn { background: var(--btn-bg); color: var(--btn-text); }
.btn-navy:hover, nav .btn:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { height: 52px; width: auto; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
nav a:not(.btn):hover { color: var(--link); text-decoration: underline; }
@media (max-width: 520px) {
  nav a:not(.btn) { display: none; }
  .brand img { height: 44px; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-deep); overflow: hidden; isolation: isolate; }
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(7,44,94,.96) 0%, rgba(7,44,94,.88) 38%, rgba(22,70,114,.55) 75%, rgba(22,70,114,.3) 100%),
    url("/images/summit-2025.jpg") center 35% / cover no-repeat;
}
.hero-arc { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(80px, 13vw, 180px); z-index: -1; }
.hero-arc path { fill: var(--green); opacity: .92; }
.hero-inner { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(120px, 16vw, 200px); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 1.05rem; margin-bottom: 18px; color: #cfe0f2;
}
.hero-kicker::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--green); }
.hero h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.035em;
}
.hero h1 span {
  display: block;
  margin-top: .45em;
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  color: #dbe7f3;
  max-width: none;
}
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin: 36px 0 34px; padding: 0;
}
.hero-facts div { min-width: 0; }
.hero-facts dt { font-size: .85rem; color: #a9c2dc; font-weight: 500; }
.hero-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* One orchestrated load moment: hero type rises once */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .08s; }
  .hero-inner > *:nth-child(3) { animation-delay: .16s; }
  .hero-inner > *:nth-child(4) { animation-delay: .24s; }
  .hero-arc path { animation: sweep 1.1s cubic-bezier(.2,.7,.2,1) both; transform-origin: 0 100%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { opacity: 0; transform: scaleX(.6); } to { opacity: .92; transform: none; } }

/* Intro */
.intro {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 96px);
  align-items: start;
}
.intro-lead h2 { margin-bottom: 20px; max-width: 18ch; }
.intro-lead p { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.intro-card {
  border-top: 6px solid var(--green);
  background: var(--card);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 28px clamp(20px, 3vw, 34px);
  display: grid; gap: 26px;
}
.intro-card h3 { color: var(--heading); margin-bottom: 6px; }
.intro-card p { margin: 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px !important; }
.price strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--heading); line-height: 1.1; }
.price span { flex-basis: 100%; color: var(--muted); font-size: .95rem; }
.fine { margin-top: 12px !important; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* What to expect */
.expect { background: var(--band); color: var(--white); padding: clamp(56px, 8vw, 100px) 0; }
.expect h2 { color: var(--white); margin-bottom: 40px; }
.expect-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 56px);
}
.expect-list li { border-left: 3px solid var(--green); padding-left: 20px; }
.expect-list h3 { font-size: 1.2rem; margin-bottom: 8px; }
.expect-list p { color: #c3d4e6; margin: 0; max-width: 40ch; }
.expect .note { margin: 44px 0 0; color: #a9c2dc; font-size: .95rem; }
@media (max-width: 900px) { .expect-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expect-list { grid-template-columns: 1fr; gap: 28px; } }

/* Voices */
.voices { padding: clamp(56px, 8vw, 104px) 0; }
.voices-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.voices-photo { margin: 0; }
.voices-photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.voices-photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.voices-quotes h2 { margin-bottom: 26px; }
blockquote { margin: 0; padding: 18px 0; border-top: 1px solid var(--line); }
blockquote:last-child { border-bottom: 1px solid var(--line); }
blockquote p { margin: 0; font-size: 1.15rem; line-height: 1.5; position: relative; padding-left: 30px; }
blockquote p::before {
  content: "\201C"; position: absolute; left: 0; top: -.18em; font-family: var(--font-head);
  font-size: 2.6rem; font-weight: 800; color: var(--green); line-height: 1;
}
@media (max-width: 860px) { .voices-inner { grid-template-columns: 1fr; } }

/* Registration */
.register { background: var(--surface-alt); padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.register-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.register-side { position: sticky; top: 108px; }
.register-side h2 { margin-bottom: 18px; }
.register-side p { color: var(--muted); max-width: 40ch; }
.register-panel {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
}
fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
legend {
  font-weight: 700; font-size: 1.3rem; color: var(--heading);
  padding: 0; margin-bottom: 18px;
}
.legend-help { margin: -10px 0 18px; color: var(--muted); font-size: .95rem; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .row.two { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; min-width: 0; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); margin-left: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background-color: var(--field-bg);
  border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
  padding: 11px 13px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 92px; }
select {
  appearance: none;
  background-image: var(--chevron);
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
input:hover, select:hover, textarea:hover { border-color: var(--field-border-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus-border); box-shadow: 0 0 0 3px rgba(113,182,68,.45); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-help { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.field-help:empty { display: none; }
.field.invalid .field-help { display: none; }
.field-msg { color: var(--error); font-size: .9rem; margin: 6px 0 0; }
.form-extra { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { border-top: 1px solid var(--line); padding-top: 26px; display: grid; gap: 16px; }
.turnstile-slot { min-height: 65px; }
.consent { margin: 0; font-size: .92rem; color: var(--muted); }
.form-error { margin: 0; color: var(--error); font-weight: 600; }
.success { text-align: left; outline: none; }
.success svg { width: 56px; height: 56px; margin-bottom: 18px; }
.success circle { fill: var(--green); }
.success path { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { font-size: 1.6rem; font-weight: 800; color: var(--heading); margin-bottom: 12px; }
.success p { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .15s ease-out forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .register-inner { grid-template-columns: 1fr; }
  .register-side { position: static; }
}

/* FAQ */
.faq { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.faq h2 { margin-bottom: 36px; }
.faq-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 48px); align-items: start; }
.faq-group h3 { color: var(--accent-text); font-size: 1rem; margin-bottom: 8px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
summary:hover { color: var(--link); }
details p { color: var(--muted); margin: 0 0 14px; font-size: 1rem; }
@media (max-width: 960px) { .faq-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .faq-groups { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--footer-bg); color: #d4e1ee; padding: 48px 0; font-size: .95rem; border-top: 6px solid var(--green); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.footer-title { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.footer-logo { width: 150px; height: auto; margin-bottom: 14px; }
.site-footer a { color: var(--white); }
.footer-media { margin: 0; max-width: 70ch; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* 404 page */
.not-found { padding-top: 96px; padding-bottom: 96px; }
.not-found p { margin-top: 16px; color: var(--muted); }
