/*===========================================
  PALAVER HOME — Cinematic Landing Page
  Scoped to index.html only
===========================================*/

/* ─── HERO SECTION ─── */
.home-hero {
  position: relative;
  height: 100vh;
  /* Removed min-height to allow true 100vh on wide short screens */
  overflow: hidden;
  background-color: var(--primary-color);
}

/* Background layer — cycles via JS */
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(198, 167, 94, 0.06), transparent 60%),
    linear-gradient(to bottom, rgba(7, 7, 17, 0.15), rgba(7, 7, 17, 0.75)),
    var(--hero-bg-image, url('../images/bg13.svg'));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: opacity 1.8s ease-in-out;
}

/* Next-image crossfade layer */
.home-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(198, 167, 94, 0.06), transparent 60%),
    linear-gradient(to bottom, rgba(7, 7, 17, 0.15), rgba(7, 7, 17, 0.75)),
    var(--hero-next-image, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  z-index: 0;
}

.home-hero-bg.hero-transitioning::before {
  opacity: 1;
}

/* Organic grain/noise texture overlay for depth */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.012) 0%,
    transparent 0.5%
  );
  pointer-events: none;
}

/* ─── HERO SLIDES ─── */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5vw;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s 1.2s;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
    visibility 0s 0s;
  pointer-events: auto;
}

/* Headline — dramatic, stacked vertically */
.hero-headline {
  font-family: var(--display-font-family);
  font-size: clamp(4rem, 10vw, 12rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
  position: relative;
  will-change: transform, opacity;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Bottom content: description + CTA, aligned right */
.hero-bottom {
  position: absolute;
  bottom: 8vh;
  right: 5vw;
  text-align: right;
  max-width: 420px;
  z-index: 8;
}

.hero-manifesto {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-bottom .btn.custom-btn {
  font-size: 9px;
  font-weight: 700;
  padding: 10px 28px;
  letter-spacing: 0.25em;
  border-radius: 30px;
}

/* Entrance animation for slide content */
.hero-slide.active .hero-headline {
  animation: heroContentUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide.active .hero-manifesto {
  animation: heroContentUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-slide.active .hero-bottom .btn {
  animation: heroContentUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

/* Reset state when slide exits */
.hero-slide:not(.active) .hero-headline,
.hero-slide:not(.active) .hero-manifesto,
.hero-slide:not(.active) .hero-bottom .btn {
  opacity: 0;
  transform: translateY(40px);
}







/* ─── HERO WAVE (inside hero, overlays the image) ─── */
.home-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 80px; /* Keep wave thin so hero image fills viewport */
  line-height: 0;
  transform: translateY(1px); /* Prevent sub-pixel gaps */
}


/* ─── BODY SECTION ─── */
.home-body {
  background-color: var(--white-color);
  padding: 80px 0 60px;
  min-height: 20vh;
}

/* Cards container */
.home-cards-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

/* Generic card base — solid dark background, no image */
.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  text-decoration: none;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 36px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  border-color: rgba(184, 155, 94, 0.15);
}

/* Card title */
.home-card h3 {
  font-family: 'High Tide', var(--heading-font-family);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px 0;
}

/* Card description */
.home-card-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 28px 0;
  max-width: 480px;
}

/* Card subtitle label */
.home-card-subtitle {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-muted);
  text-transform: uppercase;
  margin: 0 0 8px 0;
  opacity: 0.7;
}

/* ─── CARD SIZES ─── */

/* WHAT WE DO — larger card, no background, like normal text */
.home-card--primary {
  flex: 3;
  background: transparent;
  border: none;
  padding: 40px 0;
}

.home-card--primary:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.home-card--primary h3 {
  color: var(--p-color);
}

.home-card--primary .home-card-description {
  color: var(--p-color);
  opacity: 0.75;
}

/* EXPERIENCE — smaller card (roughly 40% of row) */
.home-card--secondary {
  flex: 2;
}

/* ─── MINI CARDS GRID (EXPERIENCE) ─── */
.home-card-grid-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.exp-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03); /* Rich, dark surface */
  text-decoration: none;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-medium);
  transition: all 0.35s ease;
}

.exp-mini-card:hover {
  background: rgba(184, 155, 94, 0.08);
  border-color: rgba(184, 155, 94, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.exp-mini-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(184, 155, 94, 0.15);
  color: var(--gold-deep);
  font-size: 1.15rem;
  transition: all 0.35s ease;
}

.exp-mini-card:hover .exp-mini-card-icon {
  background: var(--gold-deep);
  color: #fff;
}

.exp-mini-card-text {
  display: flex;
  flex-direction: column;
}

.exp-mini-card-text h4 {
  font-family: var(--heading-font-family);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 2px 0;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.exp-mini-card-text span {
  font-family: var(--body-font-family);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  transition: color 0.35s ease;
}

.exp-mini-card:hover .exp-mini-card-text span {
  color: var(--gold-muted);
}

/* Experience card CTA button */
.home-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--gold-muted), var(--gold-deep));
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--border-radius-large);
  transition: all 0.35s ease;
  margin-top: auto;
  align-self: flex-start;
}

.home-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 155, 94, 0.3);
  color: var(--primary-color);
}


/* ─── COMPACT FOOTER OVERRIDE ─── */
.home-footer-compact .site-footer {
  padding-top: 20px;
  padding-bottom: 10px;
}

.home-footer-compact .site-footer .row {
  align-items: center;
}

.home-footer-compact .site-footer svg {
  display: none;
}


/* ─── MINIMAL NAVBAR FOR HOME ─── */
.home-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: 20px 0;
  transition: background 0.4s ease;
}

.home-navbar .navbar-brand-image {
  height: 36px;
  width: auto;
}

.home-navbar .navbar-nav {
  gap: 0;
}

.home-navbar .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.home-navbar .nav-link:hover,
.home-navbar .nav-link.active {
  color: #fff !important;
}

.home-navbar .dropdown-toggle::after {
  display: none;
}

.home-navbar .dropdown-menu::before,
.home-navbar .dropdown-menu::after {
  display: none !important;
}

.home-navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 0;
  margin-top: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.home-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.home-navbar .dropdown-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.home-navbar .navbar-toggler {
  border: none;
  padding: 6px;
  outline: none;
  box-shadow: none;
  position: relative;
  width: 28px;
  height: 22px;
}

.home-navbar .navbar-toggler:focus {
  box-shadow: none;
}

.home-navbar .navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  display: block;
  transition: all 0.3s ease;
}

.home-navbar .navbar-toggler-icon::before,
.home-navbar .navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.home-navbar .navbar-toggler-icon::before {
  top: -7px;
}

.home-navbar .navbar-toggler-icon::after {
  top: 7px;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
  .home-hero {
    height: 100vh;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }


  .hero-slide {
    padding: 0 6vw;
  }

  .hero-bottom {
    bottom: 8vh;
    right: 5vw;
    max-width: 340px;
  }

  .home-cards-row {
    flex-direction: column;
  }

  .home-card--primary,
  .home-card--secondary {
    flex: none;
  }

  .home-navbar .collapse,
  .home-navbar .collapsing {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: auto;
    min-width: 180px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    border-radius: 0;
    margin-top: 4px;
    box-shadow: none;
  }

  .home-navbar .dropdown-menu {
    margin-top: 0;
    position: relative !important;
    transform: none !important;
    right: 0;
  }

  .home-navbar .nav-link {
    display: none;
  }

  .home-navbar .dropdown-menu.show,
  .home-navbar .dropdown-menu {
    display: block;
  }
}

@media (max-width: 575px) {
  .home-hero {
    height: 100vh;
  }

  .hero-headline {
    font-size: clamp(3rem, 16vw, 5.5rem);
  }

  .hero-slide {
    padding: 0 5vw;
    padding-bottom: 20vh;
  }

  .hero-bottom {
    bottom: 14vh;
    right: 5vw;
    max-width: 260px;
  }

  .hero-manifesto {
    font-size: 0.75rem;
    line-height: 1.7;
  }

  .home-card {
    padding: 28px 24px;
  }

  .home-card-grid-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exp-mini-card {
    padding: 10px 14px;
  }
}
