/* Brand logo — on home: hide from header (shown on hero). Elsewhere: keep in header. */
.home .site-header .site-branding,
.home .site-mobile-header-wrap .site-branding,
.home .site-header .custom-logo-link { display: none !important; }
.site-header .site-title-wrap,
.site-mobile-header-wrap .site-title-wrap { display: none !important; }
.site-header .custom-logo { max-height: 56px; width: auto; }
.site-branding .custom-logo-link { display: inline-flex; align-items: center; }

/* Flush layout */
.home .entry-header.page-title,
.home #inner-wrap .entry-hero { display: none !important; }
.home .content-area { margin: 0 !important; }
.home .entry-content-wrap { padding: 0 !important; }
.home .entry.single-entry { box-shadow: none !important; background: transparent !important; }

/* Transparent header over hero (Kadence-style) */
.home #masthead {
  position: absolute !important;
  left: 0; right: 0; top: 0;
  z-index: 100;
  background: transparent !important;
  box-shadow: none !important;
}
.home #masthead .site-header-wrap,
.home #masthead .site-header-inner-wrap,
.home #masthead .site-header-upper-wrap,
.home #masthead .site-header-upper-inner-wrap,
.home #masthead .site-main-header-wrap,
.home #masthead .site-mobile-header-wrap,
.home #masthead .site-header-row-container-inner,
.home #masthead .site-main-header-wrap .site-header-row-container-inner,
.home #masthead .site-mobile-header-wrap .site-header-row-container-inner,
.home.transparent-header #masthead .site-header-row-container-inner,
.home.mobile-transparent-header #masthead .site-header-row-container-inner,
.home.transparent-header #masthead .site-header-row-container-inner:before,
.home #masthead .site-header-row-container-inner:before {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.home #masthead .header-menu-toggle,
.home #masthead .menu-toggle-icon,
.home #masthead .mobile-toggle-open svg,
.home #masthead .mobile-toggle-close svg,
.home #masthead .menu-toggle-icon .menu-toggle-icon-bar {
  color: #ffffff !important;
  fill: #ffffff !important;
  background-color: #ffffff !important;
}
.home #masthead .menu-toggle-icon span,
.home #masthead .menu-toggle-icon .menu-toggle-icon-bar,
.home #masthead button.menu-toggle .menu-toggle-icon span {
  background: #ffffff !important;
}
.home.transparent-header #masthead .header-navigation .menu-item > a,
.home #masthead .header-navigation .menu-item > a {
  color: #ffffff !important;
}

/* Full-viewport hero — cover + crop, no spill into articles */
.home .pftf-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: #020617;
  overflow: hidden;
}
.home .pftf-hero-image,
.home .pftf-hero-image.alignfull,
.home .pftf-hero > .wp-block-image {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0;
  z-index: 0;
}
.home .pftf-hero-image img,
.home .pftf-hero > .wp-block-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 28% !important;
}
.home .pftf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem, 12vh, 7rem) 1.25rem clamp(3.5rem, 8vh, 5rem);
  background: linear-gradient(180deg, rgba(2,6,23,0.40) 0%, rgba(2,6,23,0.28) 45%, rgba(2,6,23,0.58) 100%);
  box-sizing: border-box;
}
.home .pftf-hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(0.75rem, 2vh, 1.25rem);
  line-height: 0;
}
.home .pftf-hero-logo {
  width: clamp(110px, 16vw, 190px);
  height: auto;
  max-width: 42vw;
  object-fit: contain;
  filter:
    brightness(1.22)
    contrast(1.28)
    saturate(1.15)
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 28px rgba(30, 139, 195, 0.45))
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}
.home .pftf-hero-overlay h1,
.home .pftf-hero-overlay p {
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
  max-width: 920px;
}
.home .pftf-hero-overlay h1 {
  margin: 0 0 0.75rem !important;
  font-size: clamp(1.55rem, 4.8vw, 3.25rem) !important;
  line-height: 1.25 !important;
  color: #fff !important;
}
.home .pftf-hero-overlay p {
  margin: 0 0 1.35rem !important;
  font-size: clamp(0.92rem, 2.4vw, 1.2rem) !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,0.94) !important;
}
.home .pftf-hero-overlay .wp-block-button__link {
  font-size: clamp(0.9rem, 2vw, 1.05rem) !important;
  padding: 0.7em 1.35em !important;
}

@media (max-width: 767px) {
  .home .pftf-hero {
    height: 100svh;
    max-height: 100svh;
  }
  .home .pftf-hero-overlay {
    padding: 5.5rem 1rem 3.25rem;
  }
  .home .pftf-hero-logo {
    width: clamp(88px, 28vw, 130px);
  }
  .home .pftf-hero-overlay h1 {
    font-size: clamp(1.35rem, 7.2vw, 1.85rem) !important;
    line-height: 1.35 !important;
  }
  .home .pftf-hero-overlay p {
    font-size: clamp(0.84rem, 3.6vw, 0.98rem) !important;
    line-height: 1.7 !important;
  }
}

/* Contact page — professional cards */
.pftf-contact {
  --pftf-c-ink: #123047;
  --pftf-c-muted: #4b6074;
  --pftf-c-accent: #1e8bc3;
  --pftf-c-teal: #0f766e;
  --pftf-c-line: rgba(18, 48, 71, 0.1);
  max-width: 1120px;
  margin: 2rem auto 0;
  padding: 0 1.25rem 4rem;
  position: relative;
  z-index: 1;
}
.pftf-contact-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.1rem;
  color: var(--pftf-c-muted);
  line-height: 1.85;
  font-size: 1.02rem;
}
.pftf-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0 0 2.35rem;
}
.pftf-contact-item {
  background: #fff;
  border: 1px solid var(--pftf-c-line);
  border-radius: 18px;
  padding: 1.3rem 1.35rem 1.35rem;
  box-shadow: 0 12px 36px rgba(11, 28, 44, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pftf-contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(11, 28, 44, 0.1);
  border-color: rgba(30, 139, 195, 0.28);
}
.pftf-contact-item-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.pftf-contact-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 139, 195, 0.14), rgba(15, 118, 110, 0.12));
  color: var(--pftf-c-accent);
  flex-shrink: 0;
  position: relative;
}
.pftf-contact-icon::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background-color: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}
.pftf-contact-grid > .pftf-contact-item:nth-child(1) .pftf-contact-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.5 7-11a7 7 0 1 0-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.5 7-11a7 7 0 1 0-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}
.pftf-contact-grid > .pftf-contact-item:nth-child(2) .pftf-contact-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v-1.2a2 2 0 0 0-1.3-1.9l-1.6-.5a2 2 0 0 1-1.3-2.4l.3-.9a2 2 0 0 0-1-2.3l-1.4-.7a2 2 0 0 0-2.2.4l-.8.9a14 14 0 0 1-6.1 6.1l-.9.8a2 2 0 0 0-.4 2.2l.7 1.4a2 2 0 0 0 2.3 1l.9-.3a2 2 0 0 1 2.4 1.3l.5 1.6A2 2 0 0 0 14.7 22h1.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v-1.2a2 2 0 0 0-1.3-1.9l-1.6-.5a2 2 0 0 1-1.3-2.4l.3-.9a2 2 0 0 0-1-2.3l-1.4-.7a2 2 0 0 0-2.2.4l-.8.9a14 14 0 0 1-6.1 6.1l-.9.8a2 2 0 0 0-.4 2.2l.7 1.4a2 2 0 0 0 2.3 1l.9-.3a2 2 0 0 1 2.4 1.3l.5 1.6A2 2 0 0 0 14.7 22h1.2'/%3E%3C/svg%3E");
}
.pftf-contact-grid > .pftf-contact-item:nth-child(3) .pftf-contact-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='m4 8 8 5 8-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='m4 8 8 5 8-5'/%3E%3C/svg%3E");
}
.pftf-contact-grid > .pftf-contact-item:nth-child(4) .pftf-contact-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.pftf-contact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pftf-contact-item h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--pftf-c-ink);
  font-weight: 700;
}
.pftf-contact-item p {
  margin: 0;
  line-height: 1.9;
  color: var(--pftf-c-muted);
  font-size: 0.98rem;
}
.pftf-contact-item a {
  color: var(--pftf-c-teal);
  text-decoration: none;
  font-weight: 600;
}
.pftf-contact-item a:hover {
  color: var(--pftf-c-accent);
  text-decoration: underline;
}
.pftf-contact-map {
  background: #fff;
  border: 1px solid var(--pftf-c-line);
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 14px 40px rgba(11, 28, 44, 0.07);
}
.pftf-contact-map h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--pftf-c-ink);
}
.pftf-map-wrap {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--pftf-c-line);
  background: #f8fafc;
}
.pftf-map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 440px;
}
.page-id-15 .entry-content > .wp-block-paragraph.has-text-align-center:first-child,
.page-id-23 .entry-content > .wp-block-paragraph.has-text-align-center:first-child,
.page-id-15 .entry-content > p.has-text-align-center:first-of-type,
.page-id-23 .entry-content > p.has-text-align-center:first-of-type {
  display: none !important;
}
@media (max-width: 767px) {
  .pftf-contact {
    margin-top: 1.5rem;
    padding: 0 1rem 3rem;
  }
  .pftf-contact-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .pftf-contact-item:hover {
    transform: none;
  }
  .pftf-map-wrap iframe {
    min-height: 320px;
  }
}
