/* ============================================================
   HERO SECTION - RK-Strechy
   ============================================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

/* Wider hero container on large screens */
#hero .container {
  max-width: 1440px;
  padding: 0 48px;
}

@media (min-width: 1400px) {
  #hero .container {
    padding: 0 80px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 26, 26, 0.93) 0%,
    rgba(26, 26, 26, 0.72) 50%,
    rgba(26, 26, 26, 0.18) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: 72px;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 60px;
}

/* ---- LEFT CONTENT ---- */
.hero-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--copper);
}

.hero-title {
  font-size: clamp(3.2rem, 6.2vw, 6rem);
  color: var(--white);
  margin-bottom: 28px;
}

.hero-title .accent {
  color: var(--copper);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(245, 242, 238, 0.78);
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
}

.hero-trust-num {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  letter-spacing: 2px;
  color: var(--copper);
  line-height: 1;
}

.hero-trust-label {
  font-size: 0.88rem;
  color: var(--light-dim);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ---- LEFT FEATURE CARDS ---- */
.hero-left {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
}

.hero-card-wrap {
  opacity: 0;
  animation: cardSlideIn 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-card-wrap-1 { animation-delay: 1.1s; }
.hero-card-wrap-2 { animation-delay: 1.35s; }
.hero-card-wrap-3 { animation-delay: 1.6s; }
.hero-card-wrap-4 { animation-delay: 1.85s; }

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-left: 4px solid var(--copper);
  padding: 22px 28px;
  animation: cardBob 5s ease-in-out infinite;
  will-change: transform;
}

.hero-card-wrap-1 .hero-card { animation-delay: 1.9s; }
.hero-card-wrap-2 .hero-card { animation-delay: 2.6s; }
.hero-card-wrap-3 .hero-card { animation-delay: 3.3s; }
.hero-card-wrap-4 .hero-card { animation-delay: 4.0s; }

@keyframes cardBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

.hero-card-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.12);
  color: var(--copper);
}

.hero-card-text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.hero-card-text span {
  font-size: 0.84rem;
  color: var(--light-dim);
  line-height: 1.4;
}

/* ---- RIGHT SVG ILLUSTRATION ---- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.roof-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* SVG layer animations */
.roof-layer {
  opacity: 0;
}

.roof-layer-1 { animation: layerIn 0.6s ease 1.0s forwards; }
.roof-layer-2 { animation: layerIn 0.6s ease 1.2s forwards; }
.roof-layer-3 { animation: layerIn 0.6s ease 1.4s forwards; }
.roof-layer-4 { animation: layerIn 0.6s ease 1.6s forwards; }
.roof-layer-5 { animation: layerIn 0.6s ease 1.8s forwards; }
.roof-label   { animation: layerIn 0.5s ease 2.0s forwards; }

@keyframes layerIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SCROLL INDICATOR ---- */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.4s forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-dim);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--light-dim);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 6px;
  background: var(--copper);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 120px;
  }

  .hero-content {
    grid-column: 1;
  }

  .hero-visual {
    display: none;
  }

  .hero-left {
    display: none;
  }

  .hero-trust {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-trust-item {
    min-width: 45%;
  }
}
