/* Trojan Storage — Home (front-page) layout.
   Recreates mocks/Home.html as one responsive page (desktop default, mobile at
   <=860px), composing the primitives in components.css on the design tokens. */

.home { background: #fff; color: var(--text-body); }
.home .section { padding: 72px 0; }
.home .section--slate { background: var(--slate-50); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.home .section--dark { background: var(--slate-900); }
.home .section__head { max-width: 560px; margin: 0 0 34px; }
.home .section__head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.home .section__lead { font-size: 16px; margin: 0; }

/* ---------- Hero ---------- */
.home-hero { background: #fff; padding: 64px 0; }
.home-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.home-hero__title {
  font: 800 50px/1.05 var(--font-display); color: var(--text-strong);
  letter-spacing: -.02em; margin: 0 0 20px;
}
.home-hero__lead { font-size: 17.5px; line-height: 1.6; margin: 0 0 28px; color: var(--text-body); max-width: 480px; }
.home-hero__media { position: relative; }
.home-hero__photo {
  height: 440px; border-radius: var(--radius-xl);
  background-image: linear-gradient(160deg, rgba(13,15,19,.18), rgba(13,15,19,.05)),
    var(--home-hero-img, url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=70'));
}
.review-float {
  position: absolute; left: -28px; bottom: 30px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px 20px; width: 260px;
}
.review-float__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-float__head b { font-size: 14px; color: var(--text-strong); }
.review-float p { margin: 0 0 10px; font-size: 13.5px; color: var(--text-body); line-height: 1.5; }
.review-float__who { display: flex; align-items: center; gap: 8px; }
.review-float__avatar {
  width: 30px; height: 30px; border-radius: 999px; background: var(--red-100); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font: 700 13px var(--font-display);
}

/* ---------- Search card ---------- */
.search-card { padding: 22px; max-width: 520px; }
.search-card__label { font: 700 14px/1 var(--font-display); color: var(--text-strong); margin-bottom: 12px; }
.search-card__row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-card__inputwrap {
  flex: 1; display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--border-default); border-radius: var(--radius-md); padding: 0 12px;
}
.search-card__inputwrap svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.search-card__inputwrap .input { border: none; height: 48px; padding-left: 0; }
.search-card__inputwrap .input:focus { outline: none; }
.search-card__geo { height: 48px; flex: 0 0 auto; }
.search-card__geo svg { width: 18px; height: 18px; }
.search-card__cta { display: flex; gap: 10px; }
.search-card__note { font-size: 12px; text-align: center; margin: 11px 0 0; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--slate-50); padding: 28px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.trust-item { display: flex; align-items: center; gap: 11px; }
.trust-item .ti-ic {
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--red-50); color: var(--brand); flex: 0 0 auto;
}
.trust-item .ti-ic svg { width: 20px; height: 20px; }
.trust-item b { color: var(--text-strong); font: 700 15px/1.1 var(--font-sans); display: block; }
.trust-item span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Storage types ---------- */
.types__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type-card {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.type-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.type-card__photo { height: 150px; }
.type-card__body { padding: 18px; }
.type-card__body b { color: var(--text-strong); font-size: 17px; display: block; margin-bottom: 4px; }
.type-card__body .muted { font-size: 13.5px; }
.type-ic {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--red-50); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.type-ic svg { width: 24px; height: 24px; }
.types__more { text-align: center; margin-top: 26px; }
.types__more a { color: var(--brand); font-weight: 700; text-decoration: none; }

/* ---------- How it works ---------- */
.howto__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.howto__cta { display: flex; gap: 12px; }
.howto__steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: #fff;
  font: 800 18px/1 var(--font-display); display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.step b { color: var(--text-strong); font-size: 16px; }
.step p { margin: 4px 0 0; font-size: 14px; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.loc-card {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.loc-card__photo { height: 130px; }
.loc-card__body { padding: 16px; }
.loc-card__body b { color: var(--text-strong); font-size: 15.5px; }
.loc-card__rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: 6px 0 12px; }
.loc-card__cta { display: flex; gap: 8px; }
.loc-card__cta .btn { flex: 1; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--slate-800); border-radius: var(--radius-md); padding: 24px; }
.review p { margin: 12px 0 16px; color: #fff; font-size: 15.5px; line-height: 1.55; }
.review b { color: #fff; font-size: 14px; }
.review .where { color: var(--slate-400); font-size: 12.5px; }
.reviews__head { text-align: center; margin-bottom: 36px; }
.reviews__head .section-h2 { color: #fff; }

/* ---------- Mobile sticky CTA ---------- */
.home-sticky { display: none; }

/* =================================================================== */
/* Mobile                                                              */
/* =================================================================== */
@media (max-width: 860px) {
  .home .section { padding: 30px 0; }

  .home-hero { padding: 26px 0 22px; }
  .home-hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .home-hero__title { font-size: 33px; line-height: 1.04; }
  .home-hero__lead { font-size: 15px; max-width: none; }
  .home-hero__media { order: -1; }
  .home-hero__photo { height: 200px; border-radius: var(--radius-lg); }
  .review-float { display: none; }
  .search-card { max-width: none; padding: 16px; }
  .search-card__cta { flex-direction: column; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .types__grid { grid-template-columns: 1fr; gap: 12px; }
  .type-card { flex-direction: row; align-items: center; }
  .type-card__photo { width: 96px; height: 84px; flex: 0 0 auto; }
  .type-card__body { padding: 12px 14px; }
  .type-card__body b { font-size: 15.5px; }
  .type-ic { display: none; }

  .howto__grid { grid-template-columns: 1fr; gap: 18px; }
  .step-num { width: 34px; height: 34px; font-size: 16px; }

  .loc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .loc-card__photo { height: 90px; }
  .loc-card__cta { display: none; }

  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__grid .review:nth-child(n+2) { display: none; }

  .home-sticky {
    display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 50;
    padding: 11px 14px; background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px); border-top: 1px solid var(--border-subtle);
  }
}
