/* QWay Healthcare — static rebuild of qwayhealthcare.ai (WordPress/Divi) */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/oswald-400.woff2) format("woff2");
}
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/red-hat-display.woff2) format("woff2");
}

:root {
  --c-primary: #1467b3;   /* buttons, links, accents */
  --c-dark: #063e70;      /* dark band sections, footer */
  --c-navy: #0a335e;      /* hero gradient top */
  --c-sky: #4e9bd8;       /* hero gradient bottom */
  --c-text: #121c27;      /* body text */
  --c-muted: #4a5a68;
  --c-teal: #08ad9b;      /* link hover accent */
  --c-red: #e22227;       /* logo red */
  --c-light: #f4f8fb;     /* alternating light section */
  --f-head: "Oswald", Helvetica, Arial, sans-serif;
  --f-body: "Red Hat Display", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-text);
  background: #fff;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--c-dark);
}

h1 { font-size: 56px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p { margin: 0 0 1.1em; }

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-teal); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(6, 62, 112, .08);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo img { width: auto; height: auto; max-height: 34px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav .nav-top {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #223a4e;
  display: inline-block;
  padding: 18px 0;
}
.site-nav .nav-top:hover, .site-nav .nav-top.is-active { color: var(--c-primary); }
.site-nav .caret { font-size: 9px; opacity: .55; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--c-dark); cursor: pointer; }

/* Mega menu */
.nav-item { position: relative; }
.mega {
  display: none;
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 34px rgba(6, 62, 112, .18);
  border-top: 3px solid var(--c-primary);
  padding: 28px;
  gap: 28px;
  z-index: 200;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: flex; }
.mega__desc { width: 250px; flex-shrink: 0; }
.mega__desc h4 { font-size: 18px; margin-bottom: 8px; color: var(--c-dark); }
.mega__desc p { font-size: 14px; color: var(--c-muted); line-height: 1.55; margin-bottom: 12px; }
.mega__cta { font-family: var(--f-head); font-size: 14px; text-transform: uppercase; color: var(--c-primary); }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__links li { margin: 0; }
.mega__links a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #223a4e;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.mega__links a:hover { background: var(--c-light); color: var(--c-primary); }
.mega__links--col1 { width: 300px; }
.mega__links--col2 { width: 560px; column-count: 2; column-gap: 18px; }
.mega__links--col3 { width: 760px; column-count: 3; column-gap: 18px; }
.mega__links--col2 li, .mega__links--col3 li { break-inside: avoid; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  background: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: 7px;
  padding: 10px 28px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #0f568f; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(180deg, var(--c-navy) 0%, #11529b 55%, var(--c-sky) 100%);
  color: #fff;
  text-align: center;
  padding: 110px 24px 120px;
}
.hero__eyebrow {
  font-family: var(--f-head);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 900px; margin: 0 auto 28px; }
.hero p { max-width: 780px; margin: 0 auto 20px; font-size: 19px; }
.hero .btn { margin-top: 18px; }

/* Interior page hero: light photo band */
.page-hero {
  background:
    linear-gradient(rgba(255,255,255,.73), rgba(255,255,255,.72)),
    url("/images/about-hero.webp") center/cover no-repeat;
  padding: 90px 0;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero h3 { color: var(--c-primary); margin-bottom: 24px; }
.page-hero p { max-width: 820px; }

/* ---------- Stats bar ---------- */
.stats {
  background: #fff;
  padding: 70px 0 60px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat__num {
  font-family: var(--f-head);
  font-size: 46px;
  color: var(--c-primary);
  line-height: 1.1;
}
.stat__label {
  font-family: var(--f-head);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 6px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--light { background: var(--c-light); }
.section--dark {
  background: var(--c-dark) url("/images/header-bottom.png") center/cover no-repeat;
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section__eyebrow {
  font-family: var(--f-head);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 10px;
}
.section__title { margin-bottom: 24px; }
.section__intro { max-width: 860px; margin-bottom: 40px; }
.center { text-align: center; }
.center .section__intro { margin-left: auto; margin-right: auto; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(6, 62, 112, .09);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.card img.card__img { border-radius: 8px; margin: -34px -30px 24px; max-width: calc(100% + 60px); width: calc(100% + 60px); }
.card h3 { font-size: 21px; color: var(--c-dark); margin-bottom: 8px; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--c-primary); }
.card h5 {
  font-family: var(--f-head);
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.card p { font-size: 16px; color: var(--c-muted); margin-bottom: 0; }
.card .card__link { margin-top: auto; padding-top: 18px; font-family: var(--f-head); font-size: 15px; text-transform: uppercase; }
.section--dark .card { background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.section--dark .card h3, .section--dark .card h5 { color: #fff; }
.section--dark .card p { color: rgba(255,255,255,.85); }

/* ---------- Comparison columns ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare__col { border-radius: 10px; padding: 34px 30px; }
.compare__col--plain { background: var(--c-light); }
.compare__col--brand { background: var(--c-dark); color: #fff; }
.compare__col--brand h3 { color: #fff; }
.compare__col h3 { margin-bottom: 14px; font-size: 22px; }
.compare__col ul { margin: 14px 0 0 20px; }
.compare__col li { margin-bottom: 8px; }

/* ---------- Checklist ---------- */
ul.checklist { list-style: none; margin: 18px 0; }
ul.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-teal);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonial { text-align: left; }
.testimonial__stars { color: #f5b301; font-size: 20px; letter-spacing: 2px; margin-bottom: 6px; }
.testimonial__name {
  font-family: var(--f-head);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--c-primary);
  margin-top: 14px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-dark) 99%);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { max-width: 760px; margin: 0 auto 18px; }

/* ---------- Badges ---------- */
.badges { padding: 46px 0; border-top: 1px solid #e4ecf3; }
.badges__row { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; }
.badges__row img { height: 74px; width: auto; }

/* ---------- Insights / blog ---------- */
.post-card { text-align: left; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card h3 a { color: var(--c-dark); }
.post-card h3 a:hover { color: var(--c-primary); }

.article-hero { text-align: left; padding: 70px 0 30px; border-bottom: 1px solid #e4ecf3; margin-bottom: 40px; }
.article-hero h1 { font-size: 40px; margin-bottom: 18px; }
.article-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--c-muted); }
.article-meta a { color: var(--c-teal); }

.article-body { padding-bottom: 70px; }
.article-body a { overflow-wrap: anywhere; }
.article-body h2 { font-size: 30px; margin: 44px 0 16px; }
.article-body h3 { font-size: 22px; margin: 34px 0 12px; }
.article-body h4 { font-size: 18px; margin: 28px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 1.2em 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--c-primary);
  padding: 10px 20px;
  margin: 0 0 1.2em;
  background: var(--c-light);
  font-style: italic;
}

/* ---------- Leadership ---------- */
.person { text-align: center; padding: 24px 16px; }
.person h3 { font-size: 17px; color: var(--c-dark); }
.person p { font-size: 15px; color: var(--c-muted); margin: 4px 0 0; }

/* ---------- Contact ---------- */
.contact-info p { margin-bottom: 8px; }
.contact-form label {
  display: block;
  font-family: var(--f-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-dark);
  margin: 18px 0 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 16px;
  border: 1px solid #ccd9e4;
  border-radius: 7px;
  background: #fff;
  color: var(--c-text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--c-primary); border-color: var(--c-primary); }
.contact-form .btn { margin-top: 24px; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,.85); font-size: 16px; }
.site-footer__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 { color: #fff; font-size: 17px; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--c-teal); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.site-footer__logo img { height: 30px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 18px 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.6);
}

/* ---------- Utilities (replace inline styles) ---------- */
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }
.grid--left { text-align: left; }
.section--pad-lg { padding: 120px 0; }

/* Whitepaper split band */
.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.split__img {
  max-width: 280px;
  border-radius: 8px;
  justify-self: center;
}
@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; }
  .split__img { justify-self: start; }
}

/* Anchor smaller mega panels to their own nav item; the extra-wide
   Specialty panel keeps the default page-centered placement. The top
   offset reproduces the fixed 62px placement, including the 10px
   overlap with the nav item that keeps :hover unbroken in transit. */
.mega--center, .mega--end {
  position: absolute;
  top: calc(100% - 10px);
}
/* --mega-shift is set by main.js only when a centered panel would poke
   past the viewport edge (right-side items on narrow desktops); it stays
   0 otherwise, keeping the panel exactly centered under its item. */
.mega--center { left: 50%; transform: translateX(calc(-50% + var(--mega-shift, 0px))); }
.mega--end { left: auto; right: -12px; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  h1 { font-size: 40px; }
  .flow-cards { grid-template-columns: repeat(2, 1fr); }
  h2 { font-size: 30px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    box-shadow: 0 8px 16px rgba(6,62,112,.12);
    max-height: 75vh;
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-nav .nav-top { padding: 12px 0; }
  .mega {
    position: static;
    transform: none;
    max-width: none;
    display: none;
    box-shadow: none;
    border-top: 1px solid #e4ecf3;
    border-radius: 0;
    padding: 12px 0 16px;
    flex-direction: column;
    gap: 12px;
  }
  .has-mega.is-open .mega { display: flex; }
  .has-mega:hover .mega { display: none; }
  .has-mega.is-open:hover .mega { display: flex; }
  .mega__desc { width: auto; }
  .mega__links--col1, .mega__links--col2, .mega__links--col3 {
    width: auto;
    column-count: 1;
  }
  .mega__links a { white-space: normal; }
}
@media (max-width: 700px) {
  h1 { font-size: 32px; }
  .flow-cards, .flow-compare, .flow-media { grid-template-columns: 1fr; }
  .hero { padding: 70px 20px 80px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 24px; }
  .compare { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr; }
}

/* ---------- Tables (article content) ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 16px; }
.table-wrap th, .table-wrap td {
  border: 1px solid #d5e1eb;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.table-wrap th { background: var(--c-light); font-weight: 700; color: var(--c-dark); }
.table-wrap tr:first-child td strong { color: var(--c-dark); }

/* ---------- Detail-page flow sections ---------- */
.flow h2 { margin-bottom: 18px; }
.flow h3 { margin: 26px 0 8px; }
.flow h4 { margin: 22px 0 6px; color: var(--c-primary); }
.flow .btn { margin: 10px 0 4px; }

/* analytics ---------------------------------------------------------- */
.gtm-ns { display: none; visibility: hidden; }

/* contact form: honeypot + status ------------------------------------ */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { margin-top: 12px; font-weight: 700; }
.form-status--ok { color: var(--c-teal, #08ad9b); }
.form-status--error { color: #b3402e; }
.cf-turnstile { margin: 14px 0; }

/* flow-section alignment (matches the source site: centered by default,
   list-bearing and named sections stay left) ------------------------- */
.flow-h2-center { text-align: center; }
.flow-center { text-align: center; }

/* animated text highlights (hand-drawn strokes from the source site);
   .is-visible is added by main.js when scrolled into view ------------ */
.hl { position: relative; display: inline-block; }
.hl::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  background: center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.hl.is-visible::after { animation: hl-wipe 1.4s ease .2s forwards; }
@keyframes hl-wipe { to { clip-path: inset(0 0 0 0); } }
.hl--cross::after {
  top: 0;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176.9 50.8' preserveAspectRatio='none'%3E%3Cpath d='M3.9,9.3l160.8,34.1 M172,7C136.6,10,14.9,39.9,14.9,39.9' fill='none' stroke='%23e22227' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hl--underline::after {
  top: calc(100% - 0.1em);
  height: 0.34em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 167.7 12' preserveAspectRatio='none'%3E%3Cpath d='M3.8,8c0,0,116.5-7.5,160.1-1.8' fill='none' stroke='%23231F20' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.flow-band .hl--underline::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 167.7 12' preserveAspectRatio='none'%3E%3Cpath d='M3.8,8c0,0,116.5-7.5,160.1-1.8' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .hl::after { clip-path: none; animation: none; }
}

/* detail-page section bands + cards (source-site design) -------------- */
.flow-band { color: #fff; }
.flow-band--blue { background: var(--c-primary); }
.flow-band--navy { background: var(--c-dark); }
.flow-band h2, .flow-band h3, .flow-band h4, .flow-band p, .flow-band li { color: #fff; }
.flow-band a { color: #fff; text-decoration: underline; }
.flow-band .checklist li::before { color: #fff; }

.flow-photoband--case {
  background:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)),
    url("/images/detail/qway-healthcare-website-8-1-bg.jpg") center/cover no-repeat;
}
.flow-photoband--cta {
  background:
    linear-gradient(90deg, rgba(255,255,255,.95) 30%, rgba(255,255,255,.6) 100%),
    url("/images/detail/qway-healthcare-website-5-1-bg.jpg") center/cover no-repeat;
}

.flow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 38px;
}
.flow-card {
  box-shadow: 0 2px 18px rgba(0, 0, 0, .3);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
}
.flow-card h3 { font-size: 21px; margin-bottom: 10px; }
.flow-card p:last-child { margin-bottom: 0; }

.flow-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 38px;
}
.flow-compare__col {
  border-radius: 15px;
  padding: 28px 30px;
  color: #fff;
}
.flow-compare__col:first-child { background: var(--c-dark); }
.flow-compare__col:last-child { background: var(--c-primary); }
.flow-compare__col h3, .flow-compare__col h4, .flow-compare__col p,
.flow-compare__col li { color: #fff; }
.flow-compare__col .checklist li::before { color: #fff; }

.flow-media {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 46px;
  align-items: center;
}
.flow-media__img { border-radius: 12px; width: 100%; height: auto; }
