/*
Theme Name: Smartgogo Workplace Systems
Theme URI: https://smartouch.com.my/
Author: Smart Touch Technology Sdn Bhd
Description: Custom WordPress theme for Smartgogo workplace management systems in Malaysia.
Version: 1.0.0
Text Domain: smartgogo
*/

:root {
  --sg-navy: #061b34;
  --sg-blue: #1f5cff;
  --sg-teal: #0faaa3;
  --sg-gold: #d89400;
  --sg-ink: #102033;
  --sg-muted: #5d6b7d;
  --sg-line: #d9e3ee;
  --sg-soft: #f4f8fb;
  --sg-white: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--sg-ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; }
.sg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--sg-line);
  backdrop-filter: blur(12px);
}
.sg-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sg-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sg-navy);
  text-decoration: none;
  font-weight: 900;
}
.sg-logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sg-navy);
  color: #fff;
  font-size: 18px;
  letter-spacing: -.08em;
}
.sg-logo-sub {
  display: block;
  margin-top: -4px;
  color: var(--sg-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sg-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
.sg-menu a {
  color: var(--sg-navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}
.sg-menu .sg-nav-cta {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--sg-blue);
  color: #fff;
}
.sg-page { color: var(--sg-ink); }
.sg-section { padding: 72px 24px; }
.sg-section.sg-soft { background: var(--sg-soft); }
.sg-wrap { max-width: 1180px; margin: 0 auto; }
.sg-hero { background: linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #edf7f7 100%); }
.sg-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--sg-teal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sg-h1, .sg-h2, .sg-h3 {
  margin: 0 0 18px;
  color: var(--sg-navy);
  line-height: 1.08;
  font-weight: 800;
}
.sg-h1 { max-width: 900px; font-size: clamp(42px, 6vw, 78px); }
.sg-h2 { font-size: clamp(30px, 4vw, 50px); }
.sg-h3 { font-size: 24px; }
.sg-lead { max-width: 780px; margin: 0 0 28px; color: #314761; font-size: 20px; }
.sg-text { color: var(--sg-muted); font-size: 17px; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--sg-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.sg-btn.sg-secondary { background: #fff; color: var(--sg-blue) !important; border: 1px solid var(--sg-blue); }
.sg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sg-grid.sg-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-grid.sg-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sg-card {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(6, 27, 52, .06);
}
.sg-code {
  display: inline-flex;
  min-width: 52px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 6px;
  background: var(--sg-navy);
  color: #fff;
  font-weight: 800;
}
.sg-list { margin: 16px 0 0; padding-left: 20px; color: var(--sg-muted); }
.sg-list li { margin: 8px 0; }
.sg-band { background: var(--sg-navy); color: #fff; }
.sg-band .sg-h2, .sg-band .sg-h3 { color: #fff; }
.sg-band .sg-text, .sg-band .sg-lead { color: #c6d6e8; }
.sg-mini { color: var(--sg-muted); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sg-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.sg-note { padding: 18px 20px; border-left: 4px solid var(--sg-teal); background: #eefafa; color: #24495b; }
.sg-form-box { background: #fff; border: 1px solid var(--sg-line); border-radius: 8px; padding: 24px; }
.sg-form-box label { display: block; margin: 14px 0 6px; font-weight: 800; color: var(--sg-navy); }
.sg-form-box input, .sg-form-box select, .sg-form-box textarea {
  width: 100%;
  border: 1px solid var(--sg-line);
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
}
.sg-form-box textarea { min-height: 130px; }
.sg-footer {
  background: #061b34;
  color: #c6d6e8;
  padding: 56px 24px 24px;
}
.sg-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.sg-footer h3, .sg-footer h4 { color: #fff; margin: 0 0 14px; }
.sg-footer a { color: #dbeafe; text-decoration: none; }
.sg-footer ul { list-style: none; margin: 0; padding: 0; }
.sg-footer li { margin: 9px 0; }
.sg-footer-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #9eb3c9;
  font-size: 14px;
}
@media (max-width: 980px) {
  .sg-menu { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
  .sg-grid, .sg-grid.sg-two, .sg-grid.sg-five, .sg-split, .sg-footer-grid { grid-template-columns: 1fr; }
  .sg-section { padding: 52px 18px; }
}

/* =========================================
   NEW SMARTGOGO HOMEPAGE HERO
   ========================================= */

.sg-new-hero {
    padding-top: 55px;
    padding-bottom: 55px;
    background: #ffffff;
}

.sg-new-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: center;
}


/* =========================================
   LEFT SIDE
   ========================================= */

.sg-new-hero-content {
    padding: 10px 0;
}

.sg-new-hero-content h1 {
    max-width: 560px;
    margin: 0;
    color: #061b34;
    font-size: clamp(48px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -1.5px;
}


/* Gold + teal line */

.sg-hero-accent {
    display: flex;
    width: 84px;
    height: 4px;
    margin: 22px 0 25px;
    background: #d89400;
    border-radius: 3px;
}

.sg-hero-accent span {
    width: 42px;
    height: 4px;
    background: #0faaa3;
    border-radius: 3px;
}


.sg-new-hero-text {
    max-width: 570px;
    margin: 0;
    color: #102b49;
    font-size: 17px;
    line-height: 1.7;
}


.sg-new-hero-support {
    max-width: 570px;
    margin: 18px 0 0;
    color: #07518a;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 800;
}


/* Buttons */

.sg-new-hero-content .sg-actions {
    margin-top: 25px;
}


.sg-new-hero-content .sg-btn {
    background: #1f5cff;
    color: #ffffff !important;
    border: 1px solid #1f5cff;
}


.sg-new-hero-content .sg-btn.sg-secondary {
    background: #ffffff;
    color: #1f5cff !important;
    border: 1px solid #1f5cff;
}


/* Tags */

.sg-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}


.sg-hero-tags a {
    display: inline-flex;
    padding: 6px 11px;
    border: 1px solid #d9e3ee;
    border-radius: 20px;
    background: #ffffff;
    color: #16416a !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================
   RIGHT PANEL
   ========================================= */

.sg-new-hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.sg-new-system-panel {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #d9e3ee;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(6, 27, 52, 0.08);
}


/* Panel heading */

.sg-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 13px;
    margin-bottom: 10px;
    border-bottom: 1px solid #d9e3ee;
}


.sg-panel-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #d89400;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}


.sg-panel-top h2 {
    margin: 0;
    color: #061b34;
    font-size: 25px;
    line-height: 1.05;
    font-weight: 800;
}


.sg-country {
    padding: 5px 9px;
    border-radius: 6px;
    background: #eef6f8;
    color: #07518a;
    font-size: 9px;
    font-weight: 700;
}


/* =========================================
   SYSTEM CARDS
   ========================================= */

.sg-new-system-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 11px;

    min-height: 61px;

    margin-bottom: 8px;
    padding: 8px 10px;

    background: #ffffff;
    border: 1px solid #d9e3ee;
    border-left: 4px solid #0faaa3;
    border-radius: 7px;

    text-decoration: none;
}


.sg-new-system-card.sg-cms {
    border-left-color: #d89400;
}

.sg-new-system-card.sg-cws {
    border-left-color: #c65a00;
}

.sg-new-system-card.sg-dms {
    border-left-color: #168f85;
}

.sg-new-system-card.sg-pal {
    border-left-color: #1f5cff;
}


.sg-new-system-card > strong {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 6px;
    background: #061b34;

    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}


.sg-new-system-card h3 {
    margin: 0;
    color: #061b34;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}


.sg-new-system-card p {
    margin: 3px 0 0;
    color: #5d6b7d;
    font-size: 9px;
    line-height: 1.3;
}


.sg-new-system-card small {
    color: #0faaa3;
    font-size: 9px;
    font-weight: 800;
}


.sg-new-system-card.sg-cms small {
    color: #d89400;
}

.sg-new-system-card.sg-cws small {
    color: #c65a00;
}

.sg-new-system-card.sg-pal small {
    color: #1f5cff;
}


/* =========================================
   SUPPORTING SERVICES
   ========================================= */

.sg-new-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
}


.sg-new-support-grid div {
    min-height: 38px;

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

    padding: 7px;

    background: #f7fafc;
    border: 1px solid #d9e3ee;
    border-radius: 6px;

    color: #16416a;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}


/* =========================================
   WHAT WE DELIVER
   ========================================= */

.sg-new-deliver {
    padding: 14px 16px;
    background: #061b34;
    border-radius: 8px;
}


.sg-new-deliver h3 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}


.sg-new-deliver p {
    margin: 0;
    color: #c6d6e8;
    font-size: 9px;
    line-height: 1.5;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 980px) {

    .sg-new-hero-grid {
        grid-template-columns: 1fr;
    }

    .sg-new-hero-content h1 {
        max-width: 700px;
    }

}


@media (max-width: 600px) {

    .sg-new-hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .sg-new-hero-content h1 {
        font-size: 42px;
    }

    .sg-new-system-card {
        grid-template-columns: 40px 1fr;
    }

    .sg-new-system-card small {
        display: none;
    }

    .sg-new-support-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   SMARTGOGO HERO - FORCE TWO COLUMNS
   ========================================= */

.sg-new-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 40px !important;
    width: 100% !important;
    align-items: start !important;
}

.sg-new-hero-content {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

.sg-new-hero-right {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Keep two columns on normal desktop/tablet */
@media (min-width: 981px) {
    .sg-new-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
}

/* Only stack on genuinely small screens */
@media (max-width: 980px) {
    .sg-new-hero-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================
   SMARTGOGO SYSTEM FLOW
   ========================================== */

.sg-systems-overview {
    background: #ffffff;
    padding-top: 70px;
    padding-bottom: 70px;
}

.sg-systems-intro {
    max-width: 850px;
    margin: 0 auto 45px;
    text-align: center;
}

.sg-systems-intro .sg-eyebrow {
    margin-bottom: 10px;
}

.sg-systems-intro .sg-h2 {
    margin-bottom: 16px;
}

.sg-systems-intro .sg-lead {
    max-width: 760px;
    margin: 0 auto;
}


/* Five columns */

.sg-system-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}


/* Each item */

.sg-flow-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 18px;
    text-align: center;
    text-decoration: none;
}


/* Circle */

.sg-flow-circle {
    position: relative;
    z-index: 2;

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

    width: 74px;
    height: 74px;

    border: 2px solid #061b34;
    border-radius: 50%;

    background: #ffffff;
    color: #061b34;

    font-size: 14px;
    font-weight: 800;
}


/* Horizontal connecting line */

.sg-flow-line {
    position: absolute;
    top: 36px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        #0faaa3,
        #d89400,
        #0faaa3
    );
    z-index: 1;
}


/* Don't extend line after final item */

.sg-flow-item:last-child .sg-flow-line {
    display: none;
}


/* Title */

.sg-flow-item h3 {
    margin: 22px 0 8px;

    color: #061b34;

    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}


/* Description */

.sg-flow-item p {
    max-width: 190px;
    margin: 0;

    color: #5d6b7d;

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


/* Hover */

.sg-flow-item:hover .sg-flow-circle {
    background: #061b34;
    color: #ffffff;
}


/* Mobile */

@media (max-width: 900px) {

    .sg-system-flow {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .sg-flow-line {
        display: none;
    }

    .sg-flow-item {
        padding: 0 10px;
    }

}

/* ==========================================
   SYSTEM MANAGEMENT VIEW
   ========================================== */

.sg-management-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.sg-management-content {
    padding-top: 5px;
}

.sg-management-content .sg-h2 {
    max-width: 430px;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.05;
    margin-bottom: 20px;
}

.sg-management-content > .sg-text {
    max-width: 470px;
    font-size: 14px;
    line-height: 1.7;
}


/* LEFT OPTION BOXES */

.sg-management-option {
    margin-top: 12px;
    padding: 14px 14px;
    background: #ffffff;
    border-left: 3px solid #0faaa3;
    box-shadow: 0 5px 18px rgba(6, 27, 52, 0.05);
}

.sg-management-option h3 {
    margin: 0 0 5px;
    color: #061b34;
    font-size: 13px;
    font-weight: 800;
}

.sg-management-option p {
    margin: 0;
    color: #5d6b7d;
    font-size: 10px;
    line-height: 1.55;
}


/* ==========================================
   RIGHT DASHBOARD
   ========================================== */

.sg-management-dashboard {
    background: #ffffff;
    border: 1px solid #d9e3ee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(6, 27, 52, 0.06);
}

.sg-dashboard-header {
    padding: 10px 14px;
    background: #061b34;
}

.sg-dashboard-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}


/* Dashboard cards */

.sg-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
}

.sg-dashboard-card {
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d9e3ee;
    border-top: 2px solid #0faaa3;
    border-radius: 7px;
}

.sg-dashboard-card.sg-cms {
    border-top-color: #d89400;
}

.sg-dashboard-card.sg-cws {
    border-top-color: #e66b00;
}

.sg-dashboard-card.sg-dms {
    border-top-color: #168f85;
}

.sg-dashboard-card.sg-pal {
    grid-column: 1 / -1;
    border-top-color: #1f5cff;
}


/* Dashboard title */

.sg-dashboard-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.sg-dashboard-code {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #061b34;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
}

.sg-dashboard-title h4 {
    margin: 0;
    color: #061b34;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.sg-dashboard-title small {
    display: block;
    margin-top: 2px;
    color: #5d6b7d;
    font-size: 8px;
}


/* Dashboard columns */

.sg-dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.sg-dashboard-columns > div {
    padding: 7px;
    background: #f4f8fb;
    border-radius: 5px;
}

.sg-dashboard-columns strong {
    display: block;
    margin-bottom: 4px;
    color: #0faaa3;
    font-size: 7px;
    letter-spacing: .05em;
}

.sg-dashboard-columns > div:nth-child(2) strong {
    color: #d89400;
}

.sg-dashboard-columns ul {
    margin: 0;
    padding-left: 12px;
}

.sg-dashboard-columns li {
    margin: 2px 0;
    color: #314761;
    font-size: 8px;
    line-height: 1.35;
}


/* PAL three columns */

.sg-pal-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.sg-pal-columns > div:nth-child(2) strong {
    color: #0faaa3;
}

.sg-pal-columns > div:nth-child(3) strong {
    color: #1f5cff;
}


/* Mobile */

@media (max-width: 980px) {

    .sg-management-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .sg-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sg-dashboard-card.sg-pal {
        grid-column: auto;
    }

    .sg-pal-columns {
        grid-template-columns: 1fr;
    }

}

.sg-system-card-image {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin: 10px 0 18px;
    border-radius: 4px;
}