html:has(.public-page) {
    --mobile-header-height: 64px;
    --mobile-action-space: calc(64px + env(safe-area-inset-bottom, 0px));
    scroll-padding-block-start: calc(var(--mobile-header-height) + 8px);
}
html:has(.mobile-action-bar) { scroll-padding-block-end: var(--mobile-action-space); }
.public-page:has(.mobile-action-bar) { padding-block-end: var(--mobile-action-space); }

.public-page .utility-bar, .home-page .home-topbar { display: none; }
.public-page .site-header {
    position: sticky;
    z-index: 6;
    inset: 0 0 auto;
    color: #f4f7fb;
    background: linear-gradient(120deg, #122b42, #0e2033);
    border-block-end: 1px solid #7291b04f;
    box-shadow: 0 4px 18px #0c203526;
}
.public-page .header-inner {
    position: static;
    min-height: calc(var(--mobile-header-height) - 1px);
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
}
.public-page .header-inner .brand-logo { height: 43px; max-width: min(34vw, 118px); }
.public-page:not(.home-page) .header-inner .brand-logo { padding: 3px 4px; border-radius: 8px; background: #fff; }
.mobile-header-language { display: flex; grid-column: 2; align-items: center; }
.mobile-header-language .language-switch, .site-header .menu-toggle {
    min-height: 44px;
    padding-inline: 10px;
    gap: 7px;
    border: 1px solid #9cb6d14f;
    border-radius: 9px;
    background: #ffffff0e;
    color: #fff;
    font-size: .83rem;
}
.mobile-header-language .language-switch:hover, .site-header .menu-toggle:is(:hover, [aria-expanded="true"]) {
    background: #28465f;
    color: #fff;
}
.site-header .menu-toggle { grid-column: 3; }
.site-header .menu-toggle:focus-visible, .mobile-header-language .language-switch:focus-visible { outline-color: var(--amber); }
.mobile-header-language .language-icon { width: 14px; height: 14px; }

.site-header .primary-nav {
    --nav-accent: #885914;
    --nav-line: #d7e3ef;
    --nav-hover: #e9f1f8;
    --nav-selected: #e3edf6;
    inset: 100% 0 auto;
    z-index: 2;
    max-height: calc(100dvh - var(--mobile-header-height) - 12px);
    gap: 4px;
    padding: 9px max(15px, (100% - 560px) / 2) 12px;
    border: 0;
    border-radius: 0 0 15px 15px;
    background: #f7fafd;
    color: #17334f;
    box-shadow: 0 15px 28px #132f4a45;
}
.site-header .primary-nav :focus-visible { outline-color: #885914; }
.site-header .primary-nav-link { min-height: 48px; padding: 9px 12px; border-radius: 7px; font-size: .95rem; }
.site-header .primary-nav > .mobile-quote { margin-block-start: 6px; }
.site-header .header-submenu a { min-height: 46px; }
.primary-nav[data-open] + .mobile-menu-scrim {
    display: block;
    position: fixed;
    z-index: 1;
    inset: var(--mobile-header-height) 0 0;
    background: #071727a1;
    touch-action: none;
}
@media (prefers-reduced-motion: no-preference) {
    .site-header .primary-nav[data-open] { animation: mobile-menu-enter .18s ease-out; }
}
@keyframes mobile-menu-enter {
    from { opacity: .7; translate: 0 -5px; }
    to { opacity: 1; translate: 0 0; }
}
.site-header .services-mega { padding: 12px; }
.site-header .services-mega-groups { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.site-header .services-mega-head { padding-block-end: 9px; margin-block-end: 10px; }
.site-header .services-menu-group > summary { min-height: 44px; }
.site-header .services-menu-group .service-link-list a { min-height: 44px; }

.mobile-action-bar {
    display: block;
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    padding-block: 9px max(9px, env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid #dae4ed;
    background: #fbfdff;
    box-shadow: 0 -4px 20px #18355020;
}
.mobile-action-inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 8px; }
.mobile-action-inner > :only-child { grid-column: 1 / -1; }
.mobile-action-bar .button {
    min-height: 45px;
    min-width: 0;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 9px;
    font-size: .83rem;
    line-height: 1.23;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.mobile-action-bar .mobile-action-quote { border-color: #dea63b; background: linear-gradient(150deg, #ffe09a, #f2bb50); color: #20180f; }
.mobile-action-contact { border-color: #2b6957; background: #164b40; color: #fff; }
.mobile-action-contact:hover { background: #235d4e; color: #fff; }
.mobile-action-contact img { flex: 0 0 18px; }
.public-page:has(#primary-nav[data-open], [data-consent-panel]:not([hidden]), main :is(input, textarea, select):focus) .mobile-action-bar,
.mobile-action-bar[data-hero-actions-visible] { visibility: hidden; pointer-events: none; }
.public-page .whatsapp-float { display: none; }
.public-page:has(.whatsapp-float) .footer-base-inner { padding-inline-end: 0; }
.public-page .footer-nav-band .footer-links a { display: inline-flex; align-items: center; min-height: 42px; }

.home-page .hero-photo {
    width: 100%;
    height: clamp(230px, 66vw, 320px);
    object-fit: cover;
    object-position: center 37%;
    mask-image: linear-gradient(to bottom, #000 56%, transparent);
}
.home-page .hero-photo-fill { display: none; }
.home-page .hero-stage { background: #10243a; }
.home-page .hero-stage::before {
    background: linear-gradient(to bottom, #0b1f3278, #0d2439ac 142px, #10243ae8 245px, #10243a 340px),
        linear-gradient(var(--hero-shade), #0b1c2f77, transparent 90%);
}
.home-page .hero-inner { gap: 20px; padding-block: clamp(28px, 8vw, 43px) 20px; }
.home-page .hero-copy { --hero-heading-size: clamp(2.15rem, 10vw, 3.5rem); width: 100%; }
[dir="rtl"] .home-page .hero-copy { --hero-heading-size: clamp(2rem, 9vw, 3.25rem); }
.home-page .hero-copy::before { width: 34px; margin-block-end: 13px; }
.home-page .hero h1 { text-wrap: balance; }
.home-page .hero-heading { margin-block-end: 11px; }
.home-page .hero-rotation-toggle { width: 44px; height: 44px; }
.home-page .hero p { margin-block-end: 16px; font-size: .98rem; line-height: 1.55; }
.home-page .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 440px; }
.home-page .hero-actions > :only-child { grid-column: 1 / -1; }
.home-page .hero-actions :is(.button, .hero-work-link) {
    justify-content: center;
    min-height: 45px;
    padding: 7px 8px;
    border-radius: 9px;
    font-size: .84rem;
    line-height: 1.22;
    text-align: center;
    text-wrap: balance;
}
.home-page .hero-work-link { border: 1px solid #9db7d17e; background: #0e233abe; text-decoration: none; }
.home-page .hero-stats { max-width: 440px; gap: 7px; padding: 0; border: 0; }
.home-page .hero-stat {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 65px;
    padding: 8px 10px;
    border: 1px solid #6e8ca852;
    border-radius: 8px;
    background: #19334c9c;
}
.home-page .hero-stat dd {
    display: flex;
    justify-content: start;
    align-items: baseline;
    gap: 4px;
    width: auto;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 1.21rem;
}
.home-page .hero-stat dt { font-size: .79rem; }
.home-page .hero-stat-unit { font-size: .68rem; }
.home-page .hero-service-band { padding-block: 10px; background: #eff4f9; }
.home-page .hero-features { gap: 7px; }
.home-page .hero-feature {
    min-height: 78px;
    padding: 7px 4px;
    border: 1px solid #d9e5ef;
    border-radius: 8px;
    background: #fff;
}
.home-page .hero-feature:active { background: #e7f0f8; }
.home-page .hero-feature-copy strong { font-size: .81rem; }
.home-page .section-space { padding-block: clamp(36px, 7.5vw, 48px); }
.home-page .home-section-heading { margin-block-end: 17px; }
.home-page .work-carousel-track { --work-gap: 10px; grid-auto-columns: calc(100% - 29px); }
.home-page .certificate-images { --gallery-gap: 10px; grid-auto-columns: calc(100% - 29px); }
.home-page :is(.work-carousel-track, .certificate-images):has(> :only-child) { grid-auto-columns: 100%; }

.public-page .page-banner { padding-block: 32px 36px; }
.public-page .page-banner h1 { overflow-wrap: anywhere; text-wrap: balance; }
.public-page .page-banner p { margin-block-start: 10px; font-size: 1rem; }
.public-page main :is(input:not([type="file"], [type="hidden"], [type="checkbox"]), textarea, select) { font-size: 16px; }
.public-page main :is(input:not([type="hidden"], [type="checkbox"]), select) { min-height: 44px; }
.public-page main .button { min-height: 44px; }
