/* ==========================================================================
   CREMS — crems.net site styles
   Palette: Navy #16243E · Teal #1FA978 · Brass #C9922C · Ivory #F4F2EC
   Type:    IBM Plex Serif (display) · IBM Plex Sans (body)
   ========================================================================== */

:root {
  --navy: #16243E;
  --teal: #1FA978;
  --brass: #C9922C;
  --gold: #E4C98C;
  --gold-ui: #EBB01C;
  --ivory: #F4F2EC;
  --white: #FFFFFF;
  --line: #DAD5CA;
  --ink: #16243E;
  --ink-soft: #4A4E6E;
  --ink-muted: #6B6F7E;
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

.crems *, .crems *::before, .crems *::after { box-sizing: border-box; }

.crems {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.crems a { text-decoration: none; color: inherit; }
.crems img { max-width: 100%; height: auto; display: block; }
.crems h1, .crems h2, .crems h3, .crems p, .crems ul { margin: 0; }
.crems ul { padding: 0; list-style: none; }

/* --- Shared pieces ---------------------------------------------------- */
.c-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.c-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); }
.c-eyebrow--muted { color: var(--ink-muted); }
.c-eyebrow-line { display: flex; align-items: center; gap: 14px; }
.c-eyebrow-line::before { content: ""; display: block; width: 40px; height: 1px; background: var(--teal); }
.c-h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -0.01em; }
.c-h2 em { font-style: italic; }
.c-lead { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.c-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; border-radius: 2px; transition: opacity .2s; white-space: nowrap; }
.c-btn:hover { opacity: .85; }
.crems .c-btn--brass { background: var(--brass); color: var(--navy); }
.crems .c-btn--ivory { background: var(--ivory); color: var(--navy); }
.crems .c-btn--ghost { border: 1px solid rgba(244,242,236,.35); color: var(--ivory); font-weight: 500; }
.c-btn svg { width: 16px; height: 16px; }
.c-split { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) {
  .c-split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .c-split__a { grid-column: 1 / span 6; }
  .c-split__b { grid-column: 8 / span 5; }
}

/* --- Header ------------------------------------------------------------ */
.c-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(244,242,236,.15); color: var(--ivory); }
.c-header__in { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.c-logo img { height: 48px; width: auto; }
.c-nav { display: none; gap: 32px; font-size: 14px; font-weight: 500; }
.crems .c-nav a { color: var(--ivory); }
.crems .c-nav a:hover { color: var(--gold-ui); }
.c-header__cta { display: flex; align-items: center; gap: 10px; }
.c-btn-sm { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; border-radius: 2px; white-space: nowrap; }
.crems .c-btn-sm--outline { border: 1px solid var(--navy); color: var(--navy); }
.crems .c-btn-sm--navy { background: var(--navy); color: var(--ivory); font-weight: 600; }
.c-btn-sm svg { width: 14px; height: 14px; }
.c-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(244,242,236,.5); border-radius: 999px; background: none; cursor: pointer; color: var(--ivory); }
.c-mobile-nav { display: none; border-top: 1px solid rgba(244,242,236,.15); background: var(--navy); }
.c-mobile-nav.is-open { display: block; }
.crems .c-mobile-nav a { display: block; padding: 14px var(--gutter); font-size: 15px; font-weight: 500; color: var(--ivory); border-bottom: 1px solid rgba(244,242,236,.15); }
@media (min-width: 1100px) {
  .c-header__in { height: 108px; }
  .c-logo img { height: 62px; }
  .c-nav { display: flex; font-size: 15px; }
  .c-menu-btn, .c-mobile-nav { display: none !important; }
  .c-btn-sm { height: 50px; }
}
@media (max-width: 699px) { .c-btn-sm--secondary { display: none; } }

/* --- Hero -------------------------------------------------------------- */
.c-hero { background: var(--navy); color: var(--ivory); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 6vw, 80px); }
.c-hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.c-hero__copy { display: flex; flex-direction: column; gap: 32px; }
.c-hero .c-eyebrow-line .c-eyebrow { color: var(--teal); }
.c-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.3vw, 76px); line-height: 1.04; letter-spacing: -0.015em; }
.c-hero h1 em { font-style: italic; font-weight: 300; color: var(--gold); }
.c-hero__lead { max-width: 560px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: rgba(244,242,236,.78); }
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.c-stats { display: grid; gap: 0; }
.c-stat { border-top: 1px solid rgba(244,242,236,.22); padding: 22px 0; display: flex; flex-direction: column; gap: 6px; }
.c-stat:last-child { border-bottom: 1px solid rgba(244,242,236,.22); }
.c-stat__n { font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); font-weight: 300; line-height: 1; }
.c-stat__l { font-size: 13px; letter-spacing: 0.04em; color: rgba(244,242,236,.66); }
@media (min-width: 900px) {
  .c-hero__grid { grid-template-columns: 7fr 1fr 4fr; align-items: end; }
  .c-hero__copy { grid-column: 1; min-height: 520px; justify-content: space-between; }
  .c-stats { grid-column: 3; }
}

/* --- Positioning ------------------------------------------------------- */
.c-position { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.c-position p { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; }
@media (min-width: 900px) {
  .c-position .c-split { align-items: start; }
  .c-position .c-split__a { grid-column: 1 / span 3; }
  .c-position .c-split__b { grid-column: 4 / span 8; }
}

/* --- Approach ---------------------------------------------------------- */
.c-approach { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); display: flex; flex-direction: column; gap: clamp(40px, 4.5vw, 64px); }
.c-steps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.c-step { background: var(--ivory); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 20px; }
.c-step__n { font-family: var(--serif); font-size: 13px; letter-spacing: 0.12em; color: var(--teal); }
.c-step h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }
.c-step ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
@media (min-width: 640px) { .c-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .c-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .c-step { padding: 36px 32px 40px; } }

/* --- Services ---------------------------------------------------------- */
.c-services { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); display: flex; flex-direction: column; gap: clamp(40px, 4.5vw, 64px); }
.c-services__intro { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.c-service-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.c-service { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; border-top: 2px solid var(--navy); }
.c-service svg { width: 28px; height: 28px; }
.c-service h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.c-service p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
@media (min-width: 900px) { .c-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* --- CREMS iQ ---------------------------------------------------------- */
.c-iq { background: var(--navy); color: var(--ivory); padding-top: clamp(64px, 6vw, 88px); padding-bottom: clamp(64px, 6vw, 88px); }
.c-iq__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.c-iq__copy { display: flex; flex-direction: column; gap: 32px; }
.c-iq__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.c-iq__brand img { height: 44px; width: auto; }
.c-iq__brand span { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); border-left: 1px solid rgba(244,242,236,.3); padding-left: 20px; }
.c-iq h2 { color: var(--ivory); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -0.01em; }
.c-iq h2 em { color: var(--gold); }
.c-iq__lead { max-width: none; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: rgba(244,242,236,.76); }
.c-iq__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.c-iq-cells { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(244,242,236,.18); border: 1px solid rgba(244,242,236,.18); }
.c-iq-cell { background: var(--navy); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.c-iq-cell__tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.c-iq-cell__tag--teal { color: var(--teal); }
.c-iq-cell h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.25; }
.c-iq-cell p { font-size: 13.5px; line-height: 1.55; color: rgba(244,242,236,.7); }
@media (min-width: 640px) { .c-iq-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .c-iq__copy { gap: 32px; }
}

/* --- Partners ---------------------------------------------------------- */
.c-partners { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: clamp(32px, 3.5vw, 48px); }
.c-partners__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.c-partners__head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; }
.c-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.c-logos > div { background: var(--white); height: 96px; display: flex; align-items: center; justify-content: center; padding: 18px 20px; }
.c-logos img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
@media (min-width: 560px) { .c-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px) { .c-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .c-logos { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* --- Leadership -------------------------------------------------------- */
.c-team { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); display: flex; flex-direction: column; gap: clamp(40px, 4.5vw, 64px); }
.c-team__creds { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.c-team__creds strong { font-weight: 600; color: var(--ink); }
.c-people { display: grid; grid-template-columns: 1fr; column-gap: 32px; row-gap: 48px; }
.c-person { display: flex; flex-direction: column; gap: 18px; }
.c-person__photo { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: center top; background: #E6E1D6; }
.c-person h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }
.c-person__role { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.c-person p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 600px) { .c-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .c-people { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; } }
.c-tech { border-top: 1px solid var(--line); padding-top: 48px; display: grid; grid-template-columns: 1fr; gap: 28px; }
.c-tech__head { display: flex; flex-direction: column; gap: 16px; }
.c-tech__head h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.c-tech__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; border-bottom: 1px solid var(--teal); padding-bottom: 4px; }
.c-tech__link svg { width: 14px; height: 14px; }
.c-tech__body { display: flex; flex-direction: column; gap: 20px; }
.c-tech__body p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.crems .c-tech__body p a { color: var(--ink); border-bottom: 1px solid var(--line); }
.c-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.c-tags li { font-size: 12px; letter-spacing: 0.06em; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; }
@media (min-width: 900px) {
  .c-tech { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .c-tech__head { grid-column: 1 / span 5; }
  .c-tech__body { grid-column: 6 / span 7; }
}

/* --- Footer / Contact -------------------------------------------------- */
.c-footer { background: var(--navy); color: var(--ivory); padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); display: flex; flex-direction: column; }
.c-footer__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.c-footer__cta { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.c-footer__cta .c-eyebrow { color: var(--teal); }
.c-footer__cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.1; letter-spacing: -0.01em; }
.c-footer__info { display: flex; flex-direction: column; gap: 28px; font-size: 14px; line-height: 1.6; }
.c-info-block { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(244,242,236,.22); padding-top: 20px; }
.c-info-block__tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,242,236,.6); }
.c-info-block__phone { font-family: var(--serif); font-size: 22px; }
.crems .c-info-block a { color: var(--ivory); }
.crems .c-info-block a.is-teal { color: var(--teal); }
.c-footer__bar { border-top: 1px solid rgba(244,242,236,.22); padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; font-size: 12px; letter-spacing: 0.06em; color: rgba(244,242,236,.6); }
.c-footer__bar span { width: 100%; text-align: center; }
.c-footer__bar img { height: 36px; width: auto; }
@media (min-width: 900px) { .c-footer__cta { gap: 32px; } }

/* --- Linked iQ cell ---------------------------------------------------- */
.crems .c-iq-cell--link { color: var(--ivory); transition: background .2s; }
.crems .c-iq-cell--link:hover { background: #1C2D4C; }
.c-iq-cell__go { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--teal); }

/* --- Gold pill buttons (header) ---------------------------------------- */
.crems .c-btn-sm--gold { color: var(--gold-ui); border: 1.5px solid var(--gold-ui); border-radius: 999px; font-size: 15px; font-weight: 600; padding: 0 26px; transition: background .2s, color .2s; }
.crems .c-btn-sm--gold:hover { background: var(--gold-ui); color: var(--navy); }

/* --- Teal pill buttons (hero) ------------------------------------------ */
.crems .c-btn--pill { border-radius: 999px; padding: 0 30px; }
.crems .c-btn--teal { background: var(--teal); border: 1.5px solid var(--teal); color: #FFFFFF; }
.crems .c-btn--teal-outline { border: 1.5px solid var(--teal); color: var(--teal); font-weight: 600; }
.crems .c-btn--teal-outline:hover { background: var(--teal); color: #FFFFFF; opacity: 1; }

/* --- Gold outline pill (iQ section) ------------------------------------ */
.crems .c-btn--gold-outline { border: 1.5px solid var(--gold-ui); color: var(--gold-ui); font-weight: 600; }
.crems .c-btn--gold-outline:hover { background: var(--gold-ui); color: var(--navy); opacity: 1; }

/* --- Partner logo marquee ---------------------------------------------- */
.c-marquee { position: relative; overflow: hidden; padding: 28px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.c-marquee::before, .c-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.c-marquee::before { left: 0; background: linear-gradient(90deg, var(--white), rgba(255,255,255,0)); }
.c-marquee::after { right: 0; background: linear-gradient(270deg, var(--white), rgba(255,255,255,0)); }
.c-marquee__track { display: flex; align-items: center; width: max-content; animation: c-marquee 45s linear infinite; }
.c-marquee:hover .c-marquee__track { animation-play-state: paused; }
.c-marquee__item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 40px; }
.c-marquee__item img { max-height: 64px; max-width: 170px; width: auto; height: auto; }
@keyframes c-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .c-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .c-marquee__track > :nth-child(n+15) { display: none; } }

/* --- Contact form ------------------------------------------------------ */
.c-contact { background: var(--white); padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); }
.c-contact__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.c-contact__intro { display: flex; flex-direction: column; gap: 20px; }
.c-form { display: flex; flex-direction: column; gap: 22px; }
.c-form__row { display: grid; grid-template-columns: 1fr; gap: 22px; }
.c-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.c-field em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-muted); margin-left: 6px; }
.c-field input, .c-field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.c-field textarea { resize: vertical; min-height: 150px; }
.c-field input:focus, .c-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,169,120,.18); }
.crems .c-btn--teal-solid { background: var(--teal); border: 1.5px solid var(--teal); color: #FFFFFF; cursor: pointer; align-self: flex-start; font-family: var(--sans); }
.crems .c-btn--teal-solid:hover { background: #17915F; border-color: #17915F; opacity: 1; }
@media (min-width: 640px) { .c-form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .c-contact__grid { grid-template-columns: 5fr 1fr 6fr; align-items: start; }
  .c-contact__intro { grid-column: 1; position: sticky; top: 132px; }
  .c-form { grid-column: 3; }
}

.c-footer-bar-wrap { background: var(--navy); color: var(--ivory); padding-top: 8px; padding-bottom: 32px; }
.c-footer-bar-wrap .c-footer__bar { border-top: none; padding-top: 24px; }

/* Standalone site layout and styles extracted from the page. */
body { margin: 0; }
.c-stack { display: flex; flex-direction: column; }
.c-stack--20 { gap: 20px; }
.c-stack--24 { gap: 24px; }
.c-stack--32 { gap: 32px; }
.c-form__notice { font-size: 14px; color: var(--ink-soft); }
.c-form :disabled { cursor: not-allowed; opacity: .65; }

/* Existing placeholder pages and the deployment's 404 page. */
.c-placeholder { min-height: 100vh; }
.c-placeholder__content { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.c-placeholder h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; }
