/*
Theme Name: Microsolutions Corporate
Theme URI: https://microsolutions.eu.com
Author: Microsolutions
Description: Custom corporate WordPress theme for Microsolutions.
Version: 1.3.0
Text Domain: microsolutions
*/

:root {
  --ms-bg: #f7f8fb;
  --ms-surface: #ffffff;
  --ms-ink: #172033;
  --ms-muted: #5c6676;
  --ms-soft: #eef2f7;
  --ms-line: #e3e8ef;
  --ms-primary: #2457c5;
  --ms-primary-dark: #193f91;
  --ms-navy: #101827;
  --ms-radius: 18px;
  --ms-shadow: 0 12px 34px rgba(16, 24, 39, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ms-ink);
  background: var(--ms-bg);
  font-size: 16px;
}

a { color: inherit; }

.ms-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.ms-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ms-line);
}

.admin-bar .ms-site-header { top: 32px; }

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

.ms-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ms-brand-name {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.ms-brand-tagline {
  margin-top: 5px;
  color: var(--ms-muted);
  font-size: 13px;
}

.ms-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ms-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: #263246;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.ms-nav a:hover,
.ms-nav .current-menu-item > a,
.ms-nav .current_page_item > a {
  background: var(--ms-soft);
}

.ms-main { padding: 0; }

.ms-full-hero {
  background: linear-gradient(135deg, #101827 0%, #18243a 55%, #2457c5 130%);
  color: #fff;
}

.ms-hero-grid {
  width: min(1280px, calc(100% - 48px));
  min-height: 500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 700;
}

.ms-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #80c7ff;
}

.ms-hero h1,
.ms-page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ms-hero p,
.ms-page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
}

.ms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}

.ms-button-primary {
  background: #fff;
  color: var(--ms-ink);
}

.ms-button-dark {
  background: var(--ms-ink);
  color: #fff;
}

.ms-button-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.04);
}

.ms-hero-panel {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.ms-dashboard-card {
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  color: var(--ms-ink);
  padding: 22px;
}

.ms-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ms-pill {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--ms-primary);
  font-size: 12px;
  font-weight: 800;
}

.ms-metric-grid {
  display: grid;
  gap: 10px;
}

.ms-metric {
  padding: 16px;
  border: 1px solid var(--ms-line);
  border-radius: 14px;
  background: #fff;
}

.ms-metric strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ms-metric span {
  color: var(--ms-muted);
  font-size: 13px;
}

.ms-section {
  padding: 64px 0;
}

.ms-section-tight {
  padding: 42px 0;
}

.ms-section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.ms-section-kicker {
  margin: 0 0 9px;
  color: var(--ms-primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.ms-section h2,
.ms-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.ms-section-head p {
  margin: 14px 0 0;
  color: var(--ms-muted);
  font-size: 17px;
  line-height: 1.7;
}

.ms-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ms-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ms-card {
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(16, 24, 39, 0.04);
}

.ms-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ms-primary);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 16px;
}

.ms-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ms-card p {
  margin: 0;
  color: var(--ms-muted);
  line-height: 1.65;
}

.ms-band {
  padding: 42px;
  background: #fff;
  border-top: 1px solid var(--ms-line);
  border-bottom: 1px solid var(--ms-line);
}

.ms-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.ms-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #edf1f6;
  color: #263245;
  font-weight: 650;
}

.ms-list-item::before {
  content: "✓";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ms-primary);
  font-size: 12px;
  font-weight: 900;
}

.ms-page-hero-wrap {
  background: linear-gradient(135deg, #101827 0%, #18243a 58%, #2457c5 135%);
  color: #fff;
}

.ms-page-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 66px 0;
}

.ms-process {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.ms-process-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ms-line);
}

.ms-process-item::before {
  content: counter(step);
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--ms-ink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.ms-process-item h3 {
  margin: 0 0 8px;
}

.ms-process-item p {
  margin: 0;
  color: var(--ms-muted);
  line-height: 1.65;
}

.ms-cta-wrap {
  background: #101827;
  color: #fff;
  margin-top: 30px;
}

.ms-cta {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
  text-align: center;
}

.ms-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.ms-cta p {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  line-height: 1.7;
}

.ms-footer {
  padding: 36px 0;
  color: #cbd5e1;
  background: #0b1220;
}

.ms-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.ms-footer a { color: #fff; }

.ms-footer-brand {
  max-width: 560px;
}

.ms-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 19px;
  margin-bottom: 9px;
}

.ms-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ms-content {
  padding: 58px 0;
}

.ms-wp-content {
  background: #fff;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  padding: 30px;
  line-height: 1.72;
}

@media (max-width: 900px) {
  .admin-bar .ms-site-header { top: 46px; }

  .ms-container,
  .ms-hero-grid,
  .ms-page-hero,
  .ms-cta {
    width: min(100% - 32px, 1280px);
  }

  .ms-header-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-nav ul,
  .ms-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .ms-hero-grid,
  .ms-grid-3,
  .ms-grid-2,
  .ms-list {
    grid-template-columns: 1fr;
  }

  .ms-hero-grid,
  .ms-page-hero {
    padding: 46px 0;
  }

  .ms-hero-grid {
    min-height: auto;
  }

  .ms-band {
    padding: 28px 16px;
  }

  .ms-footer-inner {
    flex-direction: column;
  }
}


/* Contact form */
.ms-contact-form {
  display: grid;
  gap: 16px;
}

.ms-form-row {
  display: grid;
  gap: 7px;
}

.ms-form-row label {
  font-weight: 700;
  color: var(--ms-ink);
}

.ms-form-row input,
.ms-form-row textarea {
  width: 100%;
  border: 1px solid var(--ms-line);
  background: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ms-ink);
  outline: none;
}

.ms-form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.ms-form-row input:focus,
.ms-form-row textarea:focus {
  border-color: var(--ms-primary);
  box-shadow: 0 0 0 4px rgba(36, 87, 197, 0.10);
}

.ms-form-help {
  margin: 0;
  color: var(--ms-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ms-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 650;
  line-height: 1.55;
}

.ms-alert-success {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.ms-alert-error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.ms-required {
  color: #b42318;
}


/* Contact form compact refinement */
.ms-contact-form {
  gap: 12px;
}

.ms-form-row {
  gap: 5px;
}

.ms-form-row label {
  font-size: 14px;
  font-weight: 650;
}

.ms-form-row input,
.ms-form-row textarea {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.ms-form-row textarea {
  min-height: 120px;
}

.ms-form-help {
  font-size: 13px;
  line-height: 1.45;
}

.ms-alert {
  padding: 12px 14px;
  font-size: 14px;
}

.ms-contact-form .ms-button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ms-contact-card h3 {
  font-size: 18px;
}

.ms-contact-card p {
  font-size: 14px;
  line-height: 1.6;
}

.ms-contact-card .ms-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
