/* ==========================================================================
   SystiZen Professional Theme
   ========================================================================== */

/* CSS Variables */
:root {
  /* Colors - Deep Navy & Vibrant Blue Palette */
  --color-primary: #3b82f6;
  /* Blue 500 - Vibrant, accessible blue */
  --color-primary-dark: #1d4ed8;
  /* Blue 700 - Deep interaction state */
  --color-secondary: #10b981;
  /* Emerald 500 - Positive/Action */
  --color-accent: #f59e0b;
  /* Amber 500 - Attention */

  /* Neutral scale - Cool Grays for a tech feel */
  --color-heading: #111827;
  /* Gray 900 - Sharp, legible */
  --color-text: #374151;
  /* Gray 700 - Softer than black for reading */
  --color-text-light: #6b7280;
  /* Gray 500 - Secondary info */

  /* Backgrounds */
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  /* Slate 50 - Very subtle cool gray */
  --color-bg-dark: #0f172a;
  /* Slate 900 - Rich navy/black */

  --color-border: #e2e8f0;
  /* Slate 200 */

  /* Typography - Modern Pairing */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  /* 8px */
  --spacing-sm: 1rem;
  /* 16px */
  --spacing-md: 2rem;
  /* 32px */
  --spacing-lg: 4rem;
  /* 64px */
  --spacing-xl: 5rem;
  /* 80px */

  /* Layout */
  --container-max: 1200px;

  /* Effects */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
  /* Tighter tracking for display fonts */
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.75rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  max-width: 65ch;
  /* Optimal reading length */
}

a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Layout Components */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.03em;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.site-nav .cta-button {
  background-color: var(--color-primary);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.site-nav .cta-button:hover {
  background-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  /* darker overlay for better contrast */
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  /* Reduced from 8rem */
  min-height: 60vh;
  /* Reduced from 80vh */
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-main {
  background-image:
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.8)),
    url('/assets/images/hero_main_v2.png');
  text-align: left;
  /* Left align for main hero */
}

.hero-services {
  background-image:
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(16, 185, 129, 0.7)),
    url('/assets/images/hero_services.png');
}

.hero-courses {
  background-image:
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(245, 158, 11, 0.7)),
    url('/assets/images/hero_courses.png');
}

/* Subtle pattern overlay maybe? No, let's keep it clean but high contrast */

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* improved legibility */
}

.hero svg {
  width: 4rem;
  height: 4rem;
}

/* Specific styles for Main Hero Typography */
.hero-main h1 {
  font-size: 4.5rem;
  /* Larger impact */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 900px;
}

.hero-main .tagline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  /* Highlight tagline */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.hero-main .lead {
  font-size: 1.5rem;
  max-width: 650px;
  margin-left: 0;
  /* Align left */
  margin-right: 0;
  opacity: 0.95;
  font-weight: 400;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1.2fr 0.8fr;
    /* More space for text */
  }
}

.text-highlight {
  color: var(--color-primary);
  /* Or Accent? */
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 100%);
  padding: 0 0.2em;
  border-radius: 4px;
}

/* Standard Hero Styles (for pages other than main) */
.hero:not(.hero-main) h1 {
  font-size: 3.5rem;
}

.hero:not(.hero-main) .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.hero:not(.hero-main) .lead {
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
}

.section-gray {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.section-label {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-description {
  font-size: 1.25rem;
  color: var(--color-text-light);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background-color: #eff6ff;
  /* blue 50 */
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.card-title {
  margin-bottom: 1rem;
}

.card-description {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.card-link:hover {
  gap: 0.75rem;
  /* arrow slide animation */
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 8px #eff6ff;
}

/* Case Studies / Blog */
.post-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.post-card-content {
  padding: 2rem;
}

.post-tag {
  background-color: #eff6ff;
  color: var(--color-primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(135deg, var(--color-primary-dark), #1e3a8a);
  padding: 6rem 0;
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-dark);
  color: white;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-section h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-section a {
  color: #94a3b8;
  /* Slate 400 */
  margin-bottom: 0.75rem;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #64748b;
  /* Slate 500 */
  font-size: 0.875rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .site-nav ul {
    display: none;
  }

  /* Simplified mobile nav for now */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Prose / Content Typography */
.prose {
  color: var(--color-text);
  /* No max-width here, let the container handle it */
}

.prose>*+* {
  margin-top: 1.5em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

.prose h1+*,
.prose h2+*,
.prose h3+*,
.prose h4+*,
.prose h5+*,
.prose h6+* {
  margin-top: 0;
}

.prose h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.prose h3 {
  font-size: 1.35rem;
}

.prose h4 {
  font-size: 1.15rem;
}

.prose p {
  line-height: 1.75;
  margin-bottom: 1.5em;
  font-size: 1.125rem;
  max-width: 65ch;
}

.prose a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.prose a:not(.btn):hover {
  color: var(--color-primary-dark);
}

.prose ul,
.prose ol {
  padding-left: 1.625em;
  margin-bottom: 1.5em;
  max-width: 65ch;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
}

.prose li::marker {
  color: var(--color-text-light);
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: var(--color-heading);
  border-left-width: 0.25rem;
  border-left-color: var(--color-border);
  quotes: "\201C" "\201D" "\2018" "\2019";
  margin-top: 2em;
  margin-bottom: 2em;
  padding-left: 1.5em;
}

.prose code {
  color: var(--color-heading);
  font-weight: 600;
  font-size: 0.875em;
  background-color: var(--color-bg-light);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.prose pre {
  background-color: #1e293b;
  color: #e2e8f0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  font-size: 0.875em;
  line-height: 1.7;
}

.prose pre code {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: 400;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.prose img {
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.prose hr {
  border-color: var(--color-border);
  border-top-width: 1px;
  margin-top: 3em;
  margin-bottom: 3em;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
  border-collapse: collapse;
}

.prose thead {
  border-bottom-width: 1px;
  border-bottom-color: var(--color-text-light);
}

.prose thead th {
  color: var(--color-heading);
  font-weight: 600;
  vertical-align: bottom;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}

.prose tbody tr {
  border-bottom-width: 1px;
  border-bottom-color: var(--color-border);
}

.prose tbody tr:last-child {
  border-bottom-width: 0;
}

.prose tbody td {
  vertical-align: baseline;
  padding-top: 0.5714286em;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}