/*
Theme Name: GOSDAT
Theme URI: https://gosdat.com/
Author: GOSDAT
Description: Editable block theme for the GOSDAT one-page website.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 7.0
Text Domain: gosdat
*/

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}

.wp-site-blocks > * {
    margin-block-start: 0 !important;
}

.wp-site-blocks {
    transform: none !important;
}

.gosdat-site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 1000;
}

.gosdat-nav {
    min-height: 90px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: rgb(10 20 40 / 0.9) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgb(194 154 74 / 0.2);
    box-sizing: border-box;
}

.gosdat-nav .wp-block-navigation-item__content {
    opacity: 0.7;
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.gosdat-nav .wp-block-navigation-item__content:hover {
    opacity: 1;
}

/* Mobile overlay menu: force the dark brand background so the white links are
   visible (WordPress's responsive overlay defaults to a white background). */
.gosdat-nav .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--wp--preset--color--dark) !important;
}

.gosdat-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: var(--wp--preset--color--white);
    opacity: 1;
}

.gosdat-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--gold);
}

.gosdat-hero {
    min-height: calc(100vh - 90px) !important;
    margin-block-start: 0 !important;
}

.gosdat-section {
    scroll-margin-top: 90px;
}

.gosdat-hero .wp-block-cover__inner-container > .wp-block-group {
    gap: 0 !important;
}

.gosdat-hero p {
    margin-top: 0 !important;
}

.gosdat-hero-logo {
    font-size: 0;
    line-height: 0;
}

.gosdat-hero-logo::before,
.gosdat-hero-logo::after {
    content: "";
    display: block;
    margin-right: auto;
    margin-left: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.gosdat-hero-logo::before {
    width: clamp(90px, 13vw, 140px);
    height: clamp(90px, 13vw, 140px);
    margin-bottom: 22px;
    background-image: url("assets/logo/icon-white.svg");
    animation: gosdat-float 4s ease-in-out infinite;
}

.gosdat-hero-logo::after {
    width: clamp(240px, 42vw, 420px);
    height: clamp(31px, 5.5vw, 55px);
    background-image: url("assets/logo/wordmark-white.svg");
}

.gosdat-hero-region {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.gosdat-hero-region::before,
.gosdat-hero-region::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--wp--preset--color--gold);
}

.gosdat-brand {
    margin: 0;
}

.gosdat-brand a {
    display: block;
    position: relative;
    width: 201px;
    height: 38px;
    color: transparent;
    text-decoration: none;
}

.gosdat-brand a::before,
.gosdat-brand a::after {
    content: "";
    position: absolute;
    top: 50%;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%);
}

.gosdat-brand a::before {
    left: 0;
    width: 38px;
    height: 38px;
    background-image: url("assets/logo/icon-white.svg");
}

.gosdat-brand a::after {
    right: 0;
    width: 153px;
    height: 20px;
    background-image: url("assets/logo/wordmark-white.svg");
}

.gosdat-section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 20px auto 0;
    background: var(--wp--preset--color--gold);
}

.gosdat-card {
    transition: border-color 0.4s cubic-bezier(0.2, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.2, 1, 0.3, 1), transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.gosdat-card:hover {
    border-color: rgb(194 154 74 / 0.3) !important;
}

.gosdat-service-card:hover {
    background: rgb(194 154 74 / 0.05) !important;
    border-color: var(--wp--preset--color--gold) !important;
    transform: translateY(-15px);
}

.gosdat-services {
    align-items: stretch !important;
}

.gosdat-services > .wp-block-column {
    display: flex;
}

.gosdat-service-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-height: 345px;
    box-sizing: border-box;
}

.gosdat-service-card::before,
.gosdat-contact-method::before {
    content: "";
    display: block;
    margin-right: auto;
    margin-left: auto;
    background: var(--wp--preset--color--gold);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.gosdat-service-card::before {
    width: 90px;
    height: 72px;
    margin-bottom: 25px;
}

.gosdat-service-card--partnerships::before {
    -webkit-mask-image: url("assets/icons/handshake-simple.svg");
    mask-image: url("assets/icons/handshake-simple.svg");
}

.gosdat-service-card--market::before {
    -webkit-mask-image: url("assets/icons/bullseye.svg");
    mask-image: url("assets/icons/bullseye.svg");
}

.gosdat-service-card--industrial::before {
    -webkit-mask-image: url("assets/icons/industry.svg");
    mask-image: url("assets/icons/industry.svg");
}

.gosdat-service-card--supply::before {
    -webkit-mask-image: url("assets/icons/truck-fast.svg");
    mask-image: url("assets/icons/truck-fast.svg");
}

.gosdat-contact-method::before {
    width: 58px;
    height: 48px;
    margin-bottom: 12px;
}

.gosdat-contact-method--email::before {
    -webkit-mask-image: url("assets/icons/envelope.svg");
    mask-image: url("assets/icons/envelope.svg");
}

.gosdat-contact-method--phone::before {
    -webkit-mask-image: url("assets/icons/phone.svg");
    mask-image: url("assets/icons/phone.svg");
}

.gosdat-about-media {
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.5);
}

.gosdat-contact-link a {
    color: inherit;
    text-decoration: none;
}

.gosdat-contact-link a:hover {
    color: var(--wp--preset--color--gold);
}

.gosdat-footer-mark {
    line-height: 0;
}

.gosdat-footer-mark::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin-right: auto;
    margin-left: auto;
    background-image: url("assets/logo/icon-white.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@keyframes gosdat-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 900px) {
    .gosdat-section {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }

    .gosdat-card {
        padding: 32px !important;
    }

    .gosdat-about-media {
        min-height: 280px;
    }
}
