/* ==========================================================================
   PWG CMS - NORDIC KURUMSAL TEMA (EMERALD & WARM ALABASTER EDITION)
   ========================================================================== */

:root {
    --nordic-emerald: var(--primary, #0D6E52);
    --nordic-emerald-hover: var(--primary-hover, #064E3B);
    --nordic-forest: var(--dark, #132A23);
    --nordic-sand: var(--bg, #F7F6F2);
    --nordic-surface: var(--card-bg, #FFFFFF);
    --nordic-border: rgba(19, 42, 35, 0.085);
    --nordic-border-emerald: rgba(13, 110, 82, 0.24);
    --nordic-shadow-sm: 0 6px 24px -6px rgba(19, 42, 35, 0.06);
    --nordic-shadow-lg: 0 24px 52px -12px rgba(19, 42, 35, 0.14);
    --nordic-transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-nordic {
    background-color: var(--bg, #F7F6F2);
    color: var(--text, #1C2B26);
    font-family: var(--body-font, 'Manrope', sans-serif);
    overflow-x: hidden;
    letter-spacing: -0.005em;
}

body.theme-nordic ::selection {
    background-color: var(--primary, #0D6E52);
    color: #ffffff;
}

/* ==========================================================================
   1. NORDIC EMERALD TRUST TOPBAR
   ========================================================================== */
.nordic-topbar {
    background-color: var(--dark, #132A23);
    color: rgba(247, 246, 242, 0.85);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 1035;
}

.nordic-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(110, 231, 183, 0.25);
    color: #6EE7B7;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nordic-topbar a {
    color: rgba(247, 246, 242, 0.85);
    text-decoration: none;
    transition: var(--nordic-transition);
}

.nordic-topbar a:hover {
    color: #6EE7B7;
}

.nordic-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(247, 246, 242, 0.85);
    font-size: 0.78rem;
    transition: var(--nordic-transition);
}

.nordic-topbar-social a:hover {
    background: var(--primary, #0D6E52);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   2. NORDIC ARCHITECTURAL HEADER & NAVBAR
   ========================================================================== */
.nordic-header-bar {
    background: var(--navbar-bg, rgba(247, 246, 242, 0.94));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nordic-border);
    transition: var(--nordic-transition);
}

.smart-header.header-scrolled .nordic-header-bar {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--nordic-shadow-sm);
}

.nordic-navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    padding: 14px 0;
    transition: var(--nordic-transition);
    position: relative;
    z-index: 10;
}

.smart-header.header-scrolled .nordic-navbar {
    padding: 10px 0;
}

.nordic-navbar .navbar-brand {
    font-family: var(--heading-font, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: var(--dark, #132A23);
}

.nordic-navbar .nav-link {
    font-family: var(--nav-font, 'Outfit', sans-serif);
    font-size: var(--nav-size, 15px);
    font-weight: var(--nav-weight, 600);
    color: var(--header-link-color, #1C2B26) !important;
    padding: 9px 16px !important;
    border-radius: 10px;
    position: relative;
    transition: var(--nordic-transition);
}

.nordic-navbar .nav-link:hover,
.nordic-navbar .nav-link.active,
.nordic-navbar .nav-item.show > .nav-link {
    color: var(--header-link-hover-color, #0D6E52) !important;
    background-color: rgba(13, 110, 82, 0.075);
}

/* Search Trigger Pill */
.nordic-search-btn {
    height: 40px;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid var(--nordic-border);
    background: #ffffff;
    color: var(--dark, #132A23);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--nordic-transition);
}

.nordic-search-btn:hover {
    background: var(--primary, #0D6E52);
    border-color: var(--primary, #0D6E52);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-nordic-cta {
    background-color: var(--primary, #0D6E52);
    color: #ffffff !important;
    font-family: var(--heading-font, 'Outfit', sans-serif);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px -6px rgba(13, 110, 82, 0.4);
    transition: var(--nordic-transition);
}

.btn-nordic-cta:hover {
    background-color: var(--primary-hover, #064E3B);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. NORDIC ORGANIC MEGA MENU & DROPDOWNS
   ========================================================================== */
.nordic-navbar .dropdown-menu {
    border: 1px solid var(--nordic-border);
    border-top: 3px solid var(--primary, #0D6E52);
    border-radius: 0 0 16px 16px;
    background: #ffffff;
    box-shadow: var(--nordic-shadow-lg);
    padding: 10px;
    min-width: 230px;
}

.nordic-navbar .dropdown-item {
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text, #1C2B26);
    transition: var(--nordic-transition);
}

.nordic-navbar .dropdown-item:hover {
    background: var(--bg, #F7F6F2);
    color: var(--primary, #0D6E52);
    transform: translateX(3px);
}

.has-mega-menu {
    position: static !important;
}

.nordic-mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    border: none !important;
    border-top: 3px solid var(--primary, #0D6E52) !important;
    border-bottom: 1px solid var(--nordic-border) !important;
    border-radius: 0 0 20px 20px !important;
    background: #ffffff;
    box-shadow: var(--nordic-shadow-lg);
    padding: 0 !important;
    margin-top: 0 !important;
}

.nordic-mega-featured {
    background: linear-gradient(155deg, var(--footer-gradient-start, #0D1F1A) 0%, var(--footer-gradient-end, #16382E) 100%);
    color: #ffffff;
    padding: 36px 32px;
    height: 100%;
    border-bottom-left-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nordic-mega-links-wrap {
    padding: 32px;
    background: #ffffff;
    border-bottom-right-radius: 20px;
}

.nordic-mega-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 11px;
    color: var(--text, #1C2B26);
    text-decoration: none;
    font-weight: 500;
    transition: var(--nordic-transition);
    border: 1px solid transparent;
}

.nordic-mega-link:hover {
    background: var(--bg, #F7F6F2);
    border-color: var(--nordic-border-emerald);
    color: var(--primary, #0D6E52);
    transform: translateX(3px);
}

.nordic-mega-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(13, 110, 82, 0.1);
    color: var(--primary, #0D6E52);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--nordic-transition);
}

.nordic-mega-link:hover .nordic-mega-icon-box {
    background: var(--primary, #0D6E52);
    color: #ffffff;
}

@media (min-width: 992px) {
    .nordic-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        animation: nordicMenuReveal 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

@keyframes nordicMenuReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   4. NORDIC SEARCH OVERLAY & NEWSLETTER CARD
   ========================================================================== */
.nordic-search-card {
    background: #ffffff;
    border-top: 4px solid var(--primary, #0D6E52);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
}

.nordic-search-card .search-input {
    color: var(--dark, #132A23) !important;
    border-bottom: 2px solid rgba(19, 42, 35, 0.15) !important;
}

.nordic-search-card .search-input:focus {
    border-bottom-color: var(--primary, #0D6E52) !important;
}

.nordic-newsletter-card {
    background: linear-gradient(135deg, var(--footer-gradient-start, #0D1F1A) 0%, var(--footer-gradient-end, #16382E) 100%);
    border-radius: 20px;
    padding: 42px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--nordic-shadow-lg);
    border: 1px solid rgba(110, 231, 183, 0.15);
}

/* ==========================================================================
   5. NORDIC DEEP FOREST FOOTER (FULLY CONFIGURABLE COLORS, NO TEXT-MUTED)
   ========================================================================== */
.nordic-footer {
    background: linear-gradient(160deg, var(--footer-gradient-start, #0D1F1A) 0%, var(--footer-gradient-end, #16382E) 100%);
    color: var(--footer-text-color, #A7F3D0);
    padding: 72px 0 32px;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.nordic-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #0D6E52), #6EE7B7, var(--primary, #0D6E52));
}

.nordic-footer h1,
.nordic-footer h2,
.nordic-footer h3,
.nordic-footer h4,
.nordic-footer h5,
.nordic-footer h6 {
    color: var(--footer-heading-color, #ECFDF5) !important;
    font-family: var(--heading-font, 'Outfit', sans-serif);
    letter-spacing: -0.01em;
}

.nordic-footer p,
.nordic-footer span,
.nordic-footer li,
.nordic-footer div {
    color: var(--footer-text-color, #A7F3D0);
}

.nordic-footer a:not(.btn) {
    color: var(--footer-link-color, #D1FAE5) !important;
    text-decoration: none;
    transition: var(--nordic-transition);
}

.nordic-footer a:not(.btn):hover {
    color: var(--footer-link-hover-color, #34D399) !important;
    transform: translateX(3px);
}

.nordic-footer .footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-link-color, #D1FAE5) !important;
    transition: var(--nordic-transition);
}

.nordic-footer .footer-social a:hover {
    background: var(--primary, #0D6E52);
    border-color: var(--primary, #0D6E52);
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   6. GLOBAL CARDS & BUTTONS IN NORDIC THEME
   ========================================================================== */
body.theme-nordic .card {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--nordic-border);
    border-radius: var(--radius, 12px);
    box-shadow: var(--nordic-shadow-sm);
    transition: var(--nordic-transition);
}

body.theme-nordic .card:hover {
    box-shadow: var(--nordic-shadow-lg);
    border-color: var(--nordic-border-emerald);
}

/* ==========================================================================
   7. NORDIC ARCHITECTURAL MOBILE SIDEBAR (OFFCANVAS)
   ========================================================================== */
@media (max-width: 991.98px) {
    body.theme-nordic header .navbar-collapse {
        display: none !important;
    }
}

body.theme-nordic .nordic-offcanvas {
    width: 360px !important;
    max-width: 90vw !important;
    background-color: var(--bg, #F7F6F2) !important;
    color: var(--text, #1C2B26);
    border-left: none !important;
    border-radius: 24px 0 0 24px;
    box-shadow: -24px 0 60px rgba(19, 42, 35, 0.28);
    overflow: hidden;
}

body.theme-nordic .nordic-offcanvas-header {
    background: linear-gradient(145deg, var(--footer-gradient-start, #0D1F1A) 0%, var(--footer-gradient-end, #16382E) 100%);
    color: #ECFDF5;
    padding: 1.35rem 1.4rem;
    border-bottom: 3px solid var(--primary, #0D6E52);
    position: relative;
}

body.theme-nordic .nordic-offcanvas-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ECFDF5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--nordic-transition);
}

body.theme-nordic .nordic-offcanvas-close:hover {
    background: var(--primary, #0D6E52);
    border-color: #6EE7B7;
    color: #ffffff;
    transform: rotate(90deg);
}

body.theme-nordic .nordic-mobile-search {
    background: #ffffff;
    border: 1px solid var(--nordic-border);
    border-radius: 12px;
    padding: 4px 5px 4px 14px;
    display: flex;
    align-items: center;
    box-shadow: var(--nordic-shadow-sm);
    transition: var(--nordic-transition);
}

body.theme-nordic .nordic-mobile-search:focus-within {
    border-color: var(--primary, #0D6E52);
    box-shadow: 0 0 0 3px rgba(13, 110, 82, 0.14);
}

body.theme-nordic .nordic-mobile-search input {
    border: none;
    background: transparent;
    color: var(--dark, #132A23);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    padding: 6px 0;
}

body.theme-nordic .nordic-mobile-search button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: none;
    background: var(--primary, #0D6E52);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile Nav Links inside Nordic Drawer */
body.theme-nordic .nordic-mobile-nav .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 7px !important;
    width: 100%;
}

body.theme-nordic .nordic-mobile-nav .nav-item {
    width: 100%;
    border: none !important;
}

body.theme-nordic .nordic-mobile-nav .nav-link {
    background: #ffffff;
    color: var(--dark, #132A23) !important;
    font-family: var(--heading-font, 'Outfit', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1rem !important;
    border-radius: 12px;
    border: 1px solid var(--nordic-border);
    box-shadow: 0 2px 8px rgba(19, 42, 35, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--nordic-transition);
}

body.theme-nordic .nordic-mobile-nav .nav-link:hover,
body.theme-nordic .nordic-mobile-nav .nav-link[aria-expanded="true"] {
    background: var(--primary, #0D6E52) !important;
    border-color: var(--primary, #0D6E52) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}

body.theme-nordic .nordic-mobile-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    transform: none !important;
    inset: auto !important;
    width: 100% !important;
    background: #EFECE6 !important;
    border: none !important;
    border-left: 3px solid var(--primary, #0D6E52) !important;
    border-radius: 0 12px 12px 0 !important;
    box-shadow: none !important;
    margin: 6px 0 6px 8px !important;
    padding: 6px 8px !important;
}

body.theme-nordic .nordic-mobile-nav .dropdown-item {
    color: var(--dark, #132A23) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: var(--nordic-transition);
}

body.theme-nordic .nordic-mobile-nav .dropdown-item:hover {
    background: #ffffff !important;
    color: var(--primary, #0D6E52) !important;
    padding-left: 16px !important;
}

/* Deep Forest Contact Card inside Nordic Mobile Drawer */
body.theme-nordic .nordic-drawer-contact-box {
    background: linear-gradient(150deg, var(--footer-gradient-start, #0D1F1A) 0%, var(--footer-gradient-end, #16382E) 100%);
    color: #ECFDF5;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--nordic-shadow-sm);
}

body.theme-nordic .nordic-drawer-contact-box a {
    color: #D1FAE5;
    text-decoration: none;
    transition: var(--nordic-transition);
}

body.theme-nordic .nordic-drawer-contact-box a:hover {
    color: #6EE7B7;
}

body.theme-nordic .nordic-drawer-social a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #D1FAE5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--nordic-transition);
}

body.theme-nordic .nordic-drawer-social a:hover {
    background: var(--primary, #0D6E52);
    border-color: #6EE7B7;
    color: #ffffff;
    transform: translateY(-2px);
}

