/* ============================================
   Terra Lanna TRAVEL — HERO CSS
   Diagonal split 4-section homepage
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* --- EACH QUADRANT --- */
.hero-quad {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.hero-quad::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--quad-color, rgba(0,0,0,0.6));
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.hero-quad:hover::before {
  opacity: 0.3;
}

/* Background emoji/illustration layer */
.hero-quad-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  opacity: 0.12;
  transform: scale(1);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  z-index: 0;
  user-select: none;
}

.hero-quad:hover .hero-quad-bg {
  transform: scale(1.1);
  opacity: 0.18;
}

/* Content */
.hero-quad-content {
  position: relative;
  z-index: 2;
  transition: transform var(--transition);
}

.hero-quad:hover .hero-quad-content {
  transform: translateY(-4px);
}

.hero-quad-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.hero-quad-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero-quad-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(240, 240, 255, 0.8);
  margin-top: 8px;
  max-width: 260px;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
}

.hero-quad-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  margin-top: 12px;
  font-size: 1rem;
  color: white;
  transition: all var(--transition);
  opacity: 0;
  transform: translateX(-8px);
}

.hero-quad:hover .hero-quad-arrow {
  opacity: 1;
  transform: translateX(0);
  border-color: white;
}

/* --- DIAGONAL BORDERS --- */
/* Using clip-path to add subtle diagonal cuts between quadrants */
.hero-divider-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-blue-glow) 20%,
    var(--color-red) 50%,
    var(--color-gold) 80%,
    transparent 100%
  );
  z-index: 10;
  transform: translateY(-50%) skewX(-15deg);
  pointer-events: none;
}

.hero-divider-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--color-gold) 20%,
    var(--color-red) 50%,
    var(--color-blue-glow) 80%,
    transparent 100%
  );
  z-index: 10;
  transform: translateX(-50%) skewY(-8deg);
  pointer-events: none;
}

/* --- QUAD COLOR THEMES --- */
.hero-quad--farm {
  --quad-color: linear-gradient(135deg, rgba(0,40,0,0.75), rgba(0,87,0,0.55));
  background: #0d1f0d;
}

.hero-quad--tours {
  --quad-color: linear-gradient(135deg, rgba(0,20,80,0.75), rgba(0,57,200,0.55));
  background: #0a0f2a;
}

.hero-quad--curated {
  --quad-color: linear-gradient(135deg, rgba(80,10,0,0.75), rgba(160,20,0,0.55));
  background: #1a0808;
}

.hero-quad--blog {
  --quad-color: linear-gradient(135deg, rgba(60,40,0,0.75), rgba(100,70,0,0.55));
  background: #1a1200;
}

/* --- ACCENT LINES ON HOVER --- */
.hero-quad::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0px solid transparent;
  transition: all var(--transition);
  z-index: 3;
  pointer-events: none;
}

.hero-quad--farm::after   { border-color: rgba(0, 200, 80, 0.4); }
.hero-quad--tours::after  { border-color: rgba(0, 128, 255, 0.4); }
.hero-quad--curated::after{ border-color: rgba(255, 30, 30, 0.4); }
.hero-quad--blog::after   { border-color: rgba(255, 215, 0, 0.4); }

.hero-quad:hover::after {
  border-width: 2px;
}

/* --- HERO INTRO OVERLAY (shown on first load) --- */
.hero-intro {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  animation: heroIntroOut 1s ease 2.5s forwards;
}

.hero-intro-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gold) 50%, var(--color-blue-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTitleIn 0.8s ease 0.3s both;
}

.hero-intro-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(240,240,255,0.75);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 12px;
  animation: heroTitleIn 0.8s ease 0.6s both;
}

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroIntroOut {
  from { opacity: 1; pointer-events: none; }
  to   { opacity: 0; pointer-events: none; }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    height: auto;
    max-height: none;
  }

  .hero-quad {
    min-height: 200px;
    padding: 24px;
  }

  .hero-intro-title { font-size: 2.5rem; }

  .hero-divider-h,
  .hero-divider-v { display: none; }
}
