/* ==========================================================================
   Blocks — header, heroes, cards, FAQ, CTA, niche plugins
   ========================================================================== */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-transparent {
  background: transparent;
  border-bottom-color: transparent;
  position: absolute;
  left: 0;
  right: 0;
}

.site-header .nav-link {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-header .nav-link:hover { color: var(--brand-600); }

.site-header.is-transparent .nav-link,
.site-header.is-transparent .text-ink,
.site-header.is-transparent strong {
  color: var(--on-inverse) !important;
}

.site-header.is-transparent .text-muted-2 {
  color: var(--on-inverse-muted) !important;
}

.brand-logo-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--brand-600);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Hero variants --- */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--inverse);
  color: #fff;
  min-height: 76vh;
  display: flex;
  align-items: center;
}

.hero-section.hero-compact { min-height: 56vh; }
.hero-section.hero-tall { min-height: 92vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to right,
    var(--inverse) 0%,
    color-mix(in srgb, var(--inverse) 90%, transparent) 45%,
    color-mix(in srgb, var(--inverse) 30%, transparent) 100%
  );
}

.hero-gradient-center {
  background: linear-gradient(
    to top,
    var(--inverse) 0%,
    color-mix(in srgb, var(--inverse) 75%, transparent) 45%,
    color-mix(in srgb, var(--inverse) 35%, transparent) 100%
  );
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand-500) 18%, transparent);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-300);
}

.hero-card {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
}

.hero-icon-badge {
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand-500) 22%, transparent);
  color: var(--brand-300);
  padding: 0.75rem;
  display: inline-flex;
}

/* Light split hero */
.hero-light {
  background: var(--bg);
  color: var(--ink-3);
  min-height: auto;
  padding: var(--section-py-sm) 0;
}

.hero-light .hero-bg,
.hero-light .hero-gradient { display: none; }

/* Light hero with barely-there photo wash */
.hero-light.hero-light-wash {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--bg);
  --hero-wash-opacity: 0.16;
}

.hero-light-wash.is-faint { --hero-wash-opacity: 0.08; }
.hero-light-wash.is-soft { --hero-wash-opacity: 0.22; }
.hero-light-wash.is-visible { --hero-wash-opacity: 0.32; }

.hero-light-wash .hero-wash-bg,
.hero-light-wash .hero-wash-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-light-wash .hero-wash-bg {
  z-index: 0;
  background-color: var(--surface-3);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: var(--hero-wash-opacity);
  filter: saturate(0.8) contrast(0.98);
  transform: scale(1.03);
}

.hero-light-wash .hero-wash-veil {
  z-index: 1;
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--bg) 62%, transparent) 45%,
    color-mix(in srgb, var(--bg) 78%, transparent) 100%
  );
}

.hero-light-wash > .container-xxl,
.hero-light-wash > .container,
.hero-light-wash > .container-fluid {
  position: relative;
  z-index: 2;
}

.hero-light-wash .hero-form-card {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-media {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-form-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.25s ease;
}

.hero-form-card:hover {
  border-color: var(--brand-600);
}

/* Light split hero — copy/form left, media right */
.hero-split-media {
  min-height: auto;
  padding: var(--section-py-sm) 0;
}

.hero-split-media .hero-media {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-inline-form {
  max-width: 34rem;
  padding: var(--card-pad);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-inline-form .form-control-brand {
  background: var(--bg);
}

@media (max-width: 991.98px) {
  .hero-split-media .hero-media {
    max-width: 36rem;
    margin-inline: auto;
  }
}

/*
 * Hero split + seamless texture background
 *
 * Knobs (on <section> or .hero-texture-bg):
 *   --hero-texture-image     url(...) — tile image
 *   --hero-texture-opacity   0–1     — texture visibility (default .4)
 *   --hero-texture-size      length  — tile size (default 420px)
 *   --hero-texture-tint      color   — base fill under texture (default var(--bg))
 *   --hero-texture-veil      0–100%  — color wash over texture (default 70%)
 *   --hero-texture-saturate  0–2     — filter on tile (default .88)
 *
 * Presets: .is-faint · .is-soft · .is-bold
 */
.hero-split-texture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--hero-texture-tint, var(--bg));
  --hero-texture-opacity: 0.4;
  --hero-texture-size: 420px;
  --hero-texture-veil: 70%;
  --hero-texture-saturate: 0.88;
  --hero-texture-image: url("../img/textures/paper-kraft.png");
}

.hero-split-texture.is-faint {
  --hero-texture-opacity: 0.22;
  --hero-texture-veil: 82%;
}

.hero-split-texture.is-soft {
  --hero-texture-opacity: 0.32;
  --hero-texture-veil: 76%;
}

.hero-split-texture.is-bold {
  --hero-texture-opacity: 0.55;
  --hero-texture-veil: 58%;
  --hero-texture-saturate: 1;
}

.hero-split-texture .hero-texture-bg,
.hero-split-texture .hero-texture-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-split-texture .hero-texture-bg {
  z-index: 0;
  opacity: var(--hero-texture-opacity);
  background-color: transparent;
  background-image: var(--hero-texture-image);
  background-repeat: repeat;
  background-size: var(--hero-texture-size);
  background-position: center;
  filter: saturate(var(--hero-texture-saturate)) contrast(0.98);
}

.hero-split-texture .hero-texture-veil {
  z-index: 1;
  background: color-mix(
    in srgb,
    var(--hero-texture-tint, var(--bg)) var(--hero-texture-veil),
    transparent
  );
}

.hero-split-texture > .container-xxl,
.hero-split-texture > .container,
.hero-split-texture > .container-fluid {
  position: relative;
  z-index: 2;
}

.hero-split-texture .hero-media {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.compare-card {
  text-align: center;
}

.compare-card__title {
  margin: 0.875rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.compare-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--on-inverse) 22%, transparent);
  background: color-mix(in srgb, var(--inverse-2) 65%, transparent);
  aspect-ratio: 4 / 3;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
  isolation: isolate;
}

.compare-slider__img {
  display: block;
  pointer-events: none;
}

.compare-slider__img--after {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slider__before {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid color-mix(in srgb, var(--on-inverse) 85%, transparent);
}

.compare-slider__before .compare-slider__img--before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--compare-width, 100%);
  max-width: none;
  object-fit: cover;
}

.compare-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 2.75rem;
  margin-left: -1.375rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.compare-slider__handle:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.compare-slider__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: color-mix(in srgb, var(--on-inverse) 92%, transparent);
  pointer-events: none;
}

.compare-slider__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.375rem;
  height: 2.375rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-600);
  color: var(--brand-600);
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.compare-slider.is-dragging .compare-slider__grip {
  transform: translate(-50%, -50%) scale(1.06);
}

.compare-slider__label {
  position: absolute;
  top: 0.625rem;
  z-index: 3;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare-slider__label--before {
  left: 0.625rem;
  background: color-mix(in srgb, var(--inverse) 78%, transparent);
  color: var(--on-inverse);
}

.compare-slider__label--after {
  right: 0.625rem;
  background: color-mix(in srgb, var(--brand-600) 88%, transparent);
  color: #fff;
}

/* Light section variant */
.compare-section-light .compare-slider {
  border-color: var(--line);
  background: var(--surface-3);
}

.compare-section-light .compare-slider__before {
  border-right-color: var(--line-strong);
}

.compare-section-light .compare-slider__handle::before {
  background: var(--line-strong);
}

.compare-section-light .compare-slider__label--before {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  color: var(--on-inverse);
}

.compare-section-light .compare-card__title {
  color: var(--ink);
}

.category-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--inverse);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--on-inverse) 22%, transparent);
  box-sizing: border-box;
  transition: border-color 0.25s ease;
}

.category-banner:hover {
  border-color: var(--brand-300);
}

.category-banner .banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.category-banner:hover .banner-media {
  opacity: 0.58;
  transform: scale(1.03);
}

.category-banner .banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--inverse) 0%,
    color-mix(in srgb, var(--inverse) 85%, transparent) 50%,
    color-mix(in srgb, var(--inverse) 20%, transparent) 100%
  );
}

.category-banner .banner-content {
  position: relative;
  padding: 3.5rem 1.25rem;
}

@media (min-width: 576px) {
  .category-banner .banner-content { padding: 5rem 2.5rem; }
}

/* --- Cards family --- */
.service-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.service-card:hover {
  border-color: var(--brand-600);
}

.service-card img {
  height: 13rem;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img { transform: scale(1.05); }

.icon-tile {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.icon-tile:hover {
  border-color: var(--brand-600);
}

.icon-tile-badge {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.price-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.price-card:hover {
  border-color: var(--brand-600);
}

.price-card.is-featured {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600), var(--shadow-md);
}

.price-card.is-featured:hover {
  border-color: var(--brand-700);
}

.price-card ul { list-style: none; margin: 0; padding: 0; }

.price-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.price-card li:last-child { border-bottom: none; }

.price-pill {
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand-600) 12%, transparent);
  color: var(--brand-600);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Package ladder */
.package-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.package-card:hover {
  border-color: var(--brand-600);
}

.package-card.is-featured {
  background: var(--inverse);
  border-color: color-mix(in srgb, var(--on-inverse) 28%, transparent);
  color: var(--on-inverse-muted);
}

.package-card.is-featured:hover {
  border-color: var(--brand-300);
}

.package-card.is-featured h3,
.package-card.is-featured .package-price {
  color: var(--on-inverse);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-600);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.package-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  flex: 1;
}

.package-list li {
  padding: 0.45rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.9375rem;
}

.package-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-600);
  font-weight: 700;
}

.package-card.is-featured .package-list li::before {
  color: var(--brand-300);
}

/* Benefits */
.benefit-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.benefit-card:hover {
  border-color: var(--brand-600);
}

.benefit-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-600);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.stats-band {
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stats-band.is-inverse {
  background: var(--inverse);
  border-color: transparent;
}

.stats-band.is-inverse .stat-value { color: var(--on-inverse); }
.stats-band.is-inverse .stat-label { color: var(--on-inverse-muted); }

/* Steps */
.step-card {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.step-card:hover {
  border-color: var(--brand-600);
}

.step-number {
  font-size: 3.75rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--brand-600) 22%, transparent);
  line-height: 1;
}

/* Portfolio / cases — sit on bg-inverse: dark cards + light text (readable on every theme) */
.case-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--inverse-2);
  border: 1px solid color-mix(in srgb, var(--on-inverse) 18%, transparent);
  color: var(--on-inverse-muted);
  height: 100%;
  transition: border-color 0.25s ease;
}

.case-card:hover {
  border-color: var(--brand-300);
}

.case-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.case-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  color: var(--on-inverse-muted);
}

.case-card-body h3,
.case-card-body .h5 {
  color: var(--on-inverse) !important;
}

.case-card-body p {
  color: var(--on-inverse-muted) !important;
}

/* Utilities inside case cards always follow inverse contrast */
.case-card .text-white,
.case-card .text-on-inverse,
.case-card .text-ink {
  color: var(--on-inverse) !important;
}

.case-card .text-on-inverse-muted,
.case-card .text-ink-3 {
  color: var(--on-inverse-muted) !important;
}

/* Team */
.team-card {
  text-align: center;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.team-card:hover {
  border-color: var(--brand-600);
}

.team-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  background: var(--surface-3);
}

.team-avatar-placeholder {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-700);
}

/* Reviews */
.review-card {
  border-radius: var(--radius-2xl);
  border: 1px solid color-mix(in srgb, var(--on-inverse) 14%, transparent);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.review-card:hover {
  border-color: var(--brand-300);
}

.review-card.is-light {
  border-color: var(--line);
  background: var(--surface);
}

.review-card.is-light:hover {
  border-color: var(--brand-600);
}

.review-stars {
  color: var(--brand-300);
  letter-spacing: 0.125rem;
}

.review-card.is-light .review-stars { color: var(--brand-600); }

/* FAQ */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  padding: 0.5rem 1.5rem;
  transition: border-color 0.25s ease;
}

.faq-list:hover {
  border-color: var(--brand-600);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .faq-plus {
  color: var(--brand-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] .faq-plus { transform: rotate(45deg); }

.faq-item p {
  margin: 1rem 0 0;
  max-width: 42rem;
  line-height: 1.75;
  color: var(--ink-3);
}

/* Mid CTA / lead strip */
.mid-cta {
  border-radius: var(--radius-2xl);
  background: var(--brand-600);
  color: var(--on-brand, #fff);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.mid-cta::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on-brand, #fff) 12%, transparent);
  pointer-events: none;
}

.mid-cta.is-inverse {
  background: var(--inverse);
  color: var(--on-inverse);
}

.mid-cta.is-inverse::before {
  background: color-mix(in srgb, var(--on-inverse) 12%, transparent);
}

/* Final CTA — always inverse band (not brand-700: near-white on noir/carbon) */
.cta-final-band {
  background: var(--inverse);
  color: var(--on-inverse);
}

.lead-inline {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem;
  transition: border-color 0.25s ease;
}

.lead-inline:hover {
  border-color: var(--brand-600);
}

/* Calculator */
.calc-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.calc-card:hover {
  border-color: var(--brand-600);
}

.calc-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.calc-option:hover,
.calc-option.is-active {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-700);
}

.calc-result {
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 1.25rem;
  margin-top: 1rem;
}

.calc-result-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
}

/* Contacts */
.contact-panel {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem;
  height: 100%;
  transition: border-color 0.25s ease;
}

.contact-panel:hover {
  border-color: var(--brand-600);
}

.map-placeholder {
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(135deg, var(--surface-3), var(--surface-2)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      color-mix(in srgb, var(--line) 60%, transparent) 8px,
      color-mix(in srgb, var(--line) 60%, transparent) 9px
    );
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  border: 1px solid var(--line);
}

/* Fault / niche (service center) */
.fault-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 2rem;
  transition: border-color 0.25s ease;
}

.fault-card:hover {
  border-color: var(--brand-600);
}

.fault-symptom {
  border-radius: var(--radius-lg);
  /* Always 1px — transparent at rest, brand on hover (no layout jump; beats .border-0) */
  border: 1px solid transparent !important;
  background: var(--surface-2);
  padding: 0.75rem;
  text-align: center;
  display: block;
  color: var(--ink);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.fault-symptom:hover,
.fault-symptom:focus-visible {
  border-color: var(--brand-600) !important;
  background: var(--brand-50);
}

.fault-symptom img {
  margin: 0 auto;
  height: 5rem;
  width: 5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.fault-symptom span {
  margin-top: 0.75rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.fault-cta {
  border-radius: var(--radius-2xl);
  background: var(--brand-600);
  color: #fff;
  padding: 2rem;
}

/* Sticky CTA */
.js-sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1020;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.js-sticky-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
}

@media (min-width: 768px) {
  .js-sticky-cta { display: none; }
}

/* Footer */
.site-footer {
  background: var(--inverse);
  color: var(--on-inverse-muted);
}

.site-footer h4 {
  color: var(--on-inverse);
  font-size: 1rem;
  font-weight: 600;
}

.site-footer a { color: var(--on-inverse-muted); }
.site-footer a:hover { color: var(--on-inverse); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Modal */
.modal-content.contact-modal {
  border-radius: var(--radius-2xl);
  border: none;
  background: var(--surface);
  color: var(--ink-3);
}

.modal-content.contact-modal .modal-title { color: var(--ink); }

/* Close icon tracks --ink (Bootstrap default X is black → invisible on dark surfaces) */
.modal-content.contact-modal .btn-close {
  width: 1em;
  height: 1em;
  padding: 0.35em;
  opacity: 0.7;
  background: none;
  background-color: var(--ink);
  border: 0;
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em no-repeat;
}

.modal-content.contact-modal .btn-close:hover {
  opacity: 1;
}

/* Marquee logos */
.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  opacity: 0.7;
}

.logo-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  background: var(--surface);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.logo-pill:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Amenities (ref_themes catalog) --- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .amenity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .amenity-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.amenity-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  text-align: center;
  height: 100%;
  transition: border-color 0.25s ease;
}

.amenity-item:hover {
  border-color: var(--brand-600);
}

.amenity-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.amenity-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.amenity-item span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* --- Tariffs / membership --- */
.tariff-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--card-pad-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.tariff-card:hover {
  border-color: var(--brand-600);
}

.tariff-card.is-featured {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600);
}

.tariff-card.is-featured:hover {
  border-color: var(--brand-700);
}

.tariff-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}

/* --- Schedule / booking slots --- */
.schedule-board {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.schedule-board:hover {
  border-color: var(--brand-600);
}

.schedule-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}

.schedule-row:last-child { border-bottom: none; }

.schedule-day {
  font-weight: 700;
  color: var(--ink);
}

.schedule-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.slot-chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-3);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.slot-chip:hover,
.slot-chip.is-active {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-700);
}

.slot-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Buyback / price board (metall) --- */
.buyback-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s ease;
}

.buyback-table:hover {
  border-color: var(--brand-600);
}

.buyback-table th,
.buyback-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.buyback-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.buyback-table tr:last-child td { border-bottom: none; }

.buyback-table td {
  color: var(--ink-3);
  font-weight: 500;
}

.buyback-table .price {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
