/* ============================================================
   BARNETT ENTERPRISES — Shared Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- TOKENS ---- */
:root {
  --navy:      #0F172A;
  --navy-800:  #1E293B;
  --navy-700:  #334155;
  --blue:      #2563EB;
  --blue-700:  #1D4ED8;
  --blue-50:   #EFF6FF;
  --blue-100:  #DBEAFE;
  --white:     #FFFFFF;
  --off:       #F8FAFC;
  --off-2:     #F1F5F9;
  --text:      #1E293B;
  --text-2:    #475569;
  --text-3:    #94A3B8;
  --border:    #E2E8F0;
  --border-2:  #CBD5E1;

  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
  --shadow:    0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --shadow-md: 0 8px 30px rgba(15,23,42,.1), 0 2px 8px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.12), 0 4px 16px rgba(15,23,42,.06);

  --ease:      cubic-bezier(.4, 0, .2, 1);
  --r:         10px;
  --r-sm:      8px;
  --r-lg:      16px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font); }
ul { list-style: none; }
::selection { background: var(--blue-100); color: var(--blue); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

/* ---- TYPOGRAPHY ---- */
h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--navy);
}
h2 {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--navy);
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--navy);
}
h4 { font-size: .9375rem; font-weight: 600; color: var(--navy); }
p { color: var(--text-2); }
.lead { font-size: 1.125rem; color: var(--text-2); line-height: 1.75; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { padding: 13px 28px; font-size: .9375rem; border-radius: var(--r); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--off); border-color: var(--navy-700); }
.btn-ghost-white {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.14); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--off); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---- NAVIGATION ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 5%;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 8px;
}
.logo {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
  margin-right: 16px;
}
.logo .dot { color: var(--blue); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.main-nav a {
  padding: 7px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background .18s, color .18s;
}
.main-nav a:hover { background: var(--off); color: var(--navy); }
.main-nav a.current { color: var(--navy); background: var(--off-2); font-weight: 600; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: background .18s;
}
.hamburger:hover { background: var(--off); }
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: .28s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 70px;
  background: var(--white);
  z-index: 199;
  padding: 16px 5% 32px;
  flex-direction: column;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  padding: 14px 12px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mob-nav a:last-of-type { border-bottom: none; }
.mob-nav .btn { margin-top: 16px; justify-content: center; width: 100%; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  padding: 80px 5% 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
  display: inline-block;
  margin-bottom: 14px;
}
.footer-brand-logo .dot { color: #60A5FA; }
.footer-brand p {
  font-size: .875rem;
  color: rgba(255,255,255,.38);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col-title {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: rgba(255,255,255,.28);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.48);
  text-decoration: none;
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.22); }
.footer-trust { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: .7rem;
  color: rgba(255,255,255,.3);
}

/* ---- COMMON PAGE COMPONENTS ---- */
.container { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  flex-shrink: 0;
}
.accent { color: var(--blue); }
section { padding: 100px 5%; }
.section-intro { max-width: 600px; }
.section-intro h2 { margin-bottom: 14px; }
.section-intro.centered { max-width: 640px; margin: 0 auto; text-align: center; }
.section-intro.centered p { max-width: none; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 150px 5% 100px;
}
.page-hero .section-eyebrow { color: rgba(255,255,255,.45); }
.page-hero .section-eyebrow::before { background: rgba(255,255,255,.25); }
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero .lead { color: rgba(255,255,255,.55); max-width: 560px; }

/* ---- CARD ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: box-shadow .25s var(--ease), border-color .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

/* ---- STATS STRIP ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.035em;
}
.stat-num .accent-num { color: var(--blue); }
.stat-label {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ---- FEATURE LIST ---- */
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.5;
}
.check-icon {
  width: 18px;
  height: 18px;
  background: var(--blue-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon svg { width: 10px; height: 10px; stroke: var(--blue); stroke-width: 2.5; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--navy);
  padding: 100px 5%;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.55); font-size: 1.0625rem; max-width: 480px; margin: 0 auto 40px; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-note { font-size: .8rem; color: rgba(255,255,255,.3); margin-top: 20px; }

/* ---- TESTIMONIAL CARD ---- */
.tcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}
.tcard-stars { color: #F59E0B; font-size: .875rem; letter-spacing: 2px; margin-bottom: 18px; }
.tcard blockquote {
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.7;
  font-style: normal;
  margin-bottom: 24px;
  font-weight: 400;
}
.tcard-author { display: flex; align-items: center; gap: 12px; }
.tcard-avatar {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.tcard-name { font-size: .875rem; font-weight: 600; color: var(--navy); }
.tcard-role { font-size: .8rem; color: var(--text-3); margin-top: 1px; }
.tcard-result {
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--blue-50);
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue-700);
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn-secondary { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 5%; }
  .page-hero { padding: 130px 5% 72px; }
  .cta-section { padding: 72px 5%; }
}
@media (max-width: 640px) {
  section { padding: 56px 5%; }
  .page-hero { padding: 110px 5% 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-buttons .btn { justify-content: center; }
}
