/* ============================================================
   SS Construction — Construction Packages page (packages.php)
   Scoped styles only (pkg-*). Uses the theme tokens from style.css:
   --gold #f3c12c · --gold-d #e0a000 · --ink #0e121d · --font-h "Exo 2"

   Package colour identity:
   Essential = silver · Premium = gold · Signature = blue
   ============================================================ */

body.page-packages {
  --t1: #8d96a5;              /* Essential — silver */
  --t1-soft: rgba(141, 150, 165, .07);
  --t2: #e0a000;              /* Premium — gold */
  --t2-soft: rgba(224, 160, 0, .08);
  --t3: #0666b9;              /* Signature — blue */
  --t3-soft: rgba(6, 102, 185, .07);
  --colline: #edf0f5;         /* light column separator */
}

/* ---------- tier cards ---------- */
.pkg-tiers { padding-top: 60px; }
.pkg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pkg-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 34px 28px 30px;
  box-shadow: 0 14px 34px rgba(14, 18, 29, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(14, 18, 29, .12);
}
.pkg-card--t1 { border-top-color: var(--t1); }
.pkg-card--t2 { border-top-color: var(--t2); }
.pkg-card--t3 { border-top-color: var(--t3); }
.pkg-card--t1 .pkg-card__price { color: #7b8595; }
.pkg-card--t3 .pkg-card__price { color: var(--t3); }
.pkg-card--hot {
  border-top: none;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #fff;
}
.pkg-card--hot .pkg-card__tag { color: rgba(255, 255, 255, .75); }
.pkg-card--hot .pkg-card__list li { color: rgba(255, 255, 255, .85); }
.pkg-card__badge {
  position: absolute;
  top: -14px;
  right: 22px;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--ink);
  font: 700 11px/1 var(--font-h);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.pkg-card__name {
  font: 700 22px/1.2 var(--font-h);
  color: inherit;
  margin: 0 0 10px;
}
.pkg-card__price {
  font: 800 40px/1 var(--font-h);
  color: var(--gold-d);
  margin: 0 0 12px;
}
.pkg-card--hot .pkg-card__price { color: var(--gold); }
.pkg-card__price small {
  font: 600 14px/1 var(--font-h);
  color: inherit;
  opacity: .65;
}
.pkg-card__tag { margin: 0 0 16px; color: #5a6274; }
.pkg-card__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.pkg-card__list li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: #39415a;
}
.pkg-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font: 700 11px/17px var(--font-h);
  text-align: center;
}
.pkg-note {
  margin: 22px 4px 0;
  font-size: 13.5px;
  color: #6b7186;
}

/* ---------- comparison table (desktop) ---------- */
.pkg-compare { padding-top: 64px; }
.pkg-head { max-width: 640px; margin-bottom: 30px; }
.pkg-tablewrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(14, 18, 29, .07);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.pkg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 15px;
}
/* blue header row */
.pkg-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #0a6ec5, #003070);
  color: #fff;
  padding: 20px 16px 16px;
  font: 700 17px/1.2 var(--font-h);
  text-align: center;
  vertical-align: bottom;
  border-bottom: none;
}
/* per-package colour bar on top of each header column */
.pkg-table thead th.pkg-h1 { box-shadow: inset 0 4px 0 var(--t1); }
.pkg-table thead th.pkg-h2 { box-shadow: inset 0 4px 0 var(--gold); }
.pkg-table thead th.pkg-h3 { box-shadow: inset 0 4px 0 #6db4ef; }
.pkg-table thead th.pkg-h1 .pkg-table__tier { color: #dbe2ec; }
.pkg-table thead th.pkg-h3 .pkg-table__tier { color: #cfe6ff; }
.pkg-table thead th .pkg-table__tier { display: block; }
.pkg-table thead th .pkg-table__price {
  display: block;
  margin-top: 7px;
  font: 800 25px/1 var(--font-h);
  color: var(--gold);
}
.pkg-table thead th.pkg-h1 .pkg-table__price { color: #c9cfdb; }
.pkg-table thead th.pkg-h3 .pkg-table__price { color: #9fd1ff; }
.pkg-table thead th .pkg-table__price small { font-size: 13px; font-weight: 700; opacity: .85; }
.pkg-table__feat { text-align: left !important; width: 28%; }
.pkg-table__logo { height: 42px; width: auto; display: inline-block; }

.pkg-table th,
.pkg-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef0f5;
  text-align: center;
  vertical-align: middle;
}
/* light vertical column lines */
.pkg-table td.pkg-c,
.pkg-table thead th.pkg-h { border-left: 1px solid var(--colline); }
/* per-package column tints */
.pkg-table td.pkg-c1 { background: var(--t1-soft); }
.pkg-table td.pkg-c2 { background: var(--t2-soft); }
.pkg-table td.pkg-c3 { background: var(--t3-soft); }
.pkg-table tbody th {
  text-align: left;
  font: 600 15px/1.45 var(--font);
  color: var(--ink-3);
  background: #fff;
}
.pkg-table tbody tr:hover th { background: #fdfaf1; }
.pkg-table td { color: #39415a; }
/* yes / no badges are spans inside the cells */
.pkg-table td .pkg-yes { color: #1d8a4b; font-weight: 700; }
.pkg-table td .pkg-no { color: #a6adbf; }
.pkg-table__group td {
  background: linear-gradient(135deg, #eaf0f8, #dde7f3);
  color: #003070;
  font: 700 13px/1 var(--font-h);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid #d3dfec;
}

/* ---------- mobile accordions ---------- */
.pkg-mob { padding-top: 56px; }
.pkg-acc {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(14, 18, 29, .06);
}
.pkg-acc--t1 { border-top-color: var(--t1); }
.pkg-acc--t2 { border-top-color: var(--t2); }
.pkg-acc--t3 { border-top-color: var(--t3); }
.pkg-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
}
.pkg-acc summary::-webkit-details-marker { display: none; }
.pkg-acc__name {
  font: 700 19px/1.2 var(--font-h);
  flex: 1;
}
.pkg-acc__price {
  font: 800 20px/1 var(--font-h);
  color: var(--gold);
  white-space: nowrap;
}
.pkg-acc--t1 .pkg-acc__price { color: #c9cfdb; }
.pkg-acc--t3 .pkg-acc__price { color: #9fd1ff; }
.pkg-acc__price small { font-size: 12px; opacity: .85; }
.pkg-acc__caret { transition: transform .25s ease; }
.pkg-acc[open] .pkg-acc__caret { transform: rotate(90deg); }
.pkg-acc__body { padding: 8px 14px 16px; }
.pkg-table--mob { min-width: 0; }
.pkg-table--mob th,
.pkg-table--mob td {
  text-align: left;
  font-size: 14px;
}
.pkg-table--mob th { width: 45%; }
.pkg-table--mob td { width: 55%; text-align: right; overflow-wrap: anywhere; }
/* light vertical column line between label and value, like the desktop table */
.pkg-table--mob tbody tr:not(.pkg-table__group) td {
  border-left: 1px solid var(--colline);
  padding-left: 12px;
}
.pkg-table--mob td.pkg-celltext, .pkg-table--mob .pkg-celltext { font-size: 14px; }
.pkg-table--mob .pkg-table__group td {
  background: none;
  border-bottom: 2px solid #e6ecf4;
  color: #003070;
  text-align: center;
  letter-spacing: .22em;
  width: 100%;
  padding: 16px 2px 10px;
}

/* ---------- exclusions (dark band) ---------- */
.pkg-exclude { padding-top: 64px; padding-bottom: 64px; }
.pkg-exclude__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.pkg-exclude__head p {
  color: rgba(255, 255, 255, .72);
  margin-top: 10px;
}
.pkg-exclude__head .eyebrow--light { color: rgba(255, 255, 255, .85); }
.pkg-exclude__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 34px;
}
.pkg-exclude__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}
.pkg-exclude__list li::before {
  content: "\2013";             /* slim en-dash: "not included", without the alarm-bell cross */
  width: 20px;
  height: 20px;
  border: 1px solid rgba(243, 193, 44, .55);
  border-radius: 50%;
  color: var(--gold);
  font: 700 12px/18px var(--font-h);
  text-align: center;
  margin-top: 4px;              /* optical centre against the first text line */
}

/* ---------- FAQ ---------- */
.pkg-faq { padding-top: 64px; padding-bottom: 70px; }
.pkg-faq__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.pkg-faq__list { display: grid; gap: 12px; }
.pkg-q {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pkg-q summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  font: 600 16px/1.4 var(--font-h);
  color: var(--ink);
}
.pkg-q summary::-webkit-details-marker { display: none; }
.pkg-q[open] summary { color: var(--gold-d); }
.pkg-q summary .pkg-acc__caret { flex: none; }
.pkg-q[open] summary .pkg-acc__caret { transform: rotate(90deg); }
.pkg-q p {
  margin: 0;
  padding: 0 20px 18px;
  color: #5a6274;
}

/* ---------- brand logo cells ---------- */
.pkg-cellimg {
  max-height: 50px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: inline-block;
}
.pkg-cellimg--mob { max-height: 42px; max-width: 150px; }
.pkg-brandlogos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  vertical-align: middle;
}
.pkg-brandlogos--mob { justify-content: flex-end; gap: 8px; }
.pkg-celltext { display: block; margin-top: 6px; font-size: 13.5px; color: #39415a; }

/* ---------- cost calculator ---------- */
.pkg-calc { padding-top: 64px; padding-bottom: 64px; }
.pkg-calc__card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 36px 34px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.pkg-head--center { text-align: center; margin-inline: auto; margin-bottom: 26px; }
.pkg-head--center .eyebrow { justify-content: center; }
.pkg-calc__controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  margin-bottom: 24px;
}
.pkg-calc__controls label {
  font: 600 14px/1 var(--font-h);
  color: var(--ink-3);
  display: grid;
  gap: 8px;
}
.pkg-calc__controls select {
  appearance: none;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: 600 15px/1.2 var(--font);
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230e121d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.pkg-calc__controls select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pkg-calc__table { width: 100%; border-collapse: collapse; }
/* column header row: Particulars | Quantity | Rate | Total Cost */
.pkg-calc__table thead th {
  padding: 0 10px 10px;
  border-bottom: 2px solid var(--gold);
  font: 700 12px/1 var(--font-h);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}
.pkg-calc__table thead th:nth-child(3),
.pkg-calc__table thead th:nth-child(4) { text-align: center; }
.pkg-calc__table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eef0f5;
  font-size: 15px;
  color: var(--ink-3);
}
/* four columns that sum to 100%: item | quantity | rate | total cost */
.pkg-calc__table td:nth-child(1) { width: 28%; }
.pkg-calc__table td:nth-child(2) { width: 34%; }
.pkg-calc__table td:nth-child(3) { width: 16%; }
.pkg-calc__table td:nth-child(4) { width: 22%; }
.pkg-calc__rate { color: #6b7186; font-size: 13.5px !important; white-space: nowrap; }
.pkg-calc__in,
.pkg-calc__out {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font: 600 14.5px/1.2 var(--font);
  color: var(--ink);
  background: #fff;
}
.pkg-calc__in:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pkg-calc__out {
  background: #f7f6f0;
  border-style: dashed;
  font-weight: 700;
  text-align: center;
  pointer-events: none;      /* cost cells are display-only */
  user-select: none;
}
/* keep the normal colours even though the fields are disabled */
.pkg-calc__out:disabled {
  color: var(--ink);
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}
.pkg-calc__out--total:disabled {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.pkg-calc__out--total {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--ink);
  border: none;
  font: 800 17px/1.2 var(--font-h);
  text-align: center;
}
.pkg-calc__total td {
  border-bottom: none;
  padding-top: 16px;
  font: 700 17px/1.2 var(--font-h);
  color: var(--ink);
}
.pkg-note--center { text-align: center; margin-top: 18px; }
.pkg-calc__cta { text-align: center; margin-top: 18px; }
.pkg-calc__cta .btn { border: 0; cursor: pointer; }
.pkg-calc__cta .btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.pkg-calc__cta .btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- two-step quote flow ---------- */
.pkg-stepbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 22px; }
.pkg-step { font: 700 12px/1 var(--font-h); letter-spacing: .06em; text-transform: uppercase; color: #9aa3b5; padding: 8px 14px; border-radius: 60px; background: #f2f4f8; }
.pkg-step.is-current { background: var(--base); color: #fff; }
.pkg-quote-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pkg-quote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.pkg-quote-fields label { font: 600 13px/1 var(--font-h); color: var(--ink-3); display: grid; gap: 6px; }
.pkg-quote-fields input,
.pkg-quote-fields select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font: 600 15px/1.2 var(--font);
  color: var(--ink);
  background: #fff;
}
.pkg-quote-fields input:focus,
.pkg-quote-fields select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pkg-calc__hintcell { font-size: 12px !important; color: #9aa3b5 !important; text-align: right; }

/* Step 2 result */
.pkg-quote-done { text-align: center; }
.pkg-quote-done__badge { width: 54px; height: 54px; border-radius: 50%; background: #e7f6ec; color: #1d8a4b; display: grid; place-items: center; margin: 0 auto 14px; }
.pkg-quote-done__badge .ico { width: 28px; height: 28px; }
.pkg-quote-done h3 { font: 800 26px/1.2 var(--font-h); color: var(--ink); margin: 0 0 8px; }
.pkg-quote-done__lead { color: #5a6274; font-size: 15px; line-height: 1.6; margin: 0 auto 22px; max-width: 46ch; }
.pkg-quote-done__total { background: linear-gradient(135deg, var(--gold-d), var(--gold)); color: var(--ink); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.pkg-quote-done__total span { display: block; font: 700 13px/1 var(--font-h); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.pkg-quote-done__total strong { display: block; font: 800 clamp(32px, 6vw, 46px)/1.15 var(--font-h); margin-top: 8px; }
.pkg-quote-done__meta { display: flex; justify-content: center; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; color: #5a6274; margin-bottom: 18px; }
.pkg-quote-done__rows { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.pkg-quote-done__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; color: #5a6274; }
.pkg-quote-done__rows b { color: var(--ink); white-space: nowrap; }
.pkg-quote-done .pkg-calc__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pkg-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 60px;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
  font: 700 15px/1 var(--font-h);
  text-decoration: none;
  transition: background .2s var(--ease);
}
.pkg-again:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* anchors clear the sticky header */
#compare, #ccal { scroll-margin-top: 84px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .pkg-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pkg-tablewrap { display: none; }   /* desktop table hidden */
  .pkg-exclude__grid,
  .pkg-faq__grid { grid-template-columns: 1fr; gap: 26px; }
  .pkg-exclude__list { grid-template-columns: 1fr; }
  .pkg-calc__controls { grid-template-columns: 1fr; }
  .pkg-calc__card { padding: 28px 20px 26px; }
  .pkg-calc__table td { font-size: 14px; padding: 9px 8px; }
}
@media (min-width: 992px) {
  .pkg-mob { display: none; }          /* accordions hidden on desktop */
}

/* mobile / tablet: stack every calculator row into its own mini-card so the
   Quantity input and Total cost column are always fully visible */
@media (max-width: 991px) {
  .pkg-calc__table,
  .pkg-calc__table tbody { display: block; width: 100%; }
  .pkg-calc__table thead { display: none; }   /* per-field captions replace the header row */
  .pkg-calc__table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .pkg-calc__table tr[hidden] { display: none; }
  .pkg-calc__table td { display: block; border: none; padding: 4px 0; }
  /* width:auto must repeat at nth-child specificity to beat the desktop column widths */
  .pkg-calc__table td:nth-child(1) { grid-column: 1 / -1; width: auto; font: 700 15.5px/1.3 var(--font-h); color: var(--ink); }
  .pkg-calc__table td:nth-child(2) { grid-column: 1; width: auto; padding-right: 6px; min-width: 0; } /* quantity */
  .pkg-calc__table td:nth-child(3) {
    grid-column: 2;
    width: auto;
    text-align: right;
    justify-self: end;
    align-self: center;
    max-width: 120px;
    white-space: normal;
  }
  .pkg-calc__table td:nth-child(4) { grid-column: 1 / -1; width: auto; margin-top: 8px; } /* total */
  .pkg-calc__table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font: 700 10.5px/1 var(--font-h);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a91a5;
    margin-bottom: 6px;
  }
  .pkg-calc__in, .pkg-calc__out { font-size: 16px; padding: 12px 14px; }     /* no iOS zoom */
  .pkg-calc__rate { font-size: 12.5px !important; }
  .pkg-calc__table tr.pkg-calc__total {
    border: none;
    background: transparent;
    padding: 14px 2px 0;
    margin-bottom: 0;
  }
  .pkg-calc__table tr.pkg-calc__total td:nth-child(2) { grid-column: 1 / -1; margin-top: 6px; }
  .pkg-calc__out--total { font-size: 19px; padding: 14px 14px; }
  .pkg-calc__controls select { font-size: 16px; }
}
@media (max-width: 575px) {
  .pkg-tiers { padding-top: 44px; }
  .pkg-card__price { font-size: 34px; }
  .pkg-acc summary { padding: 15px 14px; }
  .pkg-acc__name { font-size: 16.5px; }
  .pkg-acc__price { font-size: 14px; }
  .pkg-table--mob th, .pkg-table--mob td { padding: 10px 8px; font-size: 13.5px; }
  /* phones: calculator rows go fully single-column — nothing can clip */
  .pkg-calc__table tr { grid-template-columns: 1fr; padding: 12px 12px; }
  .pkg-calc__table td:nth-child(1),
  .pkg-calc__table td:nth-child(2),
  .pkg-calc__table td:nth-child(3),
  .pkg-calc__table td:nth-child(4) { grid-column: 1; width: auto; }
  .pkg-calc__table td:nth-child(3) { justify-self: end; max-width: none; white-space: nowrap; margin-top: -2px; }
  .pkg-calc__table td:nth-child(4) { margin-top: 6px; }
}

/* ---------- a11y ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
