/* ==========================================================================
   Font Faces
   ========================================================================== */

/* Blacker Pro Display */
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Light.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Light Italic.otf') format('opentype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Light Italic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Medium Italic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Bold Italic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Extrabold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Extrabold Italic.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Heavy.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Blacker Pro Display'; src: url('../fonts/Blacker Pro Display/Blacker Pro Display Heavy Italic.otf') format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }

/* Clash Grotesk (Founders Grotesk) */
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-LightItalic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-RegularItalic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-SemiboldItalic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('../fonts/Grotesk/FoundersGrotesk-BoldItalic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }

/* ==========================================================================
   Navigation & Components
   ========================================================================== */

/* Primary Navigation */
#primary-navigation .menu {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 0;
}

#primary-navigation .menu-item a {
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.54px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px;
    transition: opacity 0.15s;
}

#primary-navigation .menu-item a:hover {
    opacity: 0.7;
}

/* Mobile menu open state — fullscreen overlay */
#primary-navigation.is-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0A1224;
    z-index: 100;
}

#primary-navigation.is-open .menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

#primary-navigation.is-open .menu-item a {
    display: block;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 24px;
    line-height: 32px;
}

/* Footer Navigation */
.footer-navigation .menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation .menu-item a {
    font-size: 20px;
    line-height: 28px;
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.15s;
}

.footer-navigation .menu-item a:hover {
    opacity: 0.8;
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.nav-links .page-numbers {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-links .page-numbers:hover {
    background: #e5e7eb;
}

.nav-links .page-numbers.current {
    background: #0284c7;
    color: #ffffff;
}

/* ==========================================================================
   Who We Serve — dark nav overrides (hero is light background)
   ========================================================================== */

.page-template-template-who-we-serve header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.page-template-template-who-we-serve #primary-navigation .menu-item a {
    color: #000000;
}

.page-template-template-who-we-serve .flex-shrink-0 img,
.page-template-template-who-we-serve header img {
    filter: brightness(0);
}

.page-template-template-who-we-serve #mobile-menu-toggle span {
    background-color: #000000;
}

/* ==========================================================================
   4-Step Process Gallery
   ========================================================================== */

.process-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    --active-size: 280px;
    --scale-inactive: 0.643; /* 180/280 */
    --gap: 16px;
}

.process-gallery__track {
    display: flex;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kill ALL transitions during clone→real snap */
.process-gallery.no-transition .process-gallery__track,
.process-gallery.no-transition .process-circle,
.process-gallery.no-transition .process-circle .circle-content {
    transition: none !important;
}

.process-circle {
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    width: var(--active-size);
    height: var(--active-size);
    margin: 0 calc(var(--gap) / 2);
    transform: scale(var(--scale-inactive));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-circle.is-active {
    transform: scale(1);
}

/* Tablet */
@media (min-width: 640px) {
    .process-gallery {
        --active-size: 420px;
        --scale-inactive: 0.667; /* 280/420 */
        --gap: 24px;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .process-gallery {
        --active-size: 775px;
        --scale-inactive: 0.657; /* 509/775 */
        --gap: 40px;
    }
}

/* Bottom half teal background that merges into next section */
.process-gallery-split::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: rgba(0, 179, 184, 1);
    z-index: -1;
}

/* Text content always visible */
.process-circle .circle-content {
    opacity: 1;
    pointer-events: auto;
}
