/*!
Theme Name: MOMC
Theme URI: 
Author: Source Code Web Team
Author URI: https://www.sourcecode.com.mm/
Description: Clean, modern responsive WordPress theme style architecture.
Version: 1.0.0
Text Domain: momc
*/

/* ==========================================================================
   01. GLOBAL CSS RESET & BOX-SIZING
   ========================================================================== */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   02. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */

:root {
    /* Primary palette */
    --primary: #1AA44A;
    --primary-dark: #158a3c;
    --primary-light: #E8F6ED;

    /* Neutral palette */
    --color-900: #0A0D14;
    --color-500: #525866;
    --color-400: #868C98;
    --color-300: #CDD0D5;
    --color-200: #E2E4E9;
    --color-white: #FFFFFF;

    /* Backgrounds */
    --bg: #F6F8FA;
    --bg-white: #ffffff;

    /* Brand mappings */
    --royal: var(--primary);
    --royal-light: var(--primary-light);
    --hikari: #0382E3;
    --hikari-light: #EBF1FF;
    --regen: #E2D106;
    --regen-light: #FEF7EC;

    /* Radius */
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-full: 9999px;

    /* Layout */
    --top: 16px;
    --max: 1224px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Fluid spacing */
    --space-y: clamp(2.5rem, 2rem + 2.2vw, 5rem);
    --space-x: clamp(1.25rem, 1rem + 2vw, 2.5rem);

    /* Shadows */
    --shadow-card: 0px 16px 32px -12px #585C5F1A;
    --shadow-card-hover: 0 26px 56px -18px rgba(35, 43, 69, 0.22),
                         0 6px 14px rgba(35, 43, 69, 0.07);
}


/* ==========================================================================
   03. BASE TYPOGRAPHY & ELEMENT DEFAULTS
   ========================================================================== */

body {
    font-family: 'Instrument Sans', sans-serif;
    font-style: normal;
    color: var(--color-500);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
}

:lang(my) body {
    font-family: "Noto Sans Myanmar", sans-serif;
    font-style: normal;
    line-height: 2.0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

h1 {
    font-weight: 700;
    font-style: normal;
    font-size: clamp(56px, 6.67vw, 96px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

h2 {
    font-weight: 600;
    font-style: normal;
    font-size: clamp(28px, 2.78vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-weight: 600;
    font-style: normal;
    font-size: clamp(28px, 1.25rem + 1vw, 32px);
    line-height: 1.2;
    letter-spacing: 0;
}

h4 {
    font-size: 24px;
    line-height: 1.33;
}

button {
    font-family: inherit;
}

/* Myanmar language overrides */
:lang(my) h1 {
    line-height: 1.8;
}

:lang(my) h2 {
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.6;
}

:lang(my) h3,
:lang(my) h4 {
	font-size: clamp(24px, 1.1rem + 0.8vw, 28px);
    line-height: 1.6;
}

p,
td,
li {
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -1.5%;
}

:lang(my) p,
:lang(my) td,
:lang(my) li,
:lang(my) a {
    line-height: 2.0;
    font-size: 16px;
}

/* ==========================================================================
   04. PRIMARY NAVIGATION COMPONENT (DESKTOP)
   ========================================================================== */

.nav-wrap {
    background: transparent;
    position: fixed;
    top: var(--top);
    left: 16px;
    right: 16px;
    max-width: 1224px;
    width: calc(100% - 120px);
    margin-inline: auto;
    z-index: 100;
}

nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 48px;
    height: 92px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    width: 70px;
    height: 60px;
}

.logo,
.logo:focus,
.logo:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

:lang(my) .nav-links {
    gap: 15px;
}

.nav-links a,
.nav-links .dropdown>span {
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    color: var(--color-900);
    line-height: 24px;
    letter-spacing: -1.1%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

:lang(my) .nav-links a,
:lang(my) .nav-links .dropdown>span {
    font-size: 15px;
}

.nav-links a:hover,
.nav-links .dropdown:hover>span {
    color: var(--primary);
}

.nav-links a.active,
.nav-links .dropdown.active>span,
.nav-links .dropdown.active>a {
    color: var(--primary);
    font-weight: 600;
}


/* ==========================================================================
   05. DROPDOWN SUB-MENUS (DESKTOP)
   ========================================================================== */

.dropdown {
    position: relative;
}

.dropdown>span svg {
    transition: transform .2s;
}

.dropdown:hover>span svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    padding-top: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s;
    text-align: center;
}

/* Bridges the hover gap between the trigger and the menu panel */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-menu-inner {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    padding: 8px 0;
    min-width: 120px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    transition: background .12s, color .12s;
}

.dropdown-menu a:hover {
    color: var(--primary);
}


/* ==========================================================================
   06. GLOBAL LANGUAGE SWITCHER MODULE
   ========================================================================== */

.lang-dropdown {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid var(--color-200);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-white);
    transition: border-color .15s;
    white-space: nowrap;
    color: var(--color-500);
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--primary);
}

.flag {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
}

.flag img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transform: scale(1.5);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    padding: 6px 0;
    min-width: 140px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
    transform: translateY(-6px);
    z-index: 200;
}

.lang-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s;
}

.lang-menu a:hover {
    color: var(--primary);
}


/* ==========================================================================
   07. MOBILE HAMBURGER TRIGGER ICON
   ========================================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    width: 36px;
    height: 36px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-500);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease, scaleX .3s ease, top .3s ease;
    transform-origin: center;
}

/* Morphs the hamburger into a close (x) icon */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   08. MOBILE PANEL OVERLAY SYSTEM (DRAWER & ACCORDIONS)
   ========================================================================== */

.mobile-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
}

.mobile-panel.open {
    display: block;
}

.mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(2px);
    animation: fadeIn .2s ease;
}

.mobile-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg-white);
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
    animation: slideInRight .25s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-200);
}

.mobile-drawer-header .logo {
    margin-right: auto;
}

.mobile-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s;
    flex-shrink: 0;
}

.mobile-close-btn:hover {
    background: #f0f0f0;
}

.mobile-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-500);
}

.mobile-drawer-body {
    padding: 12px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-drawer-body a {
    display: block;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    color: var(--color-500);
    transition: background .12s, color .12s;
}

.mobile-drawer-body a:hover,
.mobile-drawer-body a.active,
.m-accordion-trigger.active a {
    color: var(--primary);
}

.mobile-drawer-body a.active {
    font-weight: 600;
}

.m-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-500);
    border-radius: 10px;
    cursor: pointer;
    transition: background .12s;
    user-select: none;
}

.m-accordion-trigger:hover a {
    color: var(--primary);
}

.m-accordion-trigger svg {
    transition: transform .2s;
    flex-shrink: 0;
}

.m-accordion-trigger.open svg {
    transform: rotate(180deg);
}

.m-accordion-body {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 4px 12px;
}

.m-accordion-body.open {
    display: flex;
}

.m-accordion-body a {
    font-size: 16px;
    color: var(--color-500);
    padding: 9px 16px;
}

.m-accordion-body a:hover {
    color: var(--primary);
}

.mobile-lang-row {
    display: flex;
    gap: 8px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--color-200);
    margin-top: 6px;
}

.mobile-lang-row button {
    flex: 1;
    padding: 9px;
    border: 1.5px solid var(--color-200);
    border-radius: 10px;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.mobile-lang-row button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-lang-row button.active {
    border-color: var(--primary);
    color: var(--primary);
}


/* ==========================================================================
   09. GLOBAL WRAPPERS & LAYOUT SECTIONS
   ========================================================================== */

.container {
    max-width: 1224px;
    width: calc(100% - 120px);
    margin-inline: auto;
}

.section-intro {
    margin-bottom: 48px;
}

.section-intro .section-label {
    font-weight: 500;
    color: var(--primary);
}

.section-intro p {
    margin-top: 12px;
}

.intro-section {
    padding: 56px 0 0;
}

.section-label {
    color: var(--primary);
    margin-bottom: 4px;
}

.section-title {
    color: var(--color-500);
    max-width: 808px;
    margin-bottom: 32px;
}

.section-desc {
    color: var(--color-500);
    max-width: 808px;
    margin-bottom: 48px;
}

.section-desc p {
    margin-bottom: 16px;
}

/* ==========================================================================
   10. INTERACTIVE FAQ ACCORDION COMPONENT
   ========================================================================== */

.faq-section {
    margin-bottom: 80px;
}

.faq-list {
    border-top: 1px solid var(--color-200);
}

.faq-item {
    border-bottom: 1px solid var(--color-200);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.8;
    letter-spacing: -1.5%;
    color: var(--color-500);
    transition: box-shadow 0.2s, transform 0.2s;
}

.faq-question:hover {
    color: var(--primary);
    box-shadow: 0px 1px 2px 0px #E4E5E73D;
}

.faq-question-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-q-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-500);
}

.faq-item:hover .faq-q-icon {
    color: var(--primary);
}

.faq-item.open .faq-q-icon,
.faq-item.open .faq-question-left {
    color: var(--primary);
}

.faq-toggle {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--color-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    color: var(--color-400);
}

.faq-item.open .faq-toggle {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.faq-item:hover .faq-toggle {
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.faq-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.faq-item.open .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s;
}

/* NOTE: fixed max-height cap; increase if answer content can exceed 400px */
.faq-item.open .faq-answer {
    max-height: 400px;
    padding-bottom: 20px;
}

.faq-answer-inner {
    padding-left: 34px;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -1.5%;
    color: var(--color-400);
}

.faq-answer-inner p {
    margin-bottom: 16px;
}

.faq-answer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-answer ul li {
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
    color: #333;
}

.faq-answer ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.faq-answer ul li strong {
    color: var(--primary);
    font-weight: 600;
}


/* ==========================================================================
   11. GLOBAL FOOTER SITE INFRASTRUCTURE
   ========================================================================== */

footer {
    background: var(--primary-light);
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 45px;
    padding: 64px 0 40px;
}

.footer-brand .footer-logo {
    width: 180px;
    height: auto;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
}

.footer-col {
    min-width: 120px;
    flex: 0 1 auto;
}

.footer-col h4 {
    font-family: inherit;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--primary);
    margin-bottom: 24px;
}

:lang(my) .footer-col h4 {
	font-size: 22px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

footer a {
    font-family: inherit;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 2px;
    color: var(--color-500);
    transition: color .15s;
}

footer a:hover {
    color: var(--primary);
}

footer p {
	font-weight: 500;
}

.footer-contact {
    flex: 1 1 320px;
    max-width: 320px;
}

.footer-contact p {
    margin-bottom: 8px;
    color: var(--color-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid var(--primary);
}

.footer-bottom p {
	font-size: 16px;
}

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .15s;
    z-index: 90;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
}


/* ==========================================================================
   12. KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}


/* ==========================================================================
   13. MEDIA QUERIES (DESKTOP-FIRST, DESCENDING BREAKPOINT ORDER)
   ========================================================================== */

@media (max-width: 1280px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 1.8vw;
    }

    .nav-links a,
    .nav-links .dropdown > span {
        font-size: clamp(14px, 1.2vw, 16px);
    }

    .lang-btn {
        padding: 7px;
    }
}

@media (max-width: 1200px) {
    .nav-wrap {
        width: calc(100% - 40px);
    }

    .nav-links,
    .lang-dropdown {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .container {
        width: calc(100% - 80px);
    }
}

@media (max-width: 1024px) {
    .footer-top {
        gap: 32px;
    }

    .footer-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 2.6vw;
    }

    .container {
        width: calc(100% - 40px);
    }

    .intro-section {
        padding: 5.21vw 0 0;
    }

    .faq-section {
        padding: 36px 0;
    }

    .faq-q-icon {
        width: 20px;
        height: 20px;
    }

    .faq-question {
        font-size: 20px;
    }

    .footer-top {
        padding: 40px 0 32px;
    }

    .footer-inner {
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 600px) {
    .intro-section {
        padding: 5.33vw 0 0;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-brand .footer-logo {
        width: 150px;
    }

    .footer-contact {
        flex: 0 1 auto;
        max-width: 100%;
    }

    .footer-col h4 {
        font-size: 22px;
    }

    footer a {
        font-size: 18px;
    }
}