/* =========================================================================
   KHF Movers — Design tokens
   Palette pulled from the KHF logo mark (cargo-panel red) and the
   warehouse/kraft-paper world of packing and freight. Radius stays small
   and square to match the logo's blocky truck silhouette — no pill shapes.
   ========================================================================= */

:root {
  /* Color — light (default) */
  --paper: #faf6ee;
  --surface: #ffffff;
  --surface-sunken: #f2ebda;
  --ink: #1c1814;
  --ink-soft: #55503f;
  --ink-faint: #85806f;
  --line: #e4dac2;

  --red: #d21f1a;
  --red-deep: #9c1512;
  --red-tint: #fbe6e2;

  --tape: #dd9f34;
  --gold: #f2b23c;
  --gold-hover: #e7a423;
  --gold-ink: #2c1f0a;
  --field-border: #a6adb8;

  --charcoal: #221e1a;
  --charcoal-2: #2c2721;
  --on-charcoal: #f6f1e6;
  --on-charcoal-muted: #c9c1ac;

  --focus: #2f6fed;

  /* Type */
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Radius — small and square, echoing the logo */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 180ms;
  --dur-med: 320ms;

  --max-width: 1220px;
}

/* Dark mode is opt-in only, via the header toggle — the site defaults to
   light regardless of OS preference. See assets/js/main.js. */
:root[data-theme="dark"] {
  --paper: #17140f;
  --surface: #201b16;
  --surface-sunken: #2a2319;
  --ink: #f3ede0;
  --ink-soft: #cbc3ae;
  --ink-faint: #948c76;
  --line: #3a3224;

  --red: #ef2f29;
  --red-deep: #b4211c;
  --red-tint: #3a1815;

  --gold: #f2b23c;
  --gold-hover: #ffc35c;
  --gold-ink: #201607;
  --field-border: #524a3c;

  --charcoal: #100e0b;
  --charcoal-2: #1a1611;
  --on-charcoal: #f3ede0;
  --on-charcoal-muted: #b6ad96;
}

/* =========================================================================
   Reset
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

input,
textarea,
button {
  font: inherit;
  color: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Layout helpers
   ========================================================================= */

.section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-6);
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.section-lead {
  margin-top: var(--sp-4);
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-ghost-on-dark {
  border-color: rgba(246, 241, 230, 0.4);
  color: var(--on-charcoal);
}

.btn-ghost-on-dark:hover {
  border-color: var(--on-charcoal);
  background: rgba(246, 241, 230, 0.08);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 1rem;
  padding: 1rem 1.4rem;
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-whatsapp {
  background: #21c063;
  color: #fff;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-whatsapp:hover {
  background: #1aa653;
}

.btn-whatsapp span {
  display: none;
}

@media (min-width: 480px) {
  .btn-whatsapp {
    padding: 0.6rem 1rem;
  }
  .btn-whatsapp span {
    display: inline;
  }
}

.btn-block {
  width: 100%;
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.brand img {
  height: 44px;
  width: auto;
}

@media (min-width: 480px) {
  .header-inner {
    padding: var(--sp-2) var(--sp-6);
    gap: var(--sp-6);
  }
  .brand img {
    height: 56px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nav a:hover {
  color: var(--red);
  border-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.tel-link {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  color: var(--ink);
}

.tel-link svg {
  color: var(--red);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  flex: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover {
  color: var(--red);
  border-color: var(--red);
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin-inline: 9px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .tel-link {
    display: flex;
  }
  .nav {
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 899px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-med) var(--ease-out);
  }
  .nav.is-open {
    max-height: 360px;
  }
  .nav a {
    width: 100%;
    padding: var(--sp-4) var(--sp-6);
    border-bottom: 1px solid var(--line);
  }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    185deg,
    rgba(16, 14, 11, 0.97) 0%,
    rgba(16, 14, 11, 0.95) 40%,
    rgba(16, 14, 11, 0.93) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.hero-copy {
  color: var(--on-charcoal);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.hero-copy .eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tape);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 3vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Cursor-proximity heading — letters near the pointer lift and warm to
   gold, echoing "handled right": items respond as a hand nears them.
   Only takes effect once JS splits .proximity-line into .word/.letter
   spans (assets/js/main.js), which it skips on touch devices and when
   the visitor prefers reduced motion — so this heading is plain, static
   text until then. */
.proximity-heading .word {
  display: inline-block;
  white-space: nowrap;
}

.proximity-heading .letter {
  --proximity: 0;
  display: inline-block;
  transform-origin: 50% 75%;
  transform: translateY(calc(var(--proximity) * -3px)) scale(calc(1 + 0.15 * var(--proximity)));
  color: color-mix(in srgb, var(--on-charcoal), var(--gold) calc(var(--proximity) * 100%));
  transition: transform 120ms var(--ease-out), color 120ms var(--ease-out);
  will-change: transform;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--on-charcoal-muted);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.chip {
  border: 1px solid rgba(246, 241, 230, 0.3);
  background: rgba(16, 14, 11, 0.3);
  color: var(--on-charcoal-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
}

/* Quick quote card — sits on the right, opaque, on top of the photo */
.ticket {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  align-self: start;
}

.ticket-header {
  background: var(--red);
  color: #fff;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  text-align: center;
}

.ticket-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
}

.ticket-header p {
  margin-top: var(--sp-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.ticket-form {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.ticket-form .field input,
.ticket-form .field textarea {
  background: var(--surface);
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 1rem;
}

.ticket-form .field input:focus,
.ticket-form .field textarea:focus {
  border-color: var(--red);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.field-row > * {
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field .optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.field input,
.field textarea {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  background: var(--surface);
}

.ticket-fineprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

@media (min-width: 1000px) {
  .hero-bg {
    object-position: center 60%;
  }
  .hero-scrim {
    background: linear-gradient(
      100deg,
      rgba(16, 14, 11, 0.96) 0%,
      rgba(16, 14, 11, 0.94) 35%,
      rgba(16, 14, 11, 0.91) 60%,
      rgba(16, 14, 11, 0.93) 100%
    );
  }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: var(--sp-24) var(--sp-8);
    min-height: 640px;
  }
}

/* =========================================================================
   Trust strip
   ========================================================================= */

.trust-strip {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}

.trust-strip-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--sp-8) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.trust-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.trust-item svg {
  flex: none;
  color: var(--red);
  margin-top: 2px;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 800;
}

.trust-item p {
  margin-top: var(--sp-1);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .trust-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================================
   Services
   ========================================================================= */

.services {
  background: var(--paper);
}

.service-grid {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.service-body {
  padding: var(--sp-6);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.service-card p {
  margin-top: var(--sp-2);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 700px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================================
   Process
   ========================================================================= */

.process {
  background: var(--charcoal);
  color: var(--on-charcoal);
}

.process .section-eyebrow {
  color: var(--tape);
}

.process h2 {
  color: var(--on-charcoal);
}

.process-list {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(246, 241, 230, 0.14);
  border: 1px solid rgba(246, 241, 230, 0.14);
}

.process-step {
  background: var(--charcoal);
  padding: var(--sp-8) var(--sp-6);
}

.process-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--red);
  display: block;
}

.process-step h3 {
  margin-top: var(--sp-2);
  font-size: 1.05rem;
  font-weight: 800;
}

.process-step p {
  margin-top: var(--sp-2);
  color: var(--on-charcoal-muted);
  font-size: 0.9375rem;
}

@media (min-width: 700px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================================
   Coverage tags
   ========================================================================= */

.coverage {
  background: var(--paper);
}

.tag-grid {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.tag-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-4);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =========================================================================
   Fleet / truck size guide
   ========================================================================= */

.fleet {
  background: var(--surface-sunken);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* =========================================================================
   Reviews
   ========================================================================= */

.reviews {
  background: var(--paper);
}

.reviews-copy {
  max-width: 60ch;
}

.reviews-ctas {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.review-grid {
  margin-top: var(--sp-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  list-style: none;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
}

.review-quote {
  margin: var(--sp-3) 0 0;
}

.review-quote p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.review-meta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-source {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

@media (min-width: 700px) {
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .review-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================================
   Contact
   ========================================================================= */

.contact {
  background: var(--surface-sunken);
  border-top: 1px solid var(--line);
}

.contact-layout {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: stretch;
}

.contact-form {
  margin-top: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  background: var(--surface);
  padding: var(--sp-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.contact-form > * {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.contact-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .contact-layout {
    grid-template-columns: minmax(0, 760px) 1fr;
  }
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--charcoal);
  color: var(--on-charcoal-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-6) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.footer-brand img {
  height: 64px;
  width: auto;
}

.footer-brand p {
  margin-top: var(--sp-4);
  max-width: 40ch;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--on-charcoal);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--on-charcoal);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 230, 0.12);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  font-size: 0.8125rem;
}

.footer-credit {
  color: var(--on-charcoal-muted);
}

.footer-credit a {
  color: var(--on-charcoal-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--gold);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    gap: var(--sp-3);
  }

  .footer-credit::before {
    content: "•";
    margin-right: var(--sp-3);
    opacity: 0.5;
  }
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* =========================================================================
   Mobile action bar
   ========================================================================= */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--charcoal);
  display: flex;
  justify-content: space-around;
  padding: var(--sp-2) var(--sp-4) max(var(--sp-2), env(safe-area-inset-bottom));
  box-shadow: 0 -8px 20px -16px rgba(0, 0, 0, 0.5);
}

.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--on-charcoal-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
}

.mobile-bar-primary {
  background: var(--red);
  color: #fff !important;
}

@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }
}

body {
  padding-bottom: 64px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
