/* Grizzly Driving Academy */
:root {
  --ink: #121714;
  --ink-soft: #2a322e;
  --paper: #f3eee4;
  --paper-2: #e7e0d2;
  --pine: #1e4a38;
  --pine-deep: #10281e;
  --moss: #3f6d54;
  --muted: #5c665f;
  --danger: #8f2d22;
  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; outline: 1px solid rgba(18,23,20,.1); outline-offset: -1px; }
h1,h2,h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
.wrap {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding-left: max(1.85rem, env(safe-area-inset-left));
  padding-right: max(1.85rem, env(safe-area-inset-right));
  min-width: 0;
}
header.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 20;
}
header.top.solid {
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  border-bottom: 1px solid rgba(18,23,20,.1);
  backdrop-filter: blur(8px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  height: auto;
  padding: .4rem 0;
  gap: .75rem;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}
header.hero-on { color: var(--paper); }
header.hero-on .logo { color: var(--paper); }
header.hero-on nav.desk a,
header.hero-on .menu,
header.hero-on .actions > a:not(.btn) { color: var(--paper); }
header.hero-on .btn-i { color: var(--pine); }
.logo img {
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 4.25rem;
  border-radius: 50%;
  outline: none;
  object-fit: cover;
}
.logo strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.logo span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.logo > span { min-width: 0; }
nav.desk { display: none; gap: 1.6rem; align-items: center; }
nav.desk a { text-decoration: none; font-size: .9rem; font-weight: 500; }
.actions { display: none; align-items: center; gap: .8rem; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 8px; font-family: var(--sans); font-weight: 500; font-size: .9rem; text-decoration: none; cursor: pointer; }
.btn-p { background: var(--pine); color: var(--paper); }
.btn-i { background: var(--paper); color: var(--ink); }
.btn-o { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px rgba(18,23,20,.14); }
.btn-l { background: transparent; color: var(--paper); box-shadow: 0 0 0 1px rgba(243,238,228,.28); }
.menu { background: none; border: 0; color: inherit; width: 44px; height: 44px; font-size: 1.4rem; flex: 0 0 auto; }
.drawer { display: none; background: var(--paper); color: var(--ink); padding: 1rem max(1.85rem, env(safe-area-inset-right)) 1.25rem max(1.85rem, env(safe-area-inset-left)); border-top: 1px solid rgba(18,23,20,.1); }
.drawer.open { display: block; }
.drawer a { display: flex; min-height: 44px; align-items: center; text-decoration: none; }
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  color: var(--paper);
  background: var(--pine-deep);
  display: flex;
  align-items: end;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, #10281e, rgba(16,40,30,.55), rgba(16,40,30,.25)); }
.hero .copy { position: relative; padding: 7.5rem 0 4rem; min-width: 0; }
.kicker { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; opacity: .7; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 8vw, 3.75rem); margin: .75rem 0 0; }
.lead { max-width: 36rem; font-size: 1.05rem; line-height: 1.55; opacity: .85; }
.slogan {
  margin: .85rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.hero .slogan { color: var(--paper); opacity: .9; }
footer .slogan { margin-top: .65rem; opacity: .75; letter-spacing: .12em; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.tri { display: grid; border-top: 1px solid rgba(18,23,20,.1); border-bottom: 1px solid rgba(18,23,20,.1); }
.tri article { background: var(--paper); padding: 2rem max(1.85rem, env(safe-area-inset-right)) 2rem max(1.85rem, env(safe-area-inset-left)); min-width: 0; }
.section { padding: 4rem 0; }
.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card { background: var(--paper-2); border-radius: 1.1rem; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 0 0 1px rgba(18,23,20,.08); min-width: 0; }
.card .price { font-family: var(--display); font-size: 1.6rem; }
.split { display: grid; background: var(--pine-deep); color: var(--paper); }
.split img { width: 100%; height: 18rem; object-fit: cover; }
.split .pad { padding: 2.5rem max(1.85rem, env(safe-area-inset-right)) 2.5rem max(1.85rem, env(safe-area-inset-left)); min-width: 0; }
ol.steps { padding: 0; margin: 1.5rem 0 0; list-style: none; }
ol.steps li { display: flex; gap: 1rem; margin: 0 0 1.1rem; }
footer { background: var(--pine-deep); color: var(--paper); margin-top: 0; overflow: hidden; }
footer .grid { display: grid; gap: 2rem; padding: 3rem 0; }
footer a { text-decoration: none; }
.fine { padding: 1rem max(1.85rem, env(safe-area-inset-right)) 1rem max(1.85rem, env(safe-area-inset-left)); border-top: 1px solid rgba(243,238,228,.1); text-align: center; font-size: .75rem; opacity: .4; overflow-wrap: anywhere; }
.instructor { display: flex; gap: 1.1rem; align-items: flex-start; max-width: 40rem; min-width: 0; }
.instructor .portrait { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; outline: none; flex: 0 0 4.5rem; }
.instructor .cred { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }
.about { max-width: 40rem; margin-top: 1.5rem; }
.about p { line-height: 1.6; color: var(--ink-soft); }
.page { padding: 6.75rem 0 4rem; }
form .field { margin: 0 0 1rem; }
label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 .75rem;
  font: 1rem var(--sans);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(18,23,20,.14);
  color: var(--ink);
}
textarea { min-height: 7rem; padding: .7rem .75rem; }
input[type="checkbox"],
input[type="radio"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  max-width: 1.15rem;
  max-height: 1.15rem;
  margin: .2rem 0 0;
  padding: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  accent-color: var(--pine);
  background: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
input[type="radio"] { -webkit-appearance: radio; }
.pack {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--paper);
  padding: 1rem;
  border-radius: .75rem;
  margin: 0 0 .5rem;
  box-shadow: 0 0 0 1px rgba(18,23,20,.1);
  cursor: pointer;
  min-width: 0;
}
.pack span { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.terms {
  max-height: min(18rem, 42svh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--paper);
  padding: 1rem;
  border-radius: .75rem;
  font-size: .9rem;
  line-height: 1.5;
  box-shadow: 0 0 0 1px rgba(18,23,20,.12);
}
.terms p { margin: 0 0 .7rem; }
.terms p:last-child { margin-bottom: 0; }
.panel { background: var(--paper-2); border-radius: 1.1rem; padding: 1.5rem; min-width: 0; overflow: visible; }
.err { color: var(--danger); font-size: .85rem; margin-top: .25rem; }
.ok { color: var(--pine); font-size: .85rem; margin-top: .25rem; }
.qr { width: min(13rem, 100%); height: auto; background: #fff; padding: .75rem; outline: none; margin-top: .75rem; }
.stepper { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; }
.stepper span { flex: 1 1 5rem; border-radius: 8px; padding: .5rem .6rem; font-size: .75rem; font-weight: 500; background: var(--paper-2); min-width: 0; }
.stepper span.on { background: var(--pine); color: var(--paper); }
.hidden { display: none !important; }
.pill { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 99px; background: var(--paper); margin-left: .4rem; }
.pill.on { background: var(--pine); color: var(--paper); }
.pill.paid { background: var(--pine); color: var(--paper); }
.pill.cash { background: var(--moss); color: var(--paper); }
.pill.unpaid { background: var(--paper); }
.appt { margin: 0 0 1rem; padding: 0 0 1rem; box-shadow: 0 1px 0 rgba(18,23,20,.1); }
.appt:last-child { box-shadow: none; margin: 0; padding: 0; }
.aside { background: var(--pine-deep); color: var(--paper); border-radius: 1.1rem; padding: 1.5rem; min-width: 0; }
@media (max-width: 767px) {
  .hero .copy { text-align: center; }
  .hero .row { justify-content: center; }
  .section > .kicker,
  .section > h2,
  .about { text-align: left; }
  .page { padding-left: 0; padding-right: 0; }
  .panel { padding: 1.15rem; }
  .terms {
    max-height: min(11.5rem, 34svh);
    font-size: .85rem;
    padding: .85rem;
  }
  .pack { padding: .85rem; }
}
@media (min-width: 768px) {
  nav.desk, .actions { display: flex; }
  .menu { display: none; }
  .logo img { width: 4.5rem; height: 4.5rem; flex-basis: 4.5rem; }
  .kicker { letter-spacing: .16em; }
  .wrap {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
  .tri { grid-template-columns: 1fr 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split img { height: 100%; }
  footer .grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; align-items: start; }
}
