/* JACET-LinkFix - Final Clean Styles */
:root {
  --primary: #1e40af;
  --accent: #3b82f6;
  --text: #0f172a;
  --muted: #475569;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.container {
  width: min(95%, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.primary { background: white; color: var(--primary); }
.primary:hover { transform: translateY(-3px); }

.outline { border: 2px solid white; color: white; }

/* Service Tiles */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card-header {
  padding: 1.25rem;
  background: #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.service-price {
  color: var(--primary);
  font-weight: bold;
  margin-left: auto;
}

/* Forms - Fixed Overlapping */
.card {
  background: white;
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 2rem auto;
}

label {
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem 0 1rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: white;
    flex-direction: column;
    width: 260px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
}

/* Added improvements for service tiles and mobile menu */

.service-card {
  transition: all 0.25s ease;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
  border-color: var(--primary);
}

.service-grid {
  min-height: 300px;
}

/* Better mobile menu */
@media (max-width: 820px) {
  .site-nav {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #e2e8f0;
  }
  
  .nav-link {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }
}

/* Make tiles more like Jiji / Jumia style */
.service-card-header {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.service-price {
  font-size: 1.1rem;
  color: #1e40af;
}

/* Clickable improvement */
.service-card a.btn {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* Final improvements for tiles and mobile menu */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  padding: 2rem 0;
}

.service-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(30, 64, 175, 0.18);
}

.service-card-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  background: #dbeafe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.service-price {
  color: #1e40af;
  font-weight: 700;
  font-size: 1.2rem;
  margin-left: auto;
}

.provider-summary {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid #f1f5f9;
}

.provider-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e40af;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.05rem;
}

.service-card-actions {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.service-card a.btn {
  width: 100%;
  text-align: center;
  padding: 0.9rem;
  background: #1e40af;
  color: white;
  border-radius: 12px;
  font-weight: 600;
}

/* Reliable Mobile Menu */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: white;
    flex-direction: column;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 16px;
    padding: 1.25rem;
    z-index: 999;
    border: 1px solid #e2e8f0;
    display: none;
  }
  
  .site-nav.open {
    display: flex !important;
  }
  
  .nav-link {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #f1f5f9;
  }
}
