/* Vertex Writing Solutions — shared stylesheet
   v2 — 2026-05-08 (brand integration)
   Design model: Takacs Medical Writing (clean cream airy page, heavy navy
   display headline, teal accents, wavy SVG dividers, scientific right-side
   hero visual). Section structure draws from MMS Holdings.
   Palette A locked: deep ink navy + teal accent + amber highlight + cream
   surface. Source Serif 4 carries the wordmark and editorial display moments;
   Archivo Black carries the tech-forward marketing display; Inter carries body.
*/

:root {
  /* Palette A — locked 2026-05-08 (Plan A: amber primary accent, teal secondary highlight)
     If amber reads off on the page, swap to Plan B: teal primary, amber highlight. */
  --color-primary: #142544;       /* ink navy */
  --color-primary-soft: #1E3460;  /* navy hover / softer contexts */
  --color-accent: #E8A317;        /* amber — PRIMARY accent: eyebrows, links, CTAs, active states */
  --color-accent-soft: #F5D58F;   /* amber-soft — hover wash, soft tag backgrounds */
  --color-highlight: #2A8B8B;     /* teal — secondary highlight: small contrast moments, mark inner */
  --color-highlight-soft: #BCDCDC;
  --color-bg: #FAFAF7;            /* cream surface */
  --color-bg-alt: #F1EFE8;        /* warm bg-alt for alternating sections */
  --color-text: #2C2C2A;          /* slate body */
  --color-text-soft: #5F5E5A;     /* muted */
  --color-line: #E5E2D9;          /* warm rule */
  --color-white: #FFFFFF;

  --font-display: "Archivo Black", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(14, 42, 58, 0.06), 0 1px 2px rgba(14, 42, 58, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 42, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 42, 58, 0.12);

  --container: 1180px;
  --container-narrow: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em 0;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.35; }

/* Display headline — Archivo Black, all caps, two-line punch (Takacs model) */
.display-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 24px 0;
}

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary-soft);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-soft);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-accent);
}

/* ============ Layout ============ */

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

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

section {
  padding: 88px 0;
}

section.alt {
  background: var(--color-bg-alt);
}

section.dark {
  background: var(--color-primary);
  color: var(--color-bg);
}
section.dark h1, section.dark h2, section.dark h3 {
  color: var(--color-white);
}
section.dark p { color: var(--color-bg-alt); }
section.dark a { color: var(--color-accent-soft); }

/* ============ Navigation ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-brand-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.97rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}
.nav-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--color-primary-soft); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
}

/* ============ Hero (default — used on Solutions/AI-Tech/Insights) ============ */

.hero {
  position: relative;
  padding: 80px 0 60px 0;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-visual { display: none; }

/* ============ Hero — Home page full-bleed Takacs-scale variant ============ */

.hero-split {
  padding: 0;
  min-height: 760px;
}
.hero-split .hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 80px;
  width: 64%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-split .hero-bg-image::before {
  /* Soft white fade on left edge so text overlap stays readable */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 22%;
  z-index: 2;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hero-split .hero-bg-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  /* No animation — static image per ZH preference */
}
.hero-split .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 680px;
}
.hero-split .hero-text {
  padding: 100px 0;
}

/* Wavy hero animation — multiple keyframes for organic motion */
@keyframes heroFlow {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate3d(-1%, -1.5%, 0) scale(1.04) rotate(0.4deg);
  }
  50% {
    transform: translate3d(1%, -0.5%, 0) scale(1.06) rotate(-0.2deg);
  }
  75% {
    transform: translate3d(0%, 1%, 0) scale(1.03) rotate(0.6deg);
  }
  100% {
    transform: translate3d(-2%, 0, 0) scale(1) rotate(0deg);
  }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-soft);
  max-width: 520px;
  line-height: 1.5;
  margin: 8px 0 32px 0;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mobile: collapse hero, hide background image */
@media (max-width: 980px) {
  .hero-split { min-height: auto; padding: 60px 0 40px 0; }
  .hero-split .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-split .hero-bg-image { display: none; }
  .hero-split .hero-text { padding: 0 0 30px 0; }
}

/* SVG hero illustration — stacked floating templates */
.hero-svg {
  width: 100%;
  max-width: 540px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(21, 53, 92, 0.10));
}
.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}
@keyframes heroBreathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.045) rotate(0.6deg); }
}

/* Wavy SVG divider — between hero and next section */
.wave-divider {
  position: relative;
  width: 100%;
  height: 80px;
  display: block;
  margin-top: -2px;
}
.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wave-divider .wave-1 { opacity: 0.45; }
.wave-divider .wave-2 { opacity: 0.7; }
.wave-divider .wave-3 { opacity: 1; }

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-soft); color: var(--color-white); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: var(--color-white); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-accent:hover { background: var(--color-accent-soft); color: var(--color-primary); }
.btn-ghost {
  background: transparent;
  color: var(--color-bg);
  border-color: var(--color-bg-alt);
}
.btn-ghost:hover { background: var(--color-bg-alt); color: var(--color-primary); }

/* ============ Cards / grids ============ */

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

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-text-soft); }

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-primary);
}
.card-link::after {
  content: " →";
  color: var(--color-accent);
  transition: transform 0.15s;
  display: inline-block;
}
.card-link:hover::after { transform: translateX(3px); }

.card-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

/* ============ Section heading ============ */

.section-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-head p {
  color: var(--color-text-soft);
  font-size: 1.1rem;
  margin-top: 8px;
}

/* ============ Wedge / feature row ============ */

.wedge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-line);
}
.wedge:last-child { border-bottom: none; }
.wedge.reverse { direction: rtl; }
.wedge.reverse > * { direction: ltr; }
.wedge-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.wedge h3 { font-size: 1.6rem; margin-bottom: 14px; }
.wedge-visual {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
}

@media (max-width: 880px) {
  .wedge { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .wedge.reverse { direction: ltr; }
}

/* ============ Sample text comparison block (Vertex wedge) ============ */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 32px 0;
}
.compare-block {
  border-radius: var(--radius-lg);
  padding: 22px;
  font-size: 0.97rem;
  line-height: 1.6;
}
.compare-weak {
  background: #FBF1EE;
  border-left: 4px solid #C56A4F;
}
.compare-strong {
  background: #EEF5F0;
  border-left: 4px solid #4F8C6E;
}
.compare-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.compare-weak .compare-label { color: #9B4A33; }
.compare-strong .compare-label { color: #2F6B4D; }

@media (max-width: 880px) {
  .compare { grid-template-columns: 1fr; }
}

/* ============ Callout (highlighted message) ============ */

.callout-strong {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #E8EDE8 100%);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  margin-bottom: 56px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}
.callout-strong strong {
  color: var(--color-primary);
}
.callout-strong p { margin: 0; }

/* ============ Module breakdown (Solutions page) ============ */

.module-block {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
}
.module-block h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.module-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(232, 163, 23, 0.22);
  padding: 4px 10px;
  border-radius: 20px;
}
.module-meta {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin-bottom: 18px;
}
.module-list {
  margin: 0;
  padding-left: 22px;
}
.module-list li {
  margin-bottom: 6px;
  font-size: 0.97rem;
}

/* ============ Final CTA ============ */

.final-cta {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 96px 24px;
}
.final-cta h2 {
  color: var(--color-white);
  max-width: 720px;
  margin: 0 auto 16px auto;
}
.final-cta p {
  max-width: 600px;
  margin: 0 auto 32px auto;
  color: var(--color-bg-alt);
  font-size: 1.1rem;
}
.final-cta .hero-ctas { justify-content: center; }

/* ============ Footer ============ */

footer {
  background: #0A1F2C;
  color: #B8C5CD;
  padding: 56px 0 32px 0;
  font-size: 0.92rem;
}
footer a { color: var(--color-accent-soft); text-decoration: none; }
footer a:hover { color: var(--color-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1F3645;
  margin-bottom: 24px;
}
.footer-brand { color: var(--color-white); font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 8px; }
.footer-blurb { color: #8A9AA3; max-width: 320px; }
.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6F7E87;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============ Article (Insights) ============ */

.article-hero {
  padding: 80px 0 40px 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
}
.article-meta {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}
.article-byline {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.article-byline-date {
  font-weight: 600;
  color: var(--color-primary);
}
.article-byline-sep {
  color: var(--color-line);
}
.article-byline-author {
  font-style: italic;
}
.article {
  padding: 60px 0 80px 0;
}
.article p,
.article ul,
.article ol { font-size: 1.05rem; line-height: 1.75; max-width: 720px; }
.article h2 { margin-top: 48px; margin-bottom: 16px; }
.article h3 { margin-top: 32px; margin-bottom: 12px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }

/* ============ Form ============ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-primary);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 42, 58, 0.08);
}
textarea { min-height: 120px; resize: vertical; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ============ Inline pill list ============ */

.pill-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-list li {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============ Three-step ============ */

.step {
  position: relative;
  padding-left: 70px;
}
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

/* ============ Banner / strip ============ */

.banner-strip {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 14px 24px;
  text-align: center;
  font-size: 0.92rem;
}
.banner-strip a {
  color: var(--color-accent-soft);
  font-weight: 500;
  margin-left: 6px;
}
