/*==================================================
GOOGLE FONT
==================================================*/
@import url('https://fonts.googleapis.com/css2?family=Mate:ital@0;1&display=swap');

/*==================================================
ROOT VARIABLES
==================================================*/
:root {
    /* Brand Colors */
    --primary: #67a193;
    --secondary: #367eb8;
    /* Typography */
    --heading-font: "Mate", serif;
    --body-font: "Mate", serif;
    /* Text Colors */
    --heading: #000000;
    --text: #111111;
    --text-light: #666666;
    /* Background Colors */
    --white: #ffffff;
    --light: #fafafa;
    --gray: #f5f7f8;
    /* Borders */
    --border: #e6e9ec;
    /* Shadows */
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 35px rgba(0, 0, 0, .08);
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    /* Transition */
    --transition: .35s ease;
    /* Layout */
    --container: 1320px;
}

/*==================================================
RESET
==================================================*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/*==================================================
CUSTOM SCROLLBAR
==================================================*/
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f5f7;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50px;
    border: 2px solid #f3f5f7;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            var(--primary),
            var(--secondary));
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f3f5f7;
}

/*==================================================
TYPOGRAPHY
==================================================*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.15;
    color: var(--heading);
    margin-bottom: 20px;
}

p,
span,
li,
a,
button,
input,
textarea,
select,
label {
    font-family: var(--body-font);
}

p {
    color: var(--text-light);
    margin-bottom: 18px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/*==================================================
SECTION SPACING
==================================================*/
.section-padding {
    padding: 100px 0;
}

/*==================================================
ANIMATIONS
==================================================*/
.animate-fade-up {
    animation: fadeUp .8s ease both;
}

.animation-delay-150 {
    animation-delay: .15s;
}

.animation-delay-300 {
    animation-delay: .30s;
}

.animation-delay-450 {
    animation-delay: .45s;
}

.animate-scroll {
    animation: scrollMove 2s infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollMove {
    0% {
        transform: scaleY(.2);
        transform-origin: top;
        opacity: .2;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(.2);
        transform-origin: bottom;
        opacity: .2;
    }
}

@media (prefers-reduced-motion: reduce) {

    .animate-fade-up,
    .animate-scroll {
        animation: none;
    }
}

/*==================================================
HELPER CLASSES
==================================================*/
.bg-light-custom {
    background: var(--light);
}

.bg-gray {
    background: var(--gray);
}

.text-primary-custom {
    color: var(--primary);
}

.text-secondary-custom {
    color: var(--secondary);
}

.rounded-custom {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow-sm-custom {
    box-shadow: var(--shadow-sm);
}

.shadow-md-custom {
    box-shadow: var(--shadow-md);
}

/*==================================================
BUTTONS
==================================================*/
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 400;
    transition: var(--transition);
}

.btn-custom:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
}

/*==================================================
TOP BAR
==================================================*/
.top-bar {
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 0;
}

.top-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    transition: var(--transition);
}

.top-bar-link i {
    color: var(--secondary);
}

.top-bar-link:hover {
    color: var(--secondary);
}

.top-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

.top-social a {
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--secondary);
}

/*==================================================
HEADER
==================================================*/
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 999;
}

.navbar {
    position: relative;
    padding: 18px 0;
}

.logo {
    height: 60px;
}

.navbar-collapse {
    position: relative;
}

.navbar-collapse .navbar-nav {
    gap: 0;
}

.navbar-collapse .nav-item {
    position: relative;
    padding: 0 14px;
}

.navbar-collapse .nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, .12);
}

.nav-link {
    position: relative;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    padding: 8px 0 !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/*==================================================
MEGA MENU
==================================================*/

/* Trigger */

.mega-menu-trigger>.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-menu-trigger>.nav-link i {
    font-size: 11px;
    transition: var(--transition);
}

.mega-menu-trigger.active>.nav-link,
.mega-menu-trigger:hover>.nav-link {
    color: var(--secondary);
}

.mega-menu-trigger.active>.nav-link i,
.mega-menu-trigger:hover>.nav-link i {
    transform: rotate(180deg);
}

/* Remove underline */

.mega-menu-trigger>.nav-link::after {
    display: none;
}

/*==================================================
MEGA PANEL
==================================================*/

.mega-menu-wrapper {

    position: absolute;

    left: 50%;
    top: 100%;

    transform: translateX(-50%) translateY(20px);

    width: min(1180px, 78vw);
    max-width: 1180px;
    min-width: 980px;

    background: var(--white);

    border-top: 4px solid var(--secondary);

    border-radius: 0 0 var(--radius-lg) var(--radius-lg);

    box-shadow:
        0 25px 60px rgba(15, 23, 42, .12);

    padding: 40px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;

    z-index: 9999;

}

/* Active */
.main-header.scrolled {

    backdrop-filter: blur(16px);

    padding: 0;

    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);

}

.mega-menu-wrapper.active {

    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateX(-50%) translateY(0);

}

/*==================================================
LEFT
==================================================*/

.mega-heading {

    margin-bottom: 30px;

}

.mega-heading span {

    display: inline-block;

    margin-bottom: 8px;

    font-size: 13px;

    letter-spacing: 1.5px;

    font-weight: 600;

    text-transform: uppercase;

}

.mega-heading h4 {

    font-size: 32px;

    margin-bottom: 15px;

}

.mega-heading p {

    margin: 0;

    line-height: 1.8;

}

/*==================================================
SERVICE CARDS
==================================================*/

.mega-card {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 16px;

    border: 1px solid transparent;

    border-radius: 16px;

    cursor: pointer;

    transition: var(--transition);

}

.mega-card+.mega-card {

    margin-top: 14px;

}

.mega-card:hover {

    background: #f8fbfd;

    border-color: rgba(54, 126, 184, .15);

    transform: translateX(8px);

    box-shadow: 0 8px 25px rgba(54, 126, 184, .08);

}

.mega-card img {

    width: 60px;
    height: 60px;

    object-fit: contain;

    flex-shrink: 0;

}

.mega-card h6 {

    margin-bottom: 5px;

    font-size: 18px;

}

.mega-card p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

}

/*==================================================
BANNER
==================================================*/

.mega-banner {

    position: relative;

    overflow: hidden;

    border-radius: 20px;

    min-height: 420px;

    height: 100%;

}

.mega-banner img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .6s;

}

.mega-banner:hover img {

    transform: scale(1.08);

}

.mega-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 32px;

    background: linear-gradient(to top,
            rgba(0, 0, 0, .82),
            rgba(0, 0, 0, .18));

}

.mega-overlay h5 {

    color: #fff;

    margin-bottom: 16px;

    line-height: 1.35;

}

.mega-overlay p {

    color: rgba(255, 255, 255, .82);

    margin-bottom: 24px;

}

.mega-overlay .btn {

    align-self: flex-start;

}

/*==================================================
BADGE
==================================================*/

.mega-overlay .badge {

    width: max-content;

    font-size: 13px;

    padding: 8px 14px;

    border-radius: 30px;

}

/*==================================================
RESPONSIVE
==================================================*/

@media (max-width:1199.98px) {

    .mega-menu-wrapper {

        width: 92%;
        min-width: auto;

    }

}

@media (max-width:991.98px) {

    .mega-menu-wrapper {

        display: none !important;

    }

}

/*==================================================
OFFCANVAS
==================================================*/
.offcanvas .nav-link::after {
    display: none;
}

/* Mobile Toggle */
.navbar-toggler {
    width: 54px;
    height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(54, 126, 184, .08),
            rgba(103, 161, 147, .10));
    border: 1px solid rgba(54, 126, 184, .15);
    border-radius: 16px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .08),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: all .35s ease;
}

.navbar-toggler:focus {
    box-shadow:
        0 10px 28px rgba(103, 161, 147, .18);
}

.navbar-toggler:hover {
    background: linear-gradient(135deg,
            var(--secondary),
            var(--primary));
    border-color: transparent;
    transform: translateY(-2px);
}

.navbar-toggler-icon {
    display: none;
}

.navbar-toggler-icon-custom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.navbar-toggler-icon-custom span {
    width: 24px;
    height: 2px;
    border-radius: 20px;
    background: var(--secondary);
    transition: all .35s ease;
}

.navbar-toggler:hover .navbar-toggler-icon-custom span {
    background: var(--primary);
}

.offcanvas {
    width: 82% !important;
    max-width: 400px;
    background: #fff;
    border: none;
    border-left: 4px solid var(--secondary) !important;
    border-radius: 10px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .14);
}

.offcanvas-header {
    padding: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.offcanvas-header h5 {
    margin: 0;
    font-size: 30px;
    font-weight: 400;
}

.offcanvas-body {
    padding: 20px 28px 35px;
}

.offcanvas .nav-link {
    display: flex;
    align-items: center;
    padding: 18px 18px !important;
    font-size: 19px;
    color: var(--text);
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 12px 12px 0;
    transition: .35s ease;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    color: var(--secondary);
    background: rgba(54, 126, 184, .06);
    border-left-color: var(--secondary);
    padding-left: 26px !important;
}

.offcanvas .nav-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.offcanvas .btn-close {
    opacity: .7;
    transition: .3s;
}

.offcanvas .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.offcanvas .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offcanvas .nav-item {
    padding: 0;
}

.offcanvas .nav-item::after {
    display: none;
}

.offcanvas .btn-custom {
    margin-top: 30px;
    height: 56px;
    border-radius: 14px;
    font-size: 17px;
}

/*==================================================
RESPONSIVE
==================================================*/
@media (max-width:991.98px) {
    .top-bar {
        display: none;
    }

    .navbar {
        padding: 14px 0;
    }

    .logo {
        height: 50px;
    }
}

@media (max-width:767.98px) {
    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width:575.98px) {
    body {
        font-size: 15px;
    }

    .logo {
        height: 45px;
    }
}

/* Footer */
/*==================================================
FOOTER
==================================================*/
.footer {
    padding: 90px 0 0;
    background: var(--heading);
    color: rgba(255, 255, 255, .75);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 65px;
}

.footer-about {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .70);
    line-height: 1.9;
}

.footer h5 {
    position: relative;
    color: var(--white);
    margin-bottom: 30px;
    font-size: 24px;
    padding-bottom: 12px;
}

.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    border-radius: 20px;
    background: var(--secondary);
}

/*--------------------------------*/
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links li {
    position: relative;
    padding-left: 20px;
}

.footer-links li::before {
    content: "\F285";
    /* Bootstrap Icons: chevron-right */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.footer-links li:hover::before {
    left: 4px;
}

.footer-links li a {
    display: inline-block;
    transition: var(--transition);
}

.footer-links li:hover a {
    padding-left: 4px;
}

.footer-links a {
    color: rgba(255, 255, 255, .72);
    transition: .35s;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

/*--------------------------------*/
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, .72);
}

.footer-contact i {
    color: var(--secondary);
    font-size: 18px;
    /* margin-top: 3px; */
}

/*--------------------------------*/
.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    transition: .35s;
}

.footer-social a i {
    display: block;
    line-height: 1;
}

.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-4px);
}

/*--------------------------------*/
.copyright {
    margin-top: 70px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 15px;
}

.copyright a {
    color: rgba(255, 255, 255, .75);
    transition: .35s;
}

.copyright a:hover {
    color: var(--secondary);
}

.copyright span {
    margin: 0 12px;
    color: rgba(255, 255, 255, .25);
}

/*==================================================
RESPONSIVE
==================================================*/
@media(max-width:991px) {
    .footer {
        padding: 70px 0 0;
    }

    .footer h5 {
        margin-top: 10px;
    }
}

@media(max-width:767px) {
    .footer {
        text-align: center;
    }

    /* Keep About section centered */
    .footer-logo,
    .footer-about,
    .footer-social {
        text-align: center;
        justify-content: center;
    }

    /* Left align links columns */
    .footer-links,
    .footer-contact {
        text-align: left;
    }

    .footer h5 {
        text-align: left;
    }

    .footer h5::after {
        left: 0;
        transform: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: flex-start;
        text-align: left;
    }

    .copyright {
        text-align: center;
    }

    .copyright .text-lg-end,
    .copyright .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

/*==================================================
NEWSLETTER
==================================================*/
.footer-newsletter {
    padding: 70px 0;
    background: linear-gradient(135deg,
            rgba(54, 126, 184, .08),
            rgba(103, 161, 147, .10));
    border-top: 1px solid var(--border);
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.newsletter-form .form-control {
    height: 58px;
    border-radius: 50px;
    border: 1px solid var(--border);
    padding: 0 24px;
    box-shadow: none;
}

.newsletter-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 .15rem rgba(54, 126, 184, .12);
}

.newsletter-form .btn {
    min-width: 170px;
    height: 58px;
}

/*==================================================
NEWSLETTER RESPONSIVE
==================================================*/
@media (max-width: 767.98px) {
    .footer-newsletter {
        text-align: center;
        padding: 60px 0;
    }

    .footer-newsletter h2 {
        font-size: 34px;
        margin-bottom: 15px;
    }

    .footer-newsletter p {
        max-width: 100%;
        margin: 0 auto 25px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form .form-control {
        width: 100%;
        height: 56px;
    }

    .newsletter-form .btn {
        width: 100%;
        height: 56px;
        min-width: unset;
    }
}

/*==================================================
SCROLL TO TOP
==================================================*/
.scroll-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(54, 126, 184, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .35s ease;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(54, 126, 184, .35);
}

.scroll-top i {
    line-height: 1;
}
