/* Premium design system — Othee Technologies */

:root {
  --letter-tight: -0.03em;
  --letter-wide: 0.06em;
}

/* Typography hierarchy */
.text-gradient {
  background: linear-gradient(135deg, var(--text-gradient-start) 0%, var(--text-gradient-mid) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: var(--letter-tight);
}

.section__title {
  letter-spacing: var(--letter-tight);
}

/* Premium cards */
.card-premium {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--inset-highlight);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-premium:hover {
  border-color: var(--premium-border);
  box-shadow: var(--shadow), var(--premium-glow);
}

.glass-panel {
  background: var(--premium-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.section-elevated {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* Buttons */
.btn-glow {
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.45);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-glow:hover {
  box-shadow: 0 6px 28px rgba(108, 92, 231, 0.6);
  transform: translateY(-1px);
}

/* Scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
}

.breadcrumbs__link {
  color: var(--color-accent);
  transition: color 0.2s;
}

.breadcrumbs__link:hover {
  color: var(--color-primary-hover);
}

.breadcrumbs__sep {
  opacity: 0.4;
}

.breadcrumbs__current {
  color: var(--color-text);
}

/* Service detail page */
.service-detail-page {
  padding: 2rem 0 4rem;
}

.service-detail__hero {
  min-height: 280px;
  background-image: var(--service-hero-bg);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}

.service-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--overlay-heavy) 0%, color-mix(in srgb, var(--color-primary) 35%, transparent) 100%);
}

.service-detail__hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
}

.service-detail__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0;
}

.service-detail__body {
  padding: 2rem;
}

.service-detail__description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.service-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.service-tag-link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.service-tag-link:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--premium-border);
  transform: translateY(-2px);
}

/* Service offer cards */
.service-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-offer-card__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.service-offer-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-offer-card:hover .service-offer-card__image {
  transform: scale(1.04);
}

.service-offer-card__body {
  padding: 1.25rem;
}

.service-offer-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  color: var(--color-accent);
}

.service-offer-card__title {
  font-size: 1rem;
  margin: 0.35rem 0;
}

.service-offer-card__price--quote {
  color: var(--color-accent);
}

/* Checkout */
.checkout-page {
  padding: 2rem 0 4rem;
}

.checkout-page__title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-review,
.checkout-payment {
  padding: 2rem;
}

.checkout-lines {
  margin: 1rem 0;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.checkout-totals__row,
.checkout-totals__total {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.checkout-totals__total {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 2px solid var(--premium-border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.checkout-field {
  margin-bottom: 1rem;
}

.checkout-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.checkout-payment__note {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.checkout-fallback {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(0, 206, 201, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.checkout-status {
  margin-top: 2rem;
  padding: 1.5rem;
}

.checkout-status--success {
  border-color: var(--color-success);
}

.checkout-status--error {
  border-color: var(--color-danger);
}

.checkout-status--processing {
  border-color: var(--color-primary);
}

/* Shop type toggle */
.shop-type-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.shop-type-toggle__btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.25s;
}

.shop-type-toggle__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.cart-item__type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  color: var(--color-accent);
}
