/* Custom Architectural Styles */
body {
    /* padding-bottom for the fixed SP bar */
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

/* WordPress Admin Bar - fixed header & fixed bottom bar offset */
html, body {
    margin: 0;
    padding-top: 0;
}
.admin-bar .fixed.top-0 {
    top: var(--wp-admin--admin-bar--height, 32px);
}
/* WP admin bar on mobile (<= 782px) is 46px;
   on very small screens (< 600px) WP hides it from frontend,
   so reset top to 0 to avoid a ghost gap. */
@media screen and (max-width: 600px) {
    .admin-bar .fixed.top-0 {
        top: 0;
    }
}
@media screen and (min-width: 601px) and (max-width: 782px) {
    .admin-bar .fixed.top-0 {
        top: 46px;
    }
}

/* Typography Polish */
.text-balance {
    text-wrap: balance;
}

.letter-spacing-tight { letter-spacing: -0.02em; }
.letter-spacing-wide { letter-spacing: 0.1em; }

/* Accordion Logic */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}
details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}
@keyframes sweep {
    0%    {opacity: 0; transform: translateY(-10px)}
    100%  {opacity: 1; transform: translateY(0)}
}

details summary .ph-caret-down {
    transition: transform 0.3s ease;
}
details[open] summary .ph-caret-down {
    transform: rotate(180deg);
    color: #D4921E;
}

/* Structural Lines */
.vertical-line-nav:before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #e2e8f0;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 40px;
    bottom: -20px;
    left: 1.25rem;
    width: 2px;
    background-color: #1B4F9A;
    opacity: 0.2;
}
.step-item:last-child .step-line::after {
    display: none;
}

/* Diagonal Cut Utility */
.clip-br {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

/* Grayscale hover filter for service images */
.img-hover-color {
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.group:hover .img-hover-color {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Background Text Mesh */
.bg-text-mesh {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 800;
    color: rgba(27, 79, 154, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    line-height: 0.8;
    user-select: none;
}

/* Hamburger Menu */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1B4F9A;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-panel {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu-backdrop.active .mobile-menu-panel {
    transform: translateX(0);
}
