/* ==========================================================================
   Core Logic Holding — Global Stylesheet (css/styles.css)

   HOW TO CUSTOMIZE
   ----------------
   • Brand colors, fonts & spacing → edit the CSS variables in :root below.
   • Text content (headings, copy, contact details) → edit the HTML files
     directly; all copy lives in the HTML, not in this stylesheet.
   • Layout (section padding, column counts) → see the numbered sections below.
   No JavaScript or build step is required: this is a plain static site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --color-navy: #061630;                        /* primary dark — header, hero, footer */
  --color-navy-2: #0b2447;                      /* lighter navy for gradients */
  --color-navy-3: #123357;                      /* lightest navy accent */
  --color-green: #19c58b;                       /* accent & call-to-action color */
  --color-green-dark: #10a252;                  /* accent hover / dark green text */
  --color-green-tint: rgba(25, 197, 139, 0.14); /* pale green backgrounds */
  --color-green-ink: #0d7d55;                   /* green text on pale backgrounds */

  /* Neutrals */
  --color-ink: #1e2a35;                         /* main body text */
  --color-muted: #596a72;                       /* secondary text */
  --color-line: #dfe7e4;                        /* borders & dividers */
  --color-bg: #f4f8f6;                          /* page background */
  --color-white: #ffffff;

  /* Effects & geometry */
  --shadow-sm: 0 1px 2px rgba(6, 22, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 22, 48, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-pill: 999px;

  /* Typography */
  --font-stack: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
                 "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1120px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.22; font-weight: 700; color: var(--color-navy); }

:focus-visible { outline: 3px solid var(--color-green); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; }

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

.section-head { max-width: 660px; margin-bottom: 44px; }

.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-green-dark);
}

.section-title { font-size: clamp(28px, 3.6vw, 38px); }

.section-lead { margin-top: 14px; font-size: 17px; color: var(--color-muted); }

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

.split-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   4. Buttons, badges & small bits
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background-color: var(--color-green); color: var(--color-navy); }
.btn-primary:hover { background-color: #3fd3a2; color: var(--color-navy); }

.btn-dark { background-color: var(--color-navy); color: var(--color-white); }
.btn-dark:hover { background-color: var(--color-navy-2); color: var(--color-white); }

.btn-outline { border-color: var(--color-navy); color: var(--color-navy); }
.btn-outline:hover { background-color: var(--color-navy); color: var(--color-white); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--color-white); }
.btn-ghost:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Top-right action buttons shown on every page header. */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
}

.skip-link {
  position: absolute;
  top: -56px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background-color: var(--color-green);
  color: var(--color-navy);
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   5. Header & navigation (no-JS mobile menu via checkbox hack)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(6, 22, 48, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.brand-text em { font-style: normal; font-weight: 400; color: var(--color-green); }

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav { flex: 1; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 9px 10px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover { color: #fff; background-color: rgba(255, 255, 255, 0.08); }
.nav-link.active { color: var(--color-green); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Hero & page hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 112px 0 104px;
  color: var(--color-white);
  background: radial-gradient(900px 480px at 82% -12%, rgba(25, 197, 139, 0.18), transparent 60%),
              linear-gradient(160deg, var(--color-navy) 30%, var(--color-navy-2) 70%, var(--color-navy-3) 100%);
  overflow: hidden;
}

.hero h1 {
  max-width: 780px;
  margin-top: 18px;
  font-size: clamp(34px, 5.4vw, 56px);
  color: var(--color-white);
}

.accent { color: var(--color-green); }

.hero-lead {
  max-width: 640px;
  margin-top: 20px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.page-hero {
  padding: 78px 0 70px;
  color: var(--color-white);
  background: linear-gradient(160deg, var(--color-navy) 40%, var(--color-navy-2));
}

.page-hero h1 {
  max-width: 800px;
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 46px);
  color: var(--color-white);
}

.page-hero .lead {
  max-width: 680px;
  margin-top: 16px;
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card h3 { margin-top: 18px; font-size: 19px; }
.card p { margin-top: 10px; color: var(--color-muted); font-size: 15.5px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-green-tint);
  color: var(--color-green-ink);
}

.card-icon svg { width: 26px; height: 26px; }

.feature-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--color-ink); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-green-dark); font-weight: 700; }

.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 { font-size: 20px; }
.info-card > p { margin-top: 8px; color: var(--color-muted); font-size: 15.5px; }

.info-list { display: grid; gap: 22px; margin-top: 26px; }

.info-item { display: flex; gap: 16px; align-items: flex-start; }

.info-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-green-tint);
  color: var(--color-green-ink);
}

.info-icon svg { width: 22px; height: 22px; }

.info-item h4 { font-size: 16px; }
.info-item p { margin-top: 2px; font-size: 15.5px; color: var(--color-muted); }
.info-item a { color: var(--color-navy-2); font-weight: 600; }
.info-item a:hover { color: var(--color-green-dark); }

.map-placeholder {
  margin-top: 24px;
  display: grid;
  place-items: center;
  height: 240px;
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 14.5px;
  text-align: center;
  padding: 16px;
}

/* --------------------------------------------------------------------------
   8. Purpose cards, fact card, product, CTA band
   -------------------------------------------------------------------------- */
.purpose-card {
  background: var(--color-navy);
  border-radius: var(--radius);
  padding: 36px 34px;
  color: var(--color-white);
}

.purpose-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green);
}

.purpose-card p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.fact-card {
  background: var(--color-navy);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.fact-card h3 { color: #fff; font-size: 17px; letter-spacing: 0.02em; }

.fact-list { list-style: none; margin: 18px 0 0; padding: 0; }

.fact-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14.5px;
}

.fact-item:last-child { border-bottom: none; }
.fact-key { color: rgba(255, 255, 255, 0.6); flex: 0 0 auto; }
.fact-value { color: #fff; font-weight: 600; text-align: right; }

.chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--color-green-tint);
  color: var(--color-green-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-preview h3 { font-size: 22px; margin-top: 16px; }
.product-preview p { margin-top: 10px; color: var(--color-muted); font-size: 16px; }

.preview-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.preview-actions p { color: var(--color-muted); font-size: 15.5px; }

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Space out stacked product showcases (SaaS + on-premises). */
.product-showcase + .product-showcase { margin-top: 56px; }

.product-media {
  background: linear-gradient(160deg, var(--color-navy) 40%, var(--color-navy-2));
  border-radius: var(--radius);
  padding: 36px;
  color: #fff;
}

.product-media h3 { font-size: 26px; color: #fff; margin-top: 16px; }
.product-media > p { margin-top: 12px; color: rgba(255, 255, 255, 0.8); font-size: 15.5px; }
.product-media .feature-list { margin-top: 22px; }
.product-media .feature-list li { color: rgba(255, 255, 255, 0.9); }
.product-media .feature-list li::before { color: var(--color-green); }
.product-media .media-cta { margin-top: 28px; }

.product-copy p { margin-top: 14px; color: var(--color-muted); font-size: 16.5px; }
.product-copy .eyebrow { margin-bottom: 8px; }
.product-copy h3 { font-size: 24px; }

.cta-band {
  background: radial-gradient(800px 400px at 15% 0%, rgba(25, 197, 139, 0.15), transparent 55%),
              linear-gradient(160deg, var(--color-navy), var(--color-navy-2));
  padding: 84px 0;
  color: #fff;
}

.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); color: #fff; }
.cta-band p { max-width: 560px; margin-top: 12px; color: rgba(255, 255, 255, 0.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* --------------------------------------------------------------------------
   9. Organization chart, values, leadership
   -------------------------------------------------------------------------- */
.org-chart { list-style: none; margin: 0; padding: 0; }

.org-box {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.org-box h3 { font-size: 17px; margin-top: 12px; }
.org-box p { margin-top: 6px; font-size: 14.5px; color: var(--color-muted); }

.org-branch { text-align: center; margin: 22px 0; }

.org-branch span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.org-branch span::before { content: ""; width: 2px; height: 28px; background: var(--color-line); }

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px;
}

.value-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.value-card p { color: var(--color-muted); font-size: 15px; }

.leader-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.leader-name {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-green);
  font-size: 20px;
  font-weight: 700;
  margin-inline: auto;
}

.leader-card h3 { text-align: center; margin-top: 16px; font-size: 17px; }

.leader-role {
  text-align: center;
  margin-top: 4px;
  color: var(--color-green-ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leader-card p.bio { margin-top: 12px; color: var(--color-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   10. Contact form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}

.contact-form h3 { font-size: 20px; }
.form-note { font-size: 14px; color: var(--color-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--color-navy); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-green-tint);
}

.form-field textarea { min-height: 140px; resize: vertical; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-about { margin-top: 16px; font-size: 14.5px; line-height: 1.7; max-width: 320px; }

.footer-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 14.5px; }
.footer-links a:hover { color: var(--color-green); }

.footer-contact { font-style: normal; font-size: 14.5px; line-height: 1.9; }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--color-green); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   12. Prose (privacy policy)
   -------------------------------------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 21px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; }
.prose ul { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--color-green-dark); text-decoration: underline; }

.policy-updated {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   13. Standalone sub-domain pages (crm / crmdemo)
   -------------------------------------------------------------------------- */
.standalone-main {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
}

.coming-soon { text-align: center; max-width: 560px; }
.coming-soon h1 { font-size: clamp(40px, 8vw, 64px); }
.coming-soon p { margin-top: 14px; color: var(--color-muted); font-size: 17px; }

.login-card { width: 100%; max-width: 440px; }
.login-head { text-align: center; }
.login-head h2 { font-size: 24px; }
.login-head p { margin-top: 8px; color: var(--color-muted); font-size: 15px; }
.forgot-link { justify-self: end; font-size: 13.5px; color: var(--color-green-dark); text-decoration: underline; }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .split-grid,
  .product-showcase,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 16px; }
  .nav-link { display: block; padding: 11px 14px; border-radius: var(--radius-sm); }
  .nav-toggle-label { display: flex; }
  .nav-toggle:checked ~ .site-nav { max-height: 480px; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .page-hero { padding: 56px 0 52px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .preview-actions { align-items: stretch; }
  .preview-actions .btn { width: 100%; }
}