/* Celant Innovations — shared styles for all pages.
   Tokens per CLAUDE.md. Layout that must respond to viewport width
   (grids, headings, nav, section padding) lives here as classes;
   one-off decorative styling stays inline in each page. */

:root {
  --navy: #253746;
  --navy-dark: #1A2833;
  --bg: #FBFAF8;
  --red: #C8102E;
  --red-dark: #A50D26;
  --amber: #F2A900;
  --text-2: #4A5A68;
  --muted: #7A8793;
  --ondark-2: #B8C2CB;
  --ondark-muted: #9AA7B2;
  --hairline: #E6E2DB;
  --input-border: #D8D2C6;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Public Sans', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Contact page: keep footer at the bottom on short viewports */
.page-flex { display: flex; flex-direction: column; min-height: 100vh; }
.page-flex .grow { flex: 1; width: 100%; }

/* ---------- Layout primitives ---------- */

/* Content section: set per-section vertical padding with --pt / --pb */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--pt, 96px) 32px var(--pb, 96px);
  box-sizing: border-box;
}

/* Two-column split: override columns/gap with --cols / --gap */
.split {
  display: grid;
  grid-template-columns: var(--cols, 1fr 1fr);
  gap: var(--gap, 64px);
  align-items: center;
  align-content: start;
}
.split.align-start { align-items: start; }

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

.sticky-col { position: sticky; top: 108px; }

.dark { background: var(--navy); color: var(--bg); }
.band-white { background: #FFFFFF; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ---------- Typography ---------- */

.h1 {
  font-family: var(--serif);
  font-size: var(--h1, 52px);
  line-height: 1.12;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--serif);
  font-size: var(--h2, 38px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

.eyebrow-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stars { color: var(--amber); font-size: 17px; letter-spacing: 3px; }

/* Review cards (reviews page) */
.review-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-2);
  font-style: italic;
}
.review-pc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.review-pc .pc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { text-decoration: none; color: var(--text-2); font-size: 16px; font-weight: 500; }
.nav-link:hover { color: var(--navy); }
.nav-link.is-active {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.nav-cta {
  text-decoration: none;
  background: var(--navy);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--navy-dark); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--red);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn-lg { font-size: 18px; padding: 16px 36px; }

.link-accent {
  text-decoration: none;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 8px;
  border-bottom: 2px solid var(--amber);
}
.link-accent:hover { color: var(--red); }

.link-arrow { text-decoration: none; color: var(--red); font-size: 17px; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

.link-plain { font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-plain:hover { color: var(--red); }

.pill {
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--hairline);
  background: var(--bg);
  border-radius: 100px;
  padding: 9px 20px;
}
.pill:hover { border-color: var(--navy); }

/* ---------- Cards ---------- */

.card { background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 6px; }
.dark-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.workflow-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(37, 55, 70, 0.25);
}

.rating-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.rating-card:hover { border-color: var(--amber); }

.badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--muted);
}

/* Placeholder for product screenshots not yet provided.
   Swap each .shot div for <img class="shot" src="…" alt="…"> when real
   screenshots exist; set height via --shot-h. */
.shot {
  width: 100%;
  height: var(--shot-h, 340px);
  box-sizing: border-box;
  border: 1px dashed var(--input-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 15px;
  color: var(--muted);
}
img.shot { object-fit: cover; padding: 0; border: none; display: block; border: 1px solid var(--hairline); }
.shot-link { display: block; cursor: zoom-in; }

/* Softer placeholders — hints, not data */
input::placeholder,
textarea::placeholder {
  color: #A9B1BA;
  opacity: 1;
}

/* Integration logo grid (Connect section) */
.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: center;
}
.logo-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  box-sizing: border-box;
}
.logo-card img {
  max-height: 32px;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Screenshot lightbox (lightbox.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(21, 31, 40, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
  animation: lightbox-fade 0.18s ease-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 6px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}
.lightbox-close:hover { opacity: 1; }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }

/* Full-width product showcase (platform hero) */
.showcase {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(37, 55, 70, 0.14);
}

/* ---------- Forms (contact page) ---------- */

.form-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 8px 32px rgba(37, 55, 70, 0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--bg);
  outline: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.field select { appearance: auto; }
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); }

.form-error {
  background: #FDF1F2;
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--red-dark);
}

/* Honeypot — visually hidden, still submitted by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-dark); color: var(--muted); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--bg); }
.footer-brand span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.footer-nav { display: flex; gap: 24px; font-size: 15px; flex-wrap: wrap; }
.footer-nav a { color: var(--ondark-2); text-decoration: none; }
.footer-nav a:hover { color: var(--bg); }
.footer-copy { font-size: 13px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .wrap { padding-top: 64px; padding-bottom: 64px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split > .media { order: 2; }
  .sticky-col { position: static; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
}

@media (max-width: 700px) {
  .wrap { padding: 56px 20px; }
  .header-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .site-nav { gap: 16px; }
  .site-nav .nav-link { display: none; }
  .h1 { font-size: 33px; }
  .h2 { font-size: 26px; }
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .workflow-card { padding: 24px 18px; }
  .rating-card { width: 100%; padding: 28px 24px; }
  .form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .shot { height: 260px; }
}
