/* UI-kit-only styles. Pulls in colors_and_type.css from project root.
   Class prefix is cc- to avoid collisions with other css. */

@import url("colors_and_type.css");

/* ---------- layout primitives ---------- */
.cc-section { padding: 64px 5% ; }
@media (min-width: 768px) { .cc-section { padding: 96px 5%; } }
@media (min-width: 992px) { .cc-section { padding: 112px 5%; } }
.cc-container { max-width: 80rem; margin: 0 auto; }

/* type aliases mapped to scheme-aware tokens */
.cc-h1 { font-family: var(--font-display); font-weight: 500; font-size: 48px; line-height: 1.05; letter-spacing: -0.01em; margin: 0; color: inherit; }
.cc-h2 { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 18px; color: inherit; }
.cc-h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: inherit; }
.cc-h4 { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.3; letter-spacing: -0.01em; margin: 0; color: inherit; }
.cc-h5 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; margin: 0; color: inherit; }
.cc-h6 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin: 0; color: inherit; }
@media (min-width: 992px) {
  .cc-h1 { font-size: 56px; }
  .cc-h2 { font-size: 60px; }
  .cc-h3 { font-size: 48px; }
  .cc-h4 { font-size: 40px; }
  .cc-h5 { font-size: 32px; }
  .cc-h6 { font-size: 26px; }
}
.cc-text-medium { font-size: 18px; line-height: 1.5; }
@media (min-width: 992px) { .cc-text-medium { font-size: 20px; } }
.cc-eyebrow { font-weight: 500; font-size: 16px; margin: 0 0 14px; }

/* ---------- buttons ---------- */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 1;
  padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: opacity 150ms, background-color 150ms, transform 100ms, border-color 150ms;
  white-space: nowrap;
}
.cc-btn-sm { padding: 8px 18px; font-size: 14px; }
.cc-btn-primary {
  background: var(--scheme-fg, #000);
  color: var(--scheme-bg, #fff);
  border-color: var(--scheme-fg, #000);
}
.cc-btn-primary:hover { opacity: 0.85; }
.cc-btn-secondary {
  background: transparent;
  color: var(--scheme-fg, #000);
  border-color: var(--scheme-border, rgba(0,0,0,0.15));
}
.cc-btn-secondary:hover { background: rgba(0,0,0,0.04); }
.scheme-4 .cc-btn-secondary:hover { background: rgba(255,255,255,0.06); }
.cc-btn-alternate {
  background: var(--color-white);
  color: var(--color-neutral-darkest);
  border-color: var(--color-white);
}
.cc-btn-alternate:hover { opacity: 0.9; }
.cc-btn:active { transform: translateY(1px); }

/* ---------- navbar ---------- */
.cc-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%;
  background: var(--scheme-bg);
}
.cc-nav-brand { display: inline-flex; }
.cc-logo { height: 28px; width: auto; display: block; }
.cc-nav-right { display: flex; align-items: center; gap: 16px; }
.cc-burger {
  display: flex; flex-direction: column; gap: 4px;
  width: 32px; height: 32px; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.cc-burger span { display: block; width: 22px; height: 2px; background: var(--scheme-fg); transition: 200ms; }
.cc-burger.is-open span:nth-child(1),
.cc-burger.is-open span:nth-child(4) { width: 0; }
.cc-burger.is-open span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.cc-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.cc-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--scheme-bg); padding: 24px 5% 32px;
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px solid var(--scheme-border);
}
.cc-menu a {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--scheme-fg); text-decoration: none; padding: 8px 0;
  cursor: pointer;
}

/* ---------- hero ---------- */
.cc-hero-card {
  position: relative; border-radius: 8px; overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
}
@media (min-width: 992px) { .cc-hero-card { min-height: 640px; } }
.cc-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-hero-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.50); }
.cc-hero-body {
  position: relative; z-index: 1; max-width: 560px;
  padding: 48px 32px;
  color: #fff;
}
.cc-hero-body .cc-h1 { color: #fff; margin-bottom: 22px; }
.cc-hero-body p { font-size: 20px; line-height: 1.5; opacity: 0.95; }
@media (min-width: 768px) { .cc-hero-body { padding: 80px 64px; } }

/* ---------- logo wall ---------- */
.cc-logo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
@media (min-width: 768px) { .cc-logo-grid { grid-template-columns: repeat(3, 1fr); } }
.cc-logo-cell {
  background: #fff; border-radius: 8px; padding: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--border-subtle);
}
.cc-logo-cell img { max-height: 56px; max-width: 80%; object-fit: contain; }

/* ---------- features ---------- */
.cc-features-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 768px) { .cc-features-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 992px) { .cc-features-grid { gap: 80px; } }
.cc-feature-list { position: relative; }
.cc-feature-rail {
  position: absolute; left: 36px; top: 10%; bottom: 10%;
  width: 2px; background: rgba(255,255,255,0.30);
}
.scheme-1 .cc-feature-rail, .scheme-2 .cc-feature-rail, .scheme-3 .cc-feature-rail { background: rgba(0,0,0,0.15); }
.cc-feature {
  display: grid; grid-template-columns: max-content 1fr; gap: 24px;
  padding: 40px 0;
  position: relative;
}
.cc-feature-icon {
  position: relative; z-index: 1;
  background: var(--scheme-bg);
  padding: 16px 12px;
  margin-top: -16px;
  display: grid; place-items: center;
  width: 72px;
}

/* ---------- benefits ---------- */
.cc-benefits-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
@media (min-width: 768px) { .cc-benefits-grid { grid-template-columns: max-content 1fr; gap: 80px; } }
.cc-benefit-num-col { display: none; }
@media (min-width: 768px) {
  .cc-benefit-num-col { display: block; position: sticky; top: 80px; }
  .cc-benefit-num {
    font-family: var(--font-display); font-weight: 500; font-size: 224px;
    line-height: 0.9; letter-spacing: -0.04em;
    transition: 400ms cubic-bezier(0.4,0,0.2,1);
  }
}
.cc-benefit-stack { display: grid; gap: 80px; }
.cc-benefit { padding: 40px 0; }
.cc-benefit-bar { height: 2px; width: 100%; background: var(--color-neutral-lighter); margin-bottom: 32px; }
.cc-benefit-fill { height: 100%; background: var(--scheme-fg); transition: width 600ms cubic-bezier(0.4,0,0.2,1); }

/* ---------- testimonial ---------- */
.cc-stars { display: flex; gap: 6px; justify-content: center; }
.cc-stars .cc-star { width: 28px; height: 28px; background: #F5B400; display: inline-block; -webkit-mask: url(https://cdn.jsdelivr.net/npm/@material-symbols/svg-500@latest/rounded/star-fill.svg) center/contain no-repeat; mask: url(https://cdn.jsdelivr.net/npm/@material-symbols/svg-500@latest/rounded/star-fill.svg) center/contain no-repeat; }
.cc-attribution {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px; font-size: 16px;
}
.cc-vrule { width: 1px; height: 32px; background: var(--scheme-border); }
.cc-customer-logo {
  display: inline-block; padding: 10px 18px; background: #fff;
  border: 1px solid var(--border-subtle); border-radius: 8px;
  font-weight: 600; color: var(--color-java); letter-spacing: 0.02em;
}

/* ---------- faq ---------- */
.cc-faq-item { border-top: 1px solid var(--scheme-border); }
.cc-faq-item:last-child { border-bottom: 1px solid var(--scheme-border); }
.cc-faq-trigger {
  width: 100%; background: transparent; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 4px; color: var(--scheme-fg);
  font-family: var(--font-sans); font-size: 18px; font-weight: 500; text-align: left;
}
.cc-faq-chev { display: inline-flex; transition: transform 200ms; }
.cc-faq-item.is-open .cc-faq-chev { transform: rotate(180deg); }
.cc-faq-answer {
  padding: 0 4px 22px; font-size: 16px; line-height: 1.55;
  opacity: 0.85; max-width: 56ch;
}

/* ---------- cta ---------- */
.cc-cta-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 992px) { .cc-cta-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.cc-cta-image img { width: 100%; height: auto; border-radius: 8px; object-fit: cover; }

/* ---------- footer ---------- */
.cc-footer { padding: 64px 5% 32px; }
.cc-footer-top {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding-bottom: 56px;
}
.cc-footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
}
.cc-footer-links a, .cc-footer-legal a {
  color: inherit; text-decoration: none; font-weight: 500;
}
.cc-footer-rule { height: 1px; background: var(--scheme-border); }
.cc-footer-bottom {
  padding-top: 24px;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 18px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .cc-footer-bottom { flex-direction: row; justify-content: space-between; }
}
.cc-footer-legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; }
.cc-footer-legal a { text-decoration: underline; font-weight: 400; }

/* ---------- modal ---------- */
.cc-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: grid; place-items: center; z-index: 100; padding: 24px;
  animation: cc-fade 200ms ease-out;
}
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
.cc-modal {
  background: #fff; color: #000; border-radius: 8px; padding: 32px;
  max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.30);
}
.cc-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 6px;
}
.cc-modal-close:hover { background: rgba(0,0,0,0.05); }
.cc-form { display: grid; gap: 16px; margin-top: 22px; }
.cc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.cc-form input, .cc-form textarea {
  font-family: var(--font-sans); font-size: 14px; padding: 10px 12px;
  border-radius: 6px; border: 1px solid rgba(0,0,0,0.15); background: #fff; outline: none;
  resize: vertical;
}
.cc-form input:focus, .cc-form textarea:focus {
  border-color: var(--color-java);
  box-shadow: 0 0 0 3px rgba(23,168,195,0.18);
}
.cc-form .cc-btn { justify-self: flex-start; }

/* ---------- page hero ---------- */
.cc-page-hero { padding-top: 96px; padding-bottom: 96px; }
@media (min-width: 992px) { .cc-page-hero { padding-top: 144px; padding-bottom: 120px; } }

/* ---------- service grid ---------- */
.cc-service-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .cc-service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cc-service-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.cc-service-card {
  border: 1px solid var(--scheme-border);
  border-radius: 8px; padding: 32px;
  background: var(--scheme-bg);
}
.cc-service-card .cc-icon { display: block; }

/* ---------- process ---------- */
.cc-process-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .cc-process-grid { grid-template-columns: repeat(2, 1fr); gap: 56px; } }
@media (min-width: 992px) { .cc-process-grid { grid-template-columns: repeat(4, 1fr); } }
.cc-process-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 80px; line-height: 1; letter-spacing: -0.02em;
  color: var(--scheme-fg); opacity: 0.85;
  border-top: 2px solid var(--scheme-fg); padding-top: 18px;
}

/* ---------- stats ---------- */
.cc-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
@media (min-width: 768px) { .cc-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 48px; } }
.cc-stat-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 64px; line-height: 1; letter-spacing: -0.02em;
}
@media (min-width: 992px) { .cc-stat-num { font-size: 96px; } }

/* ---------- team ---------- */
.cc-team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 768px) { .cc-team-grid { grid-template-columns: repeat(4, 1fr); } }
.cc-team-card {  }
.cc-team-avatar {
  aspect-ratio: 1/1; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 56px;
  color: #fff; letter-spacing: -0.02em;
}

.cc-menu a.is-active { text-decoration: underline; }

/* ---------- legal / long-form ---------- */
.cc-legal-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
@media (min-width: 992px) {
  .cc-legal-grid { grid-template-columns: 220px 1fr; gap: 96px; }
}
.cc-legal-toc {
  position: sticky; top: 96px; align-self: start;
  border-top: 1px solid var(--scheme-border); padding-top: 18px;
}
.cc-legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc-legal-toc a {
  font-size: 14px; color: var(--fg-2); cursor: pointer;
  text-decoration: none;
}
.cc-legal-toc a:hover { color: var(--fg-1); text-decoration: underline; }

.cc-legal-rule {
  height: 1px; background: var(--scheme-border); margin: 40px 0 32px;
}
.cc-legal-section { margin-top: 40px; }
.cc-legal-section:first-of-type { margin-top: 0; }
.cc-legal-section .cc-h4 { margin-bottom: 16px; }
.cc-legal-p {
  font-size: 16px; line-height: 1.7; color: var(--fg-2);
  margin-top: 12px; max-width: 64ch;
}

/* ---------- cookie settings ---------- */
.cc-cookie-list {
  display: grid; gap: 0;
  border-top: 1px solid var(--scheme-border);
}
.cc-cookie-row {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--scheme-border);
}
.cc-cookie-required {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); margin-left: 8px; font-weight: 500;
}
.cc-toggle {
  width: 52px; height: 30px; border-radius: 999px; position: relative;
  background: var(--scheme-border); border: none; cursor: pointer; padding: 0;
  transition: background 160ms;
}
.cc-toggle span {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 999px;
  background: #fff; transition: transform 160ms;
}
.cc-toggle.is-on { background: var(--color-java, #17a8c3); }
.cc-toggle.is-on span { transform: translateX(22px); }
.cc-toggle.is-locked { opacity: 0.55; cursor: not-allowed; }
.cc-cookie-actions {
  margin-top: 32px; display: flex; align-items: center; gap: 16px;
}
.cc-cookie-saved {
  font-size: 14px; color: var(--fg-2);
}

/* ---------- reveal-on-scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cc-anim {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  .cc-anim.cc-in {
    opacity: 1;
    transform: none;
  }
  /* Soft inner stagger for grid items inside a revealed section */
  .cc-anim .cc-feature,
  .cc-anim .cc-service-card,
  .cc-anim .cc-process-step,
  .cc-anim .cc-team-card,
  .cc-anim .cc-stats-grid > div,
  .cc-anim .cc-faq-item,
  .cc-anim .cc-logo-wall img {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
    transition-delay: 120ms;
  }
  .cc-anim.cc-in .cc-feature,
  .cc-anim.cc-in .cc-service-card,
  .cc-anim.cc-in .cc-process-step,
  .cc-anim.cc-in .cc-team-card,
  .cc-anim.cc-in .cc-stats-grid > div,
  .cc-anim.cc-in .cc-faq-item,
  .cc-anim.cc-in .cc-logo-wall img {
    opacity: 1;
    transform: none;
  }
  .cc-anim.cc-in > * > *:nth-child(1),
  .cc-anim.cc-in .cc-service-card:nth-child(1),
  .cc-anim.cc-in .cc-process-step:nth-child(1),
  .cc-anim.cc-in .cc-team-card:nth-child(1) { transition-delay: 80ms; }
  .cc-anim.cc-in .cc-service-card:nth-child(2),
  .cc-anim.cc-in .cc-process-step:nth-child(2),
  .cc-anim.cc-in .cc-team-card:nth-child(2) { transition-delay: 160ms; }
  .cc-anim.cc-in .cc-service-card:nth-child(3),
  .cc-anim.cc-in .cc-process-step:nth-child(3),
  .cc-anim.cc-in .cc-team-card:nth-child(3) { transition-delay: 240ms; }
  .cc-anim.cc-in .cc-service-card:nth-child(4),
  .cc-anim.cc-in .cc-process-step:nth-child(4),
  .cc-anim.cc-in .cc-team-card:nth-child(4) { transition-delay: 320ms; }
  .cc-anim.cc-in .cc-service-card:nth-child(5),
  .cc-anim.cc-in .cc-team-card:nth-child(5) { transition-delay: 400ms; }
  .cc-anim.cc-in .cc-service-card:nth-child(6),
  .cc-anim.cc-in .cc-team-card:nth-child(6) { transition-delay: 480ms; }

  /* Hero entrance — runs once on page load via cc-in */
  header.cc-nav.cc-anim {
    transition-duration: 480ms;
  }

  /* Subtle hover lift on interactive cards */
  .cc-service-card,
  .cc-team-card,
  .cc-feature {
    transition: transform 240ms ease, box-shadow 240ms ease;
  }
  .cc-service-card:hover,
  .cc-team-card:hover {
    transform: translateY(-3px);
  }

  /* Buttons: a touch of life on press/hover */
  .cc-btn {
    transition: transform 120ms ease, opacity 160ms ease, background 160ms ease;
  }
  .cc-btn:active { transform: translateY(1px); }
}
