/*
Theme Name: ScaleAtlas Child
Theme URI: https://scaleatlasgroup.com
Description: Child theme for ScaleAtlas Group
Author: Minh Truong
Template: astra
Version: 1.0.0
Text Domain: scaleatlas-child
*/

:root {
  --sa-primary: #0f172a;
  --sa-secondary: #334155;
  --sa-accent: #2563eb;
  --sa-accent-dark: #1d4ed8;
  --sa-light: #f8fafc;
  --sa-white: #ffffff;
  --sa-border: #e2e8f0;
  --sa-muted: #64748b;
  --sa-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --sa-radius: 16px;
  --sa-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--sa-secondary);
  background: var(--sa-white);
  line-height: 1.6;
}

a {
  color: var(--sa-accent);
  text-decoration: none;
}

a:hover {
  color: var(--sa-accent-dark);
}

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

.sa-section {
  padding: 72px 0;
}

.sa-section-tight {
  padding: 48px 0;
}

.sa-section-light {
  background: var(--sa-light);
}

.sa-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sa-accent);
}

/* Header */
.sa-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.sa-logo {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sa-logo:hover {
  color: #ffffff;
}

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

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

.scaleatlas-menu li {
  list-style: none;
}

.scaleatlas-menu a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.scaleatlas-menu a:hover,
.scaleatlas-menu .current-menu-item a,
.scaleatlas-menu .current_page_item a {
  color: #ffffff;
}

.sa-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sa-header-cta:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* Homepage Hero */
.sa-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 100px 0 80px;
}

.sa-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #fff;
}

.sa-hero p {
  font-size: 18px;
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.92);
}

.sa-hero-subline {
  margin-top: -6px;
  max-width: 760px;
  font-size: 17px;
  color: rgba(255,255,255,0.88);
}

.sa-hero-services {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.sa-hero-services strong {
  color: #ffffff;
}

.sa-button-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sa-btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--sa-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sa-btn:hover {
  background: var(--sa-accent-dark);
  color: #fff;
}

.sa-btn-primary {
  background: #fff;
  color: var(--sa-primary);
}

.sa-btn-primary:hover {
  background: #e2e8f0;
  color: var(--sa-primary);
}

.sa-btn-secondary {
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
}

.sa-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sa-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sa-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--sa-border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--sa-primary);
}

.sa-hero .sa-badge,
.sa-highlight-box .sa-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff;
}

/* Internal Page Hero */
.sa-page-hero {
  padding: 72px 0 28px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--sa-border);
}

.sa-page-hero h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.15;
  color: var(--sa-primary);
}

.sa-page-hero p {
  max-width: 780px;
  font-size: 18px;
  color: var(--sa-muted);
  margin: 0;
}

/* Section Headers */
.sa-section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.sa-section-header h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
  color: var(--sa-primary);
}

.sa-section-header p {
  margin: 0;
  color: var(--sa-muted);
  font-size: 17px;
}

/* Layout */
.sa-grid {
  display: grid;
  gap: 24px;
}

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

.sa-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sa-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

/* Cards */
.sa-card {
  background: var(--sa-white);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  padding: 28px;
  box-shadow: var(--sa-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.sa-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--sa-primary);
}

.sa-card p {
  margin: 0;
  color: var(--sa-secondary);
}

/* Lists */
.sa-feature-list,
.sa-list {
  margin: 0;
  padding-left: 20px;
}

.sa-feature-list li,
.sa-list li {
  margin-bottom: 10px;
}

/* Highlight / Capability */
.sa-highlight-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--sa-shadow);
}

.sa-highlight-box h2,
.sa-highlight-box h3,
.sa-highlight-box h4 {
  color: #fff;
  margin-top: 0;
}

.sa-highlight-box p,
.sa-highlight-box li {
  color: rgba(255,255,255,0.92);
}

.sa-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.sa-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px;
}

.sa-stat h4 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.78);
}

.sa-stat p {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

/* CTA */
.sa-cta-box {
  text-align: center;
  background: var(--sa-light);
  border: 1px solid var(--sa-border);
  border-radius: 20px;
  padding: 40px 28px;
}

.sa-cta-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--sa-primary);
}

.sa-cta-box p {
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--sa-muted);
}

/* Generic page content */
.sa-page-content p {
  font-size: 17px;
  color: var(--sa-secondary);
}

.sa-page-content h2,
.sa-page-content h3 {
  color: var(--sa-primary);
}

.sa-footer-note {
  font-size: 14px;
  color: var(--sa-muted);
}

/* Responsive */
@media (max-width: 991px) {
  .sa-grid-2,
  .sa-grid-3,
  .sa-split {
    grid-template-columns: 1fr;
  }

  .sa-hero h1,
  .sa-page-hero h1 {
    font-size: 34px;
  }

  .sa-section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .sa-header-inner {
    flex-direction: column;
    padding: 16px 0;
  }

  .sa-site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .scaleatlas-menu {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .sa-page-hero {
    padding: 56px 0 24px;
  }

  .sa-hero {
    padding: 80px 0 64px;
  }

  .sa-hero h1,
  .sa-page-hero h1 {
    font-size: 30px;
  }

  .sa-hero p,
  .sa-page-hero p {
    font-size: 16px;
  }

  .sa-stat-grid {
    grid-template-columns: 1fr;
  }

  .scaleatlas-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
