/* hero-premium.css - Massimple 2026 Premium Hero Section */

:root {
  --hero-bg: #43454A;
  --hero-secondary: #3C4250;
  --hero-accent: #D9874A;
  --hero-text: #dedede;
  --hero-subtle-lines: rgba(222, 222, 222, 0.12);
  --hero-subtle-orange: rgba(217, 135, 74, 0.30);
}

.hero-premium-container {
  background-color: var(--hero-bg);
  min-height: 80vh; /* Roomier premium presence */
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -120px; /* Account for fixed header parent space */
  padding-top: 220px; /* 120px header + 100px premium padding */
  padding-bottom: 140px; /* Matching standard section paddings */
  z-index: 10;
}

/* General Layout */
.hero-premium-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  position: relative;
  z-index: 2;
}

.hero-content-left {
  flex: 0 0 100%; /* Occupy full width for centering */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centering the internal content flexboxes */
  text-align: center; /* Centering text strictly */
}

.hero-visual-right {
  display: none; /* Remove empty layout column for cleaner centering space */
}
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Elements */
.hero-eyebrow {
  font-family: 'Saira', sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hero-accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
  display: block;
  text-align: center; /* Center aligned */
}

.hero-main-claim {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important; 
  font-size: clamp(3.2rem, 11vw, 4rem);
  letter-spacing: 0em; 
  text-transform: uppercase;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.line-wrap {
  display: block;
  overflow: hidden;
  margin: -0.1em 0 -0.05em 0 !important; /* Negative top margin compensates for padding */
  padding: 0.15em 0 0.05em 0 !important; /* Top padding prevents Ñ clipping */
}

.line-inner {
  display: block;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 400 !important; /* Default to lighter weight for lines 2 and 3 */
  line-height: 1.05em !important;

  /* ⚡ MOVED PERSISTENT SHINE DIRECTLY TO TEXT SPAN FOR CERTAINTY */
  color: #dedede; /* Fallback */
  background: linear-gradient(to right, #dedede 20%, #ffffff 40%, #D9874A 50%, #dedede 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textRevealShine 8s linear infinite;
}

@keyframes textRevealShine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.line-inner:hover {
  filter: drop-shadow(0 0 8px rgba(217, 135, 74, 0.4));
  transition: filter 0.3s ease;
}

/* Explicitly make first line heavier AND 10% larger as requested */
.line-wrap:first-child .line-inner {
  font-weight: 700 !important;
  font-size: 1.1em !important;
}

/* Shrink secondary lines by 20% for supreme hierarchical contrast */
.line-wrap:not(:first-child) .line-inner {
  font-size: 0.8em !important;
}

/* Add separation spacer (~0.5cm) above and below the first line as requested */
.line-wrap:first-child {
  margin-top: 0.35em !important;
  margin-bottom: 0.35em !important;
}

/* Phrase Loop Section */
.hero-phrase-wrapper {
  margin-top: 2.0rem;
  margin-bottom: 2.5rem;
  height: 5.0rem; /* Increased generously */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Center current active phrase horizontally */
  overflow: hidden; /* Keep hidden to mask horizontal entry */
  width: 100%; 
  max-width: 800px;
}

.phrase-item {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the icon and text inside */
  gap: 20px;
  font-family: 'Saira', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem); /* Reduced 30% for refined elegance */
  font-weight: 600;
  color: var(--hero-text);
  line-height: 1.3; /* Added to fix Ñ cutoff */
  visibility: hidden; 
  opacity: 0; 
  white-space: nowrap;
}

.phrase-icon-container {
  width: 32px; /* Increased size significantly for high visibility */
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-accent);
}

.phrase-icon-container i {
  font-size: 1.6rem; /* Chunky, readable font-awesome icons */
}

/* Static Mini SVG Icons */
.phrase-icon {
  fill: currentColor;
  width: 100%;
  height: 100%;
}

/* CTAs */
.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center; /* Center the action buttons */
}

.btn-premium {
  font-family: 'Saira', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 36px;
  border-radius: 30px; /* Changed from 4px to 30px to match site-wide design */
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-premium-solid {
  background-color: var(--hero-accent);
  color: var(--hero-bg);
  border: none;
}
.btn-premium-solid:hover {
  background-color: #ef9b5d;
  transform: translateY(-2px);
}

.btn-premium-outline {
  background-color: transparent;
  color: var(--hero-text);
  border: 1px solid rgba(222, 222, 222, 0.25);
}
.btn-premium-outline:hover {
  border-color: var(--hero-accent);
  background: rgba(217, 135, 74, 0.05);
  color: var(--hero-accent);
}

/* WebGL Procedural Background */
.webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: var(--hero-bg); /* fallback */
}

#hero-webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.webgl-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Tech Labels */
.tech-labels-group {
  position: absolute;
  bottom: 40px;
  left: 30px;
  display: flex;
  gap: 40px;
  z-index: 3;
}

.tech-label-item {
  font-family: 'Saira', sans-serif;
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(222, 222, 222, 0.65);
}

.tech-label-item strong {
  color: var(--hero-accent);
  font-weight: 600;
  margin-left: 5px;
}

/* Responsive Queries */

@media (max-width: 1200px) {
  .hero-main-claim {
    font-size: clamp(2.8rem, 6vw, 6rem);
  }
}

@media (max-width: 992px) {
  .hero-premium-inner {
    flex-direction: column;
  }
  .hero-content-left {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    z-index: 3;
  }
  .hero-visual-right {
    display: none;
  }
  .tech-labels-group {
    bottom: 20px;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 768px) {
  .hero-premium-container {
    min-height: 100vh;
    padding-top: 170px; /* Roomier mobile header clearance */
    padding-bottom: 120px;
  }
  .hero-main-claim {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    line-height: 0.92;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-premium {
    width: 100%;
  }
  .webgl-container {
    opacity: 0.6; /* Subtler on mobile to not distract from text */
  }
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-cta-group, .tech-labels-group, .webgl-container {
    opacity: 1 !important;
  }
  .line-inner {
    transform: translateY(0) !important;
  }
  .phrase-item:first-child {
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  .phrase-item:not(:first-child) {
    display: none;
  }
  .shape-element {
    animation: none !important;
    transform: none !important;
  }
}
