/* Ask Beata — Custom Styles
   Brand: Warm sophistication, wellness authority, global connector
   Palette: #1A1A1A primary, #C9A882 gold accent, #FDFBF9 warm white, #F5F2EE tertiary
*/

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #C9A882;
  color: #1A1A1A;
}

/* ─── HERO SECTION — Photo-text overlap composition ─── */
.hero-section {
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: -70px !important; /* Pull up under the sticky header */
  padding-top: 0 !important;
}

.hero-inner {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-text-layer {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding-top: calc(70px + 6rem) !important; /* Account for header overlap */
}

/* Big "Beata" heading — push it wider so it overlaps INTO the photo */
.hero-heading {
  position: relative;
  z-index: 3;
  /* Let the text extend past its container into the photo zone */
  width: 140%;
  max-width: 140%;
}

/* "Jirava" in gold — also overlaps */
.hero-heading-sub {
  position: relative;
  z-index: 3;
  width: 140%;
  max-width: 140%;
}

/* Portrait — absolutely positioned, bleeds right edge, full height */
.hero-inner > .hero-portrait {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  z-index: 1;
  margin: 0 !important;
}

.hero-inner > .hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%; /* Center face with shoulders visible */
  filter: brightness(1.08);
}

/* Soft fade from left — seamless blend into background */
.hero-inner > .hero-portrait::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    var(--wp--preset--color--white, #FDFBF9) 0%,
    rgba(253, 251, 249, 0.5) 20%,
    rgba(253, 251, 249, 0) 45%
  );
  pointer-events: none;
  z-index: 1;
}

/* Warm bottom fade for smooth transition to next section */
.hero-inner > .hero-portrait::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  z-index: 2;
  background: linear-gradient(
    to top,
    var(--wp--preset--color--white, #FDFBF9) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* Mobile hero — stack vertically */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    margin-top: -60px !important;
  }

  .hero-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-text-layer {
    max-width: 100%;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    padding-top: calc(60px + 3rem) !important;
    padding-bottom: 2rem !important;
  }

  .hero-heading,
  .hero-heading-sub {
    width: 100%;
    max-width: 100%;
  }

  /* Fix: Stats row wraps on small screens instead of clipping */
  .hero-text-layer .wp-block-group[style*="blockGap"] {
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
  }

  /* Smaller stat numbers on mobile */
  .hero-text-layer .wp-block-group p[style*="font-size:2rem"] {
    font-size: 1.5rem !important;
  }

  .hero-inner > .hero-portrait {
    position: relative;
    width: 100%;
    height: 50vh;
  }

  /* Show face above fold on mobile */
  .hero-inner > .hero-portrait img {
    object-position: 50% 10% !important;
  }

  .hero-inner > .hero-portrait::after {
    background: linear-gradient(
      to bottom,
      rgba(253, 251, 249, 0.5) 0%,
      transparent 30%
    );
  }
}

/* Trusted By — tighter on mobile */
@media (max-width: 768px) {
  .trusted-logos {
    gap: 1.25rem 2rem !important;
  }

  .trusted-logos p {
    font-size: 0.75rem !important;
  }
}

/* ─── STICKY HEADER ─── */
.site-header {
  z-index: 100;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  background-color: rgba(253, 251, 249, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
  background-color: rgba(253, 251, 249, 0.95) !important;
}

/* ─── TRUSTED LOGOS — subtle, authoritative ─── */
.trusted-logos p {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.trusted-logos:hover p {
  opacity: 0.7;
}

/* ─── EXPERTISE CARDS ─── */
.expertise-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
}

.expertise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ─── STAT CARDS ─── */
.stat-card {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ─── BUTTONS ─── */
.book-a-call-btn .wp-block-button__link {
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.book-a-call-btn .wp-block-button__link:hover {
  background-color: #333333 !important;
  transform: translateY(-1px);
}

/* Gold accent button hover */
.wp-block-button__link.has-accent-background-color:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ─── TIMELINE ─── */
.timeline > .wp-block-group {
  transition: background-color 0.2s ease;
}

.timeline > .wp-block-group:hover {
  background-color: rgba(201, 168, 130, 0.04);
}

/* ─── ABOUT PORTRAIT ─── */
.about-portrait img {
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* About page photo strip */
.about-photo-strip img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 20%;
}

/* ─── SCROLL REVEAL ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ─── ADMIN BAR ─── */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* ─── FOOTER ─── */
footer .wp-block-navigation a {
  transition: color 0.2s ease;
}

footer .wp-block-navigation a:hover {
  color: #C9A882 !important;
}

/* ─── FLUENT FORMS ─── */
.fluentform .ff-el-input--label label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 0.375rem;
  display: block;
}

.fluentform .ff-el-form-control {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #E8E3DC;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  color: #1A1A1A;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fluentform .ff-el-form-control:focus {
  border-color: #C9A882;
  box-shadow: 0 0 0 3px rgba(201, 168, 130, 0.15);
  outline: none;
}

.fluentform select.ff-el-form-control {
  padding-right: 2.5rem;
}

.fluentform textarea.ff-el-form-control {
  min-height: 120px;
  resize: vertical;
}

.fluentform .ff-el-group {
  margin-bottom: 1.5rem !important;
}

.fluentform .ff-btn-submit {
  background-color: #1A1A1A;
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
}

.fluentform .ff-btn-submit:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

/* ─── MOBILE NAVIGATION OVERLAY FIX ─── */
.wp-block-navigation__responsive-container.is-menu-open {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  padding: 4rem 1.5rem 2rem;
  background-color: rgba(253, 251, 249, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  z-index: 9999;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  display: block !important;
  width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #1A1A1A;
  border-bottom: 1px solid #E8E3DC;
  text-decoration: none;
}

/* ─── STATS ROW — extra small screens ─── */
@media (max-width: 400px) {
  .hero-text-layer .wp-block-group p[style*="text-transform:uppercase"] {
    font-size: 0.5625rem !important;
    letter-spacing: 0.08em !important;
  }
}

/* ─── ASK BEATA PRICING CARDS ─── */
.ask-beata-price-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.ask-beata-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ─── PARTNERSHIP CARDS ─── */
.partnership-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partnership-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
