/*
 * warranty.css — Warranty page styles (tall photo hero, numbered sections, tier cards, lists, steps, sidebar)
 * ═══════════════════════════════════════════════════════════════════════
 * PATH: css/warranty.css
 * ROLE: The hero band photo for /warranty (scoped by the layout's
 *       data-page="warranty") and every page rule: the two-column layout
 *       (sections + sticky sidebar), numbered section headings, the three
 *       coverage tier cards, the owner-materials alert, the covered / excluded
 *       check-and-cross lists, the counter-numbered claim steps, the grey
 *       teal-edged panels, and the sidebar boxes (section index painted by
 *       js/section-spy.js, summary list, amber Right-to-Repair notice,
 *       related links). ≤1000px the sidebar stacks above the sections and the
 *       index becomes a chip row. The closing band is the shared .site-cta
 *       (css/site-shell.css). Tokens (--band, --teal, --display, --serif,
 *       --line…) come from css/site-shell.css.
 * USED BY: app/Views/public/warranty.php (loaded through the layout's 'head'
 *       section).
 * Last Modified: 2026-09-13 — rewritten for the body restyle (the rules that
 *                mirrored the old inline styles are gone with the old markup)
 */

/* ── hero band photo ─────────────────────────────────── */
.wrapper2[data-page="warranty"] {
  background-image: url(../images/home/hero-warranty.jpg);
  background-attachment: scroll;   /* fixed would frame only the top edge in a 430px band */
  background-position: center 50%; /* hand tools on a bench — nudekarma stock library
                                      (devindex hero/pexels-tools-1845426_1920.jpg), 16:9 cut */
}

/* ── page frame ──────────────────────────────────────── */
.warranty-page {
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  overflow-x: clip;
}
.warranty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.warranty-main {
  min-width: 0;
}

/* ── sections ────────────────────────────────────────── */
.warranty-section {
  scroll-margin-top: 90px;
}
.warranty-section + .warranty-section {
  margin-top: 3rem;
}
.warranty-section-title {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--teal);
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -.01em;
  color: var(--ink);
}
.warranty-section-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--teal-deep);
}
.warranty-lead {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── coverage tier cards ─────────────────────────────── */
.warranty-tiers {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.warranty-tier {
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.warranty-tier[data-featured="true"] {
  border-color: var(--teal);
  box-shadow: 0 14px 30px rgba(20, 32, 31, .08);
}
.warranty-tier h3 {
  margin: 0;
  font-size: 1.05rem;
}
.warranty-tier-rule {
  width: 40px;
  height: 2px;
  margin: .9rem auto;
  border: 0;
  background: var(--teal);
}
.warranty-years {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--teal-deep);
}
.warranty-years-mfr {
  padding-top: .3rem;
  font-size: 1.5rem;
  line-height: 1.15;
}
.warranty-years-label {
  margin: .4rem 0 0;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.warranty-tier-note {
  margin: 0;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── panels: alert (red edge), note (teal edge) ──────── */
.warranty-alert,
.warranty-panel {
  padding: 1.1rem 1.3rem;
  border-radius: 0 8px 8px 0;
  background: var(--ground);
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.warranty-alert {
  border-left: 4px solid #dc3545;
}
.warranty-alert-title {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--display);
  font-weight: 700;
  color: #b02a37;
}
.warranty-alert p {
  margin: 0;
}
.warranty-panel {
  border-left: 4px solid var(--teal);
}
.warranty-panel-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--teal-deep);
}
.warranty-contact-rows {
  list-style: none;
  margin: 0;
  display: grid;
  gap: .45rem;
}
.warranty-contact-rows strong {
  margin-right: .35rem;
  font-family: var(--display);
  color: var(--ink);
}
/* main.css paints every <a> white and blue on hover — set both states */
.warranty-link,
.warranty-link:hover,
.warranty-link:focus {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-color: rgba(42, 139, 130, .35);
  text-underline-offset: 3px;
}
.warranty-link:hover,
.warranty-link:focus {
  text-decoration-color: var(--teal-deep);
}

/* ── covered / excluded lists ────────────────────────── */
.warranty-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .9rem;
}
.warranty-items li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .6rem .8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.warranty-items svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: .05rem;
  padding: 4px;
  border-radius: 50%;
}
.warranty-items[data-tone="yes"] svg {
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.warranty-items[data-tone="no"] svg {
  background: #f8d7da;
  color: #b02a37;
}

/* ── claim steps ─────────────────────────────────────── */
.warranty-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  counter-reset: warranty-step;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.warranty-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.warranty-steps li::before {
  counter-increment: warranty-step;
  content: counter(warranty-step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--band);
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
}
.warranty-steps strong {
  display: block;
  margin-bottom: .15rem;
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--ink);
}

/* ── sidebar ─────────────────────────────────────────── */
.warranty-side {
  position: sticky;
  top: calc(62px + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.warranty-box {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.warranty-box-title {
  margin: 0;
  padding: .9rem 1.25rem;
  background: var(--band);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.warranty-toc ul,
.warranty-related {
  list-style: none;
  margin: 0;
  padding: 0;
}
.warranty-toc li + li,
.warranty-related li + li {
  border-top: 1px solid var(--line);
}
.warranty-toc a,
.warranty-related a {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .75rem 1.25rem;
  font-family: var(--display);
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.warranty-toc a:hover,
.warranty-toc a:focus,
.warranty-related a:hover,
.warranty-related a:focus {
  background: var(--ground);
  color: var(--teal-deep);
  text-decoration: none;
}
.warranty-toc a[aria-current="true"] {
  background: var(--teal-tint);
  color: var(--teal-deep);
  box-shadow: inset 4px 0 0 var(--teal);
}
.warranty-toc-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--teal-deep);
}
.warranty-summary {
  margin: 0;
  padding: .5rem 1.25rem 1rem;
}
.warranty-summary dt {
  margin-top: .65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}
.warranty-summary dd {
  margin: .1rem 0 0;
  font-family: var(--serif);
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.warranty-summary dd[data-tone="excluded"] {
  color: #b02a37;
}
.warranty-notice {
  padding: 1rem 1.25rem;
  border-left: 4px solid #e0a800;
  border-radius: 0 8px 8px 0;
  background: #fff8e1;
}
.warranty-notice-heading {
  margin: 0 0 .3rem;
  font-size: .95rem;
  color: #856404;
}
.warranty-notice p {
  margin: 0;
  font-family: var(--serif);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .warranty-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .warranty-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1rem;
  }
  .warranty-toc {
    grid-column: 1 / -1;
  }
  .warranty-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .9rem 1rem;
  }
  .warranty-toc li + li {
    border-top: 0;
  }
  .warranty-toc a {
    gap: .45rem;
    padding: .4rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
  }
  .warranty-toc a[aria-current="true"] {
    border-color: var(--teal);
    box-shadow: none;
  }
  .warranty-tiers {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .warranty-side {
    grid-template-columns: 1fr;
  }
  .warranty-tiers,
  .warranty-items {
    grid-template-columns: 1fr;
  }
  .warranty-steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: .8rem;
  }
  .warranty-steps li::before {
    width: 32px;
    height: 32px;
    font-size: .85rem;
  }
}
