/* Aurum Built renovation calculators — isolated from the main V4 stylesheet. */
.calculator-page {
  background: var(--paper, #f4efe7);
}

.calculator-page .site-header {
  position: relative;
}

.calc-main {
  min-height: calc(100vh - 86px);
  padding: clamp(42px, 7vw, 92px) 20px clamp(70px, 8vw, 120px);
  background:
    radial-gradient(circle at 12% 20%, rgba(184, 137, 62, 0.12), transparent 32%),
    linear-gradient(135deg, #f7f2ea 0%, #efe7dc 100%);
}

.calc-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.calc-intro {
  max-width: 760px;
  margin: 0 auto clamp(30px, 4vw, 44px);
  text-align: center;
}

.calc-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid rgba(27, 24, 21, 0.25);
  border-radius: 3px;
  background: rgba(255, 253, 249, 0.8);
}

.calc-switcher a {
  padding: 10px 18px;
  color: var(--ink, #1b1815);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.calc-switcher a + a {
  border-left: 1px solid rgba(27, 24, 21, 0.18);
}

.calc-switcher a.is-active {
  background: var(--ink, #1b1815);
  color: #fffdf9;
}

.calc-kicker {
  margin: 0 0 14px;
  color: var(--gold, #b8893e);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calc-intro h1 {
  margin: 0;
  color: var(--ink, #1b1815);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}

.calc-intro h1 em {
  color: var(--gold, #b8893e);
  font-weight: 400;
}

.calc-intro > p:last-child {
  max-width: 590px;
  margin: 22px auto 0;
  color: rgba(27, 24, 21, 0.68);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
}

.calc-progress-wrap {
  width: min(100%, 760px);
  margin: 0 auto 14px;
}

.calc-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(27, 24, 21, 0.62);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(27, 24, 21, 0.12);
}

.calc-progress span {
  display: block;
  width: 8.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold, #b8893e);
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calc-card {
  position: relative;
  width: min(100%, 860px);
  min-height: 470px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(27, 24, 21, 0.1);
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 30px 80px rgba(58, 44, 27, 0.12);
}

.calc-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.calc-step,
.calc-result {
  animation: calc-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes calc-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-step-num {
  margin: 0 0 12px;
  color: var(--gold, #b8893e);
  font-family: var(--font-display, Georgia, serif);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calc-step h2,
.calc-result h2 {
  max-width: 680px;
  margin: 0;
  color: var(--ink, #1b1815);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2rem, 4.5vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.calc-help {
  margin: 14px 0 28px;
  color: rgba(27, 24, 21, 0.62);
  font-size: 0.98rem;
  line-height: 1.55;
}

.calc-options {
  display: grid;
  gap: 12px;
}

.calc-options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.calc-options button {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(27, 24, 21, 0.16);
  border-radius: 3px;
  background: #fffdf9;
  color: var(--ink, #1b1815);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

/* Hover lift only on real hover devices — on touch, :hover sticks to the
   button that lands under the finger after the step swap and reads as a
   pre-selected option (Chris, 18 Jul 2026). */
@media (hover: hover) and (pointer: fine) {
  .calc-options button:hover {
    transform: translateY(-2px);
    border-color: var(--gold, #b8893e);
    box-shadow: 0 12px 28px rgba(58, 44, 27, 0.09);
  }
}

.calc-options button:active {
  transform: translateY(0);
}

.calc-options button.is-selected {
  border-color: var(--ink, #1b1815);
  background: var(--ink, #1b1815);
  color: #fffdf9;
}

.calc-options strong,
.calc-options span {
  display: block;
}

.calc-options strong {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.calc-options span {
  color: rgba(27, 24, 21, 0.6);
  font-size: 0.84rem;
  line-height: 1.45;
}

.calc-options button.is-selected span {
  color: rgba(255, 253, 249, 0.68);
}

.calc-field {
  display: block;
  max-width: 520px;
  margin-top: 28px;
}

.calc-field > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(27, 24, 21, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(27, 24, 21, 0.25);
  border-radius: 2px;
  background: #fff;
  color: var(--ink, #1b1815);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.calc-field input:focus {
  border-color: var(--gold, #b8893e);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 137, 62, 0.16);
}

.calc-continue {
  min-height: 54px;
  margin-top: 18px;
  padding: 0 30px;
  border: 1px solid var(--gold, #b8893e);
  border-radius: 2px;
  background: var(--gold, #b8893e);
  color: #17130f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .calc-continue:hover { transform: translateY(-2px); background: #c99a4d; }
}
.calc-continue:disabled { opacity: 0.5; cursor: wait; transform: none; }

.calc-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 610px;
  margin-top: 18px;
  color: rgba(27, 24, 21, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

.calc-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold, #b8893e);
}

.calc-consent a {
  color: inherit;
  text-decoration-color: var(--gold, #b8893e);
  text-underline-offset: 3px;
}

.calc-error {
  min-height: 24px;
  margin: 18px 0 0;
  color: #9b342b;
  font-size: 0.88rem;
  font-weight: 600;
}

.calc-error.is-neutral { color: rgba(27, 24, 21, 0.65); }
.calc-error.is-success { color: #2d6a47; }

.calc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 24, 21, 0.1);
  color: rgba(27, 24, 21, 0.5);
  font-size: 0.74rem;
}

.calc-back {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink, #1b1815);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.calc-back:hover { color: var(--gold, #b8893e); }

.calc-result {
  text-align: center;
}

.calc-result h2 {
  margin-inline: auto;
}

.calc-result-price {
  margin: 30px 0 18px;
}

.calc-result-price small,
.calc-result-price strong {
  display: block;
}

.calc-result-price small {
  margin-bottom: 6px;
  color: rgba(27, 24, 21, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calc-result-price strong {
  color: var(--gold, #b8893e);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.calc-result > p:not(.calc-step-num):not(.calc-result-price):not(.calc-disclaimer) {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(27, 24, 21, 0.66);
  line-height: 1.65;
}

.calc-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.calc-disclaimer {
  max-width: 650px;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(27, 24, 21, 0.1);
  color: rgba(27, 24, 21, 0.52);
  font-size: 0.78rem;
  line-height: 1.55;
}

.calculator-page .site-footer {
  margin-top: 0;
}

.calc-options button:focus-visible,
.calc-continue:focus-visible,
.calc-back:focus-visible,
.calc-switcher a:focus-visible,
.calc-consent a:focus-visible,
.calc-consent input:focus-visible {
  outline: 3px solid var(--gold, #b8893e);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .calc-main { padding: 34px 14px 70px; }
  .calc-card { min-height: 520px; padding: 28px 20px; }
  .calc-options--2,
  .calc-options--3 { grid-template-columns: 1fr; }
  .calc-options button { min-height: 88px; padding: 16px 18px; }
  .calc-card-footer { align-items: flex-end; }
  .calc-card-footer > span { max-width: 170px; text-align: right; }
  .calc-result-actions { flex-direction: column; }
  .calc-result-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .calc-step,
  .calc-result { animation: none; }
  .calc-progress span,
  .calc-options button,
  .calc-field input,
  .calc-continue { transition: none; }
}
