/* 478 Laundry Rentals - site.css */

:root {
  --bg: #0B1226;
  --bg-alt: #0F1834;
  --surface: #141F42;
  --surface-2: #1A2750;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #F3F6FC;
  --muted: #A9B4CC;
  --blue: #3B82F6;
  --blue-bright: #6AA6FF;
  --link: #8AB8FF;
  --link-hover: #B5D1FF;
  --btn: #2563EB;
  --btn-hover: #1D4ED8;
  --focus: #93C5FD;
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;

  --font-display: "Rajdhani", "Titillium Web", "Arial Narrow", sans-serif;
  --font-label: "Titillium Web", "Segoe UI", Arial, sans-serif;
  --font-body: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-max: 1120px;
  --radius: 10px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img, svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 16px;
}

h1, h2 {
  font-family: var(--font-display);
}

h3 {
  font-family: var(--font-body);
}

h1 {
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
}

h2 {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

h3 {
  font-weight: 700;
  font-size: 1.15rem;
}

p {
  margin: 0 0 16px;
}

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

.small {
  font-size: 0.875rem;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 640px;
}

.section {
  padding: 56px 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.section-label {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.btn--large {
  height: 52px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.btn--small {
  height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

.tap-to-call {
  color: var(--ink);
  font-weight: 600;
}

.tap-to-call:hover {
  color: var(--blue-bright);
}

.tap-to-call--large {
  font-size: 1.05rem;
  align-self: center;
}

.tap-to-call--on-dark {
  color: var(--ink);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark--small span {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark span,
.site-header__actions .tap-to-call {
  white-space: nowrap;
}

/* On phones the sticky bottom bar carries the Rent button, so the header keeps only
   the brand and the phone number and nothing has to wrap. */
@media (max-width: 639px) {
  .site-header__actions .btn {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 40px 0 48px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero__kicker {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
  margin-bottom: 8px;
}

.hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 2.6rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero__art {
  display: flex;
  justify-content: center;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 360px;
  margin: 24px 0;
}

.price-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}

.price-card__amount span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
}

.price-card__line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card__line--strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feature__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--blue-bright);
}

.feature__title {
  font-weight: 600;
  margin: 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin: 0 0 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.card__title {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

a.pill:hover {
  border-color: var(--blue);
  text-decoration: none;
}

.pill--active {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}

/* FAQ */
.faq {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--link);
  font-weight: 700;
}

.faq[open] summary::before {
  content: "\2212";
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  background: var(--surface-2);
  color: var(--ink);
}

.cta-band h2 {
  color: var(--ink);
}

.cta-band__inner {
  text-align: center;
}

.cta-band .hero__actions {
  justify-content: center;
}

/* Notices */
.notice {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.notice--error {
  border-left-color: var(--warn);
}

.ref-code {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 16px;
}

.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 500;
}

.detail-list dd {
  margin: 0;
}

/* Forms */
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

legend {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 0;
  margin-bottom: 12px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="password"],
input:not([type]),
select,
textarea {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #0D1530;
}

textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--btn);
}

.radio--with-inputs {
  flex-wrap: wrap;
}

.inline-input,
.radio .inline-input {
  width: auto;
  min-width: 150px;
  height: 40px;
  display: inline-block;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--btn);
}

.field-error {
  display: block;
  color: var(--warn);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Rent page */
.rent-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .rent-page__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 20px;
}

.summary-card__title {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 16px;
}

.summary-card__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-card__row--total {
  font-weight: 700;
  color: var(--ink);
  border-bottom: none;
  padding-top: 12px;
}

.summary-card__note {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 12px 0 0;
}

.summary-block {
  margin: 24px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.site-footer p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.2rem;
}

.site-footer__heading {
  font-weight: 700;
  color: var(--ink);
}

.site-footer__fine {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.8rem;
}

/* Mobile sticky bar */
.mobile-bar {
  display: none;
}

@media (max-width: 759px) {
  body.has-mobile-bar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    z-index: 50;
  }

  .mobile-bar__price {
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
  }

  .mobile-bar__cta {
    flex: 1;
  }

  .mobile-bar__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-2);
    flex-shrink: 0;
  }
}

/* Admin */
.admin-body {
  background: var(--bg-alt);
}

.admin-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.admin-header .wordmark {
  color: var(--ink);
}

.admin-main {
  padding: 32px 20px 64px;
}

.admin-login {
  max-width: 360px;
  margin: 48px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-badge--reserved,
.status-badge--pendingpayment {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.3);
}

.status-badge--paid,
.status-badge--confirmed,
.status-badge--delivered {
  background: rgba(52, 211, 153, 0.12);
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.3);
}

.status-badge--cancelled,
.status-badge--returned {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Prose pages */
.prose h2 {
  margin-top: 32px;
  font-size: 1.2rem;
}

/* Desktop section padding */
@media (min-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero h1 {
    font-size: 3.6rem;
  }
}
