/* Bedrock Minds — bedrockminds.ca
   Slate + stone, with a hi-vis amber accent taken from the crew photos. */

:root {
  --slate-900: #172226;
  --slate-800: #1f2d32;
  --slate-700: #2c3e44;
  --slate-500: #5b6f75;
  --stone-50: #faf8f4;
  --stone-100: #f3efe7;
  --stone-200: #e6e0d4;
  --stone-300: #d4ccbc;
  --ink: #1b2427;
  --ink-soft: #46555a;
  --amber: #e8a317;
  --amber-deep: #8a5c00;
  --green: #3e7339;
  --yellow: #d9b627;
  --orange: #b35a14;
  --red: #b8412f;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(23, 34, 38, .06), 0 8px 24px rgba(23, 34, 38, .08);

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 86px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--slate-700); text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--slate-900);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; 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; z-index: 100;
  background: var(--slate-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--amber); border-radius: 2px; }

.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--slate-900); }
.btn-primary:hover { background: #f2b52e; color: var(--slate-900); }
.btn-ghost { border-color: var(--slate-700); color: var(--slate-800); background: transparent; }
.btn-ghost:hover { background: var(--slate-800); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--slate-900); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--stone-200);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate-900); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--amber-deep); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--slate-900); }
.nav .btn { padding: 10px 18px; font-size: .94rem; color: var(--slate-900); }
@media (max-width: 880px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.05rem; }
  .nav .btn { padding: 9px 14px; font-size: .88rem; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; border-bottom: 1px solid var(--stone-200); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 span { display: block; color: var(--slate-500); }
.hero .lede { margin: 18px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-soft); font-weight: 500; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -22px; bottom: 28px; max-width: 250px;
  background: var(--slate-900); color: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); font-size: .92rem; line-height: 1.45;
}
.hero-badge strong { display: block; font-family: var(--font-head); color: var(--amber); font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .hero-badge { left: 14px; bottom: 14px; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.alt { background: var(--stone-100); border-top: 1px solid var(--stone-200); border-bottom: 1px solid var(--stone-200); }
.dark { background: var(--slate-900); color: #dfe6e7; }
.dark h2, .dark h3 { color: #fff; }
.dark .lede { color: #b9c6c8; }
.dark .eyebrow { color: var(--amber); }

/* Problem cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 2px rgba(23,34,38,.04);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--stone-100); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--slate-700); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* 4C */
.pathway-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.step-num { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--amber); color: var(--slate-900); font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; }
.step h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.step p { margin: 0; color: #b9c6c8; font-size: .97rem; }
.pathway-figure { margin: 0; }
.pathway-figure img { border-radius: var(--radius); background: #fff; }
.pathway-figure figcaption { font-size: .88rem; color: #9fb0b3; margin-top: 10px; }
@media (max-width: 900px) { .pathway-grid { grid-template-columns: 1fr; } }

/* Zones */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.zone { padding: 22px 20px 24px; color: #fff; }
.zone b { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.zone span { font-size: .93rem; opacity: .95; line-height: 1.5; display: block; }
.z1 { background: var(--green); }
.z2 { background: var(--yellow); color: var(--slate-900); }
.z3 { background: var(--orange); }
.z4 { background: var(--red); }
@media (max-width: 760px) { .zones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .zones { grid-template-columns: 1fr; } }

/* Format / streams */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: -1; } }

.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.stream { background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 28px; position: relative; }
.stream.featured { border: 2px solid var(--slate-800); }
.stream-tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--stone-100); color: var(--slate-700); margin-bottom: 14px; }
.stream.featured .stream-tag { background: var(--slate-800); color: #fff; }
.stream h3 { font-size: 1.4rem; margin-bottom: 4px; }
.stream .who { color: var(--ink-soft); margin-bottom: 18px; }
.stream dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .97rem; }
.stream dt { font-weight: 600; color: var(--slate-800); }
.stream dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 780px) { .streams { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--slate-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8a317' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Practical day gallery */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tall { grid-row: span 2; }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(23,34,38,.82); color: #fff; font-size: .88rem; line-height: 1.4;
  padding: 9px 12px; border-radius: var(--radius-sm);
}
@media (max-width: 780px) { .gallery { grid-template-columns: 1fr; } .gallery .tall { grid-row: auto; } }

.day-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.day-list li { border-top: 3px solid var(--stone-300); padding-top: 12px; }
.day-list b { display: block; font-family: var(--font-head); color: var(--slate-900); margin-bottom: 2px; }
.day-list span { color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 680px) { .day-list { grid-template-columns: 1fr; } }

/* Standard band */
.standard { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.standard .note { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 24px; font-size: .95rem; color: #c3cfd1; }
.standard .note strong { color: #fff; }
.dark .ticks li::before { background-color: var(--amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172226' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .standard { grid-template-columns: 1fr; } }

/* Who it's for */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience .card { padding: 22px; }
.audience h3 { font-size: 1.05rem; }
@media (max-width: 960px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

/* Booking steps */
.booking { counter-reset: b; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.booking li { counter-increment: b; background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 24px 22px; }
.booking li::before { content: counter(b, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--stone-300); line-height: 1; margin-bottom: 14px; }
.booking b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--slate-900); margin-bottom: 6px; }
.booking span { color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .booking { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--stone-300); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--slate-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 3px solid var(--amber-deep); border-bottom: 3px solid var(--amber-deep);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-right: 44px; }

/* CTA */
.cta { background: var(--slate-800); color: #dfe6e7; border-radius: 24px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; opacity: .08;
  background: repeating-linear-gradient(0deg, #fff 0 14px, transparent 14px 30px);
  border-radius: 50%;
}
.cta h2 { color: #fff; }
.cta p { color: #b9c6c8; }
.cta-actions { display: grid; gap: 12px; position: relative; z-index: 1; }
.cta-actions .btn { width: 100%; }
.cta-contact { font-size: .95rem; color: #b9c6c8; margin-top: 6px; }
.cta-contact a { color: #fff; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--slate-900); color: #9fb0b3; padding: 56px 0 40px; font-size: .92rem; }
.site-footer a { color: #dfe6e7; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.foot-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.crisis { background: rgba(232,163,23,.12); border: 1px solid rgba(232,163,23,.35); color: #f3dcae; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 28px; }
.crisis strong { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: .84rem; line-height: 1.6; color: #84979a; }
.legal p { margin-bottom: .7em; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand-name span { color: var(--amber); }
