/* ============================================================
   Impact Business Solutions — Main Stylesheet
   Colors: Dark Teal #1a4a6b | Orange #F28A1F | Light Teal #4ba3c3
   ============================================================ */

:root {
  --navy:      #1a4a6b;
  --navy-dark: #0f2f45;
  --teal:      #4ba3c3;
  --teal-light:#6dc0d9;
  --orange:    #F28A1F;
  --orange-dk: #d4760f;
  --white:     #ffffff;
  --gray-light:#f4f6f9;
  --gray:      #8a95a3;
  --text:      #2c3e50;
  --radius:    10px;
  --shadow:    0 4px 20px rgba(26,74,107,0.12);
  --transition:0.25s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1,h2,h3,h4,h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Flash Messages ─────────────────────────────────────────── */
.flash {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px;
}
.flash--success { background: #2ecc71; color: #fff; }
.flash--error   { background: #e74c3c; color: #fff; }
.flash button   { background: none; border: none; color: inherit; cursor: pointer; font-size: 18px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn--orange  { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242,138,31,0.35); }
.btn--navy    { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-white { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--full { width: 100%; display: block; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.logo { height: 56px; }
.main-nav {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link--active { background: var(--gray-light); color: var(--orange); }

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 210px;
  padding: 8px 0;
  z-index: 999;
}
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 15px; font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--gray-light); color: var(--orange); }
.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--navy); border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero--full {
  background: var(--navy);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

/* Radial glow background — matches screenshot */
.hero--full::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,163,195,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero--full::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,74,107,0.4) 0%, transparent 65%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 52px 48px;
}

.hero-badge {
  display: inline-block;
  background: rgba(242,138,31,0.18);
  border: 1.5px solid rgba(242,138,31,0.6);
  color: var(--orange);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(42px, 5.5vw, 68px);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.hero-checks {
  list-style: none;
  margin: 0 0 36px;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.hero-checks li::before {
  content: '✓';
  background: var(--teal);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn--ghost-white {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 700;
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Puzzle Globe — right side */
.hero-globe {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-puzzle-img {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.45));
  animation: floatPuzzle 7s ease-in-out infinite;
  border-radius: 0;
  background: transparent;
}

@keyframes floatPuzzle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-16px) rotate(1deg); }
  66%       { transform: translateY(-8px) rotate(-0.5deg); }
}

/* Glow ring behind puzzle */
.hero-globe::before {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,163,195,0.14) 0%, transparent 70%);
  z-index: 0;
}
.hero-puzzle-img { position: relative; z-index: 1; }

/* Mobile hero */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-globe {
    order: -1;
  }
  .hero-puzzle-img {
    max-width: 300px;
    margin: 0 auto;
  }
  .hero--full {
    min-height: auto;
    padding: 48px 0;
  }
  .hero-card {
    padding: 36px 28px;
  }
}

/* ── Section Titles ─────────────────────────────────────────── */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-light); }
.section--navy { background: var(--navy); color: #fff; }
.section-label {
  display: inline-block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.section-sub   { font-size: 17px; color: var(--gray); max-width: 560px; }
.section--navy .section-sub { color: rgba(255,255,255,0.7); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26,74,107,0.16); }
.card-body { padding: 28px; }

/* ── Business Directory ─────────────────────────────────────── */
.tier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 48px 0; }

.tier-card {
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
}
.tier-card--free     { background: #fff; border-color: #dde3ea; }
.tier-card--basic    { background: #fff; border-color: var(--teal); }
.tier-card--featured { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.tier-card--featured::before {
  content: '⭐ MOST POPULAR';
  position: absolute; top: 14px; right: -28px;
  background: var(--orange);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
}
.tier-price { font-size: 48px; font-weight: 800; font-family: 'Inter Condensed',sans-serif; line-height: 1; }
.tier-price span { font-size: 18px; font-weight: 500; }
.tier-features { list-style: none; margin: 20px 0 28px; text-align: left; }
.tier-features li { padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 15px; }
.tier-card--featured .tier-features li { border-color: rgba(255,255,255,0.1); }
.tier-features li::before { content: '✓ '; color: var(--teal); font-weight: 700; }
.tier-card--featured .tier-features li::before { color: var(--orange); }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }

.biz-card { position: relative; }
.biz-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.biz-badge--featured { background: var(--orange); color: #fff; }
.biz-badge--basic    { background: var(--teal); color: #fff; }
.biz-badge--free     { background: #dde3ea; color: var(--gray); }

.biz-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; margin-bottom: 12px; }
.biz-cat  { font-size: 12px; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.biz-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.biz-desc { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.biz-links { display: flex; gap: 10px; flex-wrap: wrap; }
.biz-link  { font-size: 13px; font-weight: 600; color: var(--navy); background: var(--gray-light); padding: 5px 12px; border-radius: 6px; }
.biz-offer { background: rgba(242,138,31,0.1); border-left: 3px solid var(--orange); padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 14px; font-size: 14px; }

/* ── Leads Groups ───────────────────────────────────────────── */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.group-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.group-card--featured { border: 2px solid var(--orange); }
.group-header { background: var(--navy); color: #fff; padding: 20px 24px; }
.group-header--impact    { background: var(--navy); }
.group-header--external  { background: #2c3e50; }
.group-type-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.group-type-badge--impact   { background: var(--orange); color: #fff; }
.group-type-badge--external { background: var(--teal); color: #fff; }
.group-featured-banner {
  background: var(--orange); color: #fff;
  text-align: center; padding: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.group-body { padding: 22px 24px; background: #fff; }
.group-meta { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.group-meta-item { font-size: 14px; color: var(--gray); }
.group-meta-item strong { color: var(--text); }
.group-capacity { background: var(--gray-light); border-radius: 100px; height: 6px; margin: 6px 0; }
.group-capacity-fill { background: var(--teal); height: 100%; border-radius: 100px; }

/* ── Search / Filter Bar ────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 32px;
  background: var(--gray-light);
  padding: 20px;
  border-radius: var(--radius);
}
.filter-bar input, .filter-bar select {
  flex: 1; min-width: 180px;
  padding: 11px 16px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: #fff;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--teal);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-wrap {
  max-width: 680px; margin: 0 auto;
  background: #fff; border-radius: 16px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #dde3ea; border-radius: 8px;
  font-size: 15px; font-family: 'Inter',sans-serif;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(75,163,195,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ── Client Portal ──────────────────────────────────────────── */
.portal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 100vh; }
.portal-sidebar {
  background: var(--navy);
  color: #fff; padding: 28px 0;
  position: sticky; top: 72px; height: calc(100vh - 72px);
  overflow-y: auto;
}
.portal-sidebar-logo { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.portal-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.portal-nav-link:hover, .portal-nav-link--active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.portal-nav-link .icon { font-size: 18px; }
.portal-content { padding: 36px; background: var(--gray-light); }
.portal-section-title { font-size: 28px; margin-bottom: 24px; color: var(--navy); }

.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 18px; }
.file-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.file-card-name { font-weight: 600; margin-bottom: 6px; word-break: break-word; }
.file-card-date { font-size: 13px; color: var(--gray); }
.status-badge {
  display: inline-block; padding: 3px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.status-badge--pending   { background: #fff3cd; color: #856404; }
.status-badge--approved  { background: #d4edda; color: #155724; }
.status-badge--signed    { background: #d4edda; color: #155724; }
.status-badge--paid      { background: #d4edda; color: #155724; }
.status-badge--unpaid    { background: #f8d7da; color: #721c24; }
.status-badge--rejected  { background: #f8d7da; color: #721c24; }
.status-badge--revision_requested { background: #ffe5d0; color: #7a3e00; }

/* ── Admin Panel ────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy-dark); color: #fff; padding: 20px 0; }
.admin-sidebar h2 { padding: 0 20px 20px; font-size: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.admin-nav a {
  display: block; padding: 11px 20px;
  color: rgba(255,255,255,0.8);
  font-size: 15px; font-weight: 500;
  transition: var(--transition);
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.active { background: var(--orange); color: #fff; }
.admin-content { padding: 32px; background: var(--gray-light); }
.admin-title { font-size: 30px; margin-bottom: 24px; color: var(--navy); }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--navy); color: #fff; padding: 13px 16px; text-align: left; font-size: 14px; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #eef0f3; font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-light); }

.action-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat-card-num { font-size: 40px; font-weight: 800; font-family: 'Inter Condensed',sans-serif; color: var(--navy); }
.stat-card-label { font-size: 13px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Page Header Banner ─────────────────────────────────────── */
.page-banner { background: var(--navy); color: #fff; padding: 52px 0 44px; }
.page-banner h1 { font-size: clamp(36px,5vw,56px); margin-bottom: 10px; }
.page-banner p  { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 560px; }

/* ── Services Grid ──────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.service-card { padding: 32px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.service-icon { font-size: 38px; margin-bottom: 16px; }
.service-card h3 { font-size: 22px; margin-bottom: 10px; color: var(--navy); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-family: 'Inter Condensed',sans-serif; letter-spacing: 0.5px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { background: rgba(255,255,255,0.1); border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; margin-top: 40px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tier-grid     { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .admin-layout  { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; height: auto; }
  .admin-sidebar  { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: var(--shadow); gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; padding-left: 16px; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .hero-logo-bg { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 20px; }
}
