/* Goodwill EMS (goodwillems21.com) site styles. Bump ?v= in every page after changing this file. */
@font-face{font-family:"Saira Semi Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/saira-semi-condensed-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Saira Semi Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/saira-semi-condensed-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Saira Semi Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/saira-semi-condensed-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/source-sans-3-latin-700-normal.woff2) format("woff2")}

:root{--navy:#080c20;--navy2:#121a36;--yellow:#fff200;--red:#c8102e;--head:"Saira Semi Condensed","Arial Narrow",Arial,sans-serif;
  /* colours that change in dark mode */
  color-scheme:light;--page:#fff;--light:#f3f4f7;--surface:#fff;--ink:#151a2b;--body:#333a4d;--muted:#4a5268;--line:#e2e5ec;
  --heading:#080c20;--link:#080c20;--link-hover:#7a6a00;--field:#fff;--field-line:#c5cad6;--outline:#080c20;--featured-line:#080c20;
  --ok-bg:#e6f4ea;--ok-ink:#14532d;--ok-line:#86c79a;--err-bg:#fde8ea;--err-ink:#7f1020;--err-line:#e8a0aa;
  --notice-bg:#fff8c2;--notice-ink:#080c20;--notice-line:#e6d800;--kicker:#c8102e;--map-filter:none}
/* Dark mode: follows the device setting unless the visitor picked one with the switch (data-theme on <html>).
   The two lists below must stay the same. */
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
  color-scheme:dark;--page:#0e1329;--light:#141a35;--surface:#1a2243;--ink:#e8ebf3;--body:#c9cfdd;--muted:#a3abc2;--line:#2c355c;
  --heading:#fff;--link:#fff200;--link-hover:#fff7a0;--field:#0e1329;--field-line:#3b4571;--outline:#fff;--featured-line:#fff200;
  --ok-bg:#0f2e1c;--ok-ink:#b7ebc6;--ok-line:#2f7a4a;--err-bg:#3a0d16;--err-ink:#ffc2cb;--err-line:#a3384a;
  --notice-bg:#2b2900;--notice-ink:#fff8c2;--notice-line:#e6d800;--kicker:#ff7085;--map-filter:invert(.9) hue-rotate(180deg)}}
:root[data-theme=dark]{
  color-scheme:dark;--page:#0e1329;--light:#141a35;--surface:#1a2243;--ink:#e8ebf3;--body:#c9cfdd;--muted:#a3abc2;--line:#2c355c;
  --heading:#fff;--link:#fff200;--link-hover:#fff7a0;--field:#0e1329;--field-line:#3b4571;--outline:#fff;--featured-line:#fff200;
  --ok-bg:#0f2e1c;--ok-ink:#b7ebc6;--ok-line:#2f7a4a;--err-bg:#3a0d16;--err-ink:#ffc2cb;--err-line:#a3384a;
  --notice-bg:#2b2900;--notice-ink:#fff8c2;--notice-line:#e6d800;--kicker:#ff7085;--map-filter:invert(.9) hue-rotate(180deg)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--navy)} /* navy shows under Safari's bottom bar and when pulling past the footer */
body{margin:0;font-family:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:18px;line-height:1.6;color:var(--ink);background:var(--navy)}
main{background:var(--page);display:block} /* page body is white; everything around it (and under Safari's bars) is navy */
img{max-width:100%;height:auto;display:block}
a{color:var(--link)}
a:hover{color:var(--link-hover)}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;box-shadow:0 0 0 5px var(--navy)}
h1,h2,h3{font-family:var(--head);line-height:1.05;margin:0;color:var(--heading)}
h1{font-size:clamp(38px,6vw,64px);font-weight:800}
h2{font-size:clamp(32px,4vw,46px);font-weight:700}
h3{font-size:26px;font-weight:700}
p{margin:0}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.skip{position:absolute;left:-9999px;top:0;background:var(--yellow);color:var(--navy);padding:10px 16px;font-weight:700;z-index:10}
.skip:focus{left:8px;top:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Emergency bar + header */
.alert-bar{background:var(--red);color:#fff;text-align:center;padding:8px 16px;font-weight:700;font-size:15px}
.alert-bar a{color:#fff}
.site-header{background:var(--navy);border-bottom:3px solid var(--yellow);position:relative;z-index:5}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:8px;padding-bottom:8px}
.brand img{height:88px;width:auto}
.nav-toggle{display:none;background:none;border:0;padding:0;width:48px;height:48px;border-radius:6px;cursor:pointer;color:var(--yellow)}
.nav-toggle .bars{position:relative;display:block;width:30px;height:22px;margin:0 auto}
.nav-toggle .bars span{position:absolute;left:0;width:30px;height:3px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s,top .2s}
.nav-toggle .bars span:nth-child(1){top:0}.nav-toggle .bars span:nth-child(2){top:9.5px}.nav-toggle .bars span:nth-child(3){top:19px}
.nav-toggle[aria-expanded=true] .bars span:nth-child(1){top:9.5px;transform:rotate(45deg)}
.nav-toggle[aria-expanded=true] .bars span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded=true] .bars span:nth-child(3){top:9.5px;transform:rotate(-45deg)}
@media (prefers-reduced-motion:reduce){.nav-toggle .bars span{transition:none}}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 24px}
.main-nav a{font-family:var(--head);font-weight:700;font-size:17px;letter-spacing:.03em;text-transform:uppercase;text-decoration:none;color:#fff;display:inline-block;padding:10px 0}
.main-nav a:hover,.main-nav a[aria-current=page]{color:var(--yellow)}
.main-nav a.btn{padding:11px 18px;color:var(--navy)}
.main-nav a.btn:hover{color:var(--navy)}
@media (max-width:1000px){
  .nav-toggle{display:inline-block}
  .main-nav{display:none;width:100%}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;align-items:stretch;gap:0;padding:6px 0 12px}
  .main-nav li a{display:block;padding:12px 4px;border-top:1px solid #1d2647}
  .main-nav li a.btn{margin-top:10px;text-align:center;border:0}
  .brand img{height:70px}
}

/* Buttons */
.btn{display:inline-block;font-weight:700;font-size:18px;text-decoration:none;padding:15px 26px;border-radius:6px;border:2px solid transparent;line-height:1.2;text-align:center}
.btn-yellow{background:var(--yellow);color:var(--navy)}
.btn-yellow:hover{background:#fff;color:var(--navy)}
.btn-navy{background:var(--navy);color:var(--yellow);border-color:var(--featured-line)}
.btn-navy:hover{background:#1d2647;color:var(--yellow)}
.btn-outline{border-color:var(--outline);color:var(--outline)}
.btn-outline:hover{background:var(--outline);color:var(--page)}
.btn-outline-light{border-color:#fff;color:#fff}
.btn-outline-light:hover{background:#fff;color:var(--navy)}
.btns{display:flex;flex-wrap:wrap;gap:14px;align-items:center}

/* Hero */
.hero{position:relative;background:var(--navy);color:#fff;overflow:hidden}
.hero picture,.hero .hero-img{position:absolute;inset:0;width:100%;height:100%}
.hero .hero-img{object-fit:cover;object-position:center 60%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,12,32,.93) 0%,rgba(8,12,32,.74) 48%,rgba(8,12,32,.2) 100%)}
.hero .wrap{position:relative;z-index:1;padding-top:100px;padding-bottom:110px;display:flex;flex-direction:column;gap:20px}
.hero h1{color:#fff;max-width:760px}
.hero .lead{font-size:21px;line-height:1.5;color:#e3e7f2;max-width:640px}
.hero.short .wrap{padding-top:80px;padding-bottom:80px}
.kicker{font-family:var(--head);font-weight:700;letter-spacing:.13em;text-transform:uppercase;font-size:15px;color:var(--kicker)}
.hero .kicker,.dark .kicker{color:var(--yellow)}

/* Sections */
.section{padding:88px 0}
.section.tight{padding:56px 0}
.light{background:var(--light)}
.dark{background:var(--navy);color:#fff}
.dark h2,.dark h3{color:#fff}
.dark p,.dark li{color:#d6dbe8}
.dark a{color:var(--yellow)}
.stack{display:flex;flex-direction:column;gap:18px}
.split{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.split > *{flex:1 1 min(460px,100%);min-width:0}
.split.rev{flex-wrap:wrap-reverse}
.photo{width:100%;border-radius:12px;object-fit:cover}
.photo-tall{height:420px}
.intro{max-width:780px}
.body-text{font-size:19px;color:var(--body)}
.dark .body-text{color:#d6dbe8}

/* Stats band */
.stats{background:var(--yellow);color:var(--navy)}
.stats .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px;padding-top:32px;padding-bottom:32px}
.stat strong{display:block;font-family:var(--head);font-weight:800;font-size:46px;line-height:1}
.stat span{font-size:17px;font-weight:600}

/* Price cards */
.prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.price{border:2px solid var(--line);border-radius:10px;padding:16px;text-align:center}
.price strong{display:block;font-family:var(--head);font-weight:800;font-size:36px;color:var(--heading);line-height:1.1}
.price span{font-size:15px;color:var(--muted)}
.price.featured{background:var(--navy);border-color:var(--featured-line)}
.price.featured strong{color:var(--yellow)}
.price.featured span{color:#fff}
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.plan{border:2px solid var(--line);border-radius:14px;padding:32px;display:flex;flex-direction:column;gap:10px}
.plan .amount{font-family:var(--head);font-weight:800;font-size:56px;line-height:1;color:var(--heading)}
.plan p{color:var(--muted);font-size:17px}
.plan.featured{background:var(--navy);border-color:var(--featured-line)}
.plan.featured h3{color:#fff}.plan.featured .amount{color:var(--yellow)}.plan.featured p{color:#d6dbe8}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.card{background:var(--surface);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;border-bottom:4px solid var(--yellow);color:var(--ink);text-decoration:none}
a.card:hover{color:var(--ink);box-shadow:0 8px 24px rgba(8,12,32,.12)}
.card img{width:100%;height:190px;object-fit:cover}
.card .card-body{padding:22px;display:flex;flex-direction:column;gap:8px}
.card p{font-size:17px;line-height:1.5;color:var(--muted)}
.dark .card{background:var(--navy2);border-bottom-color:var(--yellow)}
.dark .card h3{color:var(--yellow)}
.dark .card p{color:#d6dbe8}
.panel{background:var(--light);border-radius:14px;padding:34px;display:flex;flex-direction:column;gap:14px}
.panel.white{background:var(--surface)}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:32px}
.ticks{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px;color:var(--body)}

/* People */
.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.person{background:var(--surface);border-radius:12px;overflow:hidden}
.person img{width:100%;aspect-ratio:4/5;object-fit:cover}
.person .who{padding:16px 20px}
.person strong{display:block;font-family:var(--head);font-size:24px;color:var(--heading)}
.person span{color:var(--muted);font-size:16px}
.names{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;list-style:none;margin:0;padding:0}
.names li{background:var(--surface);border-radius:10px;padding:16px 20px}
.names strong{display:block;font-size:20px;color:var(--heading)}
.names span{color:var(--muted);font-size:16px}
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;color:var(--body)}
.timeline strong{color:var(--heading)}

/* FAQ */
.faq{max-width:900px}
.faq details{border-top:1px solid #2a3150;padding:18px 0}
.faq summary{cursor:pointer;font-family:var(--head);font-weight:700;font-size:23px;line-height:1.25;color:var(--yellow);list-style:none;position:relative;padding-left:30px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"";position:absolute;left:4px;top:.32em;border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent var(--yellow);transition:transform .2s ease}
.faq details[open] summary::before{transform:rotate(90deg)}
.faq details p{padding-left:30px}
@media (max-width:600px){.faq summary{font-size:20px;padding-left:26px}.faq summary::before{left:2px}.faq details p{padding-left:26px}}
.faq details p{margin-top:8px}

/* Contact + form */
.info-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.info-list strong{color:var(--heading)}
form.styled{display:flex;flex-direction:column;gap:16px}
form.styled .row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
form.styled label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:17px}
form.styled input,form.styled select,form.styled textarea{font:inherit;font-size:17px;padding:12px 14px;border:2px solid var(--field-line);border-radius:8px;background:var(--field);color:var(--ink);width:100%;min-height:48px}
form.styled textarea{min-height:170px;resize:vertical}
form.styled input:focus,form.styled select:focus,form.styled textarea:focus{border-color:var(--heading);outline:3px solid var(--yellow);outline-offset:0;box-shadow:none}
form.styled button{align-self:flex-start;cursor:pointer;border:0;font:700 18px "Source Sans 3",sans-serif}
form.styled button:disabled{opacity:.55;cursor:not-allowed}
.optional{font-weight:400;color:var(--muted)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.alert{padding:14px 18px;border-radius:8px;font-weight:600}
.alert.ok{background:var(--ok-bg);color:var(--ok-ink);border:2px solid var(--ok-line)}
.alert.err{background:var(--err-bg);color:var(--err-ink);border:2px solid var(--err-line)}
.captcha-hint{font-size:15px;color:var(--muted)}
.notice{background:var(--notice-bg);border:2px solid var(--notice-line);border-radius:10px;padding:16px 20px;color:var(--notice-ink);font-weight:600}

/* Footer */
.site-footer{background:var(--navy);color:#c9cfdd;border-top:3px solid var(--yellow);font-size:16px}
.site-footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:36px;padding-top:56px;padding-bottom:28px}
.site-footer h2{font-family:var(--head);font-size:14px;letter-spacing:.1em;text-transform:uppercase;color:var(--yellow);margin-bottom:10px}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.site-footer a{color:#c9cfdd}
.site-footer a:hover{color:#fff}
.site-footer .footer-logo{width:220px;margin-bottom:12px}
.site-footer .legal{background:linear-gradient(#2a3358,#2a3358) 24px 0/calc(100% - 48px) 2px no-repeat;padding-top:20px;padding-bottom:28px;font-size:14px;color:#9aa2b8;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
/* Light/dark switch, at the end of the footer's last line (moon in light mode, sun in dark mode) */
.theme-toggle{-webkit-appearance:none;appearance:none;background:none;border:2px solid #2a3358;border-radius:999px;color:#c9cfdd;font:inherit;font-size:14px;padding:4px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.theme-toggle:hover{color:#fff;border-color:#c9cfdd}
.theme-toggle svg{width:16px;height:16px}
.theme-toggle .sun{display:none}
:root[data-theme=dark] .theme-toggle .sun{display:block}:root[data-theme=dark] .theme-toggle .moon{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .theme-toggle .sun{display:block}:root:not([data-theme=light]) .theme-toggle .moon{display:none}}
/* desktop: one line, switch on the right, clear of the back-to-top button */
@media (min-width:1000px){.site-footer .legal{flex-direction:row;align-items:center;padding-right:max(24px, calc(76px - max(0px, (100vw - 1240px) / 2)))}.site-footer .legal .theme-toggle{margin-left:auto}}

/* Officer photos open a message pop-up (/about/) */
.person-btn{all:unset;box-sizing:border-box;display:flex;flex-direction:column;width:100%;cursor:pointer;border-radius:12px;background:var(--surface);color:var(--ink);overflow:hidden}
.person-btn:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;box-shadow:0 0 0 5px var(--navy)}
.person-btn:hover{box-shadow:0 8px 24px rgba(8,12,32,.14)}
.person-btn .photo-wrap{position:relative;display:block}
.person-btn img{width:100%;aspect-ratio:4/5;object-fit:cover}
.person-btn .who{padding:16px 20px;display:block}
.person .msg-tag,.msg-tag{position:absolute;left:12px;bottom:12px;background:var(--yellow);color:var(--navy);font-weight:700;font-size:15px;padding:7px 12px;border-radius:6px}
.officer-dialog{background:var(--page);color:var(--ink);width:min(620px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0;border:0;border-radius:14px;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.officer-dialog::backdrop{background:rgba(8,12,32,.72)}
.dialog-head{background:var(--navy);color:#fff;padding:20px 24px;display:flex;align-items:center;gap:16px;border-bottom:3px solid var(--yellow)}
.dialog-head picture{flex:none}
.dialog-head img{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:center;flex:none}
.dialog-head > div{flex:1;min-width:0}
.dialog-head h2{color:#fff;font-size:26px}
.dialog-head p{color:#c9cfdd;font-size:16px}
.dialog-close{background:none;border:2px solid var(--yellow);color:var(--yellow);width:44px;height:44px;border-radius:8px;font-size:24px;line-height:1;cursor:pointer;flex:none}
.dialog-body{padding:22px 24px;display:flex;flex-direction:column;gap:14px}

/* Google map on /contact/ */
.map{border-radius:12px;overflow:hidden;background:var(--light);width:100%;max-width:100%;height:300px}
/* Contact page: info column stretches so the map ends level with the message panel */
.contact-grid{align-items:stretch}
.contact-info{padding-top:34px}
@media (min-width:760px){.contact-info .map{flex:1;height:auto;min-height:280px}}
.contact-grid > *{min-width:0}
@media (max-width:600px){.contact-info{padding-top:0}.panel{padding:22px 18px}}
.map iframe{display:block;width:100%;height:100%;border:0;filter:var(--map-filter)}

/* Page transitions (same as nbimu.ca): the browser cross-fades between pages while the
   9-1-1 bar and header stay put. Browsers without support just load the page normally. */
@view-transition { navigation: auto; }
.alert-bar { view-transition-name: alert-bar; }
.site-header { view-transition-name: site-header; }
::view-transition-group(root) { animation-duration: .25s; animation-timing-function: ease; }
.btn { transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
a.card { transition: box-shadow .3s ease, transform .3s ease; }
a.card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Phones: tighter hero so both buttons are visible without scrolling (above Safari's bottom bar) */
@media (max-width:600px){
  .hero .wrap{padding-top:36px;padding-bottom:48px;gap:14px}
  .hero.short .wrap{padding-top:36px;padding-bottom:44px}
  .hero h1{font-size:36px}
  .hero .lead{font-size:18px;line-height:1.45}
  .kicker{font-size:13px;letter-spacing:.1em}
  .hero .btns{gap:10px;flex-wrap:nowrap}
  .hero .btns .btn{flex:1 1 0;padding:14px 10px;font-size:16px}
}

/* Phones: subscription prices stay in one row of three; section buttons go full width */
@media (max-width:600px){
  .prices{gap:8px}
  .price{padding:12px 4px}
  .price strong{font-size:28px}
  .price span{font-size:13px;line-height:1.25;display:block}
  .section .btns{flex-direction:column;align-items:stretch}
  .section .btns .btn{width:100%}
  .body-text{font-size:17px}
  .photo-tall{height:240px}
  .section{padding:56px 0}
}

/* Home subscription: one large Subscribe button under the three prices, details as a text link */
.btn-big{display:block;width:100%;font-size:20px;padding:18px 24px}
.btn-yellow.btn-big{box-shadow:inset 0 0 0 2px var(--navy)}
.sub-more{text-align:center;font-weight:600}

/* Back-to-top button (appears once you've scrolled down; same as nbimu.ca but in Goodwill colours) */
.to-top{visibility:hidden;display:flex;align-items:center;justify-content:center;position:fixed;z-index:60;
  right:calc(18px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));
  width:48px;height:48px;border-radius:50%;border:2px solid var(--navy);cursor:pointer;background:var(--yellow);color:var(--navy);
  box-shadow:0 6px 18px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .2s ease,visibility 0s linear .25s;view-transition-name:to-top}
.to-top.show{transition:opacity .25s ease,transform .2s ease,visibility 0s}
.to-top.show{opacity:1;pointer-events:auto;visibility:visible}
.to-top:hover{transform:translateY(-2px)}
.to-top svg{width:22px;height:22px}
@media print{.to-top{display:none}}
