/*
  File: public/css/shop-garage-doors.css  (repo root: /Users/michael/Visual Studio Projects/Doorshack)
  What this is: the styles for public/shop-garage-doors/index.html, the "Shop Garage Doors" work-in-progress page. The header
  comes from the home page's styles; the navy full-screen area is specific to this page. Promoted from
  prototypes/shop-garage-doors/2026-11-16-work-in-progress-page/css/wip.css on 2026-11-17 at Michael's instruction.
  Plan: docs/plans/2026-11-17-home-page-v2-and-shop-page-plan.md
  Execution: docs/execution/2026-11-17-home-page-v2-and-shop-page-execution.md

  Only three colours are used: navy (#13263C, and a darker #0B1B30), yellow (#FFC72C) and white, plus see-through versions of
  them. The two light grey lines are the header's, shared with the home page.
  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), as on the home page.
*/

:root {
  --navy: #13263c;
  --deep: #0b1b30;
  --yellow: #ffc72c;
  --rule: #e3e6ee;
  --header-h: 6.7rem; /* a little MORE than the real header height, so header plus the navy area is never taller than the window */
  --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: var(--deep);
  color: #fff;
  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%; }

.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; }
.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 (white, as on the other pages) ---------- */
.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); }
/* The current page is underlined in yellow */
.nav a[aria-current="page"] { box-shadow: inset 0 -0.2rem 0 var(--yellow); }

/* ---------- 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; }
.btn .back { transform: scaleX(-1); }

/* ---------- The navy full-screen area ---------- */
.wip {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h));
  background: linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%);
  color: #fff;
}
@supports (height: 1svh) { .wip { min-height: calc(100svh - var(--header-h)); } }
.wip .wrap { padding-top: 1.75rem; padding-bottom: 2.25rem; padding-right: calc(var(--pad) + 1rem); }
.wip-grid { display: block; }

.crumbs { margin-bottom: 1.25rem; font-size: 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.crumbs li { color: rgba(255, 255, 255, 0.85); }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--yellow); }
.crumbs li[aria-current="page"] { color: #fff; font-weight: 700; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.9rem 0.3rem 0.7rem; border: 1.5px solid var(--yellow); border-radius: 999px;
  color: var(--yellow); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill .ic { width: 1.1rem; height: 1.1rem; stroke-width: 2.2; }

.wip h1 { margin-top: 0.9rem; max-width: 16ch; font-size: clamp(2.3rem, 9.5vw, 3.4rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.lead { margin-top: 0.9rem; max-width: 38rem; font-size: 1.1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }

.what { margin-top: 1.75rem; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.steps { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-top: 0.75rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; align-content: start;
  padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.07);
}
.step .ic { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; color: var(--yellow); }
.step h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 800; color: #fff; }
.step p { margin-top: 0.15rem; font-size: 0.98rem; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.note { max-width: 26rem; font-size: 0.92rem; line-height: 1.4; color: rgba(255, 255, 255, 0.8); }

/* The home page's yellow diagonal stripes, as a slim bar at the right edge */
.stripes { position: absolute; right: 0; top: 0; bottom: 0; width: 0.9rem; background: linear-gradient(112deg, var(--yellow) 0 100%); }

/* ---------- Tablet (640px and up) ---------- */
@media (min-width: 640px) {
  html { font-size: 112.5%; }
  :root { --header-h: 4.45rem; }
  .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; }

  .wip .wrap { padding-top: 1.25rem; padding-bottom: 1.5rem; padding-right: calc(var(--pad) + 3rem); }
  .crumbs { margin-bottom: 1rem; }
  .wip h1 { font-size: clamp(2.8rem, 7vw, 3.8rem); }
  .lead { font-size: 1.15rem; }
  .what { margin-top: 1.4rem; }
  .cta { margin-top: 1.4rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .step { grid-template-columns: 1fr; row-gap: 0.4rem; padding: 1.1rem 1.2rem; }
  .step .ic { grid-row: auto; }
  .stripes { width: 2.2rem; background: linear-gradient(112deg, transparent 0 25%, var(--yellow) 25% 36%, var(--navy) 36% 48%, var(--yellow) 48% 100%); }
}

/* ---------- Desktop (1000px and up) ---------- */
@media (min-width: 1000px) {
  html { font-size: clamp(18px, calc(0.7vw + 10px), 26px); }
  :root { --header-h: 5.1rem; }
  .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; }

  /* Two columns: headline, lead and button at the left; the three steps stacked at the right. Everything fits one screen. */
  .wip .wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; padding-right: calc(var(--pad) + 7.5rem); }
  .wip-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "head side" "cta side"; column-gap: clamp(2rem, 4.5vw, 5rem); align-content: center; align-items: start; }
  .head { grid-area: head; }
  .side { grid-area: side; align-self: center; }
  .cta { grid-area: cta; }
  .crumbs { margin-bottom: 1.1rem; }
  .wip h1 { max-width: 18ch; font-size: clamp(2.6rem, min(4.2vw, 7.4vh), 4.8rem); }
  .lead { margin-top: 1rem; max-width: 36rem; font-size: clamp(1.05rem, min(1.25rem, 2.3vh), 1.45rem); }
  .what { margin-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 1rem; margin-top: 0.8rem; max-width: 34rem; }
  .step { grid-template-columns: auto 1fr; row-gap: 0; padding: 1.1rem 1.3rem; }
  .step .ic { grid-row: 1 / 3; width: 2.6rem; height: 2.6rem; }
  .step h3 { font-size: 1.3rem; }
  .step p { font-size: 1.02rem; }
  .cta { margin-top: 1.6rem; }
  .btn { min-height: 3.4rem; padding: 0 2.1rem; font-size: 1.15rem; }
  .note { font-size: 1rem; }
  .stripes { width: 6.5rem; }
}
