/* ============================================
   SERVICE PAGES — shared styles + calculator
   ============================================ */

/* ---------- Service Hero ---------- */
.service-hero {
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(60px, 8vw, 120px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(149, 123, 95, 0.07), transparent 100%);
  pointer-events: none;
}

.service-hero .container {
  position: relative;
  z-index: 1;
}

.service-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
}

@media (max-width: 860px) {
  .service-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.service-hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.service-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8px;
}

/* ---------- What we offer section ---------- */
.service-offers {
  padding-top: var(--pad-xl);
  padding-bottom: var(--pad-xl);
  border-bottom: 1px solid var(--hairline);
}

.service-offers-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media (max-width: 900px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.offer-card:hover {
  border-color: var(--hairline-strong);
  background: var(--bg-elev);
}

.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s var(--ease);
}

.offer-card:hover::before {
  height: 100%;
}

.offer-card-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--fg);
}

.offer-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-card-list li {
  font-size: 14px;
  color: var(--fg-muted);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.4;
}

.offer-card-list li::before {
  content: "–";
  color: var(--gold);
  flex-shrink: 0;
  font-size: 12px;
}

/* ---------- Calculator section ---------- */
.calc-section {
  background: var(--bg-elev);
  padding-top: var(--pad-xl);
  padding-bottom: var(--pad-xl);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.calc-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.calc-section-head .h2 {
  max-width: 20ch;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ---------- Options panel ---------- */
.calc-options {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-group-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.calc-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-left: 2px solid transparent;
  background: var(--bg-card);
  border-radius: 4px;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-left-color 0.25s var(--ease);
  gap: 16px;
  position: relative;
}

.calc-opt:hover {
  border-color: var(--hairline-strong);
  background: var(--bg-elev);
}

/* Hidden actual input */
.calc-opt input[type="radio"],
.calc-opt input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Selected state */
.calc-opt:has(input:checked) {
  border-left-color: var(--gold);
  background: rgba(149, 123, 95, 0.07);
  border-color: var(--gold-deep);
}

.calc-opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Custom indicator dot / check */
.calc-opt-indicator {
  width: 16px;
  height: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

/* checkbox indicator is square-ish */
.calc-opt.is-checkbox .calc-opt-indicator {
  border-radius: 3px;
}

.calc-opt:has(input:checked) .calc-opt-indicator {
  border-color: var(--gold);
  background: var(--gold);
}

.calc-opt:has(input:checked) .calc-opt-indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

/* checkbox checked: show checkmark — perfectly centred in 16×16 indicator */
.calc-opt.is-checkbox:has(input:checked) .calc-opt-indicator::after {
  content: "";
  position: absolute;
  inset: unset;
  background: none;
  border-radius: 0;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 7px;
  border: 1.5px solid var(--bg);
  border-top: none;
  border-left: none;
  /* translate centres the element, slight -y shift compensates visual asymmetry */
  transform: translate(-50%, -60%) rotate(45deg);
}

.opt-label {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.3;
  transition: color 0.25s var(--ease);
}

.calc-opt:has(input:checked) .opt-label {
  color: var(--fg);
}

.opt-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  transition: color 0.25s var(--ease);
}

.calc-opt:has(input:checked) .opt-price {
  color: var(--gold-soft);
}

/* ---------- Result panel ---------- */
.calc-result {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 900px) {
  .calc-result {
    position: static;
  }
}

.calc-result-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-result-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.calc-price-big {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  transition: color 0.3s var(--ease);
}

.calc-price-big.on-request {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--gold-soft);
}

.calc-price-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-top: 4px;
}

.calc-divider {
  height: 1px;
  background: var(--hairline);
}

/* ---------- Breakdown ---------- */
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 40px;
}

.calc-breakdown-empty {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.calc-line-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-line-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-line.calc-line-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.calc-line.calc-line-total .calc-line-label {
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.calc-line.calc-line-total .calc-line-value {
  color: var(--gold-soft);
  font-size: 12px;
}

/* ---------- Calculator CTA ---------- */
.calc-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-cta .btn {
  width: 100%;
  justify-content: center;
}

.calc-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Service bottom CTA ---------- */
.service-cta {
  padding-top: var(--pad-xl);
  padding-bottom: var(--pad-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 60%, rgba(149, 123, 95, 0.09), transparent 100%);
  pointer-events: none;
}

.service-cta .container {
  position: relative;
  z-index: 1;
}

.service-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.service-cta-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
}

.service-cta-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.service-cta-title em {
  font-style: normal;
  color: var(--gold-soft);
  font-weight: 300;
}

.service-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
  .calc-opt {
    flex-wrap: wrap;
  }

  .opt-price {
    text-align: left;
  }

  .service-cta-title {
    text-align: center;
  }
}
