/* ============================================================
   PhoenixERP Brand Theme
   Inspired by the ProudlySA startup banner.
   Do not copy literally — translated into a complete,
   consistent design language for every page.
   ============================================================ */

:root {
  /* Core palette */
  --navy-900: #061e3d;
  --navy-800: #0b2a4a;
  --navy-700: #123a5f;
  --navy-600: #1a4a75;
  --green-500: #6bbd2e;
  --green-600: #5aa020;
  --green-400: #8cd64a;
  --gold: #ffb81c;
  --sa-red: #e31d2b;
  --sa-blue: #002395;
  --sa-green: #007749;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-600: #4a5568;
  --gray-900: #1a202c;

  /* Theme variables used by existing markup */
  --primary-color: var(--navy-800);
  --primary-dark: var(--navy-900);
  --primary-light: var(--navy-600);
  --accent-color: var(--green-500);
  --secondary-color: var(--gold);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-light: var(--white);
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-hero: var(--navy-800);
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(6, 30, 61, 0.06);
  --shadow-md: 0 10px 24px rgba(6, 30, 61, 0.10);
  --shadow-lg: 0 18px 40px rgba(6, 30, 61, 0.14);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 10px;
}

body {
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body h1,
body h2,
body h3,
body h4 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
}

body p,
body li {
  color: var(--text-secondary);
}

body a {
  color: var(--green-600);
  text-decoration: none;
}

body a:hover {
  text-decoration: underline;
}

body img {
  border-radius: var(--border-radius);
}

/* Header - clean, white, premium */
body .header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

body .header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sa-green) 0%, var(--gold) 25%, var(--sa-red) 50%, var(--sa-blue) 75%, var(--navy-800) 100%);
}

body .header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1rem 20px;
  min-height: 100px;
  position: relative;
}

body .logo img {
  height: 90px;
  transition: var(--transition);
}

body .logo:hover img {
  transform: scale(1.03);
}

body .proudly-header {
  height: 90px;
  width: auto;
  margin-left: 0;
  flex-shrink: 0;
  background: var(--white);
  padding: 0.4rem;
  border-radius: 8px;
}

body .nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: 0;
  margin-right: 0;
}

body .nav a {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  position: relative;
}

body .nav a:hover,
body .nav a.active {
  color: var(--green-600);
  background: rgba(107, 189, 46, 0.12);
  text-decoration: none;
}

body .nav a::after {
  background: var(--green-500);
  height: 3px;
  border-radius: 2px;
}

body .menu-toggle span {
  background: var(--navy-800);
}

/* Hero - deep navy, confident, modern */
body .hero {
  padding: 15px 0 25px;
}

/* Hero left side is a flat light background; the coloured right side and S-curve boundary are drawn by .hero-split-bg */
body .hero.index-hero {
  background: var(--bg-secondary);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

body .hero.support-hero {
  background: var(--bg-secondary);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

body .hero.support-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

body .hero.support-hero .hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}


body .hero h1 {
  color: var(--white);
  font-size: 1.8rem;
  max-width: 780px;
  font-weight: 800;
}

body .hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  max-width: 720px;
}

body .hero-content h1 {
  color: var(--navy-900);
  margin: 0 0 0.75rem;
}

body .hero-content p {
  color: var(--gray-600);
  margin: 0 0 1rem;
}

body .hero a {
  color: var(--green-400);
}

/* Sections */
body .section {
  padding: 30px 0 60px;
}

body .container {
  max-width: 1200px;
}

/* Buttons */
body .cta-button,
body .btn,
body .service-request-button {
  display: inline-block;
  background: var(--green-500);
  color: var(--white);
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

body .cta-button:hover,
body .btn:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-3px);
  text-decoration: none;
}

body .btn h1 {
  color: var(--white);
  margin: 0;
  font-size: 1.25rem;
}

body .btn {
  padding: 0.25rem 2rem;
}

body .hero .btn {
  padding: 1rem 2.25rem;
}

body .hero .btn h1 {
  color: var(--white);
  margin: 0;
  font-size: 1.25rem;
}

/* Cards */
body .client-card,
body .why-item,
body .grid > div,
body .contact-info,
body .map-container,
body .video-card,
body .branch-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

body .client-card {
  border-top: 4px solid var(--green-500);
}

body .client-card:hover,
body .why-item:hover,
body .grid > div:hover,
body .video-card:hover,
body .contact-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

body .client-logo {
  max-height: 100px;
  margin-bottom: 1rem;
}

body .why-item {
  border-left: 4px solid var(--green-500);
}

body .why-item h3,
body .grid > div h2,
body .client-card h3,
body .branch-card h3 {
  color: var(--navy-800);
}

/* Service desk button */
body .service-desk-section {
  margin: 2.5rem 0;
  text-align: center;
}

body .service-desk-link {
  display: inline-block;
  background: var(--white);
  border: 3px solid var(--navy-800);
  border-radius: 14px;
  padding: 1rem 2rem;
  box-shadow: 0 8px 0 var(--navy-800);
  transition: var(--transition);
}

body .service-desk-link:hover {
  box-shadow: 0 12px 0 var(--navy-800);
  transform: translateY(-4px);
}

body .service-desk-link:active {
  transform: translateY(8px);
  box-shadow: 0 0 0 var(--navy-800);
}

body .service-desk-image {
  border: none;
  border-radius: 0;
}

/* About gallery */
body .startup-thumb-link {
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

body .startup-thumb {
  height: 280px;
}

/* Videos */
body .video-card {
  overflow: hidden;
}

body .video-card img {
  border-radius: 0;
}

/* Footer */
body .footer {
  background: var(--navy-900);
  color: var(--white);
  padding: 0.6rem 0;
  text-align: center;
  margin-top: auto;
}

body .footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

body .footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

body .proudly-footer {
  height: 70px;
  width: auto;
  background: var(--white);
  padding: 0.35rem;
  border-radius: 8px;
}

/* Section heading */
body .section-heading-with-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

body .heading-image {
  height: 80px;
  width: auto;
}

/* New home hero + mSCOA banner */
body .hero.index-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

body .hero-content {
  position: relative;
  z-index: 2;
}

/* Right-side icon card grid; on the home page it is nudged 1 cm right to clear the S-curve */
body .hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

body .hero.index-hero .hero-visual {
  margin-left: 1cm;
}

/* Full-width SVG background: white left panel, gradient right panel, and 4px green S-curve stroke */
body .hero-split-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body .icon-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

body .icon-card .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  border: 2px solid var(--green-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
}

body .icon-card .icon svg {
  width: 20px;
  height: 20px;
}

body .icon-card h3 {
  color: var(--white);
  font-size: 0.75rem;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body .icon-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  margin: 0;
}

body .dot {
  color: var(--green-500);
  margin: 0 0.4rem;
}

body .hero-content .mscoa-heading {
  color: var(--navy-800);
  font-size: 0.95rem;
  margin: 1rem 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

body .hero-content .mscoa-lead {
  color: var(--gray-900);
  font-size: 0.95rem;
  margin: 0;
}

body .mscoa-strip {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-top: 4px solid var(--green-500);
  border-bottom: 4px solid var(--green-500);
  position: relative;
  overflow: hidden;
}

body .mscoa-strip .container {
  padding: 1.5rem 20px;
}

body .mscoa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
}

body .mscoa-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
}

body .mscoa-item .icon {
  width: 44px;
  height: 44px;
  border: 2px solid var(--green-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
  flex-shrink: 0;
}

body .mscoa-item .icon svg {
  width: 22px;
  height: 22px;
}

body .mscoa-item h3 {
  color: var(--white);
  font-size: 0.8rem;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body .mscoa-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin: 0;
}

body .tagline {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body .tagline em {
  color: var(--green-400);
  font-style: normal;
}


/* Mobile */
@media (max-width: 768px) {
  body .header .container {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 20px;
    min-height: 90px;
  }

  body .proudly-header {
    height: 45px;
  }

  body .logo img {
    height: 70px;
  }

  body .nav {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  body .hero.index-hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Legacy S-curve overlay — the current hard split is handled by .hero-split-bg */
  body .s-curve {
    display: none;
  }

  body .hero-visual {
    grid-template-columns: 1fr;
  }

  body .mscoa-grid {
    grid-template-columns: 1fr;
  }

  body .hero h1 {
    font-size: 2rem;
  }

  body .section {
    padding: 40px 0;
  }
}
