/* ========================================
   PERGOLAS PRODUCT PAGE — dedicated styles
   v2: compact hero, inline configurator, horizontal gallery strip
   ======================================== */

/* ---------- PRODUCT HERO — compact, legible ---------- */
.phero {
  position: relative;
  min-height: 52vh;
  max-height: 620px;
  color: #fff;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
}
.phero-img {
  position: absolute; inset: 0;
  z-index: 0;
}
.phero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: pheroScale 5s cubic-bezier(.2,.7,.2,1) both; /* ends within 5 s (WCAG 2.2.2) */
}
@keyframes pheroScale {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .phero-img img, .phero-h1, .phero-tag, .phero-cta, .phero-meta-strip { animation: none; }
}
.phero-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,16,20,0.34) 0%, rgba(8,16,20,0.18) 45%, rgba(8,16,20,0.64) 100%),
    linear-gradient(270deg, rgba(8,16,20,0.66) 0%, rgba(8,16,20,0.34) 42%, rgba(8,16,20,0.05) 66%);
}
.phero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 80px var(--gutter) 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.phero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: var(--text-halo), 0 2px 8px rgba(0,0,0,0.5);
}
.phero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px rgba(31,182,193,0.3);
}
.phero-h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-hero);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  max-width: 14ch;
  color: #fff;
  text-shadow: var(--text-halo), 0 4px 24px rgba(0,0,0,0.55);
  animation: pheroRise 1s cubic-bezier(.2,.7,.2,1) both;
}
.phero-tag {
  font-family: var(--font-body);
  font-size: calc(clamp(18px, 1.4vw, 21px) * var(--a11y-font-scale, 1));
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  max-width: 56ch;
  margin: 0;
  text-shadow: var(--text-halo), 0 2px 12px rgba(0,0,0,0.55);
  animation: pheroRise 1s cubic-bezier(.2,.7,.2,1) .12s both;
}
@keyframes pheroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.phero-cta {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: pheroRise 1s cubic-bezier(.2,.7,.2,1) .24s both;
}
.phero-cta .btn-ghost {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
  color: #fff;

}
.phero-cta .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.phero-meta-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: var(--text-halo), 0 2px 8px rgba(0,0,0,0.6);
  animation: pheroRise 1s cubic-bezier(.2,.7,.2,1) .36s both;
}
.phero-meta-strip .sep {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .phero { min-height: 56vh; }
  /* Text runs the full width on phones: the veil covers it all, not only the right-hand side. */
  .phero-scrim {
    background:
      linear-gradient(180deg, rgba(8,16,20,0.5) 0%, rgba(8,16,20,0.44) 45%, rgba(8,16,20,0.7) 100%),
      linear-gradient(270deg, rgba(8,16,20,0.4) 0%, rgba(8,16,20,0.22) 100%);
  }
  .phero-content { padding: 86px 20px 36px; gap: 14px; }
  .phero-kicker { font-size: var(--fs-small); letter-spacing: 0.08em; }
  .phero-h1 { font-size: calc(clamp(34px, 11vw, 52px) * var(--a11y-font-scale, 1)); max-width: 16ch; }
  .phero-tag { font-size: 1.0625rem; line-height: 1.55; }
  .phero-cta { gap: 10px; }
  .phero-cta .btn { width: 100%; justify-content: center; }
  .phero-meta-strip { font-size: var(--fs-small); gap: 6px 10px; margin-top: 12px; }
}

/* ---------- SPEC SECTION (static engineering spec) ---------- */
.pspec {
  background: var(--paper);
}
/* ---------- SPEC GRID (full engineering spec below) ---------- */
.pspec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pspec-card {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .3s;
}
.pspec-card:hover { background: var(--bone); }
.pspec-card.wide { grid-column: span 3; }
.pspec-num {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--navy-ink);
  font-weight: 500;
}
.pspec-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pspec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pspec-list li {
  padding-inline-start: 18px;
  position: relative;
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.55;
}
.pspec-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--navy);
}
.pspec-size {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pspec-size .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9375rem;
}
.pspec-size .row:last-child { border-bottom: none; }
.pspec-size .row span:first-child {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pspec-size .row span:last-child {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
}
.pspec-bigline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}
.pspec-bigline.small { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.pspec-note {
  font-size: var(--fs-small);
  color: var(--ink-mute);
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

@media (max-width: 960px) {
  .pspec-grid { grid-template-columns: repeat(2, 1fr); }
  .pspec-card.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .pspec-grid { grid-template-columns: 1fr; }
  .pspec-card.wide { grid-column: span 1; }
}

/* ---------- GALLERY — horizontal strip controls ---------- */
.pgal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}
.pgal-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pgal-count .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: calc(clamp(36px, 5vw, 56px) * var(--a11y-font-scale, 1));
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.pgal-count .lbl {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Gallery card: stretch to col height (override default height:200 behavior) */
.pgal .gal-col { height: 520px; }
.pgal .gal-col.wide { grid-template-rows: 1fr; }
.pgal .gal-col:not(.wide) { grid-template-rows: 1fr 1fr; }
.pgal .gal-card { height: 100%; }
.pgal .gcat { display: none; }

/* ========================================
   QUOTE SHEET (bottom-sheet lead form)
   ======================================== */
.qsheet-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(11,20,24,0.5);

  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: qsheetFadeIn .3s ease-out;
}
@keyframes qsheetFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.qsheet {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  background: var(--paper);
  overflow-y: auto;
  position: relative;
  animation: qsheetSlideUp .4s cubic-bezier(.2,.7,.2,1);
  padding: 32px 36px 36px;
}
@keyframes qsheetSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.qsheet-close {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s;
  z-index: 5;
}
.qsheet-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.qsheet-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.qsheet-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.qsheet-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,182,193,0.22);
}
.qsheet-kicker strong {
  color: var(--ink);
  font-weight: 600;
}
.qsheet-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: calc(clamp(26px, 3vw, 34px) * var(--a11y-font-scale, 1));
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.qsheet-sub {
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 52ch;
  margin: 0;
}
.qsheet-ctx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--turq-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink);
}
.qsheet-ctx strong {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-ink);
}
.qsheet-ctx .extra-count {
  color: var(--ink-mute);
  margin-inline-start: auto;
}

.qsheet-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.qsheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.qsheet-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qsheet-field > span {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.qsheet-field input[type="text"],
.qsheet-field input[type="tel"],
.qsheet-field input[type="email"],
.qsheet-field select,
.qsheet-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  border-radius: 0;
  outline: none;
}
.qsheet-field input:focus,
.qsheet-field select:focus,
.qsheet-field textarea:focus {
  border-color: var(--ink);
  background: var(--bone);
}
/* Keyboard focus: the site's two-tone ring (styles.css), which the outline: none above would otherwise cancel. */
.qsheet-field input:focus-visible,
.qsheet-field select:focus-visible,
.qsheet-field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff;
}
.qsheet-field textarea {
  resize: vertical;
  min-height: 70px;
  font-family: var(--font-body);
}

.qsheet-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qsheet-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 16px;
  border: 1px dashed var(--line);
  background: var(--bone);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .875rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}
.qsheet-upload:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--bone-deep);
  color: var(--ink);
}
.qsheet-upload:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.qsheet-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qsheet-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--turq-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink);
  max-width: 200px;
}
.qsheet-file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qsheet-file-chip button {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-mute);
  cursor: pointer;
  display: inline-flex;
}
.qsheet-file-chip button:hover { color: var(--danger); }

.qsheet-tag-visible {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
.qsheet-tag-visible strong {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
}
.qsheet-submit {
  margin-top: 8px;
  height: 56px;
  font-size: 1rem;
}
.qsheet-legal {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink-mute);
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  padding-top: 6px;
}

/* success state */
.qsheet-success {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: successPop .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes successPop {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
.qsheet-check {
  color: var(--navy);
  animation: successTick .6s cubic-bezier(.2,.7,.2,1) .2s both;
}
@keyframes successTick {
  from { transform: scale(0) rotate(-90deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.qsheet-success-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.875rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.qsheet-success-sub {
  font-size: .9375rem;
  color: var(--ink-soft);
}
.qsheet-success-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

@media (max-width: 640px) {
  .qsheet { padding: 24px 20px 28px; }
  .qsheet-row { grid-template-columns: 1fr; }
}

/* === PergolaChoice — color-driven gallery + shared lead form =====================
   Shell (.section.lead) + form (.form, .field, .pill-row, .btn-primary) are all
   shared with the home page — see styles.css. Rules below only style the gallery
   tuned to sit on --ink navy. */

.pchoice .pchoice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.pchoice-gallery { display: flex; flex-direction: column; gap: 18px; }
.pchoice-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(251, 250, 246, 0.06);
  border: 1px solid rgba(251, 250, 246, 0.1);
  overflow: hidden;
}
.pchoice-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Pergolas page: square frame for the per-color packshot set (Louvers keeps 4:3). */
.pchoice-main--square { aspect-ratio: 1 / 1; }
.pchoice-caption {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(0deg, rgba(14,26,34,.76), rgba(14,26,34,.38) 58%, transparent);
  padding: 36px 20px 18px;
  color: var(--paper);
}
.pchoice-caption .t { font-weight: 600; font-size: 1.0625rem; color: #fff; }
.pchoice-caption .m { font-size: .9375rem; color: rgba(255,255,255,.92); margin-top: 4px; }
/* Light packshots under the caption: 3.8:1 at the thin end of the gradient without a halo, and the strong halo keeps
   a caption word made smaller in the admin above 4.5:1 (WCAG 1.4.3). */
.pchoice-caption .t, .pchoice-caption .m { text-shadow: var(--text-halo-strong); }

.pchoice-packshot {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
  background-image:
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,.04) 49%, rgba(255,255,255,.04) 51%, transparent 51%);
  background-size: 18px 18px;
}
.pchoice-packshot-inner {
  background: rgba(251, 250, 246, 0.96);
  padding: 28px 32px;
  text-align: center;
  min-width: 280px;
}
.pchoice-packshot-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid rgba(0,0,0,.06);
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.18);
}
.pchoice-packshot-cap {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pchoice-packshot-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

.pchoice-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pchoice-thumb {
  border: 1px solid rgba(251, 250, 246, 0.12);
  padding: 0;
  background: rgba(251, 250, 246, 0.04);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  outline-offset: 2px;
  transition: transform .15s ease, border-color .15s ease;
}
.pchoice-thumb:hover { transform: translateY(-2px); border-color: rgba(251, 250, 246, 0.35); }
.pchoice-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pchoice-thumb-pack {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,.18) 49%, rgba(255,255,255,.18) 51%, transparent 51%);
  background-size: 8px 8px;
}
.pchoice-thumb.active { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.pchoice-colors {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
}
.pchoice-color {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(251, 250, 246, 0.2);
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  font-size: var(--fs-small);
  color: rgba(251, 250, 246, 0.78);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pchoice-color .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.25);
}
.pchoice-color .lbl { font-weight: 500; }
.pchoice-color:hover { border-color: rgba(251, 250, 246, 0.5); color: var(--paper); }
.pchoice-color.active {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.pchoice-color.active .dot { border-color: rgba(0, 0, 0, 0.18); }

/* Color-chip used inside the form to echo the selected color next to the CTA. */
.pchoice-color-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 0;
  color: var(--paper);
  font-size: .875rem;
}
.pchoice-color-chip .d {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.25);
}

@media (max-width: 960px) {
  .pchoice .pchoice-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Product metadata must remain readable at every breakpoint. */
.phero-kicker,
.phero-meta-strip,
.pgal-count .lbl,
.qsheet-kicker,
.qsheet-field > span,
.qsheet-legal,
.qsheet-success-meta {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: .015em;
  line-height: 1.5;
}
.qsheet-sub, .qsheet-success-sub,
.qsheet-field input, .qsheet-field select, .qsheet-field textarea { font-size: 1rem; }
.phero-cta .btn-ghost { background: linear-gradient(180deg, rgba(11,20,24,.18), rgba(11,20,24,.44)); }
.phero-cta .btn-ghost:hover { background: #fff; }

/* Stable pergola model + finish selector. Scoped so other category forms retain their layout. */
.pchoice-models { border:0; padding:0; margin:0; min-width:0; }
.pchoice#choose, .pspec--pergola#spec { scroll-margin-top:4px; } /* + html scroll-padding-top (styles.css) = 84px as before */
.pchoice-models legend, .pchoice-step { font-size:1.0625rem; font-weight:600; color:#fff; padding:0; margin-bottom:14px; display:flex; align-items:center; gap:12px; }
.pchoice-models legend > span, .pchoice-step > span { color:var(--navy); font:500 .875rem var(--font-mono); }
.pchoice-step { margin:6px 0 0; flex-wrap:wrap; }
.pchoice-step strong { margin-inline-start:auto; font-size:.9375rem; color:#bacbd1; font-weight:400; }
.pchoice-model-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.pchoice-model { padding:0; text-align:right; background:#162932; border:1px solid #64767e; color:#fff; cursor:pointer; font-family:inherit; overflow:hidden; }
.pchoice-model img { width:100%; height:100px; object-fit:cover; display:block; }
.pchoice-model span { display:block; font-size:.9375rem; line-height:1.4; font-weight:600; padding:12px 10px; }
.pchoice-model.active { border-color:var(--navy); box-shadow:0 0 0 2px var(--navy); background:#20414b; }
.pchoice-model:focus-visible,.pchoice-color:focus-visible,.pchoice-thumb:focus-visible { outline:3px solid #fff; outline-offset:4px; }
.pchoice-gallery .pchoice-color { min-height:44px; font-size:.9375rem; }
.pchoice-load { position:absolute; top:16px; right:16px; left:16px; padding:10px 14px; background:rgba(9,24,31,.88); color:white; font-size:.9375rem; }
.pchoice-load button { background:none; color:white; border:0; text-decoration:underline; font:inherit; cursor:pointer; }
.pchoice-preview-note { margin:0; font-size:.875rem; color:#bdcbd1; line-height:1.6; }
.pchoice-custom { display:grid; gap:10px; font-size:1rem; }
.pchoice-custom input {
  font: inherit; padding: 14px 16px; width: 100%;
  color: #fff; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.pchoice-custom input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 182, 193, 0.22);
}
.pchoice-custom input::placeholder { color:#b5c6ce; }
.pchoice-selection { padding:18px 20px; background:rgba(31,182,193,.08); border:1px solid rgba(31,182,193,.4); display:grid; gap:9px; margin-bottom:24px; }
.pchoice-selection > span { color:#bacbd1; font-size:.875rem; }
.pchoice-selection > strong { font-size:1.4375rem; color:#fff; }
.pchoice-selection .pchoice-color-chip { font-size:1rem; }
.qsheet-selection { padding:14px 18px; background:#edf7f8; border-right:3px solid var(--navy); display:flex; flex-wrap:wrap; gap:8px 20px; font-size:1rem; margin:18px 0; color:var(--ink); }

/* Pergola engineering overview */
.pspec--pergola { background:#f2f6f7; }
.pspec-overview { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:48px; }
.pspec-detail-photo { position:relative; margin:0; min-height:540px; background:#17303b; overflow:hidden; }
.pspec-detail-photo > img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
.pspec-photo-tag { position:absolute; top:24px; right:24px; font-size:.9375rem; padding:9px 14px; background:rgba(11,27,35,.82); color:white; }
.pspec-detail-photo figcaption { position:absolute; bottom:0; inset-inline:0; display:grid; gap:8px; padding:80px 32px 30px; color:#fff; background:linear-gradient(0deg,rgba(11,27,35,.88),transparent); text-shadow:var(--text-halo); }
.pspec-detail-photo figcaption strong { font-size:calc(clamp(26px,2.5vw,36px) * var(--a11y-font-scale, 1)); }
.pspec-detail-photo figcaption span { font-size:1.0625rem; }
.pspec-details { display:grid; gap:20px; }
.pspec-detail-card { background:#fff; border:1px solid #d4e0e4; padding:30px; }
.pspec-card-heading { display:flex; gap:16px; align-items:center; margin-bottom:18px; }
.pspec-index { font:500 .875rem var(--font-mono); color:#237985; display:block; }
.pspec--pergola h3 { font:700 1.5rem/1.3 var(--font-head); color:var(--ink); margin:0; }
.pspec--pergola p { color:var(--ink-soft); font-size:1.0625rem; line-height:1.7; margin:0; }
.pspec-profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:22px 0 16px; }
.pspec-profile { border:1px solid #dde6e9; background:#f7f9fa; display:flex; align-items:center; gap:12px; padding:16px 12px; }
.pspec-profile strong { font-size:.9375rem; font-weight:600; }
.pspec-profile-shape { flex-shrink:0; display:block; width:30px; height:16px; border:2px solid #496c78; box-shadow:3px 3px 0 #c9dadf; }
.pspec-profile-shape.p-20-20 { width:20px; height:20px; }
.pspec-profile-shape.p-70-20 { width:38px; height:14px; }
.pspec-profile-shape.p-variable { width:25px; height:25px; transform:skewY(-12deg); }
.pspec-detail-note { font-size:.875rem; line-height:1.5; color:var(--ink-mute); }
.pspec-check-list { list-style:none; display:grid; gap:14px; margin:0; padding:0; }
.pspec-check-list li { display:flex; align-items:baseline; gap:12px; font-size:1.0625rem; line-height:1.5; color:var(--ink-soft); }
.pspec-check-list li::before { content:'✓'; color:#237985; font-weight:700; }
.pspec-dimensions { display:grid; grid-template-columns:1.2fr repeat(3,1fr); background:#10232c; padding:36px 32px; gap:32px; margin-top:28px; color:white; }
.pspec-dimension-intro { display:grid; gap:12px; }
.pspec-dimension-intro h3 { color:#fff; }
.pspec-dimension-intro .pspec-index { color:#67cad0; }
.pspec-dimension-intro p { font-size:.9375rem; color:#c3d3d9; }
.pspec-dimension { display:flex; flex-direction:column; justify-content:center; padding-inline-start:24px; border-inline-start:1px solid #45616b; }
.pspec-dimension > span { font-size:1rem; color:#c3d3d9; margin-bottom:12px; }
.pspec-dimension > div { display:flex; align-items:baseline; gap:10px; }
.pspec-dimension strong { font:500 calc(clamp(30px,3.3vw,48px) * var(--a11y-font-scale, 1))/1.1 var(--font-head); color:white; white-space:nowrap; }
.pspec-dimension div > span { font-size:.9375rem; color:#c3d3d9; }
.pspec-dimension i { display:block; border-top:1px solid #68959e; border-inline:1px solid #68959e; height:8px; margin-top:20px; }
.pspec-service-row { display:grid; grid-template-columns:1fr 1fr .8fr; gap:32px; margin-top:32px; }
.pspec-service-row article { display:flex; align-items:baseline; gap:16px; }
.pspec-service-row article h3 { font-size:1.3125rem; margin-bottom:10px; }
.pspec-service-row article p { font-size:1rem; }
.pspec-discuss { border:1px solid #bdd4db; padding:22px; display:flex; justify-content:space-between; align-items:center; gap:14px; background:#e6f0f3; font-size:1.0625rem; line-height:1.5; color:var(--ink); text-decoration:none; }
.pspec-discuss strong { font-size:1.375rem; }
.pspec-discuss:hover { background:#d5e9ee; }
@media(max-width:1100px) {
  .pchoice .pchoice-grid { gap:36px; }
  .pspec-overview { gap:20px; }
  .pspec-detail-card { padding:24px; }
  .pspec-profile-grid { grid-template-columns:1fr; }
  .pspec-dimensions { gap:20px; padding:28px; }
  .pspec-service-row { grid-template-columns:1fr 1fr; }
  .pspec-discuss { grid-column:1/-1; }
}
@media(max-width:760px) {
  .pchoice-model img { height:80px; }
  .pchoice-model span { padding:10px 8px; font-size:.875rem; }
  .pspec-overview { grid-template-columns:1fr; margin-top:32px; }
  .pspec-detail-photo { min-height:0; aspect-ratio:4/3; }
  .pspec-detail-photo figcaption { padding:64px 22px 22px; }
  .pspec-profile-grid { grid-template-columns:1fr 1fr; }
  .pspec-profile { flex-direction:column; align-items:flex-start; gap:12px; }
  .pspec-dimensions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 12px; padding:24px 20px; }
  .pspec-dimension-intro { grid-column:1/-1; margin-bottom:8px; }
  .pspec-dimension { padding-inline-start:12px; }
  .pspec-dimension > div { flex-wrap:wrap; gap:5px; }
  .pspec-dimension strong { font-size:calc(clamp(20px,5.5vw,24px) * var(--a11y-font-scale, 1)); }
  .pspec-service-row { grid-template-columns:1fr; gap:24px; }
  .pspec--pergola h3 { font-size:1.375rem; }
}
@media(max-width:380px) {
  .pspec-dimensions { grid-template-columns:1fr; }
  .pspec-dimension { display:grid; grid-template-columns:50px 1fr; align-items:center; gap:10px; padding:12px 0; border-inline-start:0; border-top:1px solid #45616b; }
  .pspec-dimension > span { margin:0; }
  .pspec-dimension > div { justify-content:flex-end; }
  .pspec-dimension strong { font-size:1.75rem; }
  .pspec-dimension i { display:none; }
}

/* Gate models: the approved frame stays fixed for each finish. */
.gchoice .pchoice-models { margin-bottom: 30px; }
.gchoice .pchoice-model-options { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding: 3px; }
.gchoice .pchoice-model { display: flex; flex-direction: column; }
.gchoice .pchoice-model img { height: 112px; object-fit: contain; background: #203039; }
.gchoice .pchoice-model span { font-size: .9375rem; padding: 12px; }
.gchoice .pchoice-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.gchoice-preview { margin: 0; border: 1px solid #465962; }
.gchoice-image { position: relative; aspect-ratio: 4 / 3; background: #14232a; }
.gchoice-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gchoice-preview figcaption { font-size: 1.0625rem; line-height: 1.5; padding: 14px 18px; background: #172b34; color: #fff; }
.gchoice .lead--compact { padding: 0; min-width: 0; background: transparent; border: 0; }
.gchoice .lead--compact .form { padding: 28px; }
.gchoice .pchoice-selection { margin-bottom: 4px; }
.gchoice .pchoice-selection > strong { font-size: 1.375rem; line-height: 1.4; }
.gchoice .pchoice-color { font-size: .9375rem; min-height: 44px; }
@media (max-width: 1000px) {
  .gchoice .pchoice-model-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gchoice .pchoice-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .gchoice .pchoice-model-options { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 145px; overflow-x: auto; padding: 3px 3px 14px; scroll-snap-type: x proximity; }
  .gchoice .pchoice-model { scroll-snap-align: start; }
  .gchoice .pchoice-model img { height: 105px; }
  .gchoice .pchoice-model span { font-size: 1rem; }
  .gchoice-image { aspect-ratio: 1 / 1; }
  .gchoice .lead--compact .form { padding: 22px 18px; }
  .gchoice .pchoice-selection > strong { font-size: 1.3125rem; }
  .gchoice .pchoice-preview-note { font-size: .9375rem; }
}

/* ── RAL palette inside the custom-colour block (dark .lead context) ────── */
.ralp { display: grid; gap: 12px; }
.ralp-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: start;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  color: #fff; font-family: var(--font-head); font-size: .875rem; font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.ralp-toggle:hover { border-color: var(--navy); background: rgba(31, 182, 193, 0.12); }
.ralp-dots { display: inline-flex; gap: 3px; }
.ralp-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); }
.ralp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
}
.ralp-swatch {
  display: grid; justify-items: center; gap: 4px;
  padding: 10px 6px 8px;
  background: none; border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.ralp-swatch:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.ralp-swatch.active { border-color: var(--navy); background: rgba(31, 182, 193, 0.12); }
.ralp-swatch .chip {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.ralp-swatch .code { font-family: var(--font-mono); font-size: .71875rem; color: #fff; letter-spacing: 0.04em; }
.ralp-swatch .name { font-size: .6875rem; color: #b5c6ce; line-height: 1.2; text-align: center; }
@media (max-width: 640px) {
  .ralp-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); max-height: 300px; overflow-y: auto; }
}

/* === a11y-ui: the open quote sheet stacks above the cookie banner (accessibility spec v2 §5) ============= */
/* The banner (z-index 9999) is inert while a dialog is open, so it must never cover the sheet's close or
   submit button. Same selector as the overlay rule above, later in the file; quote-sheet.css keeps the order. */
.qsheet-overlay { z-index: 10050; }
/* === end a11y-ui ===================================================================================== */
