/*
Theme Name: EMS LTD
Theme URI: https://example.com
Author: EMS LTD
Description: Corporate-style theme for EMS LTD with a high-risk merchant / expansion focused homepage.
Version: 1.0
Text Domain: ems-ltd
*/

/* Base Styles */
:root {
    --ems-primary: #0d5c4d;
    --ems-primary-dark: #064037;
    --ems-accent: #0b7a5c;
    --ems-light: #f5faf8;
    --ems-bg: #ffffff;
    --ems-text: #1c1f23;
    --ems-muted: #6c757d;
    --ems-radius: 14px;
    --ems-shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
    --ems-container-width: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ems-text);
    background-color: #ffffff;
    line-height: 1.6;
}

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

a {
    color: var(--ems-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.ems-container {
    width: 100%;
    max-width: var(--ems-container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.ems-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ems-topbar {
    background: var(--ems-primary-dark);
    color: #eaf9f4;
    font-size: 13px;
}

.ems-topbar .ems-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    gap: 12px;
}

.ems-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ems-phone {
    color: #eaf9f4;
    font-weight: 500;
}

.ems-top-cta {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #eaf9f4;
    color: #eaf9f4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ems-main-nav {
    background: #ffffff;
}

.ems-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 16px;
}

.ems-logo a {
    font-weight: 700;
    font-size: 20px;
    color: var(--ems-primary-dark);
}

.ems-logo span {
    color: var(--ems-accent);
}

.ems-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ems-nav-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
}

.ems-nav-menu li a {
    color: var(--ems-text);
    padding: 4px 0;
    position: relative;
}

.ems-nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--ems-accent);
    transition: width 0.2s ease;
}

.ems-nav-menu li a:hover::after {
    width: 100%;
}

.ems-nav-cta .ems-btn-outline {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--ems-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--ems-primary);
}

/* Buttons */

.ems-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.ems-btn-primary {
    background: var(--ems-primary);
    color: #ffffff;
    box-shadow: var(--ems-shadow-soft);
}

.ems-btn-primary:hover {
    background: var(--ems-primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.ems-btn-outline {
    background: #ffffff;
    border: 1px solid var(--ems-primary);
    color: var(--ems-primary);
}

.ems-btn-outline:hover {
    background: var(--ems-primary);
    color: #ffffff;
    text-decoration: none;
}

.ems-btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

/* Sections */

.ems-main {
    min-height: 60vh;
}

.ems-section {
    padding: 64px 0;
}

.ems-bg-light {
    background: var(--ems-light);
}

.ems-bg-accent {
    background: linear-gradient(135deg, #0d5c4d, #0b7a5c);
    color: #eaf9f4;
}

.ems-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.ems-section-header h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.ems-section-header p {
    margin: 0;
    color: var(--ems-muted);
}

/* Hero */

.ems-hero {
    background: radial-gradient(circle at top left, #e5f5f0 0, #ffffff 45%, #f5faf8 100%);
    padding: 72px 0 56px;
}

.ems-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.ems-hero-left h1 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 16px;
}

.ems-hero-left p {
    margin: 0 0 20px;
    color: var(--ems-muted);
    max-width: 480px;
}

.ems-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ems-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ems-primary-dark);
}

.ems-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--ems-muted);
}

.ems-hero-badges span {
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid #e2eee8;
}

.ems-hero-right .ems-hero-card {
    background: #ffffff;
    border-radius: var(--ems-radius);
    box-shadow: var(--ems-shadow-soft);
    padding: 20px 20px 22px;
    border: 1px solid #e3efe9;
}

.ems-hero-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

.ems-hero-card form {
    display: grid;
    gap: 10px;
}

.ems-hero-card input,
.ems-hero-card textarea,
.ems-card-form input,
.ems-card-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d5e4dd;
    font-size: 14px;
    font-family: inherit;
}

.ems-hero-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--ems-muted);
}

/* Cards grid */

.ems-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ems-card {
    background: #ffffff;
    border-radius: var(--ems-radius);
    padding: 20px 20px 22px;
    box-shadow: var(--ems-shadow-soft);
    border: 1px solid #e3efe9;
}

.ems-bg-accent .ems-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #eaf9f4;
}

.ems-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.ems-card p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--ems-muted);
}

.ems-bg-accent .ems-card p {
    color: #c9e8dd;
}

.ems-card ul {
    padding-left: 18px;
    margin: 0;
    font-size: 14px;
    color: var(--ems-muted);
}

.ems-bg-accent .ems-card ul {
    color: #d5f2e7;
}

.ems-section-cta {
    text-align: center;
    margin-top: 32px;
}

/* Two-column layout */

.ems-two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.ems-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    color: var(--ems-muted);
    font-size: 14px;
}

.ems-list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}

.ems-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ems-accent);
}

.ems-card-form {
    max-width: 420px;
    margin-left: auto;
}

.ems-card-form h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

.ems-card-form form {
    display: grid;
    gap: 10px;
}

/* Steps */

.ems-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
}

.ems-step {
    background: #ffffff;
    border-radius: var(--ems-radius);
    padding: 18px 18px 20px;
    border: 1px solid #e3efe9;
    box-shadow: var(--ems-shadow-soft);
    font-size: 14px;
}

.ems-step-number {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--ems-primary);
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 8px;
}

.ems-step h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.ems-step p {
    margin: 0;
    color: var(--ems-muted);
}

/* Stats */

.ems-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.ems-stat-number {
    display: block;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ems-stat-label {
    font-size: 13px;
    color: #d5f2e7;
}

/* FAQ */

.ems-faq {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.ems-faq details {
    background: #ffffff;
    border-radius: var(--ems-radius);
    border: 1px solid #e3efe9;
    padding: 10px 14px;
    font-size: 14px;
    box-shadow: var(--ems-shadow-soft);
}

.ems-faq summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}

.ems-faq summary::-webkit-details-marker {
    display: none;
}

.ems-faq summary::after {
    content: "+";
    float: right;
    color: var(--ems-muted);
    font-weight: 600;
}

.ems-faq details[open] summary::after {
    content: "–";
}

.ems-faq p {
    margin-top: 8px;
    color: var(--ems-muted);
}

/* Generic page */

.ems-page {
    padding: 56px 0;
}

.ems-page-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 30px;
}

.ems-page-content {
    font-size: 15px;
    color: var(--ems-muted);
}

/* Footer */

.ems-footer {
    background: #041f1b;
    color: #d5f2e7;
    padding-top: 40px;
}

.ems-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ems-footer h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.ems-footer p {
    margin: 0;
    font-size: 14px;
    color: #b6d8cc;
}

.ems-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.ems-footer-menu li {
    margin-bottom: 4px;
}

.ems-footer-menu a {
    color: #d5f2e7;
}

.ems-footer-bottom {
    padding: 12px 0 16px;
    font-size: 13px;
    color: #99c7b7;
    text-align: center;
}

/* Mobile nav */

.ems-nav-toggle {
    display: none;
    cursor: pointer;
    border: 1px solid #e0ece7;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    background: #ffffff;
}

.ems-nav-toggle span {
    margin-left: 4px;
}

@media (max-width: 900px) {
    .ems-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ems-two-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .ems-cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ems-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ems-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ems-footer-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .ems-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        padding: 10px 16px 12px;
    }

    .ems-nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .ems-nav-cta {
        display: none;
    }

    .ems-nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    .ems-nav-inner {
        position: relative;
    }

    .ems-nav-open .ems-nav {
        display: block;
    }

    .ems-topbar .ems-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .ems-hero {
        padding: 56px 0 40px;
    }

    .ems-hero-left h1 {
        font-size: 26px;
    }

    .ems-section {
        padding: 48px 0;
    }

    .ems-steps-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .ems-stats-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Fix logo size in header */
.ems-logo img {
    height: 55px;   /* 🔥 adjust size here */
    width: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .ems-logo img {
        height: 38px;
    }
}

/* === PRIMARY NAV: LAYOUT & BASIC LINKS === */

.ems-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 24px;
}

.ems-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ems-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.ems-nav-menu > li > a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
}

/* Remove old green underline animation */
.ems-nav-menu > li > a::after {
    content: none !important;
}

/* Hover color only (no underline) */
.ems-nav-menu > li > a:hover {
    color: #0d5c4d;
}

/* Parent li positioning for dropdown */
.ems-nav-menu > li {
    position: relative;
}

/* === DROPDOWN / SUB-MENU === */

.ems-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;              /* sits directly under parent item */
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    display: none;          /* hidden by default */
    z-index: 50;
}

.ems-nav-menu > li.menu-item-has-children:hover > .sub-menu,
.ems-nav-menu > li.menu-item-has-children:focus-within > .sub-menu {
    display: block;         /* show when hovering parent or inside submenu */
}

/* Links inside dropdown */
.ems-nav-menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #111827;
    white-space: normal;
    text-decoration: none;
}

.ems-nav-menu .sub-menu li + li a {
    border-top: 1px solid #f2f4f7;
}

.ems-nav-menu .sub-menu li a:hover {
    background: #f5faf8;
    color: #0d5c4d;
}

/* === MOBILE (keep things simple) === */

.ems-nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .ems-nav-toggle {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        border: 1px solid #d1e3dc;
        padding: 6px 12px;
        font-size: 13px;
        background: #ffffff;
        cursor: pointer;
    }

    .ems-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #ffffff;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
        padding: 12px 16px 16px;
    }

    .ems-nav-inner.ems-nav-open .ems-nav {
        display: block;
    }

    .ems-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ems-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 12px;
        display: block; /* show sub-items inline on mobile */
    }

    .ems-nav-cta {
        display: none;
    }
}

/* === TOP BAR === */
.ems-topbar {
    background: #00463A;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 0;
}
.ems-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ems-topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.ems-topbar-phone {
    color: #ffffff;
    font-weight: 500;
}
.ems-topbar-btn {
    border: 1px solid #ffffff;
    padding: 6px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

/* === MAIN NAV === */
.ems-mainnav {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #e8f2ee;
}
.ems-mainnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.ems-logo img {
    height: 52px;
    width: auto;
}

/* Menu */
.ems-menu {
    display: flex;
    list-style: none;
    gap: 34px;
    margin: 0;
    padding: 0;
}
.ems-menu li a {
    font-size: 15px;
    font-weight: 500;
    color: #14202b;
    text-decoration: none;
    padding: 6px 0;
}
.ems-menu li:hover > a {
    color: #00463A;
}

/* CTA */
.ems-btn-outline {
    border: 1px solid #00463A;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: #00463A;
}
.ems-btn-outline:hover {
    background: #00463A;
    color: #ffffff;
}

/* Dropdown style */
.ems-menu li {
    position: relative;
}
.ems-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    display: none;
    margin: 0;
    padding: 10px 0;
}
.ems-menu li:hover > .sub-menu {
    display: block;
}
.ems-menu .sub-menu li a {
    padding: 12px 20px;
    display: block;
    color: #14202b;
}
.ems-menu .sub-menu li + li a {
    border-top: 1px solid #f1f4f3;
}
.ems-menu .sub-menu li a:hover {
    background: #f5faf8;
    color: #00463A;
}

/* Mobile improvement */
@media (max-width: 900px) {
    .ems-menu { display: none; }
    .ems-cta { display: none; }
}


