/* ============================================================
   Shared layout styles for the site header (navbar) and footer.
   Loaded by main.blade.php on EVERY page, AFTER the page stylesheet,
   so these rules are the single source of truth for the shared chrome.
   When changing header/footer styles, change them HERE — not in the
   per-page stylesheets (style.css, sentence-rewriter.css, ...).
   ============================================================ */

/* ---------------- Header / navbar (desktop) ---------------- */

.navbar {
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding-left: 10px;
    flex-shrink: 0;
    border-radius: 9px;
    margin: auto;
}

.main-icon {
    width: 200px;
    align-items: center;
    gap: 10px;
}

.logo-div {
    gap: 10px;
    text-decoration: none;
    max-width: 164px;
}

.logo-title p {
    color: #263238;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
}

.logo-title span {
    color: #263238;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 7.14px;
}

.text-div {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 35px;
}

.text-box,
.border-box {
    display: flex;
    justify-content: space-around;
    margin: 0 10px;
}

.text-div .active {
    color: #393939 !important;
}

.text-style {
    color: var(--color-p);
    text-align: center;
    font-size: var(--font-size-default);
    font-weight: 400;
    line-height: 24px;
}

.text-style:hover {
    color: #393939;
}

.blog-text {
    color: var(--color-p);
    text-align: center;
    font-size: var(--font-size-default);
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

.blog-text:hover {
    color: #393939;
}

.contact-us {
    color: var(--color-p);
    font-size: var(--font-size-default);
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

.contact-us:hover {
    color: #393939;
}

/* ---------------- Header / navbar (mobile) ---------------- */

.mobile-div {
    display: none;
}

.no-scroll {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 992px) {
    .navbar {
        display: none;
    }

    .mobile-div {
        display: block;
        position: relative;
    }

    .navbar-mobile {
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 1000;
        background-color: #fff;
    }

    .mobile-dropdown {
        display: none;
        z-index: 999;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        width: 100%;
        overflow-y: auto;
        transition: transform 0.3s;
    }

    .mobile-dropdown ul {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 40px 20px;
        margin: 0;
        list-style: none;
        align-items: center;
        box-shadow: none;
        border-radius: 0;
    }

    .mobile-dropdown ul li {
        width: 100%;
        text-align: center;
    }

    .mobile-dropdown ul li a {
        color: #373943;
        text-decoration: none;
        padding: 6px 10px;
        border-radius: 8px;
        text-align: center;
        display: inline-block;
        font-size: 18px;
        font-weight: 500;
    }

    .mobile-dropdown ul li a.active {
        color: var(--primary);
    }
}

@media (max-width: 768px) {
    .logo-div {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0px 5px 0px 10px;
    }

    .text-div {
        gap: 10px;
    }
}

/* ---------------- Footer ---------------- */

.footer-control {
    background: var(--BG-Linear);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto auto;
    padding: 30px 0px;
    align-items: center;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: baseline;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    max-width: 475px;
}

.footer-text {
    color: var(--black);
    font-size: var(--font-size-default);
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.4px;
}

.footer-center,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
}

.center-title,
.right-title {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.center-text {
    display: flex;
    color: var(--default);
    flex-direction: column;
    gap: 20px;
    font-size: var(--font-size-default);
}

.center-text a {
    text-decoration: none;
    color: var(--black);
}

.center-text a:hover {
    color: #071921;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-icon > span {
    width: fit-content;
}

.footer-icons {
    display: flex;
    gap: 10px;
    text-decoration: none;
}

.footer-icons:hover .icon-text {
    color: #071921;
}

.icon-text {
    font-size: var(--font-size-default);
    color: var(--black);
    font-weight: 400;
    line-height: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--footer-color);
    padding: 1rem;
}

.footer-bottom-text {
    font-size: 20px;
    color: var(--white);
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

/* Footer language dropdown */

.lang-dropdown-container {
    display: flex;
    justify-content: start;
}

.lang-dropdown {
    display: inline-block;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #E9ECEE;
    border-radius: 8px;
    background: white;
}

.lang-dropdown .rotate-180 {
    transform: rotate(180deg);
}

.lang-dropdown .flag {
    min-width: 20px;
    height: 20px;
}

.lang-dropdown .arrow {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lang-dropdown .dropdown-items {
    display: flex;
    border-radius: 6px;
    position: absolute;
    bottom: 120%;
    left: 0;
    background: white;
    padding: 0px 4px;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

.lang-dropdown .dropdown-item {
    border-radius: 6px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    text-decoration: none;
}

.lang-dropdown .dropdown-item.current-active {
    padding: 0;
}

/* Footer responsive */

@media (min-width: 992px) {
    .footer-left {
        margin-left: 20px;
    }
}

@media (max-width: 992px) {
    .footer-left {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 24px 0;
    }

    .footer-left {
        grid-area: auto;
        text-align: left;
        align-items: flex-start;
        padding: 0;
        max-width: 100%;
        gap: 16px;
    }

    .footer-flex {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
        width: 100%;
    }

    .footer-flex .footer-right {
        grid-area: auto;
        gap: 14px;
    }

    .footer-flex .footer-right:nth-child(3) {
        grid-column: 1 / -1;
    }

    .footer-flex .footer-right:nth-child(3) .contact-icon {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 12px;
    }

    .footer-flex .footer-right:nth-child(3) .contact-icon > span {
        width: auto;
    }

    .center-text {
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .footer-bottom-text,
    .center-text,
    .icon-text {
        font-size: var(--font-size-default);
    }
}
