/* Austin Micro-Rental — single stylesheet, mobile-first, no frameworks. */

:root {
  --ink: #14201c;
  --ink-soft: #4a5a54;
  --line: #dfe5e2;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --brand: #0f6b4f;
  --brand-dark: #0b533d;
  --accent: #d9822b;
  --danger: #b3261e;
  --radius: 10px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 20px; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.section-lede { color: var(--ink-soft); margin-top: -.4em; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 0; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 600; padding: 13px 22px; border: 1px solid var(--brand); border-radius: var(--radius);
  cursor: pointer; font-size: 1rem; font-family: inherit; text-align: center;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.cta-aside { color: var(--ink-soft); font-size: .95rem; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* --- Header ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; }
.brand {
  font-weight: 700; text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.2;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-nav { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-nav a:not(.btn) { color: var(--ink); }
/* Narrow screens: the header keeps the brand and the primary CTA. The phone
   link drops below 560px so the business name isn't truncated — every page
   still carries call CTAs in the hero, form and footer. */
@media (max-width: 699px) {
  .header-nav a[href$="equipment-rentals-austin"] { display: none; }
  .header-nav { gap: 10px; }
  .header-nav .btn-sm { padding: 7px 11px; font-size: .85rem; }
}
@media (max-width: 559px) {
}

/* --- Hero -------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, #f4f7f5 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 36px 20px 40px; }
.hero-copy h1 { max-width: 18ch; font-size: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.hero-meta { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.category-hero { display: grid; gap: 26px; padding: 32px 20px 44px; }
.category-hero-img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.price { font-size: 1.35rem; color: var(--brand-dark); }
.price-weekly { color: var(--ink-soft); }

.breadcrumbs { padding-top: 14px; font-size: .88rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }

/* --- Cards & lists ------------------------------------------------------ */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 24px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { background: var(--bg-soft); }
.card-img { width: 100%; aspect-ratio: 20 / 13; object-fit: cover; background: var(--bg-soft); }
.card-body { display: block; padding: 14px 16px 16px; }
.card-title { display: block; font-weight: 700; }
.card-price { display: block; color: var(--ink-soft); font-size: .92rem; }
.card-cta { display: block; margin-top: 8px; color: var(--brand-dark); font-weight: 600; font-size: .92rem; }

.list-grid { display: grid; gap: 14px; margin: 26px 0; }
.list-row { display: grid; grid-template-columns: 1fr; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.list-img { border-radius: 8px; width: 100%; max-width: 160px; aspect-ratio: 16/11; object-fit: cover; background: var(--bg-soft); }
.list-body h2 { font-size: 1.15rem; margin-bottom: .3em; }
.list-body h2 a { text-decoration: none; }
.list-body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.list-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-price span { color: var(--ink-soft); font-size: .92rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery img { border-radius: 8px; border: 1px solid var(--line); }

.use-cases { display: grid; gap: 10px; }
.use-cases li { padding-left: 28px; position: relative; }
.use-cases li::before {
  content: ""; position: absolute; left: 6px; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand);
}

.benefits { display: grid; gap: 14px; }
.benefits li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.benefits strong { color: var(--ink); }

.steps { display: grid; gap: 16px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-soft); }
.step-body { min-width: 0; }
.steps strong { color: var(--ink); }
.step-n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem;
}

.two-col { display: grid; gap: 26px; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: 6px; color: var(--ink-soft); }

/* --- Forms -------------------------------------------------------------- */
/* `min-width: 0` on grid children: auto tracks are floored by min-content, and
   long option text or an email address would otherwise widen the whole page. */
.form-section { display: grid; gap: 26px; }
.form-intro { max-width: 70ch; }
.form-section > * { min-width: 0; }
.form-intro h2, .form-intro h1 { margin-bottom: .3em; }
.form-alt { color: var(--ink-soft); font-size: .95rem; overflow-wrap: anywhere; }
.field { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.field textarea { resize: vertical; }
.field-error { color: var(--danger); font-size: .85rem; }
.form-error-summary {
  background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger);
  padding: 10px 12px; border-radius: 8px; font-size: .93rem;
}
.form-note { color: var(--ink-soft); font-size: .85rem; margin: 12px 0 0; }
.form-points { display: grid; gap: 8px; margin: 0 0 16px; }
.form-points li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .95rem; }
.form-points li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
/* Honeypot — must stay invisible to humans but reachable by bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Confirmation ------------------------------------------------------- */
.confirmation { max-width: 720px; }
.confirm-badge {
  display: inline-block; background: #e6f3ee; color: var(--brand-dark);
  border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: .85rem;
}
.summary-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; background: var(--bg-soft); }
.summary-card h2 { font-size: 1.05rem; }
.summary { margin: 0; display: grid; gap: 10px; }
.summary > div { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.summary dt { color: var(--ink-soft); font-size: .85rem; margin: 0 0 2px; }
.summary dd { margin: 0; font-weight: 600; }

@media (min-width: 560px) {
  .summary > div { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; }
  .summary dt { margin: 0; font-size: .92rem; }
  .summary dd { text-align: right; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: #10201b; color: #cbd8d3; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 26px; padding: 40px 20px 20px; }
.footer-brand { font-weight: 700; color: #fff; margin-bottom: .3em; }
.footer-heading { font-weight: 700; color: #fff; margin: 0 0 .4em; }
.footer-grid ul li { margin-bottom: 4px; }
.footer-legal { border-top: 1px solid #24382f; padding: 16px 20px 30px; font-size: .82rem; color: #93a49e; }

/* --- Sticky mobile CTA --------------------------------------------------- */
/* Phone-only conversion bar. Hidden on desktop, where the header CTA is
   always visible, and hidden while the form itself is on screen (site.js). */
.sticky-cta { display: none; }

@media (max-width: 699px) {
  .sticky-cta {
    display: grid; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(20, 32, 28, .09);
    transition: transform .18s ease-out;
  }
  .sticky-cta[hidden] { display: grid; transform: translateY(120%); }
  .sticky-cta .btn { padding: 13px 10px; font-size: 1rem; }
  /* Keep the footer clear of the bar. */
  .site-footer { padding-bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* --- Responsive --------------------------------------------------------- */
@media (min-width: 700px) {
  h1 { font-size: 2.4rem; }
  .hero-copy h1 { font-size: 2.9rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .list-row { grid-template-columns: 160px 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 14px 30px; }
}

@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .category-hero { grid-template-columns: 1.15fr 1fr; align-items: center; padding-top: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --- Booking ------------------------------------------------------------ */
.booking {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 22px; min-width: 0;
  container-type: inline-size;
}
.field-label { font-weight: 700; margin: 0 0 2px; }
.field-row { display: grid; gap: 14px; min-width: 0; }
.field-row > * { min-width: 0; }
.form-errors {
  background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger);
  padding: 12px 14px; border-radius: 8px; font-size: .93rem;
}
.form-errors p { font-weight: 700; margin: 0 0 6px; }
.form-errors ul { margin: 0; padding-left: 18px; }

.booking-layout { display: grid; gap: 22px; min-width: 0; }
.booking-dates { display: grid; gap: 16px; min-width: 0; }
.booking-contact { display: grid; gap: 14px; min-width: 0; }

/* --- Calendar ----------------------------------------------------------- */
.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cal-head { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 4px; }
.cal-nav {
  font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer;
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
}
.cal-nav:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-months { display: grid; gap: 18px; }
.cal-title { font-weight: 700; text-align: center; margin: 0 0 8px; font-size: .95rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-soft);
  padding-bottom: 4px;
}
.cal-pad { aspect-ratio: 1; }
.cal-day {
  font: inherit; font-size: .9rem; aspect-ratio: 1; min-height: 38px; cursor: pointer;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--ink); display: grid; place-items: center;
}
.cal-day:hover:not(:disabled) { border-color: var(--brand); }
.cal-day.is-disabled, .cal-day:disabled { color: #b9c4bf; cursor: default; }
.cal-day.is-between { background: #e6f3ee; border-radius: 0; }
.cal-day.is-start, .cal-day.is-end {
  background: var(--brand); color: #fff; font-weight: 700; border-color: var(--brand);
}
.cal-hint { margin: 10px 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* --- Choices ------------------------------------------------------------ */
.choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.choice-group legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 4px; }
.choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer;
}
.choice:hover { border-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: #e6f3ee; }
.choice input { width: 18px; height: 18px; accent-color: var(--brand); }
.choice strong { display: block; font-size: .95rem; }
.choice small { color: var(--ink-soft); font-size: .85rem; }

/* --- Price summary ------------------------------------------------------ */
.booking-summary {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; align-self: start; min-width: 0;
}
.summary-heading { font-weight: 700; margin: 0 0 10px; }
.summary-lines { margin: 0; display: grid; gap: 9px; }
.summary-lines > div {
  display: flex; gap: 12px; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed var(--line); padding-bottom: 7px;
}
.summary-lines dt { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.summary-lines dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 0 0; font-size: 1.05rem;
}
.summary-total strong { font-size: 1.5rem; color: var(--brand-dark); }
.summary-note { margin: 8px 0 0; font-size: .82rem; color: var(--ink-soft); }

/* --- Items we have no photograph of ------------------------------------- */
/* A drawing standing in for a machine someone is about to pay for reads as a
   stock placeholder, so these get type instead. */
.card-img-text, .list-img-text {
  display: grid; place-items: center; background: var(--bg-soft);
  border-bottom: 1px solid var(--line); text-align: center; padding: 14px;
}
.card-img-text span, .list-img-text span {
  font-weight: 700; color: var(--brand-dark); font-size: 1.05rem; line-height: 1.25;
}
.list-img-text { border: 1px solid var(--line); border-radius: 8px; }

/* --- Confirmation / narrow pages ---------------------------------------- */
.narrow { max-width: 680px; }
.eyebrow {
  display: inline-block; background: #e6f3ee; color: var(--brand-dark);
  border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .8rem;
  letter-spacing: .02em; margin-bottom: 10px;
}
.receipt {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0 30px; background: var(--bg-soft);
}

@container (min-width: 500px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .cal-months { grid-template-columns: 1fr 1fr; gap: 22px; }
  .booking { padding: 26px; }
}

@container (min-width: 820px) {
  /* The summary rides alongside the calendar so the price stays visible while
     the dates are being chosen, which is the whole point of it. */
  .booking-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .booking-summary { position: sticky; top: 20px; }
}

/* Browsers without container queries keep the single-column form, which is
   correct at every width — just taller. */

/* --- Hand-off to Stripe ------------------------------------------------- */
/* Stripe can't receive the day count in the URL, so this tells the customer
   what to set on the payment page. It has to be impossible to miss. */
.booking-summary .btn { margin-top: 14px; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.handoff {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; font-size: .88rem;
  background: #fff7e6; border: 1px solid #f3d9a4; color: var(--ink);
}
.handoff.is-error { background: #fdecea; border-color: #f5c6c2; color: var(--danger); }
