/* ===========================================================
   Automation Risk Management — shared stylesheet
   Palette sampled directly from the approved Adobe XD prototype
   =========================================================== */

:root {
  --navy: #151453;
  --navy-soft: #2b2a6b;
  --blue: #0f82c3;
  --blue-dark: #0b6ca3;
  --blue-pale: #eaf4ff;
  --blue-footer: #6f9fce;
  --text-body: #5b6470;
  --text-body-light: #7a8290;
  --white: #ffffff;
  --border-radius-lg: 28px;
  --border-radius-md: 18px;
  --container: 1180px;
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}

/* ---------- Header ---------- */
.site-header {
  padding: 20px 32px;
}

.nav-pill {
  max-width: var(--container);
  margin: 0 auto;
  background: #f5f5f5;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--navy);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 130, 195, 0.35);
}

.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-content {
  max-width: 520px;
  padding-top: 40px;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 400px;
}

.hero-pill-img {
  margin-top: 56px;
  max-width: 420px;
  border-radius: 100px;
  overflow: hidden;
}

/* ---------- Section shells ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 70px 0; }
.section-blue { background: var(--blue-pale); }

.section-heading {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  margin-bottom: 50px;
}

/* ---------- Home: Medical IT Services cards ---------- */
.services-grid-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--border-radius-lg);
  padding: 34px 36px;
  height: 100%;
}
.card.card-plain {
  border-color: var(--navy);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.5;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-body-light);
}

.col-stack { display: flex; flex-direction: column; gap: 24px; }

.image-frame {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home: Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.industries-grid .image-frame { aspect-ratio: 4 / 3; }

.industries-grid h2 { margin-bottom: 26px; font-size: clamp(26px, 3.2vw, 34px); }

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--navy-soft);
  font-size: 15.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-footer);
  color: var(--white);
  padding: 46px 0 26px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.footer-logo img { height: 42px; }
.footer-links {
  display: flex;
  gap: 34px;
}
.footer-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.footer-links a:hover { opacity: 0.8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 18px;
  text-align: right;
  font-size: 12.5px;
  opacity: 0.9;
}

/* ---------- Inner page hero (Services / About / Contact) ---------- */
.page-hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  margin-bottom: 22px;
}
.page-hero .lede {
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 34px;
}
.core-values h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
  margin-bottom: 18px;
}
.core-values li {
  margin-bottom: 16px;
  max-width: 500px;
  font-size: 14.5px;
  line-height: 1.6;
}
.core-values li strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 15px;
  margin-bottom: 2px;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--blue-pale);
  border-radius: var(--border-radius-md);
  padding: 30px 28px;
}
.service-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.35;
}
.service-card ul li {
  font-size: 13.8px;
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.4;
}
.service-card ul li:last-child { margin-bottom: 0; }
.service-image .image-frame { height: 100%; min-height: 220px; }

.consult-cta { text-align: center; margin-top: 50px; }

/* ---------- About page ---------- */
.about-hero { text-align: center; padding: 70px 0 60px; }
.about-hero h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 18px; }
.about-hero h2 {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 34px;
}
.about-hero p {
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: 15.5px;
  line-height: 1.8;
}
.about-image {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 32px;
}
.about-image .image-frame { aspect-ratio: 16 / 7; }

/* ---------- Contact page ---------- */
.contact-hero { text-align: center; padding: 70px 0 10px; }
.contact-hero h1 { margin-bottom: 16px; font-size: clamp(32px, 4.4vw, 44px); }
.contact-hero h2 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; color: var(--navy-soft); margin-bottom: 14px; }
.contact-hero p { max-width: 480px; margin: 0 auto; font-size: 15px; line-height: 1.7; }

.contact-form-wrap {
  max-width: 640px;
  margin: 46px auto 0;
  background: var(--blue-pale);
  border-radius: var(--border-radius-lg);
  padding: 44px 46px;
}

.field-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 8px;
  display: block;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group.split .field-label { grid-column: 1 / -1; }

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(21, 20, 83, 0.12);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.form-submit { text-align: left; margin-top: 6px; }
.form-note {
  font-size: 12.5px;
  color: var(--text-body-light);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: #e4f6ea;
  color: #1f7a44;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 18px;
}
.form-success.show { display: block; }

.contact-image {
  max-width: var(--container);
  margin: 60px auto 0;
  padding: 0 32px;
}
.contact-image .image-frame { aspect-ratio: 16 / 6; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > :nth-child(4) { order: 5; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 78px;
    left: 32px;
    right: 32px;
    background: var(--white);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px;
    box-shadow: 0 18px 40px rgba(21, 20, 83, 0.15);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }

  .hero-content { max-width: 100%; }
  .hero-bg img { object-position: 75% center; opacity: 0.18; }
  .hero-pill-img { display: none; }

  .services-grid-home { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .industries-grid .order-2 { order: -1; }

  .services-grid { grid-template-columns: 1fr; }
  .services-grid > :nth-child(4) { order: 0; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { text-align: left; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 24px; }

  .page-hero-bg img { opacity: 0.15; }
}
