/* ============================================
   Polished Sections - Background Removed Photos
   Modern, clean sections with simple color backgrounds
   ============================================ */

/* --- Dark Testimonial Section (Speaking Page) --- */
.testimonial-feature {
  background: linear-gradient(135deg, #1b2a4a 0%, #2d3e5f 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.testimonial-feature::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.testimonial-feature__grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-feature__content {
  position: relative;
  z-index: 2;
}

.testimonial-feature__quote {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

.testimonial-feature__quote::before {
  content: '"';
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  margin-right: 0.25rem;
}

.testimonial-feature__attribution {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.testimonial-feature__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.testimonial-feature__image {
  position: relative;
  z-index: 2;
}

.testimonial-feature__image img {
  width: 100%;
  height: auto;
  display: block;
  /* Fade bottom edge to blend with background */
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* --- Light Feature Section (About/Homepage) --- */
.feature-spotlight {
  background: linear-gradient(135deg, #e8f4f3 0%, #d4ebe8 100%);
  padding: 6rem 0;
  position: relative;
}

.feature-spotlight--alt {
  background: linear-gradient(135deg, #f0f4f8 0%, #e3eaf0 100%);
}

.feature-spotlight__grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-spotlight__grid--reverse {
  grid-template-columns: 1fr 400px;
}

.feature-spotlight__image {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(27, 42, 74, 0.08);
}

.feature-spotlight__image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-spotlight__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--heading);
  line-height: 1.2;
}

.feature-spotlight__content .highlight {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.feature-spotlight__content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.feature-spotlight__content .btn {
  margin-top: 1rem;
}

/* --- Homepage Expert Section --- */
.expert-highlight {
  background: linear-gradient(135deg, #2d3e5f 0%, #1b2a4a 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
}

.expert-highlight__grid {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.expert-highlight__content h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.expert-highlight__content .accent-text {
  color: var(--accent);
}

.expert-highlight__list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.expert-highlight__list li {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.expert-highlight__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.25rem;
}

.expert-highlight__image {
  position: relative;
}

.expert-highlight__image img {
  width: 100%;
  height: auto;
  display: block;
  /* Fade bottom edge to blend with background */
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* --- Responsive Design --- */
@media (max-width: 968px) {
  .testimonial-feature__grid,
  .feature-spotlight__grid,
  .expert-highlight__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .feature-spotlight__grid--reverse {
    grid-template-columns: 1fr;
  }

  .testimonial-feature__image,
  .feature-spotlight__image,
  .expert-highlight__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .expert-highlight__list li {
    text-align: left;
  }

  .testimonial-feature {
    padding: 4rem 0;
  }

  .feature-spotlight,
  .expert-highlight {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  .testimonial-feature__quote {
    font-size: 1.25rem;
  }

  .testimonial-feature__image,
  .feature-spotlight__image,
  .expert-highlight__image {
    max-width: 300px;
  }
}

/* --- Engagement Gallery (Speaking Page - Photo Grid) --- */
.engagement-gallery {
  padding: 6rem 0;
}

.engagement-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.engagement-gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.engagement-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.engagement-gallery__item:hover img {
  transform: scale(1.05);
}

.engagement-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, transparent 100%);
  color: white;
  padding: 2rem 1.25rem 1.1rem;
}

.engagement-gallery__caption h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.2rem;
}

.engagement-gallery__caption p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

@media (max-width: 768px) {
  .engagement-gallery__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- Speaking Action Section (Homepage - Patrick on Stage) --- */
.speaking-action {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Static image fallback for mobile / no-video browsers */
  background-image: url('../images/crowd-stage-2.png');
  background-size: cover;
  background-position: center 35%;
}

.speaking-action__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Left-to-right gradient: dark on left (text), photo visible on right */
.speaking-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(0, 20, 50, 0.95) 0%,
      rgba(0, 20, 50, 0.85) 30%,
      rgba(0, 20, 50, 0.50) 55%,
      rgba(0, 20, 50, 0.10) 75%,
      transparent 100%
    );
  z-index: 1;
}

.speaking-action__content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: white;
  max-width: 560px;
  padding: 5rem 3rem 5rem 6rem;
}

.speaking-action__content h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.speaking-action__content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.speaking-action__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem 3rem;
  margin: 1.5rem 0 2.5rem;
}

.speaking-action__stat {
  text-align: center;
}

.speaking-action__stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.speaking-action__stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .speaking-action {
    min-height: 60vh;
    justify-content: center;
  }

  /* Hide video on mobile — static background image used instead */
  .speaking-action__video {
    display: none;
  }

  /* On mobile, text fills full width — switch to bottom-up gradient for readability */
  .speaking-action::before {
    background: linear-gradient(
      to top,
      rgba(0, 20, 50, 0.93) 0%,
      rgba(0, 20, 50, 0.78) 45%,
      rgba(0, 20, 50, 0.40) 100%
    );
  }

  .speaking-action__content {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 100%;
  }

  .speaking-action__stats {
    justify-content: center;
    gap: 1.25rem 2rem;
  }
}

/* --- Meet Patrick Section (Homepage - Headshot + Bio) --- */
.meet-patrick {
  background: #f8f9fb;
  padding: 7rem 0;
}

.meet-patrick__grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.meet-patrick__photo {
  position: relative;
}

.meet-patrick__photo img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(27, 42, 74, 0.14),
    0 4px 16px rgba(27, 42, 74, 0.08);
}

.meet-patrick__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--heading);
  line-height: 1.2;
}

.meet-patrick__content p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.meet-patrick__content .btn {
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .meet-patrick__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .meet-patrick__photo {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* --- Club Highlight Section (Homepage - Full-bleed Photo + Signup) --- */
.club-highlight {
  background: linear-gradient(135deg, #1b2a4a 0%, #0f1f38 100%);
  color: white;
  overflow: hidden;
}

.club-highlight h2,
.club-highlight p {
  color: white;
}

.club-highlight__grid {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 70vh;
}

/* Photo fills the left half edge-to-edge with no padding */
.club-highlight__image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.club-highlight__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Text side gets internal padding */
.club-highlight .newsletter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4.5rem 5rem 5rem;
}

@media (max-width: 900px) {
  .club-highlight__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .club-highlight__image {
    height: 360px;
    min-height: 0;
    position: relative;
  }

  .club-highlight .newsletter {
    padding: 3.5rem 2rem;
  }
}

/* ============================================
   Cutout Sections — Dr. Lucia style
   Large background-removed PNGs on solid
   color backgrounds, bleeding to the edge
   ============================================ */

.cutout-section {
  display: grid;
  grid-template-columns: 1fr 46%;
  min-height: 620px;
  overflow: hidden;
  align-items: stretch;
}

.cutout-section--photo-left {
  grid-template-columns: 42% 1fr;
}

/* Content side */
.cutout-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 6rem;
}

.cutout-section--photo-left .cutout-section__content {
  padding: 5rem 6rem 5rem 3rem;
}

/* Photo side — image bleeds to outer edge and bottom */
.cutout-section__photo {
  position: relative;
  overflow: hidden;
}

.cutout-section__photo img {
  position: absolute;
  top: 0;
  right: 0;
  height: 115%;
  width: auto;
  max-width: none;
  display: block;
}

/* Buttons in cutout sections shouldn't stretch full-width */
.cutout-section__content .btn {
  align-self: flex-start;
}

.cutout-section--photo-left .cutout-section__photo img {
  /* Anchor top so face always shows; bleed to LEFT outer edge */
  top: 0;
  bottom: auto;
  right: auto;
  left: 0;
  right: auto;
  left: 0;
}

/* Bottom fade on photo — ::after overlays image, z-index above it */
.cutout-section__photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  pointer-events: none;
  z-index: 2;
}

.cutout-section--navy .cutout-section__photo::after {
  background: linear-gradient(to top, #162038 0%, transparent 100%);
}

.cutout-section--light .cutout-section__photo::after {
  background: linear-gradient(to top, #f0f4f0 0%, transparent 100%);
}

/* Color variants */
.cutout-section--navy {
  /* Top-to-bottom gradient spans the full section visibly */
  background: linear-gradient(to bottom, #243654 0%, #1b2a4a 45%, #162038 100%);
}

.cutout-section--navy .cutout-section__content h2,
.cutout-section--navy .cutout-section__content p {
  color: white;
}

.cutout-section--navy .cutout-section__content h2 em {
  font-style: italic;
}

.cutout-section--navy .cutout-section__content .accent-text {
  color: var(--accent);
}

.cutout-section--light {
  background: #f0f4f0;
}

/* Credential list inside cutout section */
.cutout-section__list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 2rem;
}

.cutout-section__list li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  padding-left: 1.75rem;
  position: relative;
  color: rgba(255, 255, 255, 0.88);
}

.cutout-section__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Light variant list */
.cutout-section--light .cutout-section__list li {
  color: var(--text);
}

/* At mid-widths, widen the photo column so the portrait isn't face-clipped */
@media (min-width: 901px) and (max-width: 1150px) {
  .cutout-section {
    grid-template-columns: 1fr 50%;
  }
  .cutout-section--photo-left {
    grid-template-columns: 50% 1fr;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .cutout-section,
  .cutout-section--photo-left {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cutout-section__content,
  .cutout-section--photo-left .cutout-section__content {
    padding: 3.5rem 2rem;
    order: 2;
  }

  .cutout-section__photo {
    height: 400px;
    order: 1;
  }

  .cutout-section__photo img {
    height: 100%;
    width: auto;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
  }

  .cutout-section--photo-left .cutout-section__photo img {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }
}
