/* ============================================================
   CertifiedBusiness.org — Global Stylesheet
   ============================================================ */

:root {
  --navy:    #0f2a4a;
  --navy-light: #1a3d6b;
  --gold:    #f4a228;
  --gold-dark: #d4881a;
  --green:   #22c55e;
  --red:     #ef4444;
  --bg:      #f8fafc;
  --white:   #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-400:#94a3b8;
  --gray-600:#475569;
  --gray-800:#1e293b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius:   10px;
  --radius-lg:18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--gray-600); }
a  { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--alt { background: var(--gray-100); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p  { color: rgba(255,255,255,.75); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--white);
  letter-spacing: -.3px;
}
.nav__logo span { color: var(--gold); }
.nav__logo-icon {
  width: 36px; height: 36px;
  background: var(--gold); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  color: rgba(255,255,255,.8); padding: 6px 14px;
  border-radius: 6px; font-size: .92rem; font-weight: 500;
  transition: all .2s;
}
.nav__links a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav__links .btn-nav {
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 8px 20px; border-radius: 8px;
}
.nav__links .btn-nav:hover { background: var(--gold-dark); color: var(--navy); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: none; transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.6); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 18px 42px; font-size: 1.1rem; border-radius: 12px; }
.btn-sm { padding: 9px 20px; font-size: .9rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3d6b 50%, #0a1f35 100%);
  padding: 100px 0 90px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,162,40,.15); border: 1px solid rgba(244,162,40,.4);
  color: var(--gold); padding: 6px 16px; border-radius: 100px;
  font-size: .85rem; font-weight: 600; margin-bottom: 28px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero__sub {
  font-size: 1.2rem; color: rgba(255,255,255,.75);
  max-width: 640px; margin: 0 auto 40px;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 64px; flex-wrap: wrap;
}
.hero__stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); }
.hero__stat-label { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}
.trust-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-bar__item {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--gray-600); font-weight: 500;
}
.trust-bar__item .icon { color: var(--green); font-size: 1.1rem; }

/* ── Feature Cards ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 48px;
}
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 48px; align-items: start;
}
.plan {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: var(--gold); background: var(--navy);
  transform: scale(1.04); box-shadow: var(--shadow-lg);
}
.plan--featured h3, .plan--featured .plan__price,
.plan--featured .plan__period, .plan--featured .plan__desc { color: var(--white); }
.plan--featured .plan__feature { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.12); }
.plan__badge {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 100px;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px;
}
.plan h3 { font-size: 1.1rem; margin-bottom: 8px; }
.plan__price { font-size: 2.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.plan__period { font-size: .9rem; color: var(--gray-400); margin-bottom: 16px; }
.plan__desc { font-size: .9rem; color: var(--gray-600); margin-bottom: 24px; min-height: 48px; }
.plan__features { list-style: none; margin-bottom: 32px; }
.plan__feature {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--gray-100);
  font-size: .9rem; color: var(--gray-600);
}
.plan__feature .check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan__feature .x    { color: var(--gray-400); flex-shrink: 0; margin-top: 2px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; }
.step { text-align: center; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }

/* ── Badge Display ───────────────────────────────────────── */
.badge-showcase {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid var(--green);
  border-radius: 12px; padding: 12px 20px;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.badge-showcase .shield { font-size: 2rem; }
.badge-showcase__text { font-size: .85rem; line-height: 1.3; }
.badge-showcase__name { font-weight: 700; color: var(--navy); }
.badge-showcase__label { color: var(--green); font-size: .78rem; font-weight: 600; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 48px;
}
.testimonial {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.testimonial__stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial__text { color: var(--gray-600); font-style: italic; margin-bottom: 16px; font-size: .95rem; }
.testimonial__author { font-weight: 700; color: var(--navy); font-size: .9rem; }
.testimonial__biz { color: var(--gray-400); font-size: .83rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 48px auto 0; }
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 1rem; font-weight: 600; color: var(--navy);
}
.faq__q .arrow { transition: transform .2s; color: var(--gray-400); }
.faq__q.open .arrow { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding-bottom: 20px; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #e8920a 100%);
  border-radius: var(--radius-lg); padding: 60px 40px;
  text-align: center; margin: 0 24px;
}
.cta-banner h2 { color: var(--navy); margin-bottom: 12px; }
.cta-banner p  { color: rgba(15,42,74,.75); margin-bottom: 32px; font-size: 1.1rem; }

/* ── Form ────────────────────────────────────────────────── */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200); max-width: 560px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: .95rem; color: var(--gray-800);
  transition: border-color .2s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,42,74,.08);
}

/* ── City/Service page ───────────────────────────────────── */
.city-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 60px 0 50px; text-align: center;
}
.city-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.city-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.city-hero__meta {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 24px; flex-wrap: wrap;
}
.city-hero__meta-item {
  background: rgba(255,255,255,.1); border-radius: 8px; padding: 8px 18px;
  font-size: .85rem; color: rgba(255,255,255,.9); font-weight: 500;
}

/* ── Business Listing Card ───────────────────────────────── */
.listings { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.listing {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex; gap: 20px; align-items: flex-start;
}
.listing__rank {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0; margin-top: 4px;
}
.listing__body { flex: 1; }
.listing__name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.listing__tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tag {
  background: var(--gray-100); color: var(--gray-600);
  padding: 3px 10px; border-radius: 100px; font-size: .78rem; font-weight: 500;
}
.tag--verified { background: rgba(34,197,94,.12); color: #15803d; }
.tag--elite    { background: rgba(244,162,40,.15); color: #92400e; }
.listing__stars { color: var(--gold); }
.listing__reviews { font-size: .85rem; color: var(--gray-400); margin-left: 6px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--gray-800); padding: 64px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer__brand { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer__brand span { color: var(--gold); }
.footer__desc { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.7; }
.footer__heading { color: rgba(255,255,255,.9); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(255,255,255,.5); font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer__copy { color: rgba(255,255,255,.4); font-size: .85rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links a:not(.btn-nav) { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 28px; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 56px 0; }
  .listing { flex-direction: column; }
  .cta-banner { margin: 0; padding: 40px 24px; border-radius: 0; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta { flex-direction: column; align-items: center; }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-navy   { color: var(--navy); }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12{ margin-bottom: 12px; }
.mb-16{ margin-bottom: 16px; }
.mb-24{ margin-bottom: 24px; }
.mb-32{ margin-bottom: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16{ margin-top: 16px; }
.mt-24{ margin-top: 24px; }
.mt-32{ margin-top: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.verified-shield {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: white; padding: 4px 12px; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .3px;
}
