/* ========================================
   MUNSHI JI — PUBLIC PAGES STYLESHEET
   Home, Developers, Usage Policy, Status,
   WooCommerce, Shopify
======================================== */

/* ========================================
   1. GLOBAL VARIABLES & RESET
======================================== */

:root {
    --green: #25D366;
    --teal: #128C7E;
    --dark: #075E54;
    --bg: #f4f8f6;
    --text: #20312d;
    --muted: #687872;
    --border: #dfe9e4;
    --white: #ffffff;
    --container: 1000px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.7 -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
}

a {
    color: var(--teal);
}

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

p {
    margin: 8px 0 14px;
}

ul,
ol {
    padding-left: 23px;
}

li {
    margin-bottom: 8px;
}

code,
pre {
    font-family: Consolas, "Courier New", monospace;
}

code {
    overflow-wrap: anywhere;
}

.muted {
    color: var(--muted);
}


/* ========================================
   2. SHARED PUBLIC HEADER
======================================== */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    padding: 16px 5%;
    background: var(--dark);
    box-shadow: 0 3px 15px rgba(7, 94, 84, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

.site-logo {
    color: var(--white);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 26px;
}

.site-nav a,
.dropdown-toggle {
    color: rgba(255, 255, 255, 0.88);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav > a:hover,
.dropdown-toggle:hover {
    color: var(--green);
}

/* Dashboard Login button */
.site-nav > a:last-child {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9px;
}

.site-nav > a:last-child:hover {
    border-color: var(--green);
    background: var(--green);
    color: var(--dark);
}


/* ========================================
   3. DEVELOPERS DROPDOWN
======================================== */

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dropdown-arrow {
    display: inline-block;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 1100;
    min-width: 205px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    display: block;
}

.site-nav .dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border: 0;
    border-radius: 7px;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}

.site-nav .dropdown-menu a:hover {
    background: #eaf7ef;
    color: var(--dark);
}


/* ========================================
   4. SHARED HERO
======================================== */

.hero {
    padding: 58px 5%;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(130deg, #ffffff, #eaf7ef);
}

.hero-inner,
.layout,
.page-container {
    width: 100%;
    max-width: var(--container);
    margin-right: auto;
    margin-left: auto;
}

.eyebrow {
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1,
.hero .hero-title {
    margin: 12px 0;
    color: var(--dark);
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.15;
}

.hero p {
    max-width: 700px;
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 17px;
}


/* ========================================
   5. SHARED BUTTONS
======================================== */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-block;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: var(--dark);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--teal);
}

.btn.secondary {
    border-color: var(--border);
    background: var(--white);
    color: var(--dark);
}

.btn.secondary:hover {
    border-color: var(--teal);
    background: #eef8f1;
}


/* ========================================
   6. CONTENT CONTAINERS & CARDS
======================================== */

.layout {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 30px;
    max-width: 1180px;
    padding: 35px 20px;
}

.page-container {
    padding: 35px 20px;
}

.policy-section,
.content-card,
.doc-section,
.status-card {
    margin-bottom: 22px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.policy-section,
.doc-section,
.layout main section {
    scroll-margin-top: 20px;
}

.policy-section h2,
.content-card h2,
.doc-section h2,
.status-card h2 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 23px;
    line-height: 1.35;
}

.policy-number {
    display: inline-block;
    min-width: 30px;
    color: var(--teal);
    font-weight: 800;
}

.tip {
    margin: 14px 0;
    padding: 13px 15px;
    border-left: 4px solid var(--green);
    border-radius: 5px;
    background: #eef8f1;
}


/* ========================================
   7. DOCUMENTATION SIDEBAR
======================================== */

.layout aside {
    position: sticky;
    top: 20px;
    align-self: start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
}

.layout aside strong {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
}

.layout aside a {
    display: block;
    margin: 3px 0;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    border-radius: 7px;
    color: #50625a;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.layout aside a:hover,
.layout aside a.active {
    border-left-color: var(--green);
    background: #eaf7ef;
    color: var(--dark);
    font-weight: 700;
}

.layout main section {
    margin-bottom: 22px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.doc-section p {
    overflow-wrap: anywhere;
}


/* ========================================
   8. CODE BLOCKS & COPY BUTTON
======================================== */

pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 18px;
    border: 1px solid #244b43;
    border-radius: 10px;
    background: #102b26;
    color: #e7fff3;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
}

pre code {
    overflow-wrap: normal;
}

.copy-btn {
    display: inline-block;
    margin: 8px 0 14px;
    padding: 8px 13px;
    border: 0;
    border-radius: 7px;
    background: var(--teal);
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
}

.copy-btn:hover {
    background: var(--dark);
}


/* ========================================
   9. SYSTEM STATUS
======================================== */

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.status-card {
    margin-bottom: 0;
}

.status-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e7f8ed;
    color: #187743;
    font-size: 12px;
    font-weight: 800;
}


/* ========================================
   10. FOOTER
======================================== */

.site-footer {
    padding: 25px 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}


/* ========================================
   11. RESPONSIVE — TABLETS
======================================== */

@media (max-width: 760px) {
    .hero {
        padding: 40px 20px;
    }

    .layout {
        grid-template-columns: 1fr;
        padding: 20px 13px;
    }

    .page-container {
        padding: 24px 13px;
    }

    .layout aside {
        position: static;
    }

    .policy-section,
    .content-card,
    .doc-section,
    .status-card,
    .layout main section {
        padding: 18px;
    }

    .policy-section h2,
    .content-card h2,
    .doc-section h2,
    .status-card h2 {
        font-size: 21px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   12. RESPONSIVE — MOBILE HEADER
======================================== */

@media (max-width: 600px) {
    .site-header {
        padding: 16px 20px;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .site-nav > a,
    .dropdown-toggle {
        font-size: 13px;
    }

    .site-nav > a:last-child {
        padding: 8px 10px;
    }

    .dropdown-menu {
        left: 0;
    }

    .site-nav .dropdown-menu a {
        font-size: 14px;
    }
}


/* ========================================
   13. RESPONSIVE — SMALL MOBILE
======================================== */

@media (max-width: 480px) {
    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    pre {
        padding: 13px;
        font-size: 12px;
    }
}


:root {
    --green: #25D366;
    --teal: #128C7E;
    --dark: #075E54;
    --light: #DCF8C6;
    --bg: #f3f8f6;
    --white: #ffffff;
    --text: #20312d;
    --muted: #74827e;
    --border: #e4ece9;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
}

/* HEADER */

.site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    background: var(--dark);
    padding: 16px 5%;
    box-shadow: 0 3px 15px rgba(7, 94, 84, 0.12);
}

.header-inner {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    color: var(--white);
    font-size: 21px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.4px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 26px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--green);
}

.site-nav a:last-child {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9px;
}

.site-nav a:last-child:hover {
    color: var(--dark);
    background: var(--green);
    border-color: var(--green);
}

/* STATUS PAGE BACKGROUND */

.page {
    width: 100%;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(37, 211, 102, 0.16),
            transparent 28%
        ),
        linear-gradient(135deg, #ffffff 0%, #eef8f3 100%);
}

.container {
    width: 100%;
    max-width: 1250px;
}

/* MAIN HERO */

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 35px;
    align-items: stretch;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.service-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.small-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.13);
}

.title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -4px;
    font-weight: 900;
}

.subtitle {
    margin: 22px 0 0;
    max-width: 650px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.brand {
    margin-top: 25px;
    color: var(--dark);
    font-size: 16px;
    font-weight: 800;
}

/* STATUS CARD */

.status-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(7, 94, 84, 0.09);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(7, 94, 84, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-heading {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #12853e;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.big-dot {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(37, 211, 102, 0.13);
}

.checked {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* SERVICE ITEMS */

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service {
    min-width: 0;
    background: #f8fbfa;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 15px;
}

.service-name {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #159447;
    font-size: 14px;
    font-weight: 800;
}

/* BOTTOM STATUS */

.bottom-bar {
    margin-top: 22px;
    background: var(--dark);
    border-radius: 16px;
    padding: 17px 22px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.bottom-title {
    font-size: 14px;
    font-weight: 800;
}

.bottom-text {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    line-height: 1.6;
}

.operational {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* TABLET */

@media (max-width: 900px) {
    .page {
        min-height: calc(100vh - 60px);
        padding: 30px 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-left {
        padding: 10px 0;
    }

    .status-panel {
        padding: 25px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .site-header {
        padding: 16px 20px;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .site-nav a:last-child {
        padding: 8px 10px;
    }

    .page {
        min-height: auto;
        padding: 25px 15px;
    }

    .title {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .subtitle {
        font-size: 15px;
    }

    .status-panel {
        padding: 22px;
        border-radius: 20px;
    }

    .online-status {
        font-size: 20px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .bottom-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .operational {
        white-space: normal;
    }
}
