/* ============================================
   Hero Sections
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  color: var(--color-text-inverse);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.5) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: var(--space-3xl) 0;
}
.hero__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-lg);
}
.hero__subtitle {
  font-size: var(--fs-body-lg);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Compact hero for inner pages */
.hero--compact {
  min-height: 280px;
}
.hero--compact .hero__content {
  padding: var(--space-2xl) 0;
}

/* ============================================
   Hero Home — Full-screen bg + vase
   ============================================ */

.hero--home {
  background: var(--color-text-inverse);
  color: var(--color-text);
  min-height: 100vh;
}
.hero--home::before {
  display: none;
}

.hero-home__text {
  max-width: 480px;
}

.hero-home__title {
  font-family: 'Inter', sans-serif;
  font-size: 45px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-inverse);
  margin: 0 0 17px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.hero-home__title-line {
  display: block;
  line-height: 1;
}

.hero-home__production {
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text-inverse);
  margin: 0 0 14px 0;
  line-height: 1.3;
}

.hero-home__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin: 0 0 25px 0;
}

.hero-home__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 34px;
  background: linear-gradient(135deg, rgba(189,152,94,0.5) 0%, rgba(196,162,104,0.5) 45%, rgba(208,172,118,0.5) 55%, rgba(196,162,104,0.5) 65%, rgba(189,152,94,0.5) 100%);
  background-size: 250% 250%;
  animation: btnBreathe 3.45s ease-in-out infinite, btnSunlight 10.4s ease-in-out infinite;
  color: var(--color-text-inverse);
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 600;
  border: none;
  border-radius: 0 0 47px 0;
  transition: background var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

@keyframes btnSunlight {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-home__btn span {
  margin-left: 4px;
  font-size: 26px;
  line-height: 1;
}
.hero-home__btn:hover {
  animation-play-state: paused;
}

@keyframes btnBreathe {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.072); }
  100% { transform: scale(1); }
}

/* Flare */
.hero-home__flare {
  opacity: 0;
  filter: blur(2.4px);
  animation: flareReveal 2s ease 1s forwards, flareBreathe 4s ease-in-out 3s infinite;
}
.hero-home__flare--soft {
  filter: blur(2.16px);
}

@keyframes flareReveal {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 0.7; transform: scale(1); }
}

@keyframes flareBreathe {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 0.7; transform: scale(1); }
}

/* Table */
.hero-home__table {
  opacity: 0;
  animation: tableAppear 1.2s ease 0.5s forwards;
}

@keyframes tableAppear {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Vase */
.hero-home__vase {
  animation: vaseAppear 3.1s ease 1.5s forwards;
  opacity: 0;
}
.hero-home__vase img {
  height: 76.9vh;
  max-height: 656px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Text animation */
@keyframes heroFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vaseAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-anim {
  opacity: 0;
  animation: heroFadeInDown 0.7s ease forwards;
}

/* ============================================
   V7 reveal system — curtain + accent + focus + word-cascade + cta-rise
   Used on: main hero, defenders section
   ============================================ */

/* Curtain line — wrapper hides overflow, inner slides up from below with slight tilt */
.v7-line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.v7-line-inner {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transform-origin: left bottom;
  opacity: 0;
  animation: v7CurtainUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes v7CurtainUp {
  0%   { transform: translateY(105%) rotate(4deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

/* Accent line — thin gradient stripe growing from 0 to 140px */
.v7-accent-line {
  display: block;
  height: 1px; width: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
  margin: 12px 0 18px;
  animation: v7LineSweep 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes v7LineSweep {
  to { width: 140px; }
}

/* Soft focus — blur + subtle rise */
.v7-soft-focus {
  opacity: 0; transform: translateY(12px);
  filter: blur(8px);
  animation: v7SoftFocus 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes v7SoftFocus {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Word cascade — per-word blur→sharp rise (JS splits into .v7-word) */
.v7-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  animation: v7WordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes v7WordIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* CTA rise — wrap the button to avoid clashing with button's own animations.
   Uses top (not transform) so no persistent stacking context is created —
   that would break backdrop-filter on the child button. */
.v7-cta-rise {
  display: inline-block;
  position: relative;
  opacity: 0; top: 16px;
  animation: v7CtaRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes v7CtaRise {
  to { opacity: 1; top: 0; }
}

/* Defenders section: gate animations behind .is-revealed on the section,
   so they start when scrolled into view (not on page load). */
.defenders-section .v7-line-inner,
.defenders-section .v7-accent-line,
.defenders-section .v7-soft-focus,
.defenders-section .v7-cta-rise {
  animation-play-state: paused;
}
.defenders-section.is-revealed .v7-line-inner,
.defenders-section.is-revealed .v7-accent-line,
.defenders-section.is-revealed .v7-soft-focus,
.defenders-section.is-revealed .v7-cta-rise {
  animation-play-state: running;
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
  .hero--compact {
    min-height: 320px;
  }
  .hero-mobile-photos {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hero--home {
    height: auto !important;
    min-height: auto !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  /* Mobile hero: stacked photos with overlay reveal */
  .hero--home .hero-desktop-only {
    display: none !important;
  }
  .hero--home .hero-mobile-photos {
    order: 3;
    display: block !important;
    position: relative !important;
    width: 100%;
    margin-top: 30px;
  }
  .hero-mobile-bottom {
    width: 100%;
    height: auto;
    display: block;
  }
  .hero-mobile-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 4.3s ease;
  }
  .hero-mobile-top.reveal {
    opacity: 1;
  }
  .hero--home .container {
    position: relative !important;
    order: 1;
    min-height: auto !important;
    padding: 100px 38px 0 !important;
  }
  .hero-home__text {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    padding: 0;
  }
  .hero-home__title {
    color: var(--color-text-strong) !important;
    font-size: 28px;
    gap: 6px;
    margin: 0 0 18px 0 !important;
  }
  .hero-home__production {
    color: var(--color-text-strong) !important;
    font-size: 15px;
    margin: 0 0 10px 0 !important;
  }
  .hero-home__desc {
    color: var(--color-text-light) !important;
    font-size: 13px;
    margin: 0 0 22px 0 !important;
  }
  .hero-home__desc br { display: none; }
  .hero-home__btn {
    background: var(--color-text-strong) !important;
    color: var(--color-text-inverse) !important;
    width: auto !important;
    min-width: 180px !important;
    justify-content: space-between !important;
    font-size: 14px;
    padding: 10px 24px;
  }
  .hero-home__btn {
    font-size: 14px;
    padding: 10px 24px;
  }
  .hero-home__vase {
    display: none !important;
  }
  .hero-home__table {
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .hero-home__title {
    font-size: 24px;
  }
  .hero-home__production {
    font-size: 14px;
  }
  .hero-home__desc {
    font-size: 12px;
  }
}
