/*==============================================================
    Granex Limited - custom styles
==============================================================*/

/* Anchor offset for the sticky navigation */
#home,
#about,
#advantages,
#products,
#contact {
    scroll-margin-top: 90px;
}

/* Header should be visible immediately */
.header-area.header-three {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.header-area.header-three .main-navbar-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.header-area.header-three .main-navbar-area.stickyadd {
    -webkit-animation: none;
    animation: none;
}

.header-area.header-three .main-navbar-area.stickyadd .constik-nav {
    padding: 16px 0;
}

.header-area.header-three .constik-nav,
.header-area.header-three .main-navbar-area.stickyadd .constik-nav,
.header-area.header-three .constik-responsive-nav {
    background: #ffffff;
    -webkit-box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.08);
}

@media (max-width: 1199.98px) {
    .header-area.header-three .constik-responsive-nav {
        position: relative;
        --granex-mobile-menu-offset: 0;
    }

    .constik-responsive-nav .constik-responsive-menu.mean-container,
    .constik-responsive-nav .constik-responsive-menu.mean-container .mean-bar {
        position: static;
    }

    .constik-responsive-nav .constik-responsive-menu.mean-container .mean-nav {
        position: absolute;
        top: calc(100% + 2px);
        left: 0;
        width: 100%;
        margin-top: var(--granex-mobile-menu-offset);
        z-index: 1001;
    }
}

/* Hero banner */
.home-banner-area {
    padding-top: 120px;
    background-image: url(../img/hero-bg.webp);
}

.home-banner-area::before {
    background: rgba(26, 26, 26, 0.75);
}

.home-banner-area .banner-content {
    padding-top: 140px;
    padding-bottom: 140px;
}

.home-banner-area .banner-content .banner-lead {
    font-weight: 600;
    color: #ffbc13;
    margin-bottom: 15px;
}

.home-banner-area .banner-content .cta-btn a.primary-btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.home-banner-area .banner-content .cta-btn a.primary-btn:last-child {
    margin-right: 0;
}

/* Advantages icons */
.best-service-section .row {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.best-service-section .service-item-single {
    height: 100%;
}

.best-service-section .service-item-single > i img {
    vertical-align: middle;
}

.best-service-section .service-item-single:hover h3 {
    color: #ffffff;
}

/* Trading portfolios cards */
.products-section .row {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.portfolio-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
    background: #ffffff;
    -webkit-box-shadow: 0 0 30px rgba(0, 30, 76, 0.08);
    box-shadow: 0 0 30px rgba(0, 30, 76, 0.08);
    overflow: hidden;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.portfolio-card:hover {
    -webkit-box-shadow: 0 10px 40px rgba(0, 30, 76, 0.15);
    box-shadow: 0 10px 40px rgba(0, 30, 76, 0.15);
}

.portfolio-image img {
    display: block;
    width: 100%;
}

.portfolio-content {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #001e4c;
}

.portfolio-content > p {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.portfolio-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.portfolio-list li {
    position: relative;
    display: block;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #1a1a1a;
}

.portfolio-list li:last-child {
    margin-bottom: 0;
}

.portfolio-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #ffbc13;
}

.portfolio-list li strong {
    color: #001e4c;
}

.portfolio-list li a {
    color: inherit;
    display: inline;
}

.portfolio-list li a > strong {
    -webkit-text-decoration: underline;
    text-decoration: underline;
    text-decoration-color: #ffbc13;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.portfolio-list li a:hover {
    color: #001e4c;
}

/* Portfolio detail sections */
.portfolio-detail-section .section-title::before {
    display: none;
}

.portfolio-detail-section .section-title .title-highlight {
    display: inline-block;
    margin-left: -60px;
    padding: 30px 26px 30px 60px;
    background: #ffbc13;
    color: #001e4c;
}

.detail-block {
    margin-bottom: 70px;
    scroll-margin-top: 90px;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-heading {
    margin-bottom: 30px;
}

.detail-heading h3 {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: #001e4c;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ffbc13;
}

.detail-heading p {
    max-width: 820px;
    margin-top: 18px;
    margin-bottom: 0;
    color: #1a1a1a;
}

.detail-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 40px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 30, 76, 0.06);
    -webkit-box-shadow: 0 0 30px rgba(0, 30, 76, 0.08);
    box-shadow: 0 0 30px rgba(0, 30, 76, 0.08);
}

.detail-media {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 42%;
    flex: 0 0 42%;
    max-width: 42%;
    -ms-flex-item-align: stretch;
    align-self: stretch;
}

.detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    -o-object-fit: cover;
    object-fit: cover;
}

.detail-content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.detail-sub + .detail-sub {
    margin-top: 30px;
}

.detail-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #001e4c;
    margin-bottom: 15px;
}

@media (max-width: 991.98px) {
    .detail-body {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 24px;
    }

    .detail-media {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .detail-media img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767.98px) {
    .portfolio-detail-section .section-title .title-highlight {
        margin-left: -24px;
        padding: 20px 18px 20px 24px;
    }

    .detail-block {
        margin-bottom: 50px;
    }

    .detail-heading {
        margin-bottom: 24px;
    }

    .detail-heading h3 {
        font-size: 24px;
    }

    .detail-body {
        padding: 22px;
    }
}

/* Footer contact block */
.footer-area .section-title p {
    color: #d2d2d2;
}

.contact-area .contact-info .info-item .info-content .info-text {
    display: block;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #ffffff;
}

.contact-area .contact-info .info-item:hover .info-content .info-text {
    color: #001e4c;
}

.contact-area > .row:first-child {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.contact-area > .row:first-child > [class*="col-"] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.contact-area .contact-info,
.contact-area .contact-form {
    width: 100%;
    height: 100%;
}

.contact-area .contact-info .info-item.granex-contact-card {
    background: url(../img/contact-bg.webp) no-repeat center;
    background-size: cover;
}

.contact-area .contact-info .granex-contact-card {
    display: block;
    height: 100%;
    padding: 35px 24px;
}

.contact-area .contact-info .granex-contact-card .granex-contact-entry {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.contact-area .contact-info .granex-contact-card .granex-contact-entry + .granex-contact-entry {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-area .contact-info .granex-contact-card .granex-contact-entry .info-content {
    padding-left: 20px;
}

/* Form result message */
.contact-area .contact-form .form-results {
    margin-top: 20px;
}

.contact-area .contact-form .form-results.alert {
    padding: 12px 18px;
}

/* Google map */
.contact-map iframe {
    border: 0;
    width: 100%;
    display: block;
}

@media (max-width: 991.98px) {
    .home-banner-area .banner-content .cta-btn a.primary-btn {
        margin-right: 10px;
    }
}

/* Advantages: отступы между карточками в мобильной версии */
@media (max-width: 767.98px) {
    .header-area .constik-responsive-nav > .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-banner-area .banner-content .cta-btn {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 12px;
    }

    .home-banner-area .banner-content .cta-btn a.primary-btn {
        display: block;
        width: 250px;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 0;
        text-align: center;
    }

    .constik-responsive-nav {
        padding-top: 10px;
        padding-bottom: 10px;
        --granex-mobile-menu-offset: 0;
    }

    .header-area .constik-responsive-nav .constik-responsive-menu {
        position: relative;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: 100%;
        min-height: 54px;
    }

    .header-area .constik-responsive-nav .logo {
        position: absolute;
        left: 0;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        width: auto;
        max-width: calc(100% - 72px);
        margin: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        z-index: 1000;
    }

    .header-area .constik-responsive-nav .logo a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .header-area .constik-responsive-nav .logo img {
        height: 66px;
        width: auto;
    }

    .header-area .constik-responsive-nav .mean-container a.meanmenu-reveal {
        top: 50%;
        right: 0;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        padding-top: 8px;
    }

    .constik-responsive-nav .constik-responsive-menu.mean-container .mean-nav {
        margin-top: 0;
    }

    .constik-responsive-nav .constik-responsive-menu.mean-container .mean-nav .navbar-nav,
    .constik-responsive-nav .constik-responsive-menu.mean-container .navbar-nav {
        height: auto;
        max-height: none;
        overflow-y: visible;
    }

    .best-service-section .row {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .best-service-section .row > [class*="col-"] {
        margin-bottom: 24px;
    }

    .best-service-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .best-service-section .service-item-single {
        height: auto;
        margin-bottom: 0;
    }

    /* Trading portfolios: отступы между карточками в мобильной версии */
    .products-section .row {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .products-section .row > [class*="col-"] {
        margin-bottom: 24px;
    }

    .products-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .portfolio-card {
        height: auto;
        margin-bottom: 0;
    }

    .contact-area .contact-info .granex-contact-card .granex-contact-entry .info-content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        min-height: 40px;
        text-align: left;
    }

    .contact-area .contact-info .granex-contact-card .granex-contact-entry:last-child {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        width: 100%;
    }

    .contact-area .contact-info .granex-contact-card .granex-contact-entry:last-child .info-content {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        text-align: left;
    }
}

/* Logo */
img[src$="GRANEX_logo.png"] {
    height: 86px;
    width: auto;
}

/* Compact header height */
.header-area.header-three .constik-nav,
.header-area.header-three .main-navbar-area.stickyadd .constik-nav {
    padding: 4px 0;
}

.header-area.header-three .constik-nav .navbar .navbar-brand {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Preloader: site logo instead of the template spinner */
.preloader-main .preloader-logo {
    width: 200px;
    height: 133px;
    max-width: 60vw;
    background: url(../img/GRANEX_logo.png) no-repeat center center;
    background-size: contain;
    -webkit-animation: granex-preloader-pulse 1.5s ease-in-out infinite;
    animation: granex-preloader-pulse 1.5s ease-in-out infinite;
}

@-webkit-keyframes granex-preloader-pulse {
    0%, 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
    50% { opacity: .5; -webkit-transform: scale(.94); transform: scale(.94); }
}

@keyframes granex-preloader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.94); }
}
