/* ============================================
   INeedYou - Design System v2
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
html { overflow-x: clip; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; background: #fff; color: #1a1a1a; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

:root {
  --green: #1D9E75; --green-dark: #0F6E56; --green-light: #E1F5EE; --green-mid: #d0ede3;
  --bg: #f8fdfb; --text: #1a1a1a; --text-muted: #888; --text-light: #aaa;
  --border: #e8f5ef; --border-mid: #d0e8dc;
  --red: #E24B4A; --red-light: #fdeaea; --gold: #f5a623;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06); --shadow-md: 0 4px 20px rgba(0,0,0,0.10); --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px; --radius-full: 9999px;
  --transition: 0.2s ease;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; } h4 { font-size: 1.1rem; }
p { color: var(--text); line-height: 1.7; }
small { font-size: 0.82rem; color: var(--text-muted); }

/* ---- LAYOUT ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important; background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid var(--border); height: 68px;
  display: flex !important; align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.navbar .container { display: flex !important; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.navbar-logo { font-size: 1.5rem; font-weight: 800; color: var(--green); letter-spacing: -0.02em; }
.navbar-logo span { color: var(--green-dark); }
.navbar-nav { display: flex; align-items: center; gap: 0.25rem; }
.navbar-link { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); padding: 0.45rem 0.9rem; border-radius: var(--radius-full); transition: all var(--transition); display: inline-block; white-space: nowrap; }
.navbar-link:hover { color: var(--green); background: var(--green-light); }
.navbar-link.active { color: var(--green); }

/* Dropdown menu */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); padding: 0.45rem 0.9rem; border-radius: var(--radius-full); cursor: pointer; display: flex; align-items: center; gap: 0.3rem; border: none; background: none; transition: all var(--transition); }
.nav-dropdown-toggle:hover { color: var(--green); background: var(--green-light); }
.nav-dropdown-toggle::after { content: '▾'; font-size: 0.7rem; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 200px; padding: 0.5rem; opacity: 0; visibility: hidden; transition: all 0.2s; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.9rem; border-radius: var(--radius-md); font-size: 0.88rem; color: var(--text); transition: all var(--transition); }
.nav-dropdown-item:hover { background: var(--green-light); color: var(--green-dark); }
.nav-dropdown-item-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

.page-body { padding-top: 68px !important; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 1.4rem; font-size: 0.88rem; font-weight: 600; border-radius: var(--radius-full); border: 2px solid transparent; cursor: pointer; transition: all var(--transition); white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,158,117,0.3); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--green-light); color: var(--green); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- FORMS ---- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border-mid); border-radius: var(--radius-md); font-size: 0.9rem; color: var(--text); background: #fff; transition: border-color var(--transition); outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,0.12); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { 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='%23888' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-error { font-size: 0.8rem; color: var(--red); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); }

/* ---- CARDS ---- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }

/* ---- PROVIDER CARD ---- */
.provider-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s; box-shadow: var(--shadow-sm); position: relative; }
.provider-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--green); }
.provider-card.sponsored { border-color: var(--gold); }
.provider-card.sponsored::before { content: '⭐ Sponsored'; position: absolute; top: 10px; right: 10px; background: var(--gold); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
.provider-card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.provider-card-photo-placeholder { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--green-light), #c8f0e0); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--green); font-weight: 700; }
.provider-card-body { padding: 1rem; }
.provider-card-name { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.2rem; }
.provider-card-category { font-size: 0.78rem; color: var(--green); font-weight: 600; margin-bottom: 0.3rem; }
.provider-card-city { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.provider-card-rating { display: flex; align-items: center; gap: 0.3rem; }
.stars { color: var(--gold); font-size: 0.82rem; }
.rating-count { font-size: 0.75rem; color: var(--text-muted); }
.provider-card-rate { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.provider-card-rate strong { color: var(--green-dark); }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; font-size: 0.7rem; font-weight: 700; border-radius: var(--radius-full); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-gold { background: #fef3dc; color: #9a6700; }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-gray { background: #f0f0f0; color: #666; }

/* ---- ALERTS ---- */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius-md); font-size: 0.88rem; display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1rem; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green); }
.alert-error { background: var(--red-light); color: var(--red); border: 1px solid var(--red); }
.alert-warning { background: #fef8ec; color: #9a6700; border: 1px solid #f5c842; }
.alert-info { background: #eef4ff; color: #2563eb; border: 1px solid #93c5fd; }

/* ---- SEARCH BAR ---- */
.search-wrap { display: flex; align-items: center; background: #fff; border: 2px solid var(--border-mid); border-radius: var(--radius-full); overflow: hidden; box-shadow: var(--shadow-md); }
.search-wrap:focus-within { border-color: var(--green); box-shadow: 0 4px 20px rgba(29,158,117,0.15); }
.search-input { flex: 1; border: none; outline: none; padding: 0.9rem 1.5rem; font-size: 0.95rem; color: var(--text); background: transparent; }
.search-btn { background: var(--green); color: #fff; border: none; cursor: pointer; padding: 0.9rem 1.5rem; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; transition: background var(--transition); }
.search-btn:hover { background: var(--green-dark); }

/* ---- TABS ---- */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { padding: 0.75rem 1.2rem; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active, .tab-btn:hover { color: var(--green); border-bottom-color: var(--green); }

/* ---- FOOTER ---- */
footer { background: var(--green-dark); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; margin-top: 5rem; }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 0.5rem; display: block; }

/* ---- AVATAR ---- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--green-light); display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700; }
.avatar-sm { width: 36px; height: 36px; font-size: 0.85rem; }
.avatar-md { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.8rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.5rem; }

/* ---- SPINNER ---- */
.spinner { width: 24px; height: 24px; border: 3px solid var(--green-light); border-top-color: var(--green); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-green { color: var(--green); } .text-dark { color: var(--green-dark); }
.text-muted { color: var(--text-muted); } .text-red { color: var(--red); }
.text-sm { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.w-full { width: 100%; } .hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ---- FEATURE ICONS ---- */
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.feature-icon.gold { background: #fef3dc; }
.feature-icon.blue { background: #eef4ff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar-nav .navbar-link { display: none; }
  .navbar-nav .btn { display: inline-flex; }
  .container { padding: 0 1rem; }
  .nav-dropdown { display: none; }
}
@media (max-width: 480px) { h1 { font-size: 1.8rem; } .section { padding: 3rem 0; } }

/* ---- WHY INEEDYOU SECTION ---- */
.why-section { padding: 5rem 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.why-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: all 0.25s; }
.why-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.why-card h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 0.6rem; }
.why-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ---- COMPARISON TABLE ---- */
.compare-wrap { 
  background: #fff; 
  border-radius: var(--radius-xl); 
  padding: 3rem; 
  margin-bottom: 4rem; 
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.compare-table { 
  width: 100%; 
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem; 
  min-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.compare-table thead tr th {
  padding: 1rem 1.2rem; 
  font-weight: 700; 
  font-size: 0.82rem; 
  text-align: center;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  letter-spacing: 0.02em;
}
.compare-table thead tr th:first-child { text-align: left; }
.compare-table tbody td { 
  padding: 0.85rem 1.2rem; 
  border-bottom: 1px solid var(--border); 
  vertical-align: middle;
  text-align: center;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) td { background: #fafffe; }
.compare-table tbody tr:hover td { background: var(--green-light); transition: background 0.15s; }
.compare-table td:first-child { font-weight: 500; color: var(--text); text-align: left; }
.col-us td, .col-us th { 
  background: rgba(29,158,117,0.07) !important; 
  border-left: 2px solid var(--green) !important;
  border-right: 2px solid var(--green) !important;
}
.col-us th { 
  color: var(--green-dark) !important; 
  background: rgba(29,158,117,0.15) !important;
  font-size: 0.88rem !important;
}
.col-comp th { color: var(--text-muted); }
.check { color: var(--green-dark); font-weight: 700; }
.cross { color: var(--red); font-weight: 600; }
.warn { color: #9a6700; font-weight: 600; }

/* ---- TESTIMONIALS ---- */
.testimonials-wrap { padding-top: 2rem; }
.testimonial-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; transition: all 0.25s; }
.testimonial-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-wrap { padding: 1.5rem; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-wrap .grid-3 { grid-template-columns: 1fr; }
}

/* ---- NAVBAR FIXES ---- */
.navbar {
  flex-direction: row !important;
}
.navbar .container {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.navbar-nav {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.navbar-nav .navbar-link,
.navbar-nav .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- FIX SCROLL RENDERING (Chrome compositing bug) ---- */
.sponsored-section,
.providers-section,
.how-section,
.why-section,
.cta-banner,
footer {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
