/*
  File: public/css/home.css  (repo root: /Users/michael/Visual Studio Projects/Doorshack)
  What this is: the styles for the home page, public/index.html. A normal scrolling, responsive page that fills the
  window width.
  Plan: docs/plans/2026-11-14-home-page-v1-plan.md
  Execution: docs/execution/2026-11-14-home-page-v1-execution.md

  Mobile first. Two breakpoints: 640px (tablet) and 1000px (desktop). Everything is sized in rem, and the root font size
  grows with the window (17px on phones, 18px on tablets, 18px to 26px on desktop), so the whole page scales up on big
  screens. Colours come from the logo file (navy #13263C, yellow #FFC72C).
*/

:root {
  --navy: #13263c;
  --ink: #1d2e44;
  --yellow: #ffc72c;
  --soft: #f0f1f6;
  --rule: #e3e6ee;
  --header-h: 5.1rem;
  --trust-h: 5.6rem;
  --pad: clamp(1.25rem, 4vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
body {
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
img { display: block; max-width: 100%; }

/* The content fills the window width, with side padding only */
.wrap { width: 100%; margin: 0 auto; padding: 0 var(--pad); }

/* The icon definitions are written inside index.html, so they also work when the file is opened from disk */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icons: navy lines with yellow accents */
.ic {
  width: 2.25rem; height: 2.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Skip link: visible only when it has keyboard focus */
.skip { position: absolute; left: -9999px; top: 0; z-index: 30; padding: 0.75rem 1rem; background: var(--navy); color: #fff; font-weight: 700; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.hdr { position: relative; z-index: 10; background: #fff; border-bottom: 1px solid #eef0f4; }
.hdr .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; padding-top: 0.6rem; padding-bottom: 0.5rem; }
.logo { display: block; margin-right: auto; line-height: 0; }
.logo img { width: auto; height: 2.5rem; }
.cart { order: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--navy); cursor: pointer; }
.cart .ic { width: 1.6rem; height: 1.6rem; }
.cart:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 0.5rem; }
.nav { order: 3; flex: 1 0 100%; display: flex; justify-content: space-between; padding: 0.5rem 0.25rem 0.35rem; border-top: 1px solid var(--rule); }
.nav a { font-size: 0.95rem; font-weight: 800; line-height: 1.6; white-space: nowrap; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0 1.6rem; border-radius: 0.5rem;
  background: var(--yellow); color: var(--navy); font-size: 1.05rem; font-weight: 800; white-space: nowrap;
}
.btn .ic { width: 1.3rem; height: 1.3rem; stroke-width: 2.6; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-text { padding: 1.5rem 0 1.25rem; }
.tag { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 0.3rem; background: var(--yellow); color: var(--navy); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.07em; }
.hero h1 { margin-top: 0.75rem; max-width: 12ch; font-size: clamp(2.6rem, 11vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); text-wrap: balance; }
.pitch { margin-top: 0.9rem; max-width: 28rem; font-size: 1.35rem; line-height: 1.3; font-weight: 800; color: var(--navy); text-wrap: balance; }
.lead { margin-top: 0.75rem; max-width: 32rem; font-size: 1.1rem; line-height: 1.5; }
.hero .btn { margin-top: 1.25rem; }
.hero-photo {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 60%;
  clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Trust row ---------- */
.trust { border-top: 1px solid #eceef3; border-bottom: 1px solid #eceef3; background: #fff; }
.trust .wrap { padding-left: 0; padding-right: 0; }
.trust ul { display: grid; grid-template-columns: 1fr 1fr; }
.trust li { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.1rem 0.75rem; text-align: center; border-bottom: 1px solid #eceef3; }
.trust li:nth-child(odd) { border-right: 1px solid #eceef3; }
.trust li:nth-last-child(-n + 2) { border-bottom: 0; }
.trust .ic { width: 2.6rem; height: 2.6rem; color: var(--navy); }
.trust span { max-width: 10rem; font-size: 0.95rem; line-height: 1.3; font-weight: 800; color: var(--navy); text-wrap: balance; }

/* ---------- Choose your style ---------- */
.styles { padding: 1.75rem 0 2rem; background: #fff; }
.styles h2 { text-align: center; font-size: clamp(1.8rem, 6.4vw, 2.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.sub { margin-top: 0.3rem; text-align: center; font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-top: 1.25rem; }
.card { overflow: hidden; border-radius: 0.75rem; background: #fff; box-shadow: 0 2px 14px rgba(19, 38, 60, 0.15); }
.card a { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.card img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 23 / 12; object-fit: cover; }
.card h3 { grid-column: 1; padding: 0.8rem 1rem 0; font-size: 1.3rem; line-height: 1.2; font-weight: 800; color: var(--navy); }
.card p { grid-column: 1; padding: 0.1rem 1rem 0.9rem; font-size: 1rem; line-height: 1.4; }
.go { grid-column: 2; grid-row: 2 / 4; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: 1rem; border-radius: 0.55rem; background: var(--yellow); color: var(--navy); }
.go .ic { width: 1.35rem; height: 1.35rem; stroke-width: 2.6; }

/* ---------- Process ---------- */
.process { padding: 1.75rem 0 2rem; background: var(--soft); }
.process h2 { text-align: center; font-size: clamp(1.5rem, 5.4vw, 1.95rem); line-height: 1.2; font-weight: 800; color: var(--navy); }
.process ol { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.process li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.process .ic { grid-row: 1 / 3; width: 3rem; height: 3rem; color: var(--navy); }
.process h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 800; color: var(--navy); }
.process p { font-size: 1rem; line-height: 1.4; }

/* ---------- Closing banner ---------- */
.banner { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.banner .wrap { display: flex; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; padding-right: 5rem; }
.banner .ic { width: 2.8rem; height: 2.8rem; color: var(--yellow); stroke-width: 1.5; }
.banner p { font-size: clamp(1.2rem, 4.6vw, 1.7rem); line-height: 1.2; font-weight: 800; text-wrap: balance; }
.stripes { position: absolute; right: 0; top: 0; bottom: 0; width: 4.5rem; background: linear-gradient(112deg, transparent 0 25%, var(--yellow) 25% 36%, var(--navy) 36% 48%, var(--yellow) 48% 100%); }

/* ---------- Tablet (640px and up) ---------- */
@media (min-width: 640px) {
  html { font-size: 112.5%; }
  .logo img { height: 2.9rem; }
  .hdr .wrap { flex-wrap: nowrap; gap: 2rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .nav { order: 0; flex: 0 0 auto; gap: 2rem; padding: 0; border-top: 0; }
  .nav a { font-size: 1rem; }
  .cart { order: 0; }

  .hero-text { padding: 2rem 0 1.5rem; }
  .hero-photo { aspect-ratio: 16 / 9; }

  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { padding: 1.25rem 0.75rem; border-bottom: 0; }
  .trust li:nth-child(odd) { border-right: 0; }
  .trust li + li { border-left: 1px solid #eceef3; }

  .cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .process ol { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .process li { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0 1.25rem; text-align: center; }
  .process li + li { border-left: 1px solid #d9dde7; }
  .banner .wrap { padding-right: 7rem; }
  .stripes { width: 6rem; }
}

/* ---------- Desktop (1000px and up) ---------- */
@media (min-width: 1000px) {
  html { font-size: clamp(18px, calc(0.7vw + 10px), 26px); }
  .logo img { height: 3.6rem; }
  .nav { gap: 2.5rem; margin-left: auto; }
  .logo { margin-right: 0; }
  .nav a { font-size: 1.05rem; }
  .cart .ic { width: 1.8rem; height: 1.8rem; }

  /* Hero: text at the left, photo at the right, running to the window's right edge. The header, hero and trust row
     together fill the first screen. */
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; padding-right: 0; min-height: clamp(26rem, calc(100vh - var(--header-h) - var(--trust-h)), 52rem); }
  @supports (height: 1svh) { .hero .wrap { min-height: clamp(26rem, calc(100svh - var(--header-h) - var(--trust-h)), 52rem); } }
  .hero-text { align-self: center; padding: 1.5rem 2rem 1.5rem 0; }
  .hero h1 { margin-top: 0.7rem; font-size: clamp(3rem, 4.4vw, 4.4rem); }
  .pitch { margin-top: 0.9rem; font-size: 1.6rem; max-width: 30rem; }
  .lead { font-size: 1.2rem; max-width: 34rem; }
  .btn { min-height: 3.4rem; padding: 0 2.1rem; font-size: 1.15rem; }
  .hero .btn { margin-top: 1.4rem; }
  .hero-photo { height: 100%; min-height: 24rem; aspect-ratio: auto; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); object-position: 38% 60%; }

  .trust li { flex-direction: row; justify-content: center; gap: 1rem; padding: 1.25rem 1rem; text-align: left; }
  .trust .ic { width: 2.9rem; height: 2.9rem; }
  .trust span { max-width: 11rem; font-size: 1.1rem; }

  .styles { padding: 2.25rem 0 2.5rem; }
  .cards { gap: 2rem; margin-top: 1.5rem; }
  .card h3 { padding: 1rem 1.25rem 0; font-size: 1.5rem; }
  .card p { padding: 0.15rem 1.25rem 1.1rem; font-size: 1.15rem; }
  .go { width: 3.1rem; height: 3.1rem; margin-right: 1.25rem; }

  .process { padding: 2rem 0 2.25rem; }
  .process ol { margin-top: 1.5rem; }
  .process .ic { width: 3.4rem; height: 3.4rem; }
  .process h3 { font-size: 1.3rem; }
  .process p { font-size: 1.15rem; max-width: 18rem; }

  .banner .wrap { gap: 1.5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; padding-right: 9rem; }
  .banner .ic { width: 3.4rem; height: 3.4rem; }
  .stripes { width: 8rem; }
}
