/* ═══════════════════════════════════════════════
   CAWHEEL — drum-wheel navigation
   CyprusAligned · 2026
═══════════════════════════════════════════════ */

/* ── Full-screen overlay ── */
.wheel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.8rem;
}
.wheel-overlay.open { display: flex; }

/* Darkened, blurred backdrop */
.wo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 34, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Close button — top-right */
.wo-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.wo-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.88);
}

/* Brand mark above drum — img-based logo */
.wo-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.wo-logo img.wo-logo-img {
  display: block;
  height: 120px;
  width: auto;
  max-width: 60vw;
  opacity: 0.95;
  /* Match desktop logo palette: hue 44°, sat 28%, value 69% */
  filter: saturate(1.82) hue-rotate(-13deg);
}
/* Wheel overlay always uses dark-mobile variant — overlay bg is blue in both themes */
.wo-logo img.wo-logo-img--light { display: none !important; }
.wo-logo img.wo-logo-img--dark { display: block !important; }

/* Legacy SVG / text fallback — hidden by default, kept for backwards compat */
.wo-logo svg:not(.wo-logo-img) { display: none; }
.wo-logo .wo-brand-text { display: none; }

/* Micro-hint below drum */
.wo-hint {
  position: relative;
  z-index: 1;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24);
}


/* ═══════════════════════════════════════════════
   WheelPicker — the drum component (shared)
═══════════════════════════════════════════════ */

.wp {
  position: relative;
  z-index: 1;
  width: min(280px, 84vw);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  outline: none;
  border-radius: 1px;

  /* ── Dark navy drum — works on any overlay ── */
  background: rgba(13, 24, 41, 0.94);
  border: 1px solid rgba(201, 168, 76, 0.30);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}
.wp:active { cursor: grabbing; }
.wp:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.7);
  outline-offset: 4px;
}

/* Pillar wheel: slightly wider for longer labels */
.wp-pillar {
  width: min(320px, 92vw);
}

/* Top & bottom edge fade — drum depth / edge-of-cylinder effect */
.wp::before,
.wp::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 35%;
  pointer-events: none;
  z-index: 4;
}
.wp::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 24, 41, 0.96) 0%,
    rgba(13, 24, 41, 0.00) 100%
  );
}
.wp::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(13, 24, 41, 0.96) 0%,
    rgba(13, 24, 41, 0.00) 100%
  );
}

/* Selection band — gold hairlines framing the active item */
.wp-band {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
  border-top:    1px solid rgba(201, 168, 76, 0.55);
  border-bottom: 1px solid rgba(201, 168, 76, 0.55);
}

/* Scrollable drum — transforms applied by JS */
.wp-drum {
  will-change: transform;
  touch-action: none;
}

/* Individual item row */
.wp-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform, opacity;
}
.wp-blank { pointer-events: none; }

/* Item label text */
.wp-label {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  pointer-events: none;
  /* color, font-weight, letter-spacing overridden by JS per distance */
}

/* Pillar wheel labels slightly smaller (longer text) */
.wp-pillar .wp-label {
  font-size: .70rem;
}


/* ═══════════════════════════════════════════════
   Pillar wheel — embedded section (services page)
═══════════════════════════════════════════════ */

.pillar-wheel-section {
  padding: 4.5rem 0 5rem;
  text-align: center;
}

.pillar-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

/* Info panel — updates as wheel settles */
.pillar-info {
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: 0 1.5rem;
}

.pillar-info-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.28;
  transition: opacity .18s ease;
}

.pillar-info-tag {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #c9a84c;
  transition: opacity .18s ease;
}

.pillar-cta {
  display: inline-block;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #0d1829;
  background: #c9a84c;
  padding: .75rem 1.8rem;
  text-decoration: none;
  transition: background .2s;
}
.pillar-cta:hover { background: #e0c070; }


/* ═══════════════════════════════════════════════
   Responsive: wheel system is mobile-only
═══════════════════════════════════════════════ */
@media (min-width: 901px) {
  .wheel-overlay        { display: none !important; }
  .pillar-wheel-section { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wp-drum { transition: transform 0ms !important; }
}

/* Light mode — mobile menu overlay */
[data-theme="light"] .wp {
  background: rgb(54 96 161 / 94%);
  border-color: rgba(255, 255, 255, 0.25);
}
[data-theme="light"] .wp-label {
  color: #f5f0e8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
