/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.0
*/

/* ======================================================
   1. Custom Fonts – Self Hosted
   ====================================================== */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni Moda';
    src: url('fonts/BodoniModa-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni Moda';
    src: url('fonts/BodoniModa-Italic-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

/* ======================================================
   2. Ligatures & Optical Settings for Flourish Typography
   ====================================================== */

body,
h1, h2, h3, h4, h5, h6,
p, a, span, li, blockquote {
    font-feature-settings: "liga" 1;
    font-variant-ligatures: common-ligatures;
    font-optical-sizing: auto;
}

/* Full-bleed strip inside Kadence page wrapper */
.pab-video-strip {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* === PAB scrolling genre marquee (final, stabilized) === */
.pab-marquee {
  position: relative;
  overflow: hidden;
}

/* Inner clamp + edge fade */
.pab-marquee__inner {
  position: relative;
  overflow: hidden;
  padding-block: 6px; /* prevents halo blur from touching edges */

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

/* Scrolling track */
.pab-marquee__track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  white-space: nowrap;
  flex-wrap: nowrap;

  animation: pab-marquee-scroll 30s linear infinite;

  /* performance stabilization */
  will-change: transform;
  transform: translate3d(0,0,0);
}

.pab-marquee__track span {
  flex: 0 0 auto;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
}

/* Gold separator dot */
.pab-marquee__track span::before {
  content: "•";
  color: rgba(201,162,39,0.9);
  margin-right: 14px;
}

.pab-marquee__track span:first-child::before {
  content: "";
  margin-right: 0;
}

/* Continuous scroll */
@keyframes pab-marquee-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .pab-marquee__track {
    animation: none;
    transform: none;
  }
}

/* === Ultra-thin, restrained gold halo === */
.pab-marquee::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 80vw);
  height: 46px; /* intentionally thin */
  background: radial-gradient(
    ellipse at center,
    rgba(201,162,39,0.5) 0%,
    rgba(201,162,39,0.10) 26%,
    rgba(201,162,39,0.05) 42%,
    rgba(201,162,39,0.0) 62%
  );
  filter: blur(10px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above halo */
.pab-marquee > * {
  position: relative;
  z-index: 1;
}

/* Service area section layout control */
.pab-service-area .kt-row-column-wrap {
  align-items: center; /* makes both columns line up like the mockup */
}

/* Left column: keep the map centered and sized */
.pab-service-map-col {
  display: flex;
  justify-content: center;
}

.pab-map-wrap {
  width: 100%;
  max-width: 520px;   /* desktop size “zone” */
  margin: 0 auto;
  line-height: 0;     /* kills stray whitespace under inline SVG */
}

.pab-map svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Tablet/mobile: stack and keep map above content, not huge */
@media (max-width: 1024px) {
  .pab-map-wrap { max-width: 420px; }
}

@media (max-width: 768px) {
  .pab-map-wrap { max-width: 320px; }
}

/* Move map toward the text column */
.pab-service-map-col .kt-inside-inner-col{
  align-items: flex-end; /* pushes the map to the right inside left column */
}

.pab-map-wrap{
  margin-left: auto;     /* double-safety: keeps it hugging the right */
  margin-right: 0;
  max-width: 520px;      /* keep your “zone” size */
}


.pab-video-frame{
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background:#000;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
}
.pab-video-frame iframe{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  height:auto;
}


/* ====================
   PAB CUSTOM FOOTER 
   ==================== */

/* 1. RESET & BULLET REMOVAL */
.footer-menu, 
.footer-menu li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important; /* Removes potential theme icons */
}

/* 2. TYPOGRAPHY: TITLES & HEADINGS */
.footer-title {
    font-family: 'Bodoni Moda', serif; /* Matching your rebuilt file */
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-heading {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #c9a227 !important; /* Gold */
    margin-bottom: 20px !important;
}

/* 3. LINK STYLES */
.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a, 
.footer-contact-info p,
.footer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #ececec;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #c9a227 !important;
}

/* 4. SOCIAL ICONS STYLING */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    color: #c9a227;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #c9a227;
    padding: 5px 8px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #c9a227;
    color: #1b365d;
}

/* 5. CONTACT INFO SPECIFICS */
.footer-service {
    margin-top: 20px;
    font-size: 12px !important;
    color: #aaaaaa !important;
}

.footer-service strong {
    color: #c9a227;
    display: block;
    margin-bottom: 5px;
}

/* ================================
   PAB Packages – overlap + equal height
   ================================ */

/* === PAB Packages: stable badge overlap + equal-height cards === */

/* 1) Card row must be the positioning context */
.pkg-card{
  position: relative;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

/* 2) Kill clipping anywhere inside the card structure (Kadence wrappers) */
.pkg-card.wp-block-kadence-rowlayout,
.pkg-card.wp-block-kadence-rowlayout > .kt-row-column-wrap,
.pkg-card.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column,
.pkg-card.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col{
  overflow: visible !important;
}

/* 3) Make the inner column a vertical flex stack so we can pin the footnote */
.pkg-card.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 4) Let the icon list be the stretchy middle */
.pkg-card .wp-block-kadence-iconlist{
  flex: 1 1 auto;
}

/* 5) Footnote always sits at the bottom */
.pkg-card .pkg-footnote{
  margin-top: auto;
}

/* 6) Badge overlaps the border reliably (no magic pixel guessing) */
.pkg-card .pkg-badge{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* overlaps border by half its own height */
  z-index: 999;
  margin: 0;

  /* optional “pill” safety so it always looks right */
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
}

/* 7) If the “Most Popular” badge still clips, it's the OUTER 2-column row */
.kt-inner-column-height-full{
  overflow: visible !important;
}


/* ==================== CLIENTS & ORGANIZATIONS - EFFECTS ONLY ==================== */
/* Effects only */
.pab-client-logo {
  filter: grayscale(100%) brightness(85%) contrast(125%);
  opacity: 0.75;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease;
  transform-origin: center;
}

.pab-client-logo:hover {
  /* still grayscale — zero color shift */
  filter:
    grayscale(100%)
    brightness(95%)
    contrast(135%)
    drop-shadow(0 0 6px rgba(212, 175, 55, 0.55))
    drop-shadow(0 0 16px rgba(181, 142, 41, 0.45))
    drop-shadow(0 0 32px rgba(120, 90, 20, 0.35));
  opacity: 1;
  transform: scale(1.12);
}

/* ============================
   PAB FOOTER – SOCIAL ICONS (FINAL, GOLD)
   ============================ */

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-socials a {
  width: 26px;
  height: 26px;
  display: inline-block;

  /* GOLD COLOR */
  background-color: #C9A227;

  /* SVG as mask */
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;

  border: 0 !important;
  padding: 0 !important;
  background-image: none !important;
}

/* Hover: motion only */
.footer-socials a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* Keyboard focus */
.footer-socials a:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Masks */
.footer-socials .social-insta {
  -webkit-mask-image: url("/wp-content/themes/kadence-child/assets/instagram.svg");
          mask-image: url("/wp-content/themes/kadence-child/assets/instagram.svg");
}

.footer-socials .social-fb {
  -webkit-mask-image: url("/wp-content/themes/kadence-child/assets/facebook.svg");
          mask-image: url("/wp-content/themes/kadence-child/assets/facebook.svg");
}

/* Instagram icon */
.footer-socials .social-insta {
  background-image: url("/wp-content/themes/kadence-child/assets/instagram.svg");
}

/* Facebook icon */
.footer-socials .social-fb {
  background-image: url("/wp-content/themes/kadence-child/assets/facebook.svg");
}
