/* ============================================
   OZYDE — Guide bands + How To Measure page
   The two shared bands that close every page (#measurements, #fitting) and
   the styles for how-to-measure.html. Loaded after components.css and before
   gradient.css, which stays last: the tinted band reuses .section-ink instead
   of painting a background of its own, so gradient.css keeps control of every
   surface. Nothing here depends on pricing.css (only three pages load it).
   ============================================ */

/* ---------- Header: room for the sixth nav link ----------
   "How To Measure" is the longest label in the nav. Between the desktop
   breakpoint and ~1060px the nav plus a long header button
   ("Book A Consultation") no longer fits on one line, so tighten both. */
@media (min-width: 861px) and (max-width: 1060px) {
  .main-nav { gap: 18px; }
  .header-actions .btn { padding-inline: 16px; }
}

/* Seven stacked rows no longer fit a short phone, so the drawer scrolls.
   justify-content:center would clip the top row when the content overflows;
   auto margins on the first and last child centre it only while it fits. The
   header stays above the drawer (z-index 100 vs 90), so clear it explicitly. */
.mobile-drawer {
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: calc(var(--header-h) + 16px);
}
.mobile-drawer > :first-child { margin-top: auto; }
.mobile-drawer > :last-child { margin-bottom: auto; }

@media (max-height: 720px) {
  .mobile-drawer { gap: 14px; }
  .mobile-drawer a { font-size: 28px; }
}

/* ---------- Shared heading block ---------- */
.guide-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.guide-head .eyebrow { margin-bottom: 14px; }
.guide-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: 14px;
}
.guide-head p:not(.eyebrow) {
  opacity: 0.76;
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- Measurements band (#measurements) ---------- */
.measure-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.measure-band .guide-head { margin-bottom: 0; }

.measure-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.measure-chip {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .measure-band { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Before your fitting (#fitting) ----------
   Reuses .value-grid / .value-card from components.css. Six cards: three
   across, two on tablets, one on phones. This rule sits after components.css,
   so it wins over .value-grid's own 780px collapse to a single column. */
.fitting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fitting-grid .value-card h3 { font-size: 19px; }
.fitting-grid .value-card p { font-size: 14.5px; line-height: 1.65; }

@media (max-width: 980px) {
  .fitting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fitting-grid { grid-template-columns: 1fr; }
}

/* ---------- How To Measure: the full chart ---------- */
.guide-chart {
  display: block;
  width: 100%;
  height: auto;
  max-width: 640px;
  margin-inline: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- How To Measure: before you start ---------- */
.guide-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guide-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.guide-tip__mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-tip__mark svg { width: 15px; height: 15px; }
.guide-tip h3 { font-size: 17px; margin-bottom: 6px; }
.guide-tip p { font-size: 14px; line-height: 1.65; opacity: 0.74; }

@media (max-width: 980px) {
  .guide-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .guide-tips { grid-template-columns: 1fr; }
}

/* ---------- How To Measure: the five steps ---------- */
.guide-steps {
  display: grid;
  gap: 16px;
}
.guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.guide-step__num {
  min-width: 2ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  color: var(--gold);
}
.guide-step h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 8px;
}
.guide-step p { max-width: 62ch; font-size: 15px; line-height: 1.75; opacity: 0.78; }
.guide-step .guide-step__note {
  margin-top: 10px;
  font-size: 13.5px;
  opacity: 0.62;
}
