/* ==========================================================================
   Clover Labs — design system. Tokens captured from the original site.
   Fonts: Poppins (headings), Roboto (body). Brand green #4EAD43, ink #1A1A1A.
   ========================================================================== */
:root {
  --green: #4ead43;
  --green-dark: #3c8f33;
  --green-light: #a6d6a1;
  --blue: #50abff;
  --ink: #1a1a1a;
  --black: #000;
  --white: #fff;
  --grey: #69727d;
  --grey-2: #7a7a7a;
  --panel: #f0f0f0;
  --card: #efefef;
  --line: #e6e6e6;

  --font-head: "Poppins", Helvetica, Arial, sans-serif;
  --font-body: "Roboto", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --header-h: 84px;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
hr.rule { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); margin: 34px 0 50px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

/* -------------------------------------------------------------- Icons ---- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Process/careers icons keep their own (multi-tone) colors; only sizing here. */
.process-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

/* -------------------------------------------------------------- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06); border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 24px;
}
.logo img { height: 34px; width: auto; }
.primary-nav { display: flex; align-items: center; flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.nav-link:hover { color: var(--green); }
.nav-link.is-active { box-shadow: inset 0 -2px 0 var(--ink); }
.caret { transition: transform 0.2s ease; }

.nav-item.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.nav-item.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
}
.dropdown-link:hover { background: var(--card); color: var(--green); }
.nav-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------- Sections - */
.section { padding: 92px 0; }
.section--light { background: var(--white); color: var(--ink); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: #fff; }
.section--grey { background: var(--panel); color: var(--ink); }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 0.6em; }

.accent { color: var(--green); font-weight: 600; font-family: var(--font-head); font-size: 15px; margin: 0 0 0.7em; }
.muted { color: var(--grey); font-size: 16px; }
.section--dark .muted { color: rgba(255, 255, 255, 0.62); }

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

/* Hero */
.hero { padding-top: 70px; padding-bottom: 84px; }
.hero-title {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  max-width: 880px;
  margin-bottom: 28px;
}
.hero-sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--grey); max-width: 640px; margin-bottom: 40px; }
.hero-brands { color: var(--grey); font-size: 16px; }
.hero-brands strong { color: var(--ink); font-weight: 600; }

/* Process cards */
.process-card h3 { font-size: 22px; margin-bottom: 0.5em; }
.process-card .btn { margin-top: 18px; }

/* Knowledge cards */
.knowledge .grid-2 { margin-top: 12px; }
.card { background: var(--card); border-radius: 10px; padding: 44px 40px; }
.card h3 { font-size: 24px; }
.card .btn { margin-top: 22px; }

/* Careers / challenge panel */
.challenge-wrap { padding-top: 0; }
.challenge-panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 64px 64px 0;
  min-height: 380px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
}
.challenge-text { max-width: 460px; align-self: center; padding-bottom: 64px; }
.challenge-media { flex: 0 0 auto; display: flex; align-items: flex-end; }
.challenge-media img { max-height: 420px; width: auto; display: block; }
.challenge-text h2 { font-size: clamp(30px, 4vw, 44px); }
.challenge-text .btn { margin-top: 22px; }

/* Services */
.services-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.services-cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 1em; }
.services-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.service h4 { font-size: 20px; margin-bottom: 0.3em; }

/* Consultation */
.consultation .lead { font-size: 18px; color: var(--grey); max-width: 720px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; max-width: 720px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: inherit; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* -------------------------------------------------------------- FAQ ------ */
.faq-title { margin-bottom: 0.7em; }
.faq-list { max-width: 840px; }
.faq-item { border-bottom: 1px solid var(--line); }
.section--dark .faq-item { border-bottom-color: rgba(255, 255, 255, 0.16); }
.faq-q {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--green);
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 44px 24px 0; }
.faq-a p { color: var(--grey); margin: 0 0 1em; font-size: 16px; }
.faq-a p:last-child { margin-bottom: 0; }
.section--dark .faq-a p { color: rgba(255, 255, 255, 0.64); }

/* ------------------------------------------------------------- CTA band --- */
.cta-inner { max-width: 720px; }
.cta-body { font-size: 18px; color: var(--grey); margin-bottom: 32px; }
.section--dark .cta-body { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------- Generic content blocks - */
.eyebrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.lead { font-size: 19px; color: var(--grey); max-width: 760px; }
.section--dark .lead { color: rgba(255, 255, 255, 0.7); }
.measure { max-width: 760px; }

/* Long-form prose (thickened service pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 0.5em; }
.prose h3 { font-size: 21px; margin: 1.6em 0 0.4em; }
.prose p { color: var(--grey); margin: 0 0 1.1em; }
.section--dark .prose p { color: rgba(255, 255, 255, 0.7); }
.prose p + h3 { margin-top: 1.2em; }

/* Feature / value cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: var(--card);
  border-radius: 10px;
  padding: 32px 30px;
}
.section--dark .feature { background: rgba(255, 255, 255, 0.05); }
.feature h3 { font-size: 19px; margin-bottom: 0.4em; }
.feature p { color: var(--grey); font-size: 15.5px; margin: 0; }
.section--dark .feature p { color: rgba(255, 255, 255, 0.64); }

/* Numbered steps */
.steps { display: grid; gap: 26px; counter-reset: step; max-width: 820px; }
.step-row { display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start; }
.step-row .num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-row .num::before { content: counter(step); }
.step-row h3 { font-size: 19px; margin-bottom: 0.3em; }
.step-row p { color: var(--grey); margin: 0; font-size: 15.5px; }
.section--dark .step-row p { color: rgba(255, 255, 255, 0.64); }

/* Inline pill list (tools / stack chips) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.pills li {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.section--dark .pills li { border-color: rgba(255, 255, 255, 0.22); color: #fff; }

/* Comparison two-column ("from / to") */
.fromto { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; }
.fromto .col { border-radius: 10px; padding: 30px 28px; }
.fromto .col--from { background: var(--card); }
.fromto .col--to { background: var(--green); color: #fff; }
.fromto .col h3 { font-size: 17px; margin-bottom: 0.8em; }
.fromto .col--to h3 { color: #fff; }
.fromto ul { list-style: none; padding: 0; margin: 0; }
.fromto li { padding: 8px 0; font-size: 15.5px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.fromto .col--from li { color: var(--grey); }
.fromto .col--to li { border-top-color: rgba(255, 255, 255, 0.25); }
.fromto li:first-child { border-top: 0; }

/* Clickable feature cards (service / builder hubs) */
.feature--link {
  display: block;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.feature--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}
.feature--link h3 { color: var(--ink); }
.section--dark .feature--link h3 { color: #fff; }
.feature-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}

/* Brand grid (work hub) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.brand-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 18px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

/* Pricing cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.price-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border-color: var(--green);
  box-shadow: 0 14px 40px rgba(78, 173, 67, 0.16);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-name { font-size: 22px; margin-bottom: 0.2em; }
.price-who { color: var(--grey); font-size: 15px; min-height: 44px; margin-bottom: 18px; }
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--ink); margin: 0 0 0.2em; }
.price-note { color: var(--grey); font-size: 14px; margin-bottom: 22px; }
.price-features { margin: 0 0 28px; }
.price-features li { font-size: 15.5px; margin-bottom: 12px; }
.price-card .btn { margin-top: auto; }

/* Products showcase (orphan SEO page) */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1); }
.product-name { font-size: 22px; margin: 0 0 0.25em; }
.product-name a { color: var(--ink); }
.product-name a:hover { color: var(--green); }
.product-tagline { color: var(--green); font-family: var(--font-head); font-weight: 600; font-size: 15px; margin: 0 0 0.8em; }
.product-desc { color: var(--grey); font-size: 15.5px; margin: 0 0 22px; }
.product-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.product-link:hover { color: var(--green); }

@media (max-width: 900px) {
  .feature-grid, .feature-grid.cols-2, .fromto, .price-grid, .product-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-tagline { color: var(--grey); max-width: 320px; font-size: 15px; }
.site-footer h5 { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer-nav ul, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a, .footer-email { color: var(--grey); font-size: 15px; }
.footer-col .footer-email { display: inline-block; margin-bottom: 18px; }
.footer-nav a:hover, .footer-email:hover { color: var(--green); }
.footer-social { display: flex; gap: 14px; }
.footer-social li { margin: 0; }
.footer-social a { color: var(--grey); display: inline-flex; }
.footer-social a:hover { color: var(--green); }
.footer-social .icon { width: 20px; height: 20px; }
/* Brand glyphs are single-path; tint them with the link color. */
.footer-social .icon svg { fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; }
.footer-bottom p { color: var(--grey-2); font-size: 13px; margin: 0; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .services-grid, .services-cards { grid-template-columns: 1fr; }
  .services-grid { gap: 40px; }
  .challenge-panel { padding: 48px 28px; min-height: 0; }
  .challenge-text { padding-bottom: 0; }
  .challenge-media { display: none; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 28px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 18px; }
  .nav-link.is-active { box-shadow: none; color: var(--green); }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 10px 14px;
    min-width: 0;
    display: none;
  }
  .nav-item.has-dropdown.open .dropdown { display: block; transform: none; }
  .nav-cta { margin: 18px 0 0; width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .card { padding: 32px 26px; }
}
