/* =========================================================
   APSSPL HOME PAGE
   Simple professional style similar to ERPNext / Frappe
   ========================================================= */

:root {
    --ap-primary: #2490ef;
    --ap-primary-hover: #1f7fd4;

    --ap-heading: #171717;
    --ap-text: #383838;
    --ap-muted: #6b7280;

    --ap-border: #e5e7eb;
    --ap-bg: #ffffff;
    --ap-soft-bg: #f8f9fa;

    --ap-radius: 8px;
}


/* =========================================================
   GENERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ap-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.6;
}

.ap-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   FRAPPE / ERP WEBSITE HEADER
   ========================================================= */

.navbar {
    min-height: 64px !important;

    background: #ffffff !important;

    border-bottom: 1px solid var(--ap-border) !important;

    box-shadow: none !important;
}

.navbar .container,
.navbar .container-fluid {
    max-width: 1200px;

    margin: 0 auto;

    padding-left: 24px;
    padding-right: 24px;
}


/* Company / brand */

.navbar-brand {
    color: var(--ap-heading) !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    text-decoration: none !important;
}


/* Menu items */

.navbar .nav-link,
.navbar-nav .nav-link {
    padding-left: 12px !important;
    padding-right: 12px !important;

    color: #4b5563 !important;

    font-size: 14px !important;
    font-weight: 400 !important;
}

.navbar .nav-link:hover,
.navbar-nav .nav-link:hover {
    color: var(--ap-primary) !important;
}


/* Search */

.navbar input,
.navbar .form-control {
    min-height: 34px;

    background: #f3f4f6 !important;

    border: 1px solid transparent !important;
    border-radius: 6px !important;

    font-size: 13px !important;

    box-shadow: none !important;
}

.navbar input:focus,
.navbar .form-control:focus {
    background: #ffffff !important;

    border-color: #cfd8e3 !important;

    box-shadow: none !important;
}


/* Dropdown */

.navbar .dropdown-menu {
    padding: 6px;

    background: #ffffff;

    border: 1px solid var(--ap-border);
    border-radius: 8px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.navbar .dropdown-item {
    padding: 8px 10px;

    border-radius: 5px;

    font-size: 13px;

    color: var(--ap-text);
}

.navbar .dropdown-item:hover {
    background: #f3f4f6;

    color: var(--ap-heading);
}


/* =========================================================
   REMOVE EXTRA FRAPPE PAGE SPACING
   ========================================================= */

.page-container,
.page-content-wrapper,
.web-page-content {
    padding-top: 0 !important;
}

.page_content {
    padding-top: 0 !important;
}


/* =========================================================
   HERO
   ========================================================= */

.ap-hero {
    padding: 64px 0;

    background: #ffffff;

    border-bottom: 1px solid var(--ap-border);
}

.ap-hero .ap-container {
    display: grid;
    grid-template-columns: 1fr 320px;

    gap: 70px;

    align-items: center;
}

.ap-label,
.ap-section-label {
    margin-bottom: 10px;

    color: var(--ap-primary);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.7px;
}

.ap-hero h1 {
    max-width: 760px;

    margin: 0;

    color: var(--ap-heading);

    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: -0.5px;
}

.ap-hero h1 span {
    color: var(--ap-primary);
}

.ap-hero-text {
    max-width: 700px;

    margin-top: 18px;
    margin-bottom: 0;

    color: var(--ap-muted);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.ap-hero-actions {
    display: flex;

    gap: 10px;

    margin-top: 24px;
}

.ap-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 8px 16px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none !important;

    transition: 0.15s;
}

.ap-btn-primary {
    background: var(--ap-primary);

    color: #ffffff !important;

    border: 1px solid var(--ap-primary);
}

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

    border-color: var(--ap-primary-hover);
}

.ap-btn-secondary {
    background: #ffffff;

    color: var(--ap-heading) !important;

    border: 1px solid #d1d5db;
}

.ap-btn-secondary:hover {
    background: #f9fafb;
}


/* =========================================================
   HERO STATS
   ========================================================= */

.ap-hero-panel {
    border-left: 1px solid var(--ap-border);

    padding-left: 36px;
}

.ap-stat {
    padding: 15px 0;

    border-bottom: 1px solid var(--ap-border);
}

.ap-stat:last-child {
    border-bottom: 0;
}

.ap-stat strong {
    display: block;

    margin-bottom: 3px;

    color: var(--ap-heading);

    font-size: 22px;
    font-weight: 600;
}

.ap-stat span {
    color: var(--ap-muted);

    font-size: 13px;
}


/* =========================================================
   NORMAL SECTIONS
   ========================================================= */

.ap-intro,
.ap-section {
    padding: 60px 0;
}

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

.ap-content-width {
    max-width: 900px;
}

.ap-intro h2,
.ap-section h2,
.ap-feature h2,
.ap-final h2 {
    margin: 0 0 18px;

    color: var(--ap-heading);

    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.ap-intro p,
.ap-section p {
    color: var(--ap-muted);

    font-size: 15px;
    line-height: 1.75;
}

.ap-intro .ap-lead {
    margin-top: 20px;

    color: var(--ap-text);

    font-size: 16px;
}


/* =========================================================
   SIMPLE CARDS
   ========================================================= */

.ap-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.ap-card {
    padding: 26px;

    background: #ffffff;

    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);

    box-shadow: none;
}

.ap-card-number {
    margin-bottom: 14px;

    color: var(--ap-muted);

    font-size: 12px;
    font-weight: 500;
}

.ap-card h3 {
    margin: 0 0 12px;

    color: var(--ap-heading);

    font-size: 18px;
    font-weight: 600;
}

.ap-card p {
    margin-bottom: 10px;

    font-size: 14px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.ap-section-heading {
    max-width: 700px;

    margin-bottom: 35px;
}

.ap-section-heading p {
    margin-top: 8px;
}


/* =========================================================
   ENGINEERING CAPABILITIES
   ========================================================= */

.ap-capabilities {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--ap-border);
}

.ap-capability {
    min-height: 160px;

    padding: 24px;

    border-right: 1px solid var(--ap-border);
    border-bottom: 1px solid var(--ap-border);
}

.ap-capability:nth-child(3n) {
    border-right: 0;
}

.ap-capability span {
    display: block;

    margin-bottom: 12px;

    color: var(--ap-muted);

    font-size: 11px;
}

.ap-capability h3 {
    margin: 0 0 8px;

    color: var(--ap-heading);

    font-size: 16px;
    font-weight: 600;
}

.ap-capability p {
    margin: 0;

    font-size: 13px;
}


/* =========================================================
   DIGI-AVTAR
   No heavy dark background
   ========================================================= */

.ap-feature {
    padding: 60px 0;

    background: #f3f7fb;

    border-top: 1px solid var(--ap-border);
    border-bottom: 1px solid var(--ap-border);
}

.ap-feature-inner {
    display: grid;

    grid-template-columns: 300px 1fr;

    gap: 60px;
}

.ap-feature h2 {
    color: var(--ap-heading);
}

.ap-section-label-light {
    color: var(--ap-primary);
}

.ap-feature p {
    color: var(--ap-muted);

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   TWO COLUMN SECTIONS
   ========================================================= */

.ap-two-column {
    display: grid;

    grid-template-columns: 340px 1fr;

    gap: 60px;
}

.ap-rich-text p {
    margin-top: 0;
    margin-bottom: 16px;
}

.ap-rich-text blockquote {
    margin: 24px 0 0;

    padding: 16px 20px;

    background: #f8f9fa;

    border-left: 3px solid var(--ap-primary);

    color: var(--ap-text);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   FACILITIES
   ========================================================= */

.ap-facilities {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.ap-facility {
    padding: 26px;

    background: #ffffff;

    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
}

.ap-facility-tag {
    display: inline-block;

    margin-bottom: 14px;

    padding: 4px 8px;

    background: #eef6ff;

    border-radius: 4px;

    color: var(--ap-primary);

    font-size: 10px;
    font-weight: 600;
}

.ap-facility h3 {
    margin: 0 0 8px;

    color: var(--ap-heading);

    font-size: 18px;
    font-weight: 600;
}

.ap-facility p {
    margin: 0;
}


/* =========================================================
   WHAT'S NEXT
   ========================================================= */

.ap-list-item {
    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 15px;

    padding: 18px 0;

    border-bottom: 1px solid var(--ap-border);
}

.ap-list-item > span {
    color: var(--ap-muted);

    font-size: 11px;
}

.ap-list-item h3 {
    margin: 0 0 5px;

    color: var(--ap-heading);

    font-size: 16px;
    font-weight: 600;
}

.ap-list-item p {
    margin: 0;
}


/* =========================================================
   FINAL SECTION
   ========================================================= */

.ap-final {
    padding: 60px 0;

    background: #f8f9fa;

    border-top: 1px solid var(--ap-border);
}

.ap-final-content {
    max-width: 800px;
}

.ap-final h2 {
    color: var(--ap-heading);
}

.ap-final-content p {
    color: var(--ap-muted);

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   FRAPPE WEBSITE FOOTER
   ========================================================= */

.web-footer,
footer {
    background: #ffffff !important;

    border-top: 1px solid var(--ap-border) !important;

    color: var(--ap-muted) !important;
}

.web-footer .container,
footer .container {
    max-width: 1200px;

    padding-left: 24px;
    padding-right: 24px;
}

.web-footer a,
footer a {
    color: #4b5563 !important;

    text-decoration: none !important;
}

.web-footer a:hover,
footer a:hover {
    color: var(--ap-primary) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .ap-hero .ap-container,
    .ap-feature-inner,
    .ap-two-column {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ap-hero-panel {
        padding-left: 0;

        border-left: 0;
        border-top: 1px solid var(--ap-border);
    }

    .ap-grid,
    .ap-facilities {
        grid-template-columns: 1fr;
    }

    .ap-capabilities {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-capability:nth-child(3n) {
        border-right: 1px solid var(--ap-border);
    }

    .ap-capability:nth-child(2n) {
        border-right: 0;
    }
}


@media (max-width: 600px) {

    .ap-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ap-hero {
        padding: 45px 0;
    }

    .ap-hero h1 {
        font-size: 30px;
    }

    .ap-hero-text {
        font-size: 15px;
    }

    .ap-intro,
    .ap-section,
    .ap-feature,
    .ap-final {
        padding: 45px 0;
    }

    .ap-intro h2,
    .ap-section h2,
    .ap-feature h2,
    .ap-final h2 {
        font-size: 23px;
    }

    .ap-hero-actions {
        flex-direction: column;
    }

    .ap-btn {
        width: 100%;
    }

    .ap-capabilities {
        grid-template-columns: 1fr;
    }

    .ap-capability,
    .ap-capability:nth-child(2n),
    .ap-capability:nth-child(3n) {
        border-right: 0;
    }
}