/*
Theme Name: MGMAC
Description: Single page coming soon theme for the Medical Group Management Association of Canada. No external fonts, no scripts beyond the form check, no tracking. Built by Systemsaholic.
Author: Systemsaholic
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPLv2 or later
Text Domain: mgmac
*/

:root {
  --bg:      #fbfbfa;
  --surface: #ffffff;
  --ink:     #1a2028;
  --muted:   #5b6672;
  --accent:  #1f5673;
  --accent-ink: #ffffff;
  --border:  #e3e3df;
  --focus:   #1f5673;
  --ok-bg:   #edf5ef;
  --ok-ink:  #1d4d2b;
  --err-bg:  #fbeeee;
  --err-ink: #8a2222;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #14181c;
    --surface: #1b2127;
    --ink:     #e8eaec;
    --muted:   #9aa4ae;
    --accent:  #8fc0d6;
    --accent-ink: #10161a;
    --border:  #2a3138;
    --focus:   #8fc0d6;
    --ok-bg:   #17281c;
    --ok-ink:  #a7d6b4;
    --err-bg:  #2a1818;
    --err-ink: #eaa9a9;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 37rem;
  margin: 0 auto;
  padding: 3rem 1.375rem 4rem;
}

@media (min-width: 40em) {
  .wrap { padding: 5.5rem 2rem 6rem; }
}

/* ---- masthead ---- */

.masthead { margin: 0 0 2.5rem; }

.mark {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

/* ---- prose ---- */

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

@media (min-width: 40em) {
  h1 { font-size: 1.75rem; }
}

p { margin: 0 0 1.125rem; }
p:last-child { margin-bottom: 0; }

.lead { color: var(--ink); }
.muted { color: var(--muted); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ---- contact ---- */

.contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.contact dd { margin: 0 0 1.25rem; }
.contact dd:last-child { margin-bottom: 0; }

/* ---- form ---- */

.form-intro { margin: 0 0 1.5rem; }

form { margin: 0; }

.field { margin: 0 0 1.125rem; }

label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.opt { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}

textarea { min-height: 7rem; resize: vertical; }

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}

/* honeypot: kept out of sight of people, still in the DOM for bots */
.nope {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

button {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.6875rem 1.25rem;
  cursor: pointer;
  transition: opacity .12s ease;
}

button:hover { opacity: .9; }
button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.consent {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1.125rem 0 0;
}

.cf-turnstile { margin: 0 0 1.125rem; }

/* ---- notices ---- */

.notice {
  border-radius: 6px;
  padding: 0.875rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.notice-ok  { background: var(--ok-bg);  color: var(--ok-ink); }
.notice-err { background: var(--err-bg); color: var(--err-ink); }
.notice p:last-child { margin-bottom: 0; }

.notice ul { margin: .5rem 0 0; padding-left: 1.25rem; }

/* ---- footer ---- */

.foot {
  margin: 3.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---- accessibility ---- */

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

:target { scroll-margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

h2 {
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
}
