/*
 Theme Name:  prolifehc-child
 Template:    prolifehc
 Version:     1.2.1
 Description: Full-bleed hero, focus fix (no head edits). Keeps existing custom blocks.
*/

/* ===== Existing custom blocks you shared (kept intact) ===== */

/* (from parent/custom CSS)
Theme Name:  prolifehc
Author:      vit
*/

.custom-hero-block {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    top: -80px;
    z-index: 2;
}
.custom-hero-overlay {
    display: flex;
    justify-content: center;
    gap: 500px;
    padding: 32px 0 32px 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    backdrop-filter: blur(2px);
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    top: 60px;
}
.custom-hero-btn {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 16px 38px;
    border-radius: 14px;
    border: none;
    outline: none;
    text-decoration: none;
    background: #fd9736;
    color: #fff;
    transition: background 0.2s;
    box-shadow: 0 1px 8px rgba(253,151,54,0.07);
    letter-spacing: 0.02em;
    display: inline-block;
}
.custom-hero-btn.jobs {
    background: #1e90a4;
}
.custom-hero-btn:hover {
    background: #e9801c;
    color: #fff;
}
/* === End Custom Hero Block === */


.hero__buttons {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;   /* ← слева на ПК */
    align-items: center;
    gap: 90px !important; /* большое расстояние между кнопками */
    background: rgba(255,255,255,0.88);
    border-radius: 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13);
    padding: 38px 0 38px 0;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    top: -248px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.hero__button {
    display: flex !important;  /* Важно для корректного gap */
    justify-content: center;
    align-items: center;
    font-size: 1.28rem;
    font-weight: 700;
    padding: 19px 54px;
    border-radius: 16px;
    border: none;
    text-decoration: none;
    background: #fd9736;
    color: #fff;
    transition: background 0.2s;
    box-shadow: 0 3px 18px rgba(253,151,54,0.13);
    letter-spacing: 0.02em;
    margin: 0 !important;   /* Убираем margin, чтобы gap работал */
}
.hero__button + .hero__button {
    background: #fd9736;
}
.hero__button:hover {
    background: #e9801c;
    color: #fff;
}

/* === Mobile adaptive styles === */
@media (max-width: 600px) {
  .hero__buttons {
    justify-content: center;    /* ← по центру на мобильных */
    max-width: 98vw;
    padding: 16px 0;
    gap: 12px !important;
    border-radius: 18px;
    top: -18px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__button {
    font-size: 1rem;
    padding: 12px 12px;
    border-radius: 10px;
    min-width: 110px;
  }
}

/* === Blog CTA (isolated copy of hero buttons) === */
body.blog .custom-hero-block{ display:none; }

body.blog .blog-hero-cta{
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 1200px;
}

body.blog .blog-hero-buttons{
  display: flex !important;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 90px !important;
  background: rgba(255,255,255,0.88);
  border-radius: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  padding: 38px 0;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  top: 0;
  backdrop-filter: blur(5px);
}

body.blog .blog-hero-button{
  display: flex !important;
  justify-content: center;
  align-items: center;
  font-size: 1.28rem;
  font-weight: 700;
  padding: 19px 54px;
  border-radius: 16px;
  border: none;
  text-decoration: none;
  background: #fd9736;
  color: #fff;
  transition: background .2s;
  box-shadow: 0 3px 18px rgba(253,151,54,0.13);
  letter-spacing: .02em;
  margin: 0 !important;
}
body.blog .blog-hero-button:hover{ background:#e9801c; color:#fff; }

@media (max-width: 600px){
  body.blog .blog-hero-buttons{
    justify-content: center;
    max-width: 98vw;
    padding: 16px 0;
    gap: 12px !important;
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
  }
  body.blog .blog-hero-button{
    font-size: 1rem;
    padding: 12px 12px;
    border-radius: 10px;
    min-width: 110px;
  }
}

/* ===== NEW: Full-bleed hero + focus fix (no need to touch head.php) ===== */
body.home .hero,
body.home .hero.hero-index{
  position: relative !important;
  z-index: 0;
  margin: 0 !important;
  padding: 0 !important;

  /* Full-bleed across viewport */
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;

  /* Height "above the fold" */
  height: min(86vh, 820px) !important;

  /* Ensure cover + correct focus so faces aren't cropped */
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: 50% 12% !important;  /* 12% from top to avoid cutting heads */
}

/* Disable potential theme overlays over hero */
body.home .hero::before,
body.home .hero::after{
  content: none !important;
}

/* Mobile tweaks */
@media (max-width: 1024px){
  body.home .hero,
  body.home .hero.hero-index{
    background-position: 50% 14% !important;
  }
}
@media (max-width: 767.98px){
  body.home .hero,
  body.home .hero.hero-index{
    height: 72vh !important;
    background-position: 50% 12% !important;
  }
}

/* Safety clamps for positioned panels so they don't fly out if hero height changes */
body.home .custom-hero-block{
  top: max(-80px, -12vh);
}
body.home .hero__buttons{
  top: clamp(-180px, -28vh, -18px);
}