/*
Theme Name: Salient Child
Template: salient
Version: 1.0
*/

/* =========================
   MTH HERO — FULL BLEED SIDES
   Center content in 1600px
   (Nav/Footer are GLOBAL - not here)
   ========================= */

:root{
  --mth-container: 1600px;
  --mth-gutter: 32px;
  --mth-hero-minh: 820px; /* match your Figma hero height */
  --mth-radius: 22px;

  --mth-text: #1e1e1e;
  --mth-muted: rgba(30,30,30,.55);

  --mth-bg: #ffffff;
  --mth-grid: rgba(0,0,0,.04);
}

.mth-hero{
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  right: 50%;
  margin-right: -50vw;
}

/* subtle background grid */
.mth-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(to right, var(--mth-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--mth-grid) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .55;
  pointer-events:none;
}

.mth-hero__grid{
  position: relative;
  z-index: 1;
  display: grid;

  /* Full-bleed images left+right, center zone is container */
  grid-template-columns: 1fr minmax(0, var(--mth-container)) 1fr;

  min-height: var(--mth-hero-minh);
}

/* left/right full-bleed image blocks */
.mth-hero__left,
.mth-hero__right{
  position: relative;
  min-height: var(--mth-hero-minh);
}

.mth-hero__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Center column (the actual 1600px zone) */
.mth-hero__center{
  position: relative;
  display: flex;
}

.mth-hero__container{
  width: 100%;
  padding: clamp(28px, 3vw, 56px) var(--mth-gutter);
  display: grid;
  align-content: center;
  gap: 28px;
}

/* Title */
.mth-hero__title{
  margin: 0;
  color: var(--mth-text);
  line-height: .94;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-size: clamp(44px, 4.2vw, 92px);
}

.mth-hero__title-muted{
  color: var(--mth-muted);
  font-style: italic;
  font-weight: 500;
  margin-right: 6px;
}

/* Quote */
.mth-hero__quote{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  max-width: 680px;
}

.mth-hero__quote-mark{
  font-size: 54px;
  line-height: 1;
  color: var(--mth-muted);
  transform: translateY(-6px);
}

.mth-hero__quote-text{
  margin: 0;
  color: rgba(30,30,30,.78);
  font-size: 16px;
  line-height: 1.6;
}

.mth-hero__quote-sign{
  margin-top: 18px;
  display: grid;
  gap: 4px;
  color: rgba(30,30,30,.72);
  font-size: 12px;
}

.mth-hero__name{
  color: rgba(30,30,30,.9);
}

/* Socials (vertical desktop) */
.mth-hero__socials{
  position: absolute;
  right: var(--mth-gutter);
  bottom: clamp(20px, 3vw, 42px);
  display: grid;
  gap: 12px;
}

.mth-hero__social{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;

  color: rgba(0,0,0,.70);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(8px);

  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.mth-hero__social:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.12);
}

/* ===== Animation base (JS toggles .is-visible) ===== */
.mth-hero .mth-anim{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.mth-hero.is-visible .mth-anim{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1440px){
  :root{ --mth-hero-minh: 760px; }
}

@media (max-width: 1024px){
  .mth-hero__grid{
    grid-template-columns: 1fr;
    grid-template-rows: 420px auto 360px;
    min-height: unset;
  }

  .mth-hero__left,
  .mth-hero__right{
    min-height: unset;
  }

  .mth-hero__container{
    padding: 42px var(--mth-gutter);
  }

  .mth-hero__socials{
    position: static;
    display: flex;
    gap: 12px;
    margin-top: 10px;
  }
}

@media (max-width: 560px){
  :root{ --mth-gutter: 18px; }

  .mth-hero__grid{
    grid-template-rows: 340px auto 280px;
  }

  .mth-hero__quote{
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }

  .mth-hero__quote-mark{
    font-size: 44px;
  }
}
