/* =============================================================
   HERO.CSS — Navigation pill + Hero section
   ============================================================= */


/* =============================================
   NAV — Floating glass pill, detached from top
   ============================================= */

.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.5rem 0;
  pointer-events: none;   /* pass-through except the pill itself */
}

.nav-pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem 0.625rem 1.25rem;
  background: rgba(253, 250, 244, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--c-border-warm);
  border-radius: 100px;
  /* Liquid glass refraction: inner highlight + diffused shadow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 32px rgba(122, 92, 46, 0.07),
    0 2px 8px  rgba(122, 92, 46, 0.04);
  width: 100%;
  max-width: 800px;
  transition: box-shadow 0.4s var(--ease-expo);
}

.nav-pill.is-scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 48px rgba(122, 92, 46, 0.10),
    0 4px 12px rgba(122, 92, 46, 0.06);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo-cyrillic {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--c-text);
}

.nav-logo-divider {
  display: block;
  width: 1px;
  height: 0.875rem;
  background: var(--c-border-warm);
  flex-shrink: 0;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-light);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--c-text-mid);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition:
    color      0.22s var(--ease-expo),
    background 0.22s var(--ease-expo);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--c-text);
  background: rgba(122, 92, 46, 0.07);
}

/* CTA pill button */
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--c-bg);
  background: var(--c-accent);
  padding: 0.4375rem 1.125rem;
  border-radius: 100px;
  flex-shrink: 0;
  transition:
    background 0.22s var(--ease-expo),
    transform  0.14s var(--ease-expo);
  white-space: nowrap;
}

.nav-cta:hover  { background: var(--c-text); }
.nav-cta:active { transform: scale(0.97); }

/* Hamburger icon (2 lines → X morph) */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.nav-hamburger span {
  display: block;
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--c-text);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.38s var(--ease-expo),
    opacity   0.28s var(--ease-expo);
}

.nav-hamburger span:first-child { transform: translateY(-4.5px); }
.nav-hamburger span:last-child  { transform: translateY(4.5px);  }

.nav-hamburger.is-open span:first-child { transform: rotate(45deg); }
.nav-hamburger.is-open span:last-child  { transform: rotate(-45deg); }


/* =============================================
   MOBILE MENU — Full-screen overlay
   ============================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(253, 250, 244, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s var(--ease-expo);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--c-text);
  padding: 0.3rem 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity    0.5s var(--ease-expo),
    transform  0.5s var(--ease-expo),
    color      0.2s var(--ease-expo);
}

.mobile-menu__link:hover { color: var(--c-accent); }

/* Staggered reveal when open */
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { opacity: 1; transform: none; transition-delay:  70ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { opacity: 1; transform: none; transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { opacity: 1; transform: none; transition-delay: 170ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { opacity: 1; transform: none; transition-delay: 220ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { opacity: 1; transform: none; transition-delay: 270ms; }

.mobile-menu__address {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-text-light);
  text-align: left;
  opacity: 0;
  transition: opacity 0.5s var(--ease-expo) 300ms;
}

.mobile-menu.is-open .mobile-menu__address { opacity: 1; }

.mobile-menu.is-open .mobile-menu__footer { opacity: 1; }

.mobile-menu__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 2.5rem 2.5rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-expo) 280ms;
}


/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  min-height: 100dvh;    /* 100dvh — safe for iOS Safari, no jumping */
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;      /* clip ghost letterform on mobile */
}

/* Large decorative background letterform */
.hero__bg-letter {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(28rem, 42vw, 52rem);
  font-weight: 300;
  color: rgba(122, 92, 46, 0.038);
  line-height: 1;
  top: 50%;
  left: -4vw;
  transform: translateY(-52%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
}

/* Main grid: 55 / 45 split */
.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 3rem 3.5rem;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}


/* --- LEFT: CONTENT --- */

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

/* Eyebrow tag */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent-lt);
  flex-shrink: 0;
  animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Main headline */
.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.hero__headline-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9.5vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--c-text);
  line-height: 0.9;
}

.hero__headline-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.005em;
  color: var(--c-text-mid);
  line-height: 1.35;
  padding-left: 0.08em;
  margin-top: 0.3em;
}

/* Description */
.hero__description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--c-text-mid);
  line-height: 1.75;
  max-width: 46ch;
}

/* CTA buttons */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition:
    background 0.25s var(--ease-expo),
    color      0.25s var(--ease-expo),
    box-shadow 0.25s var(--ease-expo),
    transform  0.14s var(--ease-expo);
}

.btn:active { transform: scale(0.975) translateY(1px); }

/* Primary: filled tobacco */
.btn--primary {
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 0.8125rem 0.875rem 0.8125rem 1.5rem;
  box-shadow:
    0 1px 3px  rgba(122, 92, 46, 0.18),
    0 4px 16px rgba(122, 92, 46, 0.10);
}

.btn--primary:hover {
  background: var(--c-text);
  box-shadow:
    0 2px 6px  rgba(28, 20, 16, 0.16),
    0 8px 24px rgba(28, 20, 16, 0.09);
}

/* Nested icon circle (button-in-button) */
.btn__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform  0.25s var(--ease-expo),
    background 0.25s var(--ease-expo);
}

.btn--primary:hover .btn__icon {
  transform: translateX(2px) translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

/* Ghost: transparent outline */
.btn--ghost {
  background: transparent;
  color: var(--c-text-mid);
  padding: 0.8125rem 1.375rem;
  border: 1px solid var(--c-border-warm);
}

.btn--ghost:hover {
  color: var(--c-text);
  background: rgba(122, 92, 46, 0.06);
  border-color: rgba(122, 92, 46, 0.28);
}

/* Meta stats bar */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 0.375rem;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--c-text);
  line-height: 1;
}

.hero__meta-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-light);
  white-space: nowrap;
}

.hero__meta-divider {
  width: 1px;
  height: 1.875rem;
  background: var(--c-border);
  flex-shrink: 0;
}


/* --- RIGHT: VISUAL --- */

.hero__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* Double-bezel outer shell */
.hero__frame-outer {
  width: 100%;
  background: rgba(122, 92, 46, 0.05);
  border: 1px solid var(--c-border-warm);
  border-radius: 2rem;
  padding: 0.5rem;
  /* Outer diffusion shadow tinted to warm accent */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 24px 64px rgba(122, 92, 46, 0.09),
    0 4px 16px  rgba(122, 92, 46, 0.05);
  height: 100%;
}

/* Double-bezel inner core — concentric radius calc */
.hero__frame-inner {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: calc(2rem - 0.4rem);
  overflow: hidden;
  position: relative;
  background: var(--c-bg-warm);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease-expo);
}

.hero__frame-outer:hover .hero__image {
  transform: scale(1.025);
}

/* Warm gradient vignette at bottom */
.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(28, 20, 16, 0.28) 100%
  );
  pointer-events: none;
}

/* Floating badge — glassmorphism pill */
.hero__badge {
  position: absolute;
  bottom: 1.875rem;
  left: -1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(253, 250, 244, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--c-border-warm);
  border-radius: 100px;
  padding: 0.5rem 0.875rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 4px 16px rgba(122, 92, 46, 0.08);
  animation: badge-float 4.5s ease-in-out infinite;
  z-index: 2;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent-lt);
  flex-shrink: 0;
  animation: dot-pulse 3s ease-in-out infinite;
}

.hero__badge-text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--c-text-mid);
  white-space: nowrap;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Decorative corner ornament */
.hero__ornament {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  color: var(--c-accent-lt);
  opacity: 0.55;
  z-index: 2;
}


/* --- SCROLL INDICATOR --- */

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 3rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-light);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__scroll-line {
  width: 36px;
  height: 1px;
  background: var(--c-border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Animated gold shimmer running along the line */
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--c-accent-lt);
  animation: scroll-shimmer 2.8s var(--ease-expo) infinite;
}

@keyframes scroll-shimmer {
  0%   { left: -100%; }
  60%  { left:  100%; }
  100% { left:  100%; }
}


/* =============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================= */

/* Tablet: hide full nav links, show hamburger */
@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-pill {
    max-width: 100%;
  }
}

/* Mobile: stack layout */
@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem 3rem;
    gap: 2.25rem;
    align-items: start;
  }

  /* Image above text on mobile for impact */
  .hero__visual {
    order: -1;
  }

  .hero__frame-inner {
    min-height: 300px;
  }

  .hero__badge {
    left: 0.5rem;
    bottom: -1rem;
  }

  .hero__bg-letter {
    font-size: clamp(16rem, 70vw, 28rem);
    left: -8vw;
  }

  .hero__scroll {
    padding: 1.5rem 1.25rem 2rem;
  }
}

/* Small mobile: tighten spacing */
@media (max-width: 480px) {
  .hero__headline-name {
    font-size: clamp(4rem, 20vw, 5.5rem);
  }

  .hero__meta {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero__meta-divider {
    display: none;
  }

  .hero__actions {
    gap: 0.75rem;
  }
}
