/* ============================================================
   CROStars — Global Stylesheet
   Design: flat, minimal, no gradients, no shadows
   Tokens: teal #1D9E75 | amber #BA7517 | purple #534AB7
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #1D9E75;
  --teal-dark: #167a5c;
  --teal-light:#E8F7F2;
  --amber:     #BA7517;
  --amber-light:#FEF3DC;
  --purple:    #534AB7;
  --purple-light:#EEEDF9;

  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-500:  #6B7280;
  --gray-300:  #D1D5DB;
  --gray-200:  #E5E7EB;
  --gray-100:  #F3F4F6;
  --white:     #FFFFFF;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --max-w: 1120px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography -------------------------------------------- */
h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-light); }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.875rem; }

/* --- Stars ------------------------------------------------- */
.stars { color: var(--amber); letter-spacing: 1px; font-size: 1rem; }
.stars-sm { font-size: 0.8125rem; }
.stars-lg { font-size: 1.25rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3125rem;
  font-weight: 800;
  color: var(--gray-900);
  flex-shrink: 0;
}

.nav__logo-stars {
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: -1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav__link {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 0.12s, color 0.12s;
}
.nav__link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav__link--active { color: var(--teal); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--gray-200);
}

.hero__inner {
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid #b3e6d4;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.hero__title { margin-bottom: 16px; }
.hero__title em { color: var(--teal); font-style: normal; }

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 580px;
  margin-bottom: 36px;
}

/* Search bar */
.hero__search {
  display: flex;
  gap: 0;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  max-width: 640px;
}
.hero__search:focus-within { border-color: var(--teal); }

.hero__search-input {
  flex: 1;
  padding: 13px 16px;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--gray-900);
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}
.hero__search-input::placeholder { color: var(--gray-500); }

.hero__search-divider {
  width: 1px;
  background: var(--gray-200);
  margin: 10px 0;
}

.hero__search-select {
  padding: 13px 14px;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--gray-700);
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.hero__search-btn {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.hero__search-btn:hover { background: var(--teal-dark); }

.hero__hint {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.hero__hint a { color: var(--teal); font-weight: 500; }
.hero__hint a:hover { text-decoration: underline; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 28px;
  border-right: 1px solid var(--gray-300);
}
.trust-bar__item:first-child { padding-left: 0; }
.trust-bar__item:last-child { border-right: none; }

.trust-bar__num {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.trust-bar__label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.2;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 72px 0; }
.section--alt { background: var(--gray-100); }

.section__header {
  margin-bottom: 40px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section__title { margin-bottom: 10px; }

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 540px;
}

/* ============================================================
   SERVICE CATEGORIES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.service-card:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.service-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--teal);
}

.service-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}

.service-card__count {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ============================================================
   VERIFICATION STEPS
   ============================================================ */
.verify-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.verify-step {
  background: var(--white);
  padding: 28px 24px;
  position: relative;
}

.verify-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.verify-step__icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.verify-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.verify-step__desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.verify-step--ai .verify-step__num {
  background: var(--purple);
  color: var(--white);
}
.verify-step--ai .verify-step__title { color: var(--purple); }

.verify-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--purple-light);
  border: 1.5px solid #c9c6e8;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--purple);
  font-weight: 500;
}
.verify-footer svg, .verify-footer span.icon { font-size: 1rem; }

/* ============================================================
   CRO CARDS
   ============================================================ */
.cro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.cro-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.12s;
}
.cro-card:hover { border-color: var(--teal); }

.cro-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cro-card__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-700);
  flex-shrink: 0;
}

.cro-card__meta { flex: 1; min-width: 0; }
.cro-card__name { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }

.cro-card__location {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.cro-card__rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cro-card__score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.cro-card__review-count {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.cro-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.tag--teal { background: var(--teal-light); color: var(--teal-dark); border-color: #b3e6d4; }

.cro-card__excerpt {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cro-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.cro-card__view {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
}
.cro-card__view:hover { text-decoration: underline; }

/* ============================================================
   WHY CROSTARS
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 24px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.why-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.why-card__icon--teal   { background: var(--teal-light); }
.why-card__icon--amber  { background: var(--amber-light); }
.why-card__icon--purple { background: var(--purple-light); }

.why-card__title { margin-bottom: 8px; }
.why-card__desc { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.55; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--teal);
  padding: 60px 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner__text h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner__text p  { color: rgba(255,255,255,0.8); font-size: 1.0625rem; max-width: 480px; }

.btn-white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn-white:hover { background: var(--teal-light); border-color: var(--teal-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 56px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #374151;
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__logo-stars { color: var(--amber); font-size: 0.9rem; letter-spacing: -1px; }

.footer__tagline {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 240px;
  margin-bottom: 20px;
}

.footer__independent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
}
.footer__independent-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--gray-300);
  transition: color 0.12s;
}
.footer__link:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: var(--gray-500); transition: color 0.12s; }
.footer__legal a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .verify-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.125rem; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .verify-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .trust-bar__item { padding: 4px 16px; }
  h1 { font-size: 1.875rem; }
  .hero { padding: 48px 0 40px; }
  .hero__search { flex-direction: column; border-radius: var(--radius); }
  .hero__search-divider { display: none; }
  .hero__search-btn { border-radius: 0 0 4px 4px; padding: 13px; text-align: center; }
}
