
/* =========================================
ROOT VARIABLES
Global colors and fonts
========================================= */

:root {

  /* Brand Colors */
  --primary-blue: #006CB7;
  --cyan-blue: #00AEEF;
  --accent-blue: #00AEEF;
  --dark-navy: #002E6E;

  /* Base Colors */
  --white: #ffffff;
  --black: #000000;

  /* Font */
  --font-primary: "Bai Jamjuree", sans-serif;

}



/* =========================================
GLOBAL RESET
========================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



/* =========================================
HTML SETTINGS
========================================= */

html {

  font-size: 16px;

  scroll-behavior: smooth;

}



/* =========================================
BODY GLOBAL SETTINGS
========================================= */

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-navy);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 84px;
  overflow-x: hidden;
}

/* =====================================
    HEADER WRAPPER
===================================== */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    padding: 0;
    transition: all 0.3s ease;
}

/* =====================================
    NAV CONTAINER
===================================== */
.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 60px;
    border-bottom: none;
    transition: all 0.4s ease;
}

/* =====================================
   SCROLL EFFECT
===================================== */
.custom-header.scrolled {
    top: 0;
}

.custom-header.scrolled .nav-container {
    box-shadow: 0 4px 20px rgba(0, 46, 110, 0.08);
}

.custom-header.header-hidden {
    transform: translateY(-100%);
}

/* =====================================
   LOGO
===================================== */
.logo img {
    height: 60px;
    display: block;
    object-fit: contain;
}

/* =====================================
   NAV MENU
===================================== */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 auto 0 40px;
    padding: 0;
    gap: 12px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--dark-navy);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu li a:hover {
    color: var(--primary-blue);
}

/* =====================================
   DROPDOWN
===================================== */

.dropdown,
.sub-dropdown {
    position: relative;
}

.dropdown-content,
.sub-dropdown-content {
    position: absolute;
    background: var(--white);
    min-width: 260px;
    border-radius: 16px;
    padding: 12px 0;
    list-style: none;
    box-shadow: 0 20px 40px rgba(33, 49, 59, 0.14);
    border: 1px solid #f1f3f6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.dropdown-content {
    top: calc(100% + 10px);
    left: 0;
}

.sub-dropdown-content {
    top: 0;
    left: 100%;
    margin-left: 8px;
}

.dropdown-content li a,
.sub-dropdown-content li a {
    padding: 12px 20px;
    margin: 0 10px;
    border-radius: 10px;
    color: var(--dark-navy);
    transition: all 0.2s ease;
}

.dropdown-content li a:hover,
.sub-dropdown-content li a:hover {
    background-color: var(--primary-blue);
    color: #ffffff !important;
}

.dropdown-content li a:hover .side-arrow,
.dropdown-content li a:hover .arrow {
    color: #ffffff;
}

@media (min-width: 1101px) {
    .dropdown:hover > .dropdown-content,
    .sub-dropdown:hover > .sub-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.sub-dropdown::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 15px;
    height: 100%;
}

.arrow,
.side-arrow {
    font-size: 10px;
    pointer-events: none;
}

/* =====================================
   BUTTONS
===================================== */

.header-btns {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-btn {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    font-family: var(--font-primary);
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 108, 183, 0.2);
}

.login-btn:hover {
    background-color: var(--dark-navy);
    box-shadow: 0 6px 16px rgba(0, 46, 110, 0.3);
    transform: translateY(-1px);
}

.mobile-login {
    display: none;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 1100px) {

    .nav-container {
        padding: 10px 20px;
    }

    .logo img {
        height: 80px;
    }

    .desktop-btn {
        display: none;
    }

    .mobile-login {
        display: block;
        padding: 15px 24px;
    }

    .mobile-btn {
        width: 100%;
        text-align: center;
    }

    .nav-menu {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        width: 95%;
        padding: 20px 0;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(33, 49, 59, 0.18);
        display: none;
        max-height: 75vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 16px 24px;
        border-bottom: 1px solid #f4f4f4;
        justify-content: space-between;
    }

    .dropdown-content,
    .sub-dropdown-content {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        width: 100%;
        background: #fafcff;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-blue);
        border-radius: 0;
        padding-left: 12px;
        margin: 0;
    }

    .dropdown.active > .dropdown-content,
    .sub-dropdown.active > .sub-dropdown-content {
        display: block;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .bar {
        width: 24px;
        height: 3px;
        background: var(--dark-navy);
        transition: 0.3s ease;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}

/* =========================================
   CLASSIC FOOTER REDESIGN
========================================= */

.balanced-footer {
    background-color: #ffffff;
    font-family: var(--font-primary);
    padding: 25px 0 0 0;
    border-top: 1px solid rgba(0, 46, 110, 0.08);
    color: var(--dark-navy);
}

.footer-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 60px 25px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left {
    justify-self: start;
    display: flex;
    align-items: center;
}

.footer-center {
    justify-self: center;
    display: flex;
    align-items: center;
}

.footer-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 55px;
    display: block;
    object-fit: contain;
}

.footer-inline-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-inline-menu li a {
    text-decoration: none;
    color: var(--dark-navy);
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.footer-inline-menu li a:hover {
    color: var(--primary-blue);
}

.sep {
    color: var(--cyan-blue);
    font-weight: 300;
    font-size: 13px;
    opacity: 0.8;
}

.social-icon-group {
    display: flex;
    gap: 12px;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 46, 110, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-legal-bar {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 46, 110, 0.08);
}

.legal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 13.5px;
    color: var(--dark-navy);
}

.legal-left {
    justify-self: start;
}

.legal-left strong {
    color: var(--dark-navy);
    font-weight: 700;
}

.legal-center {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 14px;
}

.legal-center .contact-item {
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s ease;
}

.legal-center .contact-item i {
    color: var(--primary-blue);
    font-size: 13px;
}

.legal-center .contact-item:hover {
    color: var(--primary-blue);
}

.legal-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-right a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.designer-logo {
    height: 18px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    transition: filter 0.3s ease;
    filter: brightness(1) contrast(1);
    vertical-align: middle;
}

.designer-logo:hover {
    filter: brightness(1.1);
}

/* RESPONSIVE FOOTER */
@media (max-width: 992px) {
    .footer-main-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 20px 30px;
    }

    .footer-left,
    .footer-center,
    .footer-right,
    .legal-left,
    .legal-center,
    .legal-right {
        justify-self: center;
    }

    .legal-container {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
}