/* pricing.css — pricing page styles only.
   Tokens/reset/base + shared buttons live in base.css;
   site chrome lives in header.css / footer.css. */

.pricing-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--hero-pt) 24px 36px;
}

.pricing-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.pricing-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.90) 0%, rgba(26, 60, 90, 0.78) 100%);
}

.pricing-hero-content {
  position: relative;
  z-index: 2;
}

.pricing-hero .hero-eyebrow {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.pricing-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 10px;
}

.pricing-hero .hero-sub {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  line-height: 1.55;
}

.pricing-hero .hero-sub a {
  color: var(--gold-light);
}

.pricing-hero .hero-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  margin: 0;
}

.pricing-hero .hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-hero .hero-sub,
.pricing-hero h1,
.pricing-hero .hero-note {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 760px) {
  .hero-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .pricing-hero .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.pricing-toolbar {
  /* Pins below the sticky header (--header-h published by header.js)
     so categories + search stay visible while the page scrolls. */
  position: sticky;
  top: var(--header-h, 71px);
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.toolbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.jump-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 260px;
}

.jump-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}

.jump-nav a:hover {
  background: var(--cream);
  color: var(--navy);
}

.search-bar {
  display: flex;
  gap: 0;
}

.search-bar input {
  width: 230px;
  max-width: 56vw;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--navy);
}

.search-bar button {
  padding: 9px 14px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.expand-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.expand-toggle:hover {
  background: var(--cream);
}

.search-feedback {
  font-size: 0.78rem;
  color: #b91c1c;
  min-width: 90px;
}

.pricing-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.price-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h, 71px) + 70px);
}

.price-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--cream);
  border: 0;
  padding: 16px 22px;
  cursor: pointer;
}

.price-section-header .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  flex: 1;
}

.section-count {
  font-size: 0.75rem;
  color: var(--muted-light);
  font-weight: 600;
}

.toggle-triangle {
  color: var(--gold);
  font-size: 0.8rem;
  transition: transform 0.25s;
  transform: rotate(90deg);
}

.price-section.collapsed .toggle-triangle {
  transform: rotate(0deg);
}

.price-section.collapsed .price-table-content {
  display: none;
}

.price-table-content {
  padding: 6px 22px 22px;
}

.price-table-header {
  display: grid;
  gap: 12px;
  padding: 14px 12px 10px;
  border-bottom: 2px solid var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-table-header.cols-3,
[data-cols="3"] .price-table-row {
  grid-template-columns: 2.2fr 1fr 1fr;
}

.price-table-header.cols-5,
[data-cols="5"] .price-table-row {
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
}

[data-cols="5"] .price-table-content {
  overflow-x: auto;
}

[data-cols="5"] .price-table-row .price-flat {
  grid-column: 2 / -1;
}

.price-table-header.cols-2,
[data-cols="2"] .price-table-row {
  grid-template-columns: 2.2fr 1fr;
}

.price-table-row {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  scroll-margin-top: calc(var(--header-h, 71px) + 76px);
}

.price-table-row:nth-child(even) {
  background: #fafaf8;
}

.price-table-row:last-child {
  border-bottom: 0;
}

.item-name {
  color: var(--slate);
  font-weight: 500;
}

.price-table-cell:not(.item-name) {
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-table-row.highlight {
  background: #fdf6e7;
  outline: 2px solid var(--gold);
  border-radius: 6px;
  animation: pulse-row 1.6s ease 2;
}

@keyframes pulse-row {
  50% {
    outline-color: transparent;
  }
}

.section-note {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 14px 0 4px;
}

.wf-explainer {
  background: var(--cream);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 16px 0 8px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.wf-explainer h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}

.wf-explainer ul {
  padding-left: 20px;
  margin: 10px 0;
}

.wf-warning {
  background: #fff6e0;
  border: 1px solid #f0dca8;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
}

.wf-minimum {
  background: #e8f1f8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--navy);
}

.wf-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.min-table {
  margin-top: 10px;
}

.min-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

.min-row:last-child {
  border-bottom: 0;
}

.min-region {
  font-size: 0.93rem;
  color: var(--slate);
}

.min-sched {
  display: block;
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-top: 2px;
}

.min-amount {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.pickup-delivery-note,
.pickup-delivery-fee,
.min-return-detail {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.min-return-detail {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 14px;
}

.min-return-detail ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.min-return-detail li {
  margin: 3px 0;
}

.pricing-faq {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.pricing-faq h2 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.7rem;
  margin: 0 0 18px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg-card);
}

.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--slate);
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.faq-item summary h3.faq-q { margin: 0; font: inherit; color: inherit; display: inline; }

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-answer ul {
  padding-left: 20px;
}

@media (max-width: 640px) {
  .price-table-header.cols-3,
  [data-cols="3"] .price-table-row {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .price-table-row {
    font-size: 0.85rem;
  }

  .jump-nav {
    display: none;
  }
}

/* The 5-column Leather table (Light/Deep × Base/Couture) is too wide for phones
   and small tablets — restack each row as a labeled card so nothing gets crushed
   into 4-line headers or pushed into a sideways scroll. The column headers are
   carried into each cell via data-label (set in build_pricing_page.py). */
@media (max-width: 760px) {
  .price-table-header.cols-5 {
    display: none;
  }

  [data-cols="5"] .price-table-content {
    overflow-x: visible;
  }

  [data-cols="5"] .price-table-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px 14px 16px;
  }

  [data-cols="5"] .price-table-row .item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
  }

  [data-cols="5"] .price-table-row .price-table-cell:not(.item-name) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.9rem;
  }

  [data-cols="5"] .price-table-row .price-table-cell:not(.item-name)::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }

  /* span reset: in single-column stacked mode the flat price is just one row */
  [data-cols="5"] .price-table-row .price-flat {
    grid-column: auto;
  }
}
