/* Speedgolf Canada site styles */
:root {
  --red: #d2141c;
  --red-dark: #a50f15;
  --red-tint: #fdf0f0;
  --ink: #141414;
  --ink-2: #444b52;
  --ink-3: #6b737a;
  --line: #e3e6e8;
  --bg: #ffffff;
  --bg-2: #f5f6f7;
  --ok: #1d7a3e;
  --radius: 10px;
  --wrap: 1120px;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }

/* Draft banner */
.draft { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 6px 12px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { font-family: var(--head); font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); background: var(--red-tint); }
.lang { font-family: var(--head); font-weight: 700; border: 1.5px solid var(--ink); border-radius: 6px; padding: 5px 10px !important; margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 6px; font: 600 1rem var(--head); padding: 6px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .lang { align-self: flex-start; margin: 8px 0 0; }
  .brand img { width: 130px; }
}

/* Buttons */
.btn { display: inline-block; font: 700 1.05rem var(--head); text-decoration: none; padding: 13px 24px; border-radius: 8px; border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--red-dark); }
.btn.ghost:hover { background: var(--red-tint); color: var(--red-dark); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: #fff; }
.hero::after { content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; background: url(/img/badge-512.png) center/contain no-repeat; opacity: .07; pointer-events: none; }
.hero .eyebrow { font: 700 .95rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 14px; }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: 1.25rem; color: var(--ink-2); max-width: 36em; margin-bottom: 28px; }
.speed-lines { display: block; width: 140px; height: 14px; margin-bottom: 18px; background: linear-gradient(var(--red),var(--red)) 0 0/100% 3px no-repeat, linear-gradient(var(--ink),var(--ink)) 30px 6px/70% 2px no-repeat, linear-gradient(var(--red),var(--red)) 12px 11px/85% 3px no-repeat; }

/* Sections */
section.band { padding: 64px 0; }
section.band.alt { background: var(--bg-2); }
section.band.red { background: var(--red); color: #fff; }
section.band.red a:not(.btn) { color: #fff; }
section.band.red .btn { background: #fff; color: var(--red-dark); border-color: #fff; }
section.band.red .btn:hover { background: var(--red-tint); }
.kicker { font: 700 .9rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 8px; }
.band.red .kicker { color: #fff; opacity: .85; }
.intro { max-width: 46em; color: var(--ink-2); font-size: 1.1rem; }
.band.red .intro { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.step-num { font: 800 2.2rem var(--head); color: var(--red); line-height: 1; margin-bottom: 8px; }
.photo { border-radius: var(--radius); overflow: hidden; max-height: 560px; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Score sum */
.score { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.score .cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-align: center; min-width: 120px; }
.score .op { align-self: center; font: 800 2rem var(--head); color: var(--red); }
.score .n { font: 800 2.3rem var(--head); line-height: 1; }
.score .l { font-size: .9rem; color: var(--ink-3); }
.score .total { border: 2px solid var(--red); }

/* Page header */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-head p { max-width: 44em; color: var(--ink-2); font-size: 1.15rem; margin: 0; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font: 700 1.15rem var(--head); cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* Map */
#map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.map-empty { margin-top: 16px; padding: 16px 20px; border-left: 4px solid var(--red); background: var(--red-tint); border-radius: 0 var(--radius) var(--radius) 0; }
.course-list { margin-top: 24px; }
.course-list .card { margin-bottom: 12px; }
.muted { color: var(--ink-3); }

/* Vertical videos */
.photo.vid { max-width: 380px; margin: 0 auto; max-height: none; overflow: visible; border-radius: 0; }
.photo.vid video, .video-tall video { width: 100%; aspect-ratio: 9/16; display: block; border-radius: var(--radius); background: #000; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .95rem; color: var(--ink-3); margin-top: 10px; }
.video-tall { max-width: 320px; }

/* Videos */
.video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }
.video.soon { display: flex; align-items: center; justify-content: center; color: #fff; font: 700 1.1rem var(--head); background: linear-gradient(135deg, #1d1d1d, #3a3a3a); }

/* Provinces */
.prov { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.prov .card { padding: 16px 18px; }
.prov .p { font: 700 1.1rem var(--head); }
.prov .who { font-size: .95rem; color: var(--ink-3); }
.prov .who.wanted { color: var(--red-dark); font-weight: 600; }

/* Forms */
form.sgc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 720px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: .9rem; color: var(--ink-3); margin: -2px 0 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid #c9ced2; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(210,20,28,.2); border-color: var(--red); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 8px; }
.checks input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } form.sgc { padding: 20px; } }
.req { color: var(--red); }
.hp { position: absolute; left: -5000px; }
.email-tip { font-size: .95rem; color: var(--red-dark); margin-top: 6px; }
.email-tip button { background: none; border: 0; color: var(--red-dark); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #eaf6ee; color: var(--ok); border: 1px solid #b9e0c6; }
.form-msg.err { display: block; background: var(--red-tint); color: var(--red-dark); border: 1px solid #f2c4c6; }
.consent { font-size: .95rem; }

/* Footer */
.site-foot { background: var(--ink); color: #d6d9dc; padding: 48px 0 32px; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 32px; align-items: start; }
.site-foot img { width: 100px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .fine { border-top: 1px solid #333; margin-top: 32px; padding-top: 16px; color: #9aa1a7; font-size: .85rem; }
@media (max-width: 700px) { .site-foot .cols { grid-template-columns: 1fr; } }
