/* =============================================
   TRUENORTH — SHARED STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --teal: #00BFA6;
  --teal-dark: #009e88;
  --teal-light: #e0f7f4;
  --navy: #1a1f2e;
  --navy-mid: #2a3042;
  --orange: #F5A623;
  --orange-light: #fff3e0;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #f1f3f5;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #374151;
  --text-dark: #111827;
  --text-mid: #4b5563;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s ease;
  --nav-height: 72px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 40px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: 8px;
  /* IMAGE PLACEHOLDER: replace src in HTML with your logo image */
}
.nav-logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--teal); letter-spacing: -0.3px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--gray-800);
  position: relative; padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--teal); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-referral {
  background: var(--navy); color: var(--white);
  padding: 10px 22px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-referral:hover { background: var(--teal); transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 24px 40px; flex-direction: column; gap: 20px;
  z-index: 999; box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--navy); padding: 8px 0; border-bottom: 1px solid var(--gray-100); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,191,166,0.3); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 12px 24px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 600;
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white);
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,191,166,0.3); }

.btn-orange {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-orange:hover { background: #e0951a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,166,35,0.3); }

/* =============================================
   IMAGE PLACEHOLDERS
   ============================================= */
.img-placeholder {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8ecf0 25%, #f0f4f8 50%, #e8ecf0 75%);
  background-size: 200% 200%;
  animation: shimmer 2s infinite;
}
.img-placeholder::after {
  content: '📷 Add Image';
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
  text-align: center;
  padding: 12px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================
   SECTION LABELS
   ============================================= */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--teal);
  background: var(--teal-light); padding: 5px 12px;
  border-radius: 20px; border: 1px solid rgba(0,191,166,0.2);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-dark);
}
.section-heading .accent { color: var(--orange); }
.section-heading .teal { color: var(--teal); }

.section-subtext {
  font-size: 1rem; color: var(--text-mid);
  max-width: 540px; line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 40px 30px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .nav-logo-text { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--teal); border-color: var(--teal); color: white; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--teal); }

/* =============================================
   UTILITY
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* =============================================
   CARDS — shared
   ============================================= */
.card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card-dark {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-md); padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-dark:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.card-teal {
  background: var(--teal); color: var(--white);
  border-radius: var(--radius-md); padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-teal:hover { transform: translateY(-3px); }

.card-orange {
  background: var(--orange-light); border-radius: var(--radius-md); padding: 28px;
  border: 1px solid rgba(245,166,35,0.2);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-orange:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px;
}
.icon-box-teal { background: var(--teal-light); color: var(--teal); }
.icon-box-orange { background: var(--orange-light); color: var(--orange); }
.icon-box-navy { background: rgba(255,255,255,0.1); color: var(--white); }
.icon-box-white { background: rgba(255,255,255,0.15); color: var(--white); }

.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-mid); margin-bottom: 8px;
}
.check-item::before { content: '✓'; color: var(--teal); font-weight: 700; margin-top: 1px; flex-shrink: 0; }

/* =============================================
   STAT BADGE
   ============================================= */
.stat-badge {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: inline-flex; flex-direction: column;
  gap: 2px;
  border-left: 3px solid var(--teal);
}
.stat-badge .stat-num { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.stat-badge .stat-label { font-size: 0.78rem; color: var(--gray-600); font-weight: 500; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--navy);
  padding: 90px 40px;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white); margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 520px; margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; }
  .container { padding: 0 24px; }
  footer { padding: 50px 24px 24px; }
  .cta-section { padding: 70px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-links { display: none; }
  .btn-referral { display: none; }
  .nav-hamburger { display: flex; }
  .section-pad { padding: 70px 0; }
  .section-pad-sm { padding: 50px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 40px 16px 20px; }
}
