/* dmortgage.ca — seminar registration page (/seminar-registration/).
   Separate from site.css: this page uses the "Organic" palette from its
   Claude Design source. Colour tokens below are copied from that design system. */

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;

  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;

  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: 'Yeseva One', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius-lg: 28px;
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  --photo-filter: saturate(.85) contrast(.95) brightness(1.03);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }
input, select, button { font: inherit; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
main { flex: 1 0 auto; }

.wrap { max-width: 1160px; margin: 0 auto; }

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

.site-header { padding: 20px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text); text-decoration: none; }
.brand:hover { color: var(--color-text); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; }
.brand-text span { font-size: 13px; color: var(--color-neutral-700); }

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

.hero { padding: 32px 24px 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }

.badge {
  align-self: flex-start;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}

.hero h1 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; text-wrap: balance;
}
.hero-lead {
  font-size: clamp(19px, 2vw, 23px); line-height: 1.45; font-weight: 600;
  color: var(--color-accent-700); max-width: 520px; text-wrap: pretty;
}
.hero-text {
  font-size: 17px; line-height: 1.6; color: var(--color-neutral-800);
  max-width: 520px; text-wrap: pretty;
}

.when-where { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; max-width: 560px; }

.date-circle {
  width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-accent-2-800); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.date-day { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent-2-200); }
.date-num { font-family: var(--font-heading); font-weight: 400; font-size: 52px; line-height: 1; }
.date-month { font-size: 14px; font-weight: 700; }

.info-card {
  flex: 1 1 260px; margin: 0;
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.info-row { display: flex; align-items: baseline; gap: 12px; }
.info-row dt {
  width: 44px; flex-shrink: 0;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-accent-700);
}
.info-row dd { margin: 0; }
.info-time { font-size: 20px; }
.info-place { display: flex; flex-direction: column; gap: 2px; }
.info-place strong { font-size: 18px; line-height: 1.25; }
.info-place span { font-size: 15px; line-height: 1.4; color: var(--color-neutral-800); }

.btn-cta {
  display: inline-block;
  background: var(--color-accent); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 17px;
  padding: 18px 32px; border-radius: 999px; box-shadow: var(--shadow-md);
}
.btn-cta:hover { background: var(--color-accent-600); color: #fff; }

/* Photos: four overlapping circles with two decorative blobs behind */
.hero-photos { position: relative; }
.blob { position: absolute; border-radius: 50%; }
.blob-green { width: 300px; height: 300px; background: var(--color-accent-2-300); right: -60px; top: -30px; }
.blob-peach { width: 140px; height: 140px; background: var(--color-accent-300); left: -10px; bottom: -20px; }
.photo-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 480px; margin: 0 auto; padding-bottom: 48px;
}
.photo-circle {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid var(--color-bg);
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.photo-down { transform: translateY(48px); }

/* ---------- Countdown ------------------------------------------------- */

.countdown-section { padding: 0 24px; }
.countdown-section[hidden] { display: none; }
.countdown {
  background: var(--color-accent-2-800); color: #fff;
  border-radius: 999px; padding: 24px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.countdown-title { font-family: var(--font-heading); font-weight: 400; font-size: 24px; }
.countdown-units { display: flex; gap: 10px; flex-wrap: wrap; }
.unit {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--color-accent-2-100); color: var(--color-accent-2-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.unit-val { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.unit-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ---------- Program & speakers --------------------------------------- */

.program { padding: 96px 24px 40px; }
.program .wrap { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head h2,
.register-info h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.1;
}
.section-head p { font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); }

.speakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 20px;
}
.speaker {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.speaker-head { display: flex; gap: 18px; align-items: center; }
.speaker-head img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  filter: var(--photo-filter);
}
.speaker-id { display: flex; flex-direction: column; gap: 4px; }
.speaker-topic { font-size: 13px; font-weight: 800; color: var(--color-accent-700); }
.speaker-id h3 { font-family: var(--font-body); font-size: 20px; font-weight: 800; line-height: 1.3; }
.speaker-role { font-size: 14px; color: var(--color-neutral-700); }

.speaker-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 16px; line-height: 1.5;
}
.speaker-points li { display: flex; gap: 12px; }
.speaker-points li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-accent); margin-top: 8px;
}

/* ---------- Registration --------------------------------------------- */

.register-section { padding: 56px 24px 96px; scroll-margin-top: 16px; }
.register {
  position: relative; overflow: hidden; overflow: clip;
  background: var(--color-accent-2-800); color: #fff;
  border-radius: 48px; padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px;
}
.register-blob {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: var(--color-accent-2-700); left: -80px; bottom: -110px;
}
.register-info { position: relative; display: flex; flex-direction: column; gap: 18px; }
.register-text { font-size: 17px; line-height: 1.6; color: var(--color-accent-2-100); max-width: 440px; text-wrap: pretty; }
.register-when { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 700; }

.register-call { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.register-call-label {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-accent-2-200);
}
.call-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 10px; border-radius: 999px;
  background: var(--color-accent-2-700); color: #fff; text-decoration: none;
}
.call-pill:hover { background: var(--color-accent-2-600); color: #fff; }
.call-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--color-accent-2-800);
  display: grid; place-items: center;
}
.call-text { display: flex; flex-direction: column; line-height: 1.2; }
.call-text span { font-size: 13px; color: var(--color-accent-2-100); }
.call-text strong { font-size: 18px; }

.register-side { position: relative; }

.reg-form { display: flex; flex-direction: column; gap: 12px; }
.reg-form[hidden] { display: none; }
.field {
  width: 100%;
  padding: 16px 22px; border-radius: 999px; border: 0;
  font-size: 16px; color: var(--color-text); background: var(--color-bg);
}
.field::placeholder { color: var(--color-neutral-700); }
.field:focus-visible { outline: 3px solid var(--color-accent-400); outline-offset: 2px; }

.select-wrap { position: relative; }
.select-wrap select {
  padding-right: 52px; line-height: 1.55;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
/* Placeholder-style colour until an option is chosen */
.select-wrap select:invalid { color: var(--color-neutral-700); }
.select-wrap select option { color: var(--color-text); }
.select-wrap svg {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--color-text);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  margin-top: 6px; padding: 18px; border: 0; border-radius: 999px;
  background: var(--color-accent); color: #fff;
  font-weight: 800; font-size: 17px; cursor: pointer;
}
.btn-submit:hover { background: var(--color-accent-400); }
.btn-submit:disabled { opacity: .7; cursor: progress; }

.form-error {
  background: #fff2eb; color: var(--color-accent-900);
  border-radius: 16px; padding: 12px 18px; font-size: 15px; font-weight: 600;
}
.form-error[hidden] { display: none; }
.form-consent { font-size: 13px; color: var(--color-accent-2-100); line-height: 1.5; }
.form-consent a { color: #fff; }
.form-consent a:hover { color: var(--color-accent-2-200); }

.thanks {
  background: var(--color-accent-2-700); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column; gap: 10px; justify-content: center;
  height: 100%;
}
.thanks[hidden] { display: none; }
.thanks-link { color: #fff; font-weight: 800; }

.cal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.cal-label { width: 100%; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent-2-200); }
.cal-btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--color-bg); color: var(--color-text);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.cal-btn:hover { background: #fff; color: var(--color-text); }
.thanks-link:hover { color: var(--color-accent-2-200); }

/* No-JS fallback: seminar.php redirects to #seminar-thanks or #form-error. */
.thanks:target, .form-error:target { display: flex; }
.form-error:target { display: block; }
.register-side:has(#seminar-thanks:target) .reg-form { display: none; }

/* Closed state (set by seminar.js once the seminar has started) */
.is-closed #hero-cta, .is-closed .register-text { display: none; }
.thanks-title { font-family: var(--font-heading); font-weight: 400; font-size: 28px; }
.thanks-title:focus { outline: none; }
.thanks p { font-size: 16px; line-height: 1.55; color: var(--color-accent-2-100); }

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

.site-footer { padding: 28px 24px; background: var(--color-surface); }
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--color-neutral-800);
}
.footer-links { display: flex; gap: 16px; }

/* ---------- Phones ---------------------------------------------------- */

@media (max-width: 600px) {
  .site-header { padding: 16px; }
  .hero { padding: 16px 16px 56px; }
  .hero-grid { gap: 32px; }
  .countdown-section, .program, .register-section, .site-footer { padding-left: 16px; padding-right: 16px; }

  .blob-green { width: 220px; height: 220px; right: -40px; }

  .date-circle { width: 112px; height: 112px; }
  .date-num { font-size: 44px; }

  .btn-cta { display: block; text-align: center; }

  .countdown { border-radius: var(--radius-lg); padding: 22px 16px; justify-content: center; text-align: center; }
  .countdown-title { font-size: 21px; width: 100%; }
  .countdown-units { justify-content: center; gap: 8px; }
  .unit { width: 68px; height: 68px; }
  .unit-val { font-size: 23px; }
  .unit-label { font-size: 9.5px; }

  .program { padding-top: 64px; }
  .speaker { padding: 22px; }
  .speaker-head img { width: 68px; height: 68px; }

  .register { border-radius: 32px; gap: 32px; }
  .field { padding-left: 18px; }
  .select-wrap select { padding-right: 40px; font-size: 15px; }
  .select-wrap svg { right: 16px; }
}
