/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 var(--space-16);
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow {
  margin-bottom: var(--space-6);
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

/* ---- Photo-background hero ---- */

.hero--photo {
  align-items: flex-start;
  text-align: left;
  padding-left: var(--space-8);
}

.hero--photo .hero-content {
  align-items: flex-start;
  max-width: 620px;
}

.hero--photo h1 {
  max-width: 100%;
}

.hero--photo p {
  margin-left: 0;
  margin-right: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

.hero--photo .hero-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-bg {
    object-position: center 18%;
  }

  .hero--photo {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero--photo .hero-content {
    align-items: center;
  }

  /* Photo now fills the whole hero behind centered text — a scrim keeps that text
     readable regardless of what's underneath, so it switches to white on this variant. */
  .hero--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.45) 0%, rgba(17, 17, 17, 0.8) 100%);
  }

  .hero--photo .hero-content,
  .hero--photo .hero-content p {
    color: #fff;
  }

  .hero--photo .eyebrow {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
  }

  .hero--photo .btn-primary {
    background: #fff;
    color: var(--color-ink);
  }

  .hero--photo .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  max-width: 900px;
}

.hero p {
  margin: var(--space-6) 0 var(--space-8);
  max-width: 560px;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- How I help ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

.service-card-badge {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.service-card h3 {
  font-size: 1.4rem;
}

.service-card p {
  color: var(--color-muted);
  font-size: 14px;
  flex: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink);
}

/* ---- Behavior / persuasion / emotion / trust ---- */

.behavior-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
  position: relative;
}

.behavior-columns::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(247, 244, 236, 0.15);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease-premium);
}

.behavior-columns.is-visible::before {
  transform: scaleX(1);
}

.behavior-column h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--space-3);
}

.behavior-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: rgba(247, 244, 236, 0.6);
  font-size: 14px;
}

/* ---- Case studies ---- */

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* ---- Testimonials ---- */

.testimonials-lead {
  text-align: center;
  margin-bottom: var(--space-12);
}

.testimonials-rating {
  font-size: 1.6rem;
  font-weight: 700;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-border);
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--color-muted);
}

.testimonial-metric {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
}

/* ---- Video testimonials ---- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.video-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-ink);
  cursor: pointer;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.video-caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  color: #fff;
  font-size: 13px;
}

.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.video-modal-backdrop.is-open {
  display: flex;
}

.video-modal-frame {
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: #fff;
  font-size: 28px;
  background: none;
  border: none;
}

@media (max-width: 960px) {
  .services-grid,
  .behavior-columns,
  .case-studies-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
