/* BYDOP — Nebula nav + Hero + 3D photo carousel
   Ported from from_claude_design (kit.css). Scoped to .nebula-nav / .hero
   so it doesn't collide with existing site styles. */

/* ---------- Tokens ---------- */
:root {
  --bydop-orange:      #F97316;
  --bydop-orange-deep: #EA580C;
  --bydop-amber:       #FBBF24;
  --bydop-copper:      #C7844F;
  --bydop-copper-deep: #8A5133;
  --bydop-font-ui:      "Inter", "DM Sans", "DM Sans nahrada", system-ui, sans-serif;
  --bydop-font-display: "Bricolage Grotesque", "Bricolage nahrada", "DM Sans", "DM Sans nahrada", system-ui, sans-serif;
  --bydop-font-body:    "DM Sans", "DM Sans nahrada", system-ui, sans-serif;
  --bydop-font-serif:   "Instrument Serif", "Instrument nahrada", "Playfair Display", Georgia, serif;
  --bydop-ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================================
   Nebula nav (dark)
   ============================================================ */
.nebula-nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, #000 0%, #0a0604 35%, #150c06 70%, #1f140a 100%);
  font-family: var(--bydop-font-ui);
  border-bottom: none;
  box-sizing: border-box;
}
.nebula-nav *, .nebula-nav *::before, .nebula-nav *::after { box-sizing: border-box; }
.nebula-nav::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(249,115,22,.12) 18%, rgba(249,115,22,.85) 50%,
    rgba(249,115,22,.12) 82%, transparent 100%);
  pointer-events: none;
}
.nebula-nav__brand { display: flex; align-items: center; gap: 14px; }
.nebula-nav__wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-decoration: none; color: #fff; line-height: 1;
  position: relative; padding-bottom: 2px;
}
.nebula-nav__wordmark-svg { height: 20px; width: auto; display: block; }
.nebula-nav__wordmark-sub {
  position: relative;
  font: 500 8.5px/1 var(--bydop-font-ui);
  letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(229, 213, 197, 0.72);
  white-space: nowrap; padding-top: 4px;
}
.nebula-nav__wordmark-sub::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 18px; height: 1px; background: var(--bydop-orange);
}
.nebula-nav__menu { display: flex; gap: 12px; align-items: center; }
.nebula-nav__links {
  display: flex; gap: 4px; align-items: center;
  list-style: none; padding: 0; margin: 0 12px 0 0;
}
.nebula-nav__link {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 9999px;
  font: 500 15px/1 var(--bydop-font-ui);
  color: rgba(229, 213, 197, 0.85);
  text-decoration: none;
  transition: color 200ms, background 200ms;
}
.nebula-nav__link:hover,
.nebula-nav__link.is-active { color: #fff; background: rgba(249,115,22,.07); }
.nebula-nav__quote {
  display: inline-flex; align-items: center;
  padding: 11px 22px; border-radius: 9999px;
  font: 600 14px/1 "Space Grotesk", "Space nahrada", "Inter", sans-serif;
  letter-spacing: 0.04em; color: #fff; text-decoration: none;
  background: rgba(249,115,22,.14);
  border: 1px solid rgba(249,115,22,.4);
  transition: background 220ms, border-color 220ms;
  white-space: nowrap;
}
.nebula-nav__quote:hover {
  background: rgba(249,115,22,.24);
  border-color: rgba(249,115,22,.7);
  color: #fff;
}
.nebula-nav__phone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 9999px;
  border: 1px solid rgba(249,115,22,.3);
  background: rgba(249,115,22,.08);
  color: var(--bydop-orange);
  text-decoration: none;
  transition: background 220ms, color 220ms, transform 220ms;
}
.nebula-nav__phone svg { width: 19px; height: 19px; }
.nebula-nav__phone:hover {
  background: var(--bydop-orange); color: #fff; transform: scale(1.04);
}
.nebula-nav__burger {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bydop-orange); color: #fff;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: transform 220ms, background 220ms;
  padding: 0;
}
.nebula-nav__burger:hover { transform: scale(1.05); background: var(--bydop-copper-deep); }
.nebula-nav__burger svg { width: 20px; height: 20px; }

/* Mobile dropdown panel (toggled by .is-open on .nebula-nav) */
.nebula-nav__panel {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: linear-gradient(180deg, #0a0604 0%, #1f140a 100%);
  border-top: 1px solid rgba(249,115,22,.18);
  padding: 14px 20px 18px;
  z-index: 1010;
}
.nebula-nav__panel ul { list-style: none; padding: 0; margin: 0; }
.nebula-nav__panel li { margin: 0; }
.nebula-nav__panel a {
  display: block; padding: 12px 6px;
  font: 500 15px/1 var(--bydop-font-ui);
  color: rgba(229,213,197,.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(249,115,22,.08);
}
.nebula-nav__panel a.is-active { color: #fff; }
.nebula-nav.is-open .nebula-nav__panel { display: block; }

/* ============================================================
   Shiny CTA — orange conic-gradient pill
   ============================================================ */
@property --bydop-gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --bydop-gradient-shine { syntax: "<color>"; initial-value: #fbbf24; inherits: false; }
.shiny-cta {
  --bydop-gradient-angle: 0deg;
  --bydop-gradient-shine: #fbbf24;
  position: relative; overflow: hidden;
  border-radius: 9999px;
  padding: 12px 28px;
  font: 600 14px/1.2 var(--bydop-font-ui);
  color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(from var(--bydop-gradient-angle),
      transparent 0%,
      var(--bydop-orange-deep) 5%,
      var(--bydop-gradient-shine) 15%,
      var(--bydop-orange-deep) 30%,
      transparent 40%) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px #1a1818;
  transition: transform 300ms var(--bydop-ease-out), box-shadow 300ms;
  isolation: isolate;
  animation: bydop-spin 8s linear infinite;
  cursor: pointer;
}
@keyframes bydop-spin { to { --bydop-gradient-angle: 360deg; } }
.shiny-cta:hover {
  transform: scale(1.03);
  box-shadow: inset 0 0 0 1px #1a1818, 0 0 30px -5px rgba(249,115,22,.5);
  color: #fff;
}
.shiny-cta::before {
  content: ''; position: absolute; inset: 3px; pointer-events: none;
  background: radial-gradient(circle at 2px 2px, white 0.5px, transparent 0) padding-box;
  background-size: 4px 4px;
  border-radius: inherit;
  -webkit-mask-image: conic-gradient(from calc(var(--bydop-gradient-angle) + 45deg), black, transparent 10% 90%, black);
          mask-image: conic-gradient(from calc(var(--bydop-gradient-angle) + 45deg), black, transparent 10% 90%, black);
  opacity: 0.4;
}

/* ============================================================
   Hero (Nebula)
   ============================================================ */
.bydop-hero {
  position: relative; min-height: 720px;
  background:
    radial-gradient(80% 30% at 50% 0%, rgba(249,115,22,.22), transparent 70%),
    linear-gradient(180deg, #1f140a 0%, #0A0A0A 40%, #0A0A0A 100%);
  color: #fff; overflow: hidden;
  display: flex; align-items: center;
  box-sizing: border-box;
}
.bydop-hero *, .bydop-hero *::before, .bydop-hero *::after { box-sizing: border-box; }
.bydop-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(249,115,22,.18), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(249,115,22,.08), transparent 70%);
  pointer-events: none;
}
.bydop-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.2px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.15) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.15) 100%);
}
.bydop-hero > * { position: relative; z-index: 1; }
.bydop-hero__inner { position: relative; padding: 90px 28px 80px; max-width: 1200px; margin: 0 auto; width: 100%; }
.bydop-hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 9999px;
  border: 1px solid rgba(249,115,22,.25); background: rgba(249,115,22,.07);
  font: 500 11px/1 var(--bydop-font-ui);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(229,213,197,.85);
  margin-bottom: 26px;
}
.bydop-hero__chip::before {
  content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--bydop-orange);
}
.bydop-hero__title {
  font-family: var(--bydop-font-display);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -3.6px;
  font-variation-settings: "opsz" 96;
  margin: 0 0 22px; max-width: 14ch;
  color: #fff;
}
.bydop-hero__title em {
  font-family: inherit; font-style: normal; font-weight: inherit; color: #fff;
}
.bydop-hero__title .accent-orange {
  font-family: "Instrument Serif", "Instrument nahrada", "Bricolage Grotesque", "Bricolage nahrada", serif;
  font-weight: 400; font-style: italic;
  letter-spacing: -0.02em;
  font-size: 1.05em;
  background: linear-gradient(135deg, #FBBF24 0%, #F97316 50%, #EA580C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bydop-hero__sub {
  font: 400 18px/1.6 var(--bydop-font-body);
  color: rgba(229,213,197,.72);
  max-width: 56ch; margin: 0 0 36px;
}
.bydop-hero__cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.bydop-hero__cta-row .shiny-cta {
  padding: 16px 44px; font-size: 14px; letter-spacing: 0.06em;
  min-width: 200px; text-align: center;
}

/* Hero phone rail */
.bydop-hero__phone-rail {
  display: inline-flex; flex-direction: row; align-items: center;
  gap: 14px; text-decoration: none;
  margin-top: 22px; align-self: flex-start;
}
.bydop-hero__phone-rail__icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bydop-orange);
  color: #0a0a0a;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(249,115,22,.45);
  transition: transform 180ms ease;
}
.bydop-hero__phone-rail__icon svg { width: 16px; height: 16px; }
.bydop-hero__phone-rail__icon::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--bydop-orange);
  opacity: 0;
  animation: bydop-phone-ping 2.4s ease-out infinite;
}
@keyframes bydop-phone-ping {
  0% { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.55); opacity: 0; }
}
.bydop-hero__phone-rail__text {
  display: inline-flex; flex-direction: column; gap: 4px; line-height: 1;
}
.bydop-hero__phone-rail__lbl {
  font: 500 10px/1 var(--bydop-font-ui);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(229,213,197,.55);
}
.bydop-hero__phone-rail__num {
  font-family: var(--bydop-font-display);
  font-weight: 600; font-size: 18px;
  letter-spacing: -0.2px;
  background: linear-gradient(90deg, #F4D5A8 0%, #FFF6E8 55%, #FFFFFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: filter 200ms; white-space: nowrap;
}
.bydop-hero__phone-rail__num em {
  font-family: "Instrument Serif", "Instrument nahrada", serif;
  font-style: italic; font-weight: 400; margin-right: 2px;
}
.bydop-hero__phone-rail__zero { display: none; }
.bydop-hero__phone-rail:hover .bydop-hero__phone-rail__num { filter: brightness(1.15) saturate(1.1); }
.bydop-hero__phone-rail:hover .bydop-hero__phone-rail__icon { transform: scale(1.06); }

/* ============================================================
   Hero Photo Carousel (3D)
   ============================================================ */
.photo-carousel {
  position: relative; width: 100%;
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 56px; margin-bottom: 16px;
}
.carousel-container { perspective: 1200px;
  position: relative;
  width: 520px; height: 580px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.carousel-track {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.carousel-card {
  position: absolute;
  width: 360px; height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: all 0.8s ease;
  background: #0f0f10;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.carousel-card--active { z-index: 50 !important; }
.carousel-card--active { border: 2px solid rgba(249,115,22,.5); }
.carousel-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.carousel-card__content { position: absolute; bottom: 24px; left: 24px; right: 24px; }
.carousel-card__content--featured { bottom: 32px; left: 32px; right: 32px; }
.carousel-card__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.10);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.20);
  margin-bottom: 12px;
  font: 500 12px/1 var(--bydop-font-display);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel-card__name {
  font: 600 18px/1.2 var(--bydop-font-display);
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}
.carousel-card__name--featured { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.carousel-card__desc {
  font: 400 14px/1.4 var(--bydop-font-body);
  color: rgba(255,255,255,.7);
  margin: 0;
}
.carousel-card__featured-badge {
  position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--bydop-orange); color: #000;
  border-radius: 50px;
  font: 600 12px/1 var(--bydop-font-display);
  z-index: 2;
}
.carousel-card__featured-badge svg { width: 14px; height: 14px; }
.carousel-nav-btn {
  position: absolute; z-index: 20;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  color: #fff; cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  padding: 0;
}
.carousel-nav-btn:hover { background: rgba(255,255,255,.12); transform: scale(1.05); }
.carousel-nav-btn--prev { left: 0; }
.carousel-nav-btn--next { right: 0; }
@media (min-width: 1100px) {
  .carousel-nav-btn--prev { left: -60px; }
  .carousel-nav-btn--next { right: -60px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nebula-nav { padding: 12px 16px; gap: 12px; }
  .nebula-nav__links { display: none; }
  .nebula-nav__phone { display: none; }
  .nebula-nav__burger { display: inline-flex; }

  .bydop-hero { min-height: 0; }
  .bydop-hero__inner { padding: 32px 20px 40px; }
  .bydop-hero__chip { margin-bottom: 18px; padding: 5px 12px; font-size: 10px; }
  .bydop-hero__title {
    font-size: clamp(34px, 9vw, 52px);
    letter-spacing: -1.4px;
    line-height: 1.05;
    max-width: none;
    margin-bottom: 18px;
  }
  .bydop-hero__sub { font-size: 15px; line-height: 1.55; margin-bottom: 26px; max-width: none; }
  .bydop-hero__cta-row { justify-content: flex-start; }
  .bydop-hero__cta-row .shiny-cta { min-width: 0; width: 100%; padding: 16px 32px; }

  .bydop-hero__phone-rail__cc { display: none; }
  .bydop-hero__phone-rail__zero { display: inline; }
  .bydop-hero__phone-rail__num { font-size: 17px; }

  .photo-carousel { min-height: 460px; margin-top: 36px; }
  .carousel-container { perspective: 1200px; width: 100%; height: 440px; }
  .carousel-card { width: 260px; height: 380px; }
}

/* Hide legacy header/slider when bydop nav is in use (safety, in case
   both happen to be in DOM during transition). */
.has-bydop-nav .main-header,
.has-bydop-nav .main-slider-two { display: none !important; }

/* ============================================================
   Two-column hero layout — H1 +40% (90px fixed), carousel right
   ============================================================ */
@media (min-width: 1024px) {
  .bydop-hero__inner {
    display: grid;
    grid-template-columns: 740px 1fr;
    column-gap: 70px;
    align-items: center;
    max-width: 1700px;
    margin: 0 auto;
    padding: 60px 40px 60px;
  }
  .bydop-hero__chip,
  .bydop-hero__title,
  .bydop-hero__sub,
  .bydop-hero__cta-row,
  .bydop-hero__phone-rail {
    grid-column: 1;
    max-width: 740px;
    width: 100%;
    overflow-wrap: break-word;
  }
  .bydop-hero__chip {
    grid-row: 1; justify-self: start;
    margin-bottom: 26px; font-size: 13px; padding: 7px 16px;
    width: auto;
    max-width: max-content;
  }
  .bydop-hero__title {
    grid-row: 2;
    font-size: 90px;
    line-height: 1.04;
    letter-spacing: -2.4px;
    margin-bottom: 26px;
  }
  .bydop-hero__sub {
    grid-row: 3; font-size: 19px; line-height: 1.55;
    max-width: 600px; margin-bottom: 34px;
  }
  .bydop-hero__cta-row { grid-row: 4; margin-bottom: 26px; }
  .bydop-hero__phone-rail { grid-row: 5; margin-top: 0; }
  .bydop-hero__phone-rail__num { font-size: 19px; }

  .photo-carousel {
    grid-column: 2; grid-row: 1 / 6;
    align-self: center; justify-self: end;
    margin: 0; width: 100%;
    max-width: 700px; min-height: 0;
  }
  .photo-carousel .carousel-container { perspective: 1200px;
    width: 100%; height: 420px;
    margin: 0 0 0 auto;
  }
  .photo-carousel .carousel-card { width: 260px; height: 380px; }
}

@media (min-width: 1600px) {
  .bydop-hero__inner {
    grid-template-columns: 780px 1fr;
    column-gap: 100px;
    padding: 70px 40px 70px;
  }
  .bydop-hero__chip,
  .bydop-hero__title,
  .bydop-hero__sub,
  .bydop-hero__cta-row,
  .bydop-hero__phone-rail { max-width: 780px; }
  .photo-carousel { max-width: 760px; }
  .photo-carousel .carousel-container { perspective: 1200px; height: 460px; }
  .photo-carousel .carousel-card { width: 280px; height: 410px; }
}
