/* Waltham Print V4 additions. Loads after style.css. */

/* nav: slightly wider gap with only 3 items */
.nav { gap: 32px; }

/* product grid cards: stronger focus ring & slightly more rounded */
.prod { border-radius: 16px; }
.prod:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(31,42,68,.13); }

/* page-hero: a touch more breathing room now catMenu is gone */
.page-hero { padding: 64px 0 52px; }

/* badges */
.badge-next, .badge-trade, .badge-pri {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: 999px; color: var(--ink);
}
.badge-next { background: var(--mustard-soft); }
.badge-trade { background: var(--teal-soft); }
.badge-pri { background: var(--coral-soft); }

/* duo layout on product pages */
.duo { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.duo.half { grid-template-columns: 1fr 1fr; gap: 28px; }
.duo-text > p { color: var(--ink-soft); margin-bottom: 18px; }
.ticks { list-style: none; margin: 6px 0 22px; }
.ticks li { padding: 7px 0 7px 32px; position: relative; color: var(--ink); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-soft); color: var(--ink);
  font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ph-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ph-card img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table td { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.spec-table tr:first-child td { border-top: none; }
.spec-table td:first-child { font-weight: 600; width: 38%; color: var(--ink); }
.spec-table td:last-child { color: var(--ink-soft); }

/* tile photos as links */
.prod a.ph { display: block; position: relative; text-decoration: none; }

/* countdown */
.cd-inline {
  display: inline-block; background: var(--coral-soft); color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px;
}
#cd-msg b { color: inherit; }

/* calculator */
.calc-panel {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; max-width: 760px; margin: 0 auto;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 6px; }
.calc-field label {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px;
}
.calc-field select, .calc-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
}
.calc-field select:focus, .calc-field input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.calc-out {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-top: 2px dashed var(--line); margin-top: 18px; padding-top: 18px; flex-wrap: wrap;
}
.calc-price { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.calc-price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); display: block; margin-top: 6px; font-family: var(--font-body); }
.calc-add {
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
}
.calc-add:hover { background: var(--coral); }
.calc-min { font-size: 0.84rem; color: var(--coral); margin-top: 10px; }
.quote-panel { text-align: center; }
.quote-panel .qp-line { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.05rem; }
.quote-panel .cta-row { justify-content: center; display: flex; gap: 14px; flex-wrap: wrap; }

/* mini panels (guides + reviews strip) */
.mini-panel {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.mini-panel h3 { font-family: var(--font-head); font-size: 1.4rem; margin: 8px 0 10px; }
.mini-panel p { color: var(--ink-soft); margin-bottom: 18px; }
.stars { color: var(--mustard); letter-spacing: 2px; }
.rev-panel { background: #fff; }

/* guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.guide-card .tab { align-self: flex-start; }
.guide-card h3 { font-family: var(--font-head); font-size: 1.25rem; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--coral); }
.guide-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.guide-card .more { font-weight: 600; color: var(--ink); text-decoration: none; }
.guide-card .more:hover { color: var(--coral); }

/* guide article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 36px 0 14px; }
.article p, .article li { color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article .tip {
  background: var(--teal-soft); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); margin: 22px 0;
}
.article .tip b { color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article th { text-align: left; padding: 12px 16px; background: var(--ink); color: #fff; font-family: var(--font-head); font-size: 0.9rem; }
.article td { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 0.93rem; }

/* review page */
.rev-summary { display: flex; align-items: center; gap: 26px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 640px; margin: 0 auto 34px; }
.rev-score { font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.rev-summary .stars { font-size: 1.4rem; }
.rev-summary p { color: var(--ink-soft); font-size: 0.95rem; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* misc */
.center { text-align: center; }
.related.prod-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .duo, .duo.half { grid-template-columns: 1fr; gap: 28px; }
  .calc-grid { grid-template-columns: 1fr; }
  .guide-grid, .theme-grid, .related.prod-grid { grid-template-columns: 1fr; }
  .rev-summary { flex-direction: column; text-align: center; }
}

/* ===== product order hero: calculator + checkout at the top ===== */
.order-hero { padding: 38px 0 52px; border-bottom: 1px solid var(--line); }
.order-hero .crumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.order-hero .crumb a { color: var(--ink-soft); }
.order-hero h1 { font-size: clamp(26px, 3.4vw, 38px); max-width: 16em; margin-bottom: 12px; }
.order-hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 40em; margin-bottom: 26px; }

.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }

.order-config, .order-checkout {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.order-config .kicker { margin-bottom: 14px; }
.order-h { font-family: var(--font-head); font-size: 20px; margin-bottom: 14px; }

/* calculator panel now sits inside .order-config, so strip its own chrome */
.calc-panel { background: transparent; box-shadow: none; padding: 0; max-width: none; margin: 0; }
.calc-out { display: block; border-top: 2px dashed var(--line); margin-top: 16px; padding-top: 16px; }
.calc-price { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.calc-per { font-size: 0.95rem; color: var(--ink-soft); margin-top: 6px; min-height: 1.1em; }
.price-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.calc-min { font-size: 0.84rem; color: var(--coral); margin-top: 10px; }
.quote-panel .qp-line { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* order summary box */
.order-summary {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px; font-size: 14.5px; color: var(--ink-soft);
}
.order-summary.is-set { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.order-summary .os-name { font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.order-summary .os-detail { color: var(--ink-soft); font-size: 13.5px; }
.order-summary .os-price { grid-row: 1 / span 2; align-self: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }

/* order form fields */
.order-form label { display: block; font-size: 13px; color: var(--ink-soft); margin: 12px 0 4px; }
.order-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-form input, .order-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
}
.order-form input:focus, .order-form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.order-form input[type=file] { padding: 9px; background: var(--cream); }

.order-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.order-actions .btn { flex: 1 1 auto; cursor: pointer; }
.btn-pay { background: var(--ink); color: #fff; font-weight: 700; border: 2px solid var(--ink); }
.btn-pay:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-pay:disabled { opacity: 0.7; cursor: default; }
.btn-invoice { background: #fff; border: 2px solid var(--ink); color: var(--ink); padding: 10px 20px; }
.btn-invoice:hover { background: var(--cream); }
.order-trust { font-size: 12px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

.hide-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* slim help band on product pages */
.band.slim { padding: 38px 0; }
.band.slim .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.band.slim h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 6px; }
.band.slim p { margin: 0; max-width: 38em; }

/* thank-you page */
.thanks-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 720px; }
.thanks-card h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 6px 0 12px; }
.thanks-card .ticks { margin: 18px 0 24px; }
.thanks-card .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 920px) {
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .order-form .row { grid-template-columns: 1fr; }
}

/* ============================================================
   v5 polish: typography orphans, alignment, purchase clarity
   ============================================================ */

/* Stop a lone last word dropping onto its own line. Modern browsers
   balance headings; the build also glues the last two words with nbsp. */
h1, h2, h3, h4,
.lead, .hero-lead, .hero-card-h,
.section-head p,
.prod h3, .prod .from { text-wrap: balance; }
p, li, .price-note, .order-trust, .paper-note { text-wrap: pretty; }

/* Money lines up on the right with even figure widths everywhere. */
.price-card td.amount,
.price-card th:not(:first-child) { text-align: right; }
.price-card td.amount,
.price-card th,
.hero-list li b,
.calc-price,
.calc-per,
.order-summary .os-price,
.spec-table td:last-child { font-variant-numeric: tabular-nums; }
.price-card td:first-child { padding-right: 18px; }
.price-card td, .price-card th { vertical-align: baseline; }

/* Calculator: clearer read-out and a proper dropdown chevron so selects
   look tappable and aligned. */
.calc-out { align-items: baseline; }
.calc-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%234C566E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 38px;
}

/* Hero price list: keep the label and price on one tidy baseline. */
.hero-list li span { padding-right: 12px; }

/* Spec table values wrap naturally rather than breaking a price awkwardly. */
.spec-table td:last-child { white-space: normal; }

/* The order box is the primary action: give it a touch more presence. */
.order-checkout { border-color: rgba(31, 42, 68, 0.18); box-shadow: 0 14px 34px rgba(31, 42, 68, 0.12); }

/* Scanning: book-by-phone panel instead of a form. */
.book-panel { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.book-panel p { color: var(--ink-soft); margin: 0; }
.book-panel .btn { text-align: center; }

/* Clean, centered call-to-action bands (replaces the sparse 2-column look). */
.band.band-cta { padding: 52px 0; }
.band.band-cta .wrap { display: block; max-width: 680px; margin: 0 auto; text-align: center; }
.band.band-cta h2 { margin-bottom: 10px; }
.band.band-cta p { margin: 0 auto 22px; max-width: 38em; }
.band-cta-row { display: flex; gap: 14px 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.band-cta-row .btn { margin: 0; }
.band-call {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.band-call:hover { color: #fff; }
