/* Northern Lights Driving School — mobile-first, no frameworks. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Karla";
  src: url("/assets/fonts/karla-v33-latin-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard TT";
  src: url("/assets/fonts/oldstandardtt-v22-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard TT";
  src: url("/assets/fonts/oldstandardtt-v22-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard TT";
  src: url("/assets/fonts/oldstandardtt-v22-latin-400italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --dark: #161616;
  --light: #ffffff;
  --ink: #1b1b1b;
  --ink-on-dark: #f7f7f7;
  --btn-bg: #000000;
  --btn-fg: #ffffff;
  --row-fill: rgba(0, 0, 0, 0.03);
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Old Standard TT", Georgia, "Times New Roman", Times, serif;
  --measure: 46rem;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}

/* ---------- Typography ---------- */
h1,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 700;
  margin: 0;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: 3px;
  line-height: 1.2;
}
h2 {
  font-size: 1.75rem;
  letter-spacing: 2px;
  line-height: 1.4;
}
h3 {
  font-size: 1.6rem;
  letter-spacing: 2px;
  line-height: 1.2;
}
h4 {
  font-size: 1.1875rem;
  letter-spacing: 2px;
  line-height: 1.25;
}
p {
  margin: 0 0 1rem;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide {
  max-width: 68rem;
}
section {
  padding: 48px 0;
}
.section--dark {
  background: var(--dark);
  color: var(--ink-on-dark);
  padding: 0;
}
.section--center {
  text-align: center;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--light);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header / hero ---------- */
.site-header {
  padding: 24px 0;
  text-align: center;
}
.site-header .wrap {
  padding: 0 32px;
}
.wordmark {
  text-decoration: none;
  color: var(--ink-on-dark);
  display: block;
}
.wordmark h3 {
  font-size: 1.75rem;
  letter-spacing: 2px;
  line-height: 1.2;
  margin: 0 auto;
}
.section--dark .hero-wrap {
  max-width: 1160px;
  padding: 0 24px;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.hero__text {
  padding: 40px 24px 56px;
}
.hero__media {
  order: -1;
}
.hero__logo {
  width: 100%;
  max-width: none;
  margin: 40px 0 0;
}
.hero__phones {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: normal;
  margin: 0 0 16px;
}
.hero__phones a {
  text-decoration: none;
}
.hero__phones a:hover,
.hero__phones a:focus {
  text-decoration: underline;
}
.hero__sep {
  padding: 0 0.25rem;
}
.hero h1 {
  font-size: 2.1875rem;
  letter-spacing: 2px;
  line-height: 1.2;
  margin: 0;
}
.hero__place {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 2px;
  margin: 0;
}

/* ---------- Downloads ---------- */
.downloads {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  text-align: left;
}
.downloads li + li {
  margin-top: 12px;
}
.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--row-fill);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
}
.download:hover,
.download:focus {
  background: rgba(0, 0, 0, 0.07);
}
.download__label {
  font-family: var(--serif);
}
.download__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 1px;
  flex: 0 0 auto;
}
.download__action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.download__action span {
  display: none;
}

/* ---------- Contact ---------- */
.contact__phones p {
  margin: 0 0 0.25rem;
}
.contact__business {
  margin: 24px 0 20px;
}
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  border-radius: 48px;
  padding: 12px 40px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover,
.btn:focus {
  background: #333;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Form ---------- */
.form-panel {
  margin-top: 32px;
  text-align: left;
}
.form-panel h3 {
  font-size: 1.1875rem;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 20px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: var(--light);
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  padding: 12px;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile {
  margin: 20px 0;
}
.form-actions {
  text-align: center;
}
.form-note {
  font-size: 0.875rem;
  text-align: center;
  margin-top: 16px;
}
.form-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 4px;
  text-align: center;
}
.form-message--ok {
  background: rgba(0, 0, 0, 0.04);
}
.form-message--error {
  background: rgba(180, 0, 0, 0.07);
}
.form-message a {
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---------- About ---------- */
.about__photo {
  margin: 24px auto;
  width: 100%;
}

/* ---------- Journey ---------- */
.journey__row {
  margin-top: 24px;
}
.journey__media img {
  width: 100%;
}
.journey__list {
  text-align: left;
  margin-top: 24px;
}
.journey__item + .journey__item {
  margin-top: 32px;
}
.journey__item h4 {
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--ink-on-dark);
  text-align: center;
  padding: 40px 0;
  font-size: 0.9375rem;
}
.site-footer p {
  margin: 0;
}
.site-footer hr {
  border: 0;
  border-top: 1px solid rgba(247, 247, 247, 0.2);
  margin: 20px auto;
  max-width: 12rem;
}
.site-footer a {
  color: inherit;
}

/* ---------- Desktop ---------- */
@media (min-width: 48rem) {
  :root {
    --gutter: 32px;
  }
  section {
    padding: 64px 0;
  }
  .site-header {
    padding: 24px 0;
  }
  .site-header .wrap {
    padding: 0 48px;
  }
  .wordmark h3 {
    font-size: 2.4375rem;
    max-width: 521px;
  }
  h1 {
    font-size: 3.375rem;
    letter-spacing: 4px;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 2.4375rem;
  }
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .hero__text {
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
    padding: 72px 24px;
  }
  .hero__media {
    order: 0;
    flex: 0 0 58.3333%;
    max-width: 58.3333%;
  }
  .hero__logo {
    margin: 40px 0;
  }
  .hero h1 {
    font-size: 3.375rem;
    letter-spacing: 4px;
    margin: 0 0 16px;
  }
  .download__action span {
    display: inline;
  }
  .journey__row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }
  .journey__media {
    flex: 0 0 317px;
    max-width: 317px;
  }
  .journey__list {
    flex: 1 1 auto;
    margin-top: 0;
  }
  .about__photo {
    max-width: 68rem;
  }
}
