/* ============================================
   Full-Width Hero Design - Dr. Lucia Style
   Person prominently featured with overlaid text
   ============================================ */

.hero--home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  /* Full couch photo — Patrick is the product */
  background-image: url('../images/couch-4-widescreen.png');
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
}

/* Text-readability gradient: dark at bottom for text, clear at top for face */
.hero--home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.60) 28%,
      rgba(0, 0, 0, 0.15) 55%,
      transparent 72%
    ),
    linear-gradient(to right,
      rgba(0, 0, 0, 0.30) 0%,
      transparent 45%
    );
  z-index: 1;
  pointer-events: none;
}

/* Warm amber tint — brings warmth to Patrick's face and the whole image */
.hero--home::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 190, 80, 0.10) 0%,
    rgba(255, 160, 50, 0.06) 50%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Text anchored to bottom-left — face stays clear above */
.hero--home .hero__grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 100vh;
  width: 100%;
  padding: 0 4rem 5rem;
}

/* No cutout needed — Patrick is in the full photo */
.hero--home .hero__image {
  display: none;
}

/* Text content — left-aligned at the bottom */
.hero--home .hero__content {
  text-align: left;
  max-width: 580px;
  position: relative;
  z-index: 3;
}

/* Name eyebrow above headline */
.hero--home .hero__eyebrow {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  animation: slideUpFade 1s ease-out 0.1s both;
}

/* Large, dominant headline */
.hero--home h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 16px 48px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.03em;
  animation: slideUpFade 1s ease-out 0.2s both;
}

/* Sub-headline tagline */
.hero--home .hero__tagline {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
  animation: slideUpFade 1s ease-out 0.4s both;
}

/* Description paragraph */
.hero--home .hero__description {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 560px;
  animation: slideUpFade 1s ease-out 0.5s both;
}

/* Credentials styling for overlay */
.hero--home .hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
  animation: slideUpFade 1s ease-out 0.6s both;
}

.hero--home .hero__credential-tag {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero--home .hero__credential-tag:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Triangle button layout: primary full-width on top, 2 secondary below */
.hero--home .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 1rem;
  max-width: 480px;
  animation: slideUpFade 1s ease-out 0.8s both;
}

/* Primary CTA takes full row */
.hero--home .btn-group .btn:first-child {
  flex: 0 0 100%;
}

/* Secondary buttons share the row below */
.hero--home .btn-group .btn:not(:first-child) {
  flex: 1;
  min-width: 0;
}

/* Book Patrick button — teal so it pops on dark background */
.hero--home .btn--primary {
  background: var(--accent);
  color: white;
  box-shadow:
    0 4px 20px rgba(42, 157, 143, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero--home .btn--primary:hover {
  background: #228d80;
  box-shadow:
    0 8px 32px rgba(42, 157, 143, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.hero--home .btn--primary:active {
  transform: translateY(-1px) scale(0.99);
}

.hero--home .btn--secondary {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero--home .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.hero--home .btn--secondary:active {
  transform: translateY(-1px) scale(0.99);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero--home {
    /* Center on Patrick — same as desktop; 'right' was showing empty ceiling */
    background-position: center 22%;
    min-height: 85vh;
  }

  .hero--home .hero__grid {
    min-height: 85vh;
    padding: 0 1.5rem 3rem;
  }

  .hero--home h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero--home .hero__tagline {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  .hero--home .btn-group {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero--home {
    min-height: 80vh;
  }

  .hero--home .hero__grid {
    min-height: 80vh;
  }

  .hero--home h1 {
    font-size: 2.25rem;
  }

  .hero--home .hero__tagline {
    font-size: 1.1rem;
  }

  .hero--home .btn-group .btn:not(:first-child) {
    flex: 0 0 100%;
  }
}

/* ============================================
   Hero Animations
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero--home .hero__eyebrow,
  .hero--home h1,
  .hero--home .hero__tagline,
  .hero--home .hero__description,
  .hero--home .hero__image img,
  .hero--home .btn-group {
    animation: none;
  }

  .hero--home .btn--primary:hover,
  .hero--home .btn--secondary:hover {
    transform: none;
  }

  .video-ambient video {
    display: none;
  }
}

/* ============================================
   Video Ambient Section
   Atmospheric loop with white overlay
   ============================================ */

.video-ambient {
  position: relative;
  height: 50vh;
  min-height: 280px;
  overflow: hidden;
}

.video-ambient video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.6) brightness(0.85);
}

.video-ambient__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
}

/* Dark overlay variant for workshop/speaking video — heavier to mask AI-generated footage */
.video-ambient__overlay--dark {
  background: rgba(15, 25, 50, 0.72);
}

/* Text label overlay for workshop video */
.video-ambient__label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.video-ambient__label p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0.5rem 0 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Taller for workshop video on speaking page */
.video-ambient--dark {
  height: 55vh;
  min-height: 340px;
}

@media (max-width: 768px) {
  .video-ambient {
    height: 35vh;
  }

  .video-ambient--dark {
    height: 45vh;
  }
}

/* ============================================
   Speaking Page Hero - Patrick Lynch Pic25
   Full-width hero with professional image
   ============================================ */

.hero--speaking {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background-image: url('../images/crowd-stage-1.png');
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}

/* Rich gradient overlay for text readability */
.hero--speaking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 31, 63, 0.88) 0%,
    rgba(27, 42, 74, 0.65) 40%,
    rgba(42, 157, 143, 0.45) 70%,
    rgba(0, 31, 63, 0.8) 100%
  );
  z-index: 1;
  animation: fadeIn 0.8s ease-out;
}

/* Subtle vignette for depth */
.hero--speaking::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Content container - centered and overlaid */
.hero--speaking .hero__grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
  gap: 0;
}

/* Center and style the content */
.hero--speaking .hero__content {
  max-width: 100%;
  text-align: center;
}

/* Large, impactful headline */
.hero--speaking h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 16px 48px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.025em;
  animation: slideUpFade 1s ease-out 0.2s both;
}

/* Prominent tagline */
.hero--speaking .hero__tagline {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
  animation: slideUpFade 1s ease-out 0.4s both;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Button group styling */
.hero--speaking .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  animation: slideUpFade 1s ease-out 0.6s both;
}

/* Enhanced button styling */
.hero--speaking .btn--primary {
  background: var(--primary);
  color: white;
  box-shadow:
    0 4px 20px rgba(0, 123, 255, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero--speaking .btn--primary:hover {
  background: var(--primary-dark);
  box-shadow:
    0 8px 32px rgba(0, 123, 255, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.hero--speaking .btn--primary:active {
  transform: translateY(-1px) scale(0.99);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero--speaking {
    min-height: 100vh;
    background-position: 75% 18%;
    /* Fade bottom edge to blend with content below */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  }

  .hero--speaking h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .hero--speaking .hero__tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
  }

  .hero--speaking .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .hero--speaking .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero--speaking h1 {
    font-size: 2rem;
  }

  .hero--speaking .hero__tagline {
    font-size: 1.1rem;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero--speaking::before,
  .hero--speaking h1,
  .hero--speaking .hero__tagline,
  .hero--speaking .btn-group {
    animation: none;
  }

  .hero--speaking .btn--primary:hover {
    transform: none;
  }
}
