/* Northlight Rentals — catalog first. Neutral grey, black controls, mono for specs and prices, one red "rec" accent. */
:root {
  --nl-bg: #f2f2ef;
  --nl-surface: #ffffff;
  --nl-ink: #111214;
  --nl-muted: #63666b;
  --nl-line: #dadad4;
  --nl-red: #e2341d;
  --nl-green: #1d7a46;
  --nl-amber: #a8650a;
  --nl-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --nl-sans: "IBM Plex Sans", system-ui, sans-serif;
  --nl-header-h: 3.75rem;
  --gutter: clamp(1rem, 4vw, 3rem);

  --ui-font: var(--nl-sans);
  --ui-ink: var(--nl-ink);
  --ui-muted: var(--nl-muted);
  --ui-accent: var(--nl-ink);
  --ui-tint: #f4f4f1;
  --ui-line: #cfcfc8;
  --ui-radius: 3px;
}

body {
  background: var(--nl-bg);
  color: var(--nl-ink);
  font-family: var(--nl-sans);
  font-size: 1rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.mono {
  font-family: var(--nl-mono);
}

/* Header -------------------------------------------------------------------- */
.nl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nl-header-h);
  padding: 0 var(--gutter);
  background: var(--nl-surface);
  border-bottom: 1px solid var(--nl-line);
}

.nl-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nl-logo__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--nl-red);
}

.nl-logo__sub {
  font-family: var(--nl-mono);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--nl-muted);
}

.nl-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
}

.nl-nav a {
  text-decoration: none;
  color: var(--nl-muted);
}

.nl-nav a:hover {
  color: var(--nl-ink);
}

.nl-header__request {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem 0.45rem 0.85rem;
  border: 1px solid var(--nl-ink);
  border-radius: 3px;
  font-family: var(--nl-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.nl-header__count {
  min-width: 1.5rem;
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
  background: var(--nl-ink);
  color: #fff;
  text-align: center;
}

@media (max-width: 48rem) {
  .nl-nav {
    display: none;
  }

  .nl-header__request {
    margin-left: auto;
  }
}

/* Intro ----------------------------------------------------------------------- */
.nl-intro {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
}

@media (min-width: 56rem) {
  .nl-intro {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

.nl-intro__text {
  display: grid;
  gap: 1rem;
}

.nl-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--nl-mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--nl-muted);
}

.nl-kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--nl-red);
}

.nl-intro h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  max-width: 16ch;
}

.nl-intro__lede {
  max-width: 32rem;
  font-size: 1.08rem;
  color: var(--nl-muted);
}

.nl-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nl-intro__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}

.nl-intro__photo figcaption {
  margin-top: 0.5rem;
  font-family: var(--nl-mono);
  font-size: 0.78rem;
  color: var(--nl-muted);
}

@media (max-width: 40rem) {
  .nl-intro__photo {
    display: none;
  }
}

/* Basics strip ------------------------------------------------------------------- */
.nl-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--nl-line);
  border-bottom: 1px solid var(--nl-line);
  background: var(--nl-surface);
}

@media (min-width: 48rem) {
  .nl-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nl-strip li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem var(--gutter);
  font-size: 0.92rem;
  border-right: 1px solid var(--nl-line);
}

.nl-strip li:nth-child(n + 3) {
  border-top: 1px solid var(--nl-line);
}

@media (min-width: 48rem) {
  .nl-strip li {
    padding: 0.9rem 1.25rem;
  }

  .nl-strip li:nth-child(n + 3) {
    border-top: 0;
  }
}

.nl-strip span {
  font-family: var(--nl-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nl-red);
}

/* Shop layout --------------------------------------------------------------------- */
.nl-shop {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter) clamp(5rem, 8vw, 4rem);
}

@media (min-width: 64rem) {
  .nl-shop {
    grid-template-columns: 1fr 22rem;
  }
}

.nl-catalog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nl-count {
  font-family: var(--nl-mono);
  font-size: 0.82rem;
  color: var(--nl-muted);
}

.nl-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nl-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}

.nl-tab {
  flex: none;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--nl-line);
  border-radius: 3px;
  background: var(--nl-surface);
  font-family: var(--nl-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.nl-tab[aria-pressed="true"] {
  border-color: var(--nl-ink);
  background: var(--nl-ink);
  color: #fff;
}

.nl-toolbar__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.nl-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--nl-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--nl-muted);
}

.nl-sort .input {
  width: auto;
  font-family: var(--nl-sans);
  text-transform: none;
}

@media (max-width: 30rem) {
  .nl-sort span {
    display: none;
  }

  .nl-sort .input {
    max-width: 8.5rem;
  }
}

/* Product grid ---------------------------------------------------------------- */
.nl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .nl-grid {
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
    gap: 1rem;
  }
}

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

.nl-card__open {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.nl-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e7e3;
}

.nl-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nl-card__open:hover img {
  transform: scale(1.04);
}

.nl-card__body {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.85rem 0.4rem;
}

.nl-card__cat {
  font-family: var(--nl-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--nl-muted);
}

.nl-card__name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.nl-card__spec {
  font-family: var(--nl-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--nl-muted);
}

.nl-card__foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.85rem;
}

.nl-price {
  display: grid;
  line-height: 1.1;
}

.nl-price strong {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nl-price strong small {
  font-family: var(--nl-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--nl-muted);
}

.nl-price span {
  font-family: var(--nl-mono);
  font-size: 0.72rem;
  color: var(--nl-muted);
}

.nl-add {
  min-height: 2.3rem;
  padding: 0.35em 0.85em;
  font-size: 0.88rem;
}

.nl-add[aria-pressed="true"] {
  background: var(--nl-surface);
  color: var(--nl-ink);
  border-color: var(--nl-ink);
}

@media (max-width: 30rem) {
  .nl-card__spec {
    display: none;
  }

  .nl-card__foot {
    flex-direction: column;
    align-items: stretch;
  }
}

.nl-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--nl-line);
  text-align: center;
  color: var(--nl-muted);
}

/* Request panel -------------------------------------------------------------------- */
.nl-request__body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--nl-line);
  border-radius: 3px;
  background: var(--nl-surface);
}

.nl-request__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nl-request__head h2 {
  font-size: 1.3rem;
}

.nl-request__close {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--nl-line);
  border-radius: 50%;
  background: none;
  font-size: 1.3rem;
  line-height: 1;
}

.nl-request__bar {
  display: none;
}

.nl-request__items {
  display: grid;
  gap: 0.6rem;
}

.nl-request__empty {
  padding: 1rem;
  border: 1px dashed var(--nl-line);
  font-size: 0.92rem;
  color: var(--nl-muted);
}

.nl-line {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.25rem 0.7rem;
  align-items: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--nl-line);
}

.nl-line img {
  grid-row: span 2;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 2px;
}

.nl-line__name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
}

.nl-line__rate {
  font-family: var(--nl-mono);
  font-size: 0.75rem;
  color: var(--nl-muted);
}

.nl-qty {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--nl-line);
  border-radius: 3px;
}

.nl-qty button {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: none;
  font-size: 1.05rem;
}

.nl-qty button:disabled {
  color: #c2c2bc;
  cursor: not-allowed;
}

.nl-qty output {
  min-width: 1.5rem;
  font-family: var(--nl-mono);
  font-size: 0.9rem;
  text-align: center;
}

.nl-request__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.nl-request__dates .input {
  padding-inline: 0.5rem;
  font-size: 0.92rem;
}

.nl-totals {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem;
  border-radius: 3px;
  background: var(--nl-bg);
  font-size: 0.92rem;
}

.nl-totals div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.nl-totals dt {
  color: var(--nl-muted);
}

.nl-totals dd {
  margin: 0;
  font-family: var(--nl-mono);
  font-weight: 500;
  text-align: right;
}

.nl-totals__total {
  margin-top: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--nl-line);
  font-weight: 700;
  font-size: 1.05rem;
}

.nl-totals__total dt {
  color: var(--nl-ink);
}

.nl-totals__list {
  display: grid;
  gap: 0.4rem;
}

.nl-totals__note {
  font-size: 0.8rem;
  color: var(--nl-green);
}

.nl-totals__note--muted {
  color: var(--nl-muted);
}

.nl-request__error {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ui-danger);
}

.nl-request__fine {
  font-size: 0.8rem;
  color: var(--nl-muted);
  text-align: center;
}

@media (min-width: 64rem) {
  .nl-request {
    position: sticky;
    top: calc(var(--nl-header-h) + 1rem);
    max-height: calc(100vh - var(--nl-header-h) - 2rem);
    overflow-y: auto;
  }
}

/* Phone and tablet: the request panel is a bottom sheet with a summary bar. */
@media (max-width: 63.99rem) {
  .nl-request {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
  }

  .nl-request__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.6rem var(--gutter);
    border: 0;
    background: var(--nl-ink);
    color: #fff;
    font-family: var(--nl-sans);
    font-size: 0.95rem;
    text-align: left;
  }

  .nl-request__bar-action {
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    background: #fff;
    color: var(--nl-ink);
    font-weight: 700;
    font-size: 0.85rem;
  }

  .nl-request__body {
    display: none;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  }

  .nl-request.is-open .nl-request__body {
    display: grid;
  }

  .nl-request.is-open .nl-request__bar {
    display: none;
  }

  .nl-request__close {
    display: inline-grid;
    place-items: center;
  }

  body {
    padding-bottom: 3.5rem;
  }
}

/* Dialogs ------------------------------------------------------------------------- */
.nl-dialog {
  width: min(56rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--nl-surface);
  color: var(--nl-ink);
}

.nl-dialog::backdrop {
  background: rgba(17, 18, 20, 0.6);
}

.nl-dialog__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--nl-line);
  border-radius: 50%;
  background: var(--nl-surface);
  font-size: 1.3rem;
  line-height: 1;
}

.nl-item__inner {
  display: grid;
}

@media (min-width: 48rem) {
  .nl-item__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

.nl-item__img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  max-height: 32rem;
  object-fit: cover;
  background: #e7e7e3;
}

.nl-item__info {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.5rem;
}

.nl-item__info h2 {
  padding-right: 2.5rem;
  font-size: 1.6rem;
}

.nl-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--nl-line);
  border-radius: 3px;
}

.nl-rates div {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.7rem;
}

.nl-rates div + div {
  border-left: 1px solid var(--nl-line);
}

.nl-rates dt {
  font-family: var(--nl-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--nl-muted);
}

.nl-rates dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
}

.nl-item__meta {
  font-family: var(--nl-mono);
  font-size: 0.8rem;
  color: var(--nl-muted);
}

.nl-item__section h3 {
  margin-bottom: 0.4rem;
  font-family: var(--nl-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--nl-muted);
}

.nl-item__section ul {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.nl-specs {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.nl-specs div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
}

.nl-specs dt {
  color: var(--nl-muted);
}

.nl-item__note {
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--nl-amber);
  background: #fbf4e7;
  font-size: 0.88rem;
}

.nl-item__add {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.nl-confirm {
  width: min(38rem, calc(100% - 1.5rem));
}

.nl-confirm__inner {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.nl-confirm__inner h2 {
  padding-right: 2.5rem;
  font-size: 1.5rem;
}

.nl-confirm__recap {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  background: var(--nl-bg);
  font-size: 0.92rem;
}

.nl-confirm__recap strong {
  font-family: var(--nl-mono);
  font-weight: 600;
}

.nl-confirm__form {
  display: grid;
  gap: 1rem;
}

.nl-confirm .summary {
  padding: 0;
  border: 0;
}

.nl-avail {
  display: grid;
  gap: 0.5rem;
}

.nl-avail li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.1rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--nl-line);
}

.nl-avail img {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 2px;
}

.nl-avail__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.nl-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--nl-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.nl-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.nl-status--ok {
  color: var(--nl-green);
}

.nl-status--partial {
  color: var(--nl-amber);
}

.nl-status--booked {
  color: var(--nl-red);
}

/* Before you rent / visit ------------------------------------------------------------ */
.nl-before {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  background: var(--nl-surface);
  border-top: 1px solid var(--nl-line);
}

.nl-rules {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 40rem) {
  .nl-rules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .nl-rules {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nl-rule {
  padding-top: 0.9rem;
  border-top: 2px solid var(--nl-ink);
}

.nl-rule h3 {
  margin-bottom: 0.6rem;
  font-family: var(--nl-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nl-rule ul {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: #2c2e31;
}

.nl-rule li {
  display: grid;
  grid-template-columns: 1rem 1fr;
}

.nl-rule li::before {
  content: "–";
  color: var(--nl-red);
}

.nl-visit {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
}

@media (min-width: 56rem) {
  .nl-visit {
    grid-template-columns: 1fr 1fr;
  }
}

.nl-visit p {
  margin-top: 0.75rem;
  color: var(--nl-muted);
  max-width: 28rem;
}

.nl-hours div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--nl-line);
}

.nl-hours dt {
  font-family: var(--nl-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--nl-muted);
}

.nl-hours dd {
  margin: 0;
  font-weight: 500;
}

.nl-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 1.75rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--nl-line);
  font-size: 0.9rem;
  color: var(--nl-muted);
}

.nl-footer .nl-logo {
  color: var(--nl-ink);
}
