/* ==========================================================================
   NORTHCAPE STUDIOS — configurator.css
   Page-specific styles for konfigurator.html
   Tokens come from style.css :root — no new colors, no rounded corners.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.cfg-hero {
  min-height: 56vh;
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.cfg-section {
  background: var(--bg-primary);
  padding: 0 var(--space-md, 2rem) var(--section-pad);
}

@media (max-width: 1024px) {
  .cfg-section {
    padding-top: clamp(3rem, 8vw, 5rem);
  }
}

.cfg-layout {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* --------------------------------------------------------------------------
   STEPS
   -------------------------------------------------------------------------- */
.cfg-step {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}

.cfg-step:first-child {
  border-top: none;
  padding-top: 0;
}

.cfg-step-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.cfg-step-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.cfg-step-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text-primary);
  line-height: 1.15;
}

.cfg-note {
  margin-top: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cfg-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 0.3s var(--ease-primary, ease);
}

.cfg-note a:hover { color: var(--accent-hover); }

/* --------------------------------------------------------------------------
   OPTION CARDS (object type)
   -------------------------------------------------------------------------- */
.cfg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.cfg-card {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.35s var(--ease-primary, ease),
              background 0.35s var(--ease-primary, ease);
}

.cfg-card:hover { border-color: rgba(139, 115, 85, 0.4); }

.cfg-card.selected {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.cfg-card-title {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.cfg-card-sub {
  display: block;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   TIER CARDS
   -------------------------------------------------------------------------- */
.cfg-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.cfg-tier {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.35s var(--ease-primary, ease),
              background 0.35s var(--ease-primary, ease);
}

.cfg-tier:hover { border-color: rgba(139, 115, 85, 0.4); }

.cfg-tier.selected {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.cfg-tier-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cfg-tier-audience {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cfg-tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfg-tier li {
  font-weight: 300;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 0.9rem;
  position: relative;
}

.cfg-tier li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   FIELDS, SEGMENTED CONTROLS, HINTS
   -------------------------------------------------------------------------- */
.cfg-field {
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.cfg-field:last-child { margin-bottom: 0; }

.cfg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cfg-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.cfg-hint {
  margin-top: 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cfg-hint:empty { display: none; }

.cfg-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cfg-segment {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: border-color 0.35s var(--ease-primary, ease),
              background 0.35s var(--ease-primary, ease);
}

.cfg-segment:hover:not(:disabled) { border-color: rgba(139, 115, 85, 0.4); }

.cfg-segment.selected {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.cfg-segment:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cfg-segment small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   CHIPS (multi-select)
   -------------------------------------------------------------------------- */
.cfg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cfg-chips:empty { display: none; }

.cfg-chip {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--text-primary);
  transition: border-color 0.35s var(--ease-primary, ease),
              background 0.35s var(--ease-primary, ease);
}

.cfg-chip:hover:not(:disabled) { border-color: rgba(139, 115, 85, 0.4); }

.cfg-chip.selected {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.cfg-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#video-formats { margin-top: 0.85rem; }

/* --------------------------------------------------------------------------
   STEPPERS
   -------------------------------------------------------------------------- */
.cfg-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-accent);
}

.cfg-stepper-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: color 0.3s var(--ease-primary, ease);
}

.cfg-stepper-btn:hover { color: var(--accent); }

.cfg-stepper-value {
  min-width: 56px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   RANGE SLIDERS
   -------------------------------------------------------------------------- */
.cfg-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.cfg-slider-head .cfg-label { margin-bottom: 0; }

.cfg-slider-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cfg-field input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(26, 26, 26, 0.15);
  outline: none;
  cursor: pointer;
}

.cfg-field input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  transition: transform 0.3s var(--ease-primary, ease);
}

.cfg-field input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.2); }

.cfg-field input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.cfg-field input[type='range']::-moz-range-track {
  height: 2px;
  background: rgba(26, 26, 26, 0.15);
}

/* --------------------------------------------------------------------------
   SUMMARY (sticky)
   -------------------------------------------------------------------------- */
.cfg-summary-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.cfg-summary {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.cfg-summary-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.cfg-price-prefix {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cfg-price {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  color: var(--text-primary);
}

.cfg-price-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cfg-positions {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.cfg-positions li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}

.cfg-positions li span:last-child {
  color: var(--text-primary);
  white-space: nowrap;
}

.cfg-positions li.cfg-position-bundle span {
  color: var(--accent);
}

.cfg-positions li.cfg-position-factors {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}

.cfg-summary-note {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.cfg-summary-note:empty { display: none; }

.cfg-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cfg-summary-actions .btn { text-align: center; justify-content: center; }

.cfg-summary-legal {
  margin-top: 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   MOBILE PRICE BAR
   -------------------------------------------------------------------------- */
.cfg-mobilebar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-accent);
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cfg-mobilebar-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.cfg-mobilebar-value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   TRUST STRIP
   -------------------------------------------------------------------------- */
.cfg-trust {
  background: var(--bg-secondary);
  padding: var(--section-pad) var(--space-md, 2rem);
}

.cfg-trust-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.cfg-trust-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cfg-trust-item p {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cfg-layout { grid-template-columns: 1fr; }

  .cfg-summary-wrap { position: static; }

  .cfg-mobilebar { display: flex; }

  body { padding-bottom: 72px; } /* room for fixed mobile bar */
}

@media (max-width: 768px) {
  .cfg-tiers { grid-template-columns: 1fr; }

  .cfg-field-row { grid-template-columns: 1fr; }

  .cfg-trust-inner { grid-template-columns: 1fr; }

  .cfg-hero { min-height: auto; }
}
